query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
listlengths 3
101
| negative_scores
listlengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
All Comparables are consumers so they use "? super E".
|
public static <E extends Comparable<? super E>> Optional<E> max(Set<? extends E> s1) {
E res = null;
for(E val : s1) {
if(res == null || val.compareTo(res) > 0) {
res = val;
}
}
return Optional.ofNullable(res);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public Comparator<? super E> comparator() {\n return comparator;\n }",
"@Override\r\n\tpublic int compareTo(E o) {\n\t\treturn 0;\r\n\t}",
"public Comparator<? super K> comparator() {\n/* 102 */ return null;\n/* */ }",
"default EqualityComparator<? super E> getComparator() {\n // Most implementations do not support custom equality comparators,\n // and just use the equals() and hashCode() implementations of the objects by default.\n return EqualityComparator.getDefault();\n }",
"Comparator<? super K> comparator();",
"protected abstract Comparator<T> getFallbackComparator();",
"public Comparator<? super P> comparator();",
"@Override\n public int compare(final E obj1, final E obj2) {\n return comparator.compare(obj2, obj1);\n }",
"@Override\n\tpublic Comparator<? super K> comparator() {\n\t\treturn null;\n\t}",
"public abstract void compare();",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic int compare(E parent, E child) \r\n\t{\r\n\t\tif(comparator != null)\r\n\t\t{\r\n\t\t\treturn comparator.compare(parent, child);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn ((Comparable<E>) parent).compareTo(child);\r\n\t\t}\r\n\t}",
"void sort(Comparator<E> comp);",
"@SuppressWarnings(\"unchecked\")\n\tpublic static <E extends Comparable<E>> Comparator<E> getComparableComparator() {\n\t\treturn (Comparator<E>) COMPARABLE_COMPARATOR;\n\t}",
"@Override\n\tpublic int compareTo(T o) {\n\t\treturn 0;\n\t}",
"@Override\n public int compareTo(Object o) {\n return 0;\n }",
"@Override\n public int compareTo(Object o) {\n return 0;\n }",
"@Override\n public int compareTo(Object o) {\n return 0;\n }",
"@Override\r\npublic int compareTo(Object o) {\n\treturn 0;\r\n}",
"protected BaseComparator() {}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"public interface SortedCharSeqCollection<E extends Comparable<E>\n & CharSequence> {\n}",
"@Override\r\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\r\n\t}",
"@Override\n public int compareTo(Empleados o)\n {\n return 0;\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate int compare(AnyType lhs, AnyType rhs) {\n\t\tif (cmp == null)\n\t\t\treturn ((Comparable<? super AnyType>) lhs).compareTo(rhs); // safe to ignore warning\n\t\t// We won't test your code on non-Comparable types if we didn't supply a Comparator\n\n\t\treturn cmp.compare(lhs, rhs);\n\t}",
"int compare(T o1, T o2);",
"@Override\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\n\t}",
"@Override\r\n\t\tpublic int compareTo(Object o) {\n\t\t\treturn 0;\r\n\t\t}",
"@Override\r\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\r\n\t}",
"public interface Comparable {\n\n\n boolean better(Comparable other);\n}",
"@Override\n\tpublic void visit(AnyComparisonExpression arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void visit(AnyComparisonExpression arg0) {\n\n\t}",
"@Override\n\t\tpublic int compareTo(Object arg0) {\n\t\t\treturn 0;\n\t\t}",
"protected abstract int doCompare(Object o1, Object o2);",
"public interface Comparator {\n default int compare(Object a, Object b) {\n FeatureExpr ctx = Contexts.model_java_util_Comparator_compare;\n V<?> compareResult = compare__Ljava_lang_Object_Ljava_lang_Object__I(V.one(ctx, a), V.one(ctx, b), ctx);\n V<?> selected = compareResult.select(ctx);\n assert selected.getOne() instanceof java.lang.Integer : \"compare returns non-Integer\";\n return ((java.lang.Integer) selected.getOne());\n }\n V<?> compare__Ljava_lang_Object_Ljava_lang_Object__I(V a, V b, FeatureExpr fe);\n}",
"@Override\r\n\tpublic int compareTo(Employee o) {\n\t\treturn 0;\r\n\t}",
"public Heap(Comparator<? super E> comp){\n super(7, comp);\n }",
"@Override\n\tpublic int compareTo(Objeto o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(CompType o) {\n\t\treturn (i<o.i ? -1 : (i == o.i ? 0 : 1));\n\t}",
"Comparator<O> getObjectComparator();",
"@Override\n\tpublic void visit(AllComparisonExpression arg0) {\n\t\t\n\t}",
"public interface Sort<E extends Comparable<E>> {\n void sort(E[] e);\n\n default void show(E[] e) {\n StringBuffer res = new StringBuffer(\"[\");\n for (int i = 0; i < e.length; i++) {\n res.append(e[i] + \",\");\n }\n\n res = res.deleteCharAt(res.length() - 1);\n res.append(\"]\");\n System.out.println(res.toString());\n }\n\n default boolean isSorted(E[] e) {\n for (int i = 0; i < e.length - 1; i++) {\n if (e[i].compareTo(e[i + 1]) > 0)\n throw new IllegalArgumentException(\"排序出错, 请检查程序\");\n }\n\n System.out.println(\"排序正常...\");\n return true;\n }\n}",
"@Override\n\tpublic void visit(AllComparisonExpression arg0) {\n\n\t}",
"public final Comparator<? super Node<N>> comparator() {\n return null;\n }",
"Optional<Comparator<V>> getValueComparator();",
"@Override\r\n \tpublic int compareTo(BaseAmount<Q> o) {\n \t\treturn 0;\r\n \t}",
"@Override\n\tpublic void compareFichierTo(Fichier f) {\n\t\t\n\t}",
"int compare(T t1, T t2);",
"private static <E extends Comparable<? super E>, V> boolean greaterEqual(final E nonnull, final E other) {\r\n if (other == null) return false;\r\n return nonnull.compareTo(other) >= 0;\r\n }",
"public interface ComparableExpression<T> extends Expression<T> {\n /**\n * Method returning whether this expression is less than the other expression.\n *\n * @param expr Other expression\n * @return Whether this is less than the other\n */\n BooleanExpression lt(ComparableExpression<? extends T> expr);\n\n /**\n * Method returning whether this expression is less than the literal.\n *\n * @param t literal\n * @return Whether this is less than the other\n */\n BooleanExpression lt(T t);\n\n /**\n * Method returning whether this expression is less than or equal the other expression.\n *\n * @param expr Other expression\n * @return Whether this is less than or equal the other\n */\n BooleanExpression lteq(ComparableExpression<? extends T> expr);\n\n /**\n * Method returning whether this expression is less than or equal the literal.\n *\n * @param t literal\n * @return Whether this is less than or equal the other\n */\n BooleanExpression lteq(T t);\n\n /**\n * Method returning whether this expression is greater than the other expression.\n *\n * @param expr Other expression\n * @return Whether this is greater than the other\n */\n BooleanExpression gt(ComparableExpression<? extends T> expr);\n\n /**\n * Method returning whether this expression is greater than the literal.\n *\n * @param t literal\n * @return Whether this is greater than the other\n */\n BooleanExpression gt(T t);\n\n /**\n * Method returning whether this expression is greater than or equal the other expression.\n *\n * @param expr Other expression\n * @return Whether this is greater than or equal to the other\n */\n BooleanExpression gteq(ComparableExpression<? extends T> expr);\n\n /**\n * Method returning whether this expression is greater than or equal the literal.\n *\n * @param t literal\n * @return Whether this is greater than or equal to the other\n */\n BooleanExpression gteq(T t);\n\n /**\n * Method to return a numeric expression representing the aggregated minimum of this expression.\n *\n * @return expression for the minimum\n */\n ComparableExpression<T> min();\n\n /**\n * Method to return a numeric expression representing the aggregated maximum of this expression.\n *\n * @return expression for the maximum\n */\n ComparableExpression<T> max();\n\n /**\n * Method to return an order expression for this expression in ascending order.\n *\n * @return The order expression\n */\n OrderExpression<T> asc();\n\n /**\n * Method to return an order expression for this expression in descending order.\n *\n * @return The order expression\n */\n OrderExpression<T> desc();\n}",
"private static <E extends Comparable<? super E>, V> boolean lessEqual(final E nonnull, final E other) {\r\n if (other == null) return true;\r\n return nonnull.compareTo(other) <= 0;\r\n }",
"@Override\n\t\t\tpublic int compareTo(Object o) {\n\t\t\t\treturn 0;\n\t\t\t}",
"public interface StatisticsCalculator<E extends Comparable<E>> {\n E getStatistics(int k);\n}",
"public Comparator<? super N> getComparator() {\n\t\treturn comparator;\n\t}",
"private static <E extends Comparable<? super E>, V> boolean equal(final E nonnull, final E other) {\r\n if (other == null) return false;\r\n return nonnull.compareTo(other) == 0;\r\n }",
"@Override\n public List<Exchangeable> getExchangeables() {\n return null;\n }",
"@Override\n public int compareTo(Measurable arg0) {\n return 0;\n }",
"public SortedSet(ISet<E> other) {\n\n }",
"@Override\r\n protected int compareTo (BasicComponent o)\r\n {\n return 0;\r\n }",
"public boolean compareTo(T t);",
"public <E> E getE(E e){\n return e;\n }",
"public boolean a(Comparable<?> comparable) {\n return false;\n }",
"public boolean hasComparatorInputOverride()\r\n/* 283: */ {\r\n/* 284:338 */ return true;\r\n/* 285: */ }",
"private int compararEntradas (Entry<K,V> e1, Entry<K,V> e2)\r\n\t{\r\n\t\treturn (comp.compare(e1.getKey(),e2.getKey()));\r\n\t}",
"public int compareTo(Object o) {\n return 0;\n }",
"public int compareTo(Object arg0)\r\n/* 26: */ {\r\n/* 27:47 */ return 0;\r\n/* 28: */ }",
"<T extends Comparable<T>> R visit(Eq<T> eq);",
"public Comparable<?> c() {\n throw new IllegalStateException(\"range unbounded on this side\");\n }",
"public Comparable<?> c() {\n throw new IllegalStateException(\"range unbounded on this side\");\n }",
"public abstract int compare(final T l1, final T l2);",
"public interface ValueType {\n public long getValue();\n\n default int compareTo(ValueType value) {\n if (this.getValue() == value.getValue()) {\n return 0;\n } else if (this.getValue() > value.getValue()) {\n return 1;\n } else {\n return -1;\n }\n }\n \n default boolean equals(ValueType value) {\n return this.getValue() == value.getValue();\n }\n}",
"public T caseComparison(Comparison object) {\n\t\treturn null;\n\t}",
"void visit(final Compare compare);",
"public int compareTo(Object other) { return 404;}",
"@Override\n\tpublic int drainTo(Collection<? super E> c) {\n\t\treturn 0;\n\t}",
"public interface Comparable\n{\n\t/**\n\t * Returns a number representing the ordering relationship that\n\t * the object has with the given object.\n\t * A negative number indicates that the object is \"smaller\" than\n\t * the parameter, a positive number means it is \"larger\" and zero\n\t * indicates that the objects are equal.\n\t */\n\tint compareTo(Object o);\n\n\t/**\n\t * Returns true if this object is equal to the given object.\n\t */\n\tboolean equals(Object o);\n}",
"@Override\n public int compare(T a, T b) {\n for (Comparator<T> comparator : comparators) {\n int cmp = comparator.compare(a, b);\n\n if (cmp != 0) {\n return cmp;\n }\n }\n return 0;\n }",
"public int compareTo(ULocale other) {\n/* 205 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n\tpublic int compare(Object o1, Object o2) {\n\t\tint a1=((TestBig)o1).a;\n\t\tint a2=((TestBig)o2).a;\n\t\tif(a1<a2)\n\t\t\treturn 1;\n\t\treturn -1;\n\t}",
"@Override\n @ZenCodeType.Method\n @ZenCodeType.Operator(ZenCodeType.OperatorType.COMPARE)\n default int compareTo(@NotNull IData other) {\n \n return notSupportedOperator(OperatorType.COMPARE);\n }",
"public T caseOperation_Compare(Operation_Compare object)\r\n {\r\n return null;\r\n }",
"@Override\r\n public int compareTo(MaxHeap<E> es) {\r\n return compare(theData.get(0).data , es.get(0).data);\r\n }",
"@Override\n public void sort() {\n for (int i = 0; i < size; i++) {\n for (int j = i + 1; j < size; j++) {\n if (((Comparable) data[i]).compareTo(data[j]) > 0) {\n E c = data[i];\n data[i] = data[j];\n data[j] = c;\n\n }\n }\n }\n }",
"@Override\r\n\tint compareTo( IToon t );",
"private static <E extends Comparable<? super E>, V> boolean less(final E nonnull, final E other) {\r\n if (other == null) return true;\r\n return nonnull.compareTo(other) < 0;\r\n }",
"int compareTo(Object o);",
"@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}",
"public interface Comparable {\r\n\t/**\r\n\t * Compare this object with rhs.\r\n\t * \r\n\t * @param rhs\r\n\t * the second Comparable.\r\n\t * @return 0 if two objects are equal; less than zero if this object is\r\n\t * smaller; greater than zero if this object is larger.\r\n\t */\r\n\tint compareTo(Comparable rhs);\r\n}",
"public void testObjCompare()\n {\n assertEquals( Comparator.EQUAL, Util.objCompare(null,null) );\n assertEquals( Comparator.LESS, Util.objCompare(new Integer(10), new Integer(20)) );\n assertEquals( Comparator.GREATER, Util.objCompare(new Integer(25), new Integer(20)) );\n assertEquals( Comparator.UNDECIDABLE,Util.objCompare(null,new Integer(1)) );\n assertEquals( Comparator.UNDECIDABLE,Util.objCompare(new Integer(1),null) );\n }",
"@Override\r\n\tpublic int compare(K o1, K o2) {\n\t\t\r\n\t\treturn ((Comparable<K>) o1).compareTo(o2) ;\r\n\t}",
"@Override\n\tpublic int compareTo(Object o) \n\t{\n\t\tif( o instanceof DoubleWritable ) {\n\t\t\tint tmp = _dval.compareTo((DoubleWritable) o);\n\t\t\treturn (( tmp!=0 ) ? -1*tmp : tmp); //prevent -0\n\t\t}\n\t\t//compare double value and index (e.g., for stable sort)\n\t\telse if( o instanceof IndexSortComparable) {\n\t\t\tIndexSortComparable that = (IndexSortComparable)o;\n\t\t\tint tmp = _dval.compareTo(that._dval);\n\t\t\ttmp = (( tmp!=0 ) ? -1*tmp : tmp); //prevent -0\n\t\t\tif( tmp==0 ) //secondary sort\n\t\t\t\ttmp = _lval.compareTo(that._lval);\n\t\t\treturn tmp;\n\t\t}\t\n\t\telse {\n\t\t\tthrow new RuntimeException(\"Unsupported comparison involving class: \"+o.getClass().getName());\n\t\t}\n\t\t\n\t}",
"private int handleIncomparablePrimitives(Object x, Object y) {\n int xCost = getPrimitiveValueCost(x);\n int yCost = getPrimitiveValueCost(y);\n int res = Integer.compare(xCost, yCost);\n return ascending ? res : -res;\n }"
] |
[
"0.75075024",
"0.6612479",
"0.6584201",
"0.6321572",
"0.6270726",
"0.6196822",
"0.6186965",
"0.60941297",
"0.60266495",
"0.5973707",
"0.5961552",
"0.5884546",
"0.5852873",
"0.5780457",
"0.56893814",
"0.56893814",
"0.56893814",
"0.56443816",
"0.56186783",
"0.5586414",
"0.5586414",
"0.5586414",
"0.5586414",
"0.5586414",
"0.5586414",
"0.5586414",
"0.5586414",
"0.55621725",
"0.55618554",
"0.5519133",
"0.5517453",
"0.548296",
"0.5474977",
"0.5474977",
"0.5474977",
"0.5474977",
"0.5468977",
"0.5453239",
"0.54475963",
"0.54469067",
"0.5440714",
"0.54287875",
"0.5427325",
"0.5415946",
"0.5413743",
"0.5372849",
"0.53686017",
"0.53320926",
"0.5320476",
"0.52929837",
"0.5289045",
"0.52858406",
"0.5267996",
"0.526146",
"0.5253049",
"0.52498317",
"0.52409416",
"0.5234102",
"0.5224839",
"0.52200985",
"0.52194726",
"0.5211574",
"0.5206295",
"0.51927745",
"0.51891446",
"0.5160036",
"0.5155202",
"0.5154421",
"0.51241416",
"0.5122211",
"0.51207477",
"0.5117735",
"0.5113716",
"0.5102824",
"0.5095412",
"0.5089879",
"0.50851303",
"0.50851303",
"0.5063588",
"0.50526094",
"0.50516075",
"0.5050397",
"0.5045722",
"0.50417316",
"0.5039642",
"0.5038924",
"0.502337",
"0.50168055",
"0.50125396",
"0.5006239",
"0.49963942",
"0.4991682",
"0.49876654",
"0.49793088",
"0.49770188",
"0.4976279",
"0.49701348",
"0.49605826",
"0.49601018",
"0.49577048",
"0.495101"
] |
0.0
|
-1
|
All Comparator are consumers so they use "? super E".
|
public static <E> Optional<E> max(Set<? extends E> s1, Comparator<? super E> comparator) {
E res = null;
for(E val : s1) {
if(res == null || comparator.compare(val, res) > 0) {
res = val;
}
}
return Optional.ofNullable(res);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public Comparator<? super E> comparator() {\n return comparator;\n }",
"public Comparator<? super K> comparator() {\n/* 102 */ return null;\n/* */ }",
"protected abstract Comparator<T> getFallbackComparator();",
"Comparator<? super K> comparator();",
"public Comparator<? super P> comparator();",
"@Override\n\tpublic Comparator<? super K> comparator() {\n\t\treturn null;\n\t}",
"void sort(Comparator<E> comp);",
"default EqualityComparator<? super E> getComparator() {\n // Most implementations do not support custom equality comparators,\n // and just use the equals() and hashCode() implementations of the objects by default.\n return EqualityComparator.getDefault();\n }",
"protected BaseComparator() {}",
"public interface Comparator {\n default int compare(Object a, Object b) {\n FeatureExpr ctx = Contexts.model_java_util_Comparator_compare;\n V<?> compareResult = compare__Ljava_lang_Object_Ljava_lang_Object__I(V.one(ctx, a), V.one(ctx, b), ctx);\n V<?> selected = compareResult.select(ctx);\n assert selected.getOne() instanceof java.lang.Integer : \"compare returns non-Integer\";\n return ((java.lang.Integer) selected.getOne());\n }\n V<?> compare__Ljava_lang_Object_Ljava_lang_Object__I(V a, V b, FeatureExpr fe);\n}",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic int compare(E parent, E child) \r\n\t{\r\n\t\tif(comparator != null)\r\n\t\t{\r\n\t\t\treturn comparator.compare(parent, child);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn ((Comparable<E>) parent).compareTo(child);\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic int compareTo(E o) {\n\t\treturn 0;\r\n\t}",
"@Override\n public int compare(final E obj1, final E obj2) {\n return comparator.compare(obj2, obj1);\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic static <E extends Comparable<E>> Comparator<E> getComparableComparator() {\n\t\treturn (Comparator<E>) COMPARABLE_COMPARATOR;\n\t}",
"public abstract BoundCodeDt<?> getComparatorElement();",
"public final Comparator<? super Node<N>> comparator() {\n return null;\n }",
"Optional<Comparator<V>> getValueComparator();",
"public Comparator<? super N> getComparator() {\n\t\treturn comparator;\n\t}",
"public BST(Comparator<E> c)// SEE HW#4 FOR WHAT TO CHANGE HERE\n\t{\n\t\tcomparator = c;\n\t}",
"Comparator<O> getObjectComparator();",
"public boolean hasComparatorInputOverride()\r\n/* 283: */ {\r\n/* 284:338 */ return true;\r\n/* 285: */ }",
"void orderEdges(Comparator<E> comparator);",
"public interface Comparator extends ComparisonConstants {\n public int compare(Object a, Object b);\n}",
"interface IComparator<T> {\n // Returns a negative number if t1 comes before t2 in this ordering\n // Returns zero if t1 is the same as t2 in this ordering\n // Returns a positive number if t1 comes after t2 in this ordering\n int compare(T t1, T t2);\n}",
"public abstract void compare();",
"public Heap(Comparator<? super E> comp){\n super(7, comp);\n }",
"public interface Comparator<Item>{\n\tpublic int compare(Item a, Item b);\n}",
"@Override\n void sort(Comparator<E> comparator) {\n for (Node<E> i = head.next; i != tail.prev; i = i.next) {\n Node<E> min = i;\n E minValue = min.value;\n\n for (Node<E> j = i.next; j != tail; j = j.next) {\n if (comparator.compare(minValue, j.value) > 0) {\n min = j;\n minValue = min.value;\n }\n }\n\n min.value = i.value;\n i.value = minValue;\n }\n }",
"public DoComparator()\n {\n this(true, false, false);\n }",
"void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);",
"@Override\n public int compare(T a, T b) {\n for (Comparator<T> comparator : comparators) {\n int cmp = comparator.compare(a, b);\n\n if (cmp != 0) {\n return cmp;\n }\n }\n return 0;\n }",
"@Override\n public <U extends Comparable<? super U>> Comparator<Object> thenComparing(final Function<?, ? extends U> p0) {\n // This method could not be decompiled.\n // \n // Could not show original bytecode, likely due to the same error.\n // \n // The error that occurred was:\n // \n // java.lang.NullPointerException\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:21)\n // at com.strobel.assembler.metadata.MetadataHelper$5.visitWildcard(MetadataHelper.java:1793)\n // at com.strobel.assembler.metadata.MetadataHelper$5.visitWildcard(MetadataHelper.java:1790)\n // at com.strobel.assembler.metadata.WildcardType.accept(WildcardType.java:83)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:21)\n // at com.strobel.assembler.metadata.MetadataHelper.getLowerBound(MetadataHelper.java:1240)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.visitWildcard(MetadataHelper.java:2278)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.visitWildcard(MetadataHelper.java:2222)\n // at com.strobel.assembler.metadata.WildcardType.accept(WildcardType.java:83)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.adaptRecursive(MetadataHelper.java:2256)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.adaptRecursive(MetadataHelper.java:2233)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.visitParameterizedType(MetadataHelper.java:2246)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.visitParameterizedType(MetadataHelper.java:2222)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedGenericType.accept(CoreMetadataFactory.java:653)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.MetadataHelper.adapt(MetadataHelper.java:1312)\n // at com.strobel.assembler.metadata.MetadataHelper$11.visitClassType(MetadataHelper.java:2708)\n // at com.strobel.assembler.metadata.MetadataHelper$11.visitClassType(MetadataHelper.java:2692)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visitParameterizedType(DefaultTypeVisitor.java:65)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedGenericType.accept(CoreMetadataFactory.java:653)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.MetadataHelper.asSubType(MetadataHelper.java:720)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:926)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:770)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:766)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2515)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1029)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1656)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:672)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:655)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:365)\n // at com.strobel.decompiler.ast.TypeAnalysis.run(TypeAnalysis.java:96)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:109)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:214)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformCall(AstMethodBodyBuilder.java:1162)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformByteCode(AstMethodBodyBuilder.java:1009)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformExpression(AstMethodBodyBuilder.java:540)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformByteCode(AstMethodBodyBuilder.java:554)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformExpression(AstMethodBodyBuilder.java:540)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformNode(AstMethodBodyBuilder.java:392)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformBlock(AstMethodBodyBuilder.java:333)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:294)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:125)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at us.deathmarine.luyten.FileSaver.doSaveJarDecompiled(FileSaver.java:192)\n // at us.deathmarine.luyten.FileSaver.access$300(FileSaver.java:45)\n // at us.deathmarine.luyten.FileSaver$4.run(FileSaver.java:112)\n // at java.lang.Thread.run(Unknown Source)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }",
"public static java.lang.Object min(java.util.Collection arg0, java.util.Comparator arg1)\n { return null; }",
"protected Comparator getNestedComparator() {\r\n return nestedComparator;\r\n }",
"public T caseOperation_Compare(Operation_Compare object)\r\n {\r\n return null;\r\n }",
"@FunctionalInterface\npublic interface PersonComparator <T, R extends Comparable> {\n Function<T, R> getValue(PersonSearchParameters parameters);\n}",
"private static Comparator<Person> comparator(CrudFilter filter) {\n return filter.getSortOrders().entrySet().stream()\n .map(sortClause -> {\n try {\n Comparator<Person> comparator\n = Comparator.comparing(person ->\n (Comparable) valueOf(sortClause.getKey(), person));\n\n if (sortClause.getValue() == SortDirection.DESCENDING) {\n comparator = comparator.reversed();\n }\n\n return comparator;\n } catch (Exception ex) {\n return (Comparator<Person>) (o1, o2) -> 0;\n }\n })\n .reduce(Comparator::thenComparing)\n .orElse((o1, o2) -> 0);\n }",
"public PriceComparator()\n\t{\n\t\tascending=true;\n\t}",
"@Override\n\tpublic int compareTo(CompType o) {\n\t\treturn (i<o.i ? -1 : (i == o.i ? 0 : 1));\n\t}",
"public boolean hasComparatorInputOverride()\r\n {\r\n return true;\r\n }",
"public static Comparator BytewiseComparator() {\n\t\treturn new BytewiseComparatorImpl();\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tprivate int compare(AnyType lhs, AnyType rhs) {\n\t\tif (cmp == null)\n\t\t\treturn ((Comparable<? super AnyType>) lhs).compareTo(rhs); // safe to ignore warning\n\t\t// We won't test your code on non-Comparable types if we didn't supply a Comparator\n\n\t\treturn cmp.compare(lhs, rhs);\n\t}",
"void setObjectComparator(final Comparator<O> objectComparator);",
"public T caseComparison(Comparison object) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void compareFichierTo(Fichier f) {\n\t\t\n\t}",
"int compare(T o1, T o2);",
"@Test\n public void compareFunctionalBigger() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p1, p2);\n \n assertEquals(-1, a);\n\n }",
"private int compararEntradas (Entry<K,V> e1, Entry<K,V> e2)\r\n\t{\r\n\t\treturn (comp.compare(e1.getKey(),e2.getKey()));\r\n\t}",
"@Override\n public int compareTo(Empleados o)\n {\n return 0;\n }",
"private Comparator<Node> getComparator() {\n class QueueCompare implements Comparator<Node> {\n @Override\n public int compare(Node o1, Node o2) {\n if (o1.manPrior > o2.manPrior) return 1;\n else if (o1.manPrior < o2.manPrior) return -1;\n else if (o1.hamPrior > o2.hamPrior) return 1;\n else if (o1.hamPrior < o2.hamPrior) return -1;\n else if (o1.manPrior - o1.movesToBoard > o2.manPrior - o2.movesToBoard) return 1;\n else if (o1.manPrior - o1.movesToBoard < o2.manPrior - o2.movesToBoard) return -1;\n else if (o1.hamPrior - o1.movesToBoard > o2.hamPrior - o2.movesToBoard) return 1;\n else if (o1.hamPrior - o1.movesToBoard < o2.hamPrior - o2.movesToBoard) return -1;\n return 1;\n }\n }\n return new QueueCompare();\n }",
"protected abstract int doCompare(Object o1, Object o2);",
"public int compare(ExceptionHandler lhs, ExceptionHandler rhs)\n {\n if (lhs.getPriority() == rhs.getPriority())\n {\n final MethodParameterTypeHelper lhsTypes = new MethodParameterTypeHelper(lhs);\n final MethodParameterTypeHelper rhsTypes = new MethodParameterTypeHelper(rhs);\n\n if (lhsTypes.equals(rhsTypes))\n {\n return 0;\n }\n // the right hand side is the same or a super type of left hand side\n // In other words lhs is a parent type and show go later in the list\n for (Class type : rhsTypes.getExceptionTypes())\n {\n if (lhsTypes.containsExceptionTypeOrSuperType(type))\n {\n return 1;\n }\n }\n return -1;\n }\n return rhs.getPriority() - lhs.getPriority();\n }",
"public int getComparatorLevel() {\n return -1;\n }",
"@Override\n\tpublic Comparator<? super State<T>> getComp() {\n\t\treturn _comp;\n\t}",
"public interface SortingAlgorithm<E extends Comparable<E>> {\n\n /**\n * Ordina una lista di elementi in accordo all'ordinamento totale naturale\n * definito nella classe degli elementi.\n * \n * @param l\n * la lista da ordinare (dovrebbe essere una ArrayList)\n * @return un oggetto contentente la lista ordinata e il numero di\n * operazioni di comparazione effettuate dall'algoritmo.\n */\n public SortingAlgorithmResult<E> sort(List<E> l);\n\n /**\n * Restituisce il nome dell'algoritmo di ordinamento.\n * \n * @return il nome dell'algoritmo\n */\n public String getName();\n\n}",
"@Override\r\n\tpublic int compareTo(Employee o) {\n\t\treturn 0;\r\n\t}",
"int compare(T t1, T t2);",
"@Override\n public Comparator loadIntoVariable(Comparator comparator, Function value) {\n if (comparator == null) {\n return Comparator.comparing(value);\n }\n return comparator.thenComparing(value);\n }",
"public SoilTypeComparator() {\n\t\tthis.descending = true;\n\t}",
"@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}",
"@Override\n\tpublic int compareTo(T o) {\n\t\treturn 0;\n\t}",
"public CollectionComparator(Method attributeCaller, boolean descending)\n\t{\n\t\tthis.attributeCaller = attributeCaller;\n\t\tthis.descending = descending;\n\t}",
"@Override\r\npublic int compareTo(Object o) {\n\treturn 0;\r\n}",
"public static SerializableAssert defineComparator(TestCase test, Object object)\n throws Exception {\n\n if (test instanceof SerializableAssert) {\n return (SerializableAssert) test;\n }\n\n Method m = object.getClass().getMethod(\"equals\", new Class[] { Object.class });\n if (m.getDeclaringClass() != Object.class) {\n // one of classes overrides Object.equals(Object) method\n // use default comparator\n return DEFAULT_COMPARATOR;\n }\n\n // TODO use generics to detect comparator\n // instead of 'instanceof' for the first element\n if (object instanceof Throwable) {\n return THROWABLE_COMPARATOR;\n }\n if (object instanceof PermissionCollection) {\n return PERMISSION_COLLECTION_COMPARATOR;\n }\n throw new RuntimeException(\"Failed to detect comparator\");\n }",
"private Comparator<Integer> getIntegerComparator() {\n return new Comparator<Integer>() {\n @Override\n public int compare(Integer integer1, Integer integer2) {\n return integer1 - integer2;\n }\n };\n }",
"public T caseComparisonOperator(ComparisonOperator object) {\n\t\treturn null;\n\t}",
"Comparator<T> sortBy();",
"public int compare(E a, E b) {\n // Complete this method.\n\t\treturn -1 * ((Map.Entry<String,Integer>)a).getValue().compareTo(((Map.Entry<String,Integer>)b).getValue());\n }",
"@Override\r\n\tpublic int compareTo(Candidate e) {\n\t double d = e.getDistance();\r\n\t \r\n\t if (this.getDistance() <= d) {\r\n\t return -1;\r\n\t }\r\n\t\r\n\t if (this.getDistance() > d) {\r\n\t return 1;\r\n\t }\r\n\t \r\n\t // Should not reach here \r\n\t return 0;\r\n\t}",
"@Override\n public <U> Comparator<Object> thenComparing(final Function<?, ? extends U> p0, final Comparator<? super U> p1) {\n // This method could not be decompiled.\n // \n // Could not show original bytecode, likely due to the same error.\n // \n // The error that occurred was:\n // \n // java.lang.NullPointerException\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:21)\n // at com.strobel.assembler.metadata.MetadataHelper$5.visitWildcard(MetadataHelper.java:1793)\n // at com.strobel.assembler.metadata.MetadataHelper$5.visitWildcard(MetadataHelper.java:1790)\n // at com.strobel.assembler.metadata.WildcardType.accept(WildcardType.java:83)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:21)\n // at com.strobel.assembler.metadata.MetadataHelper.getLowerBound(MetadataHelper.java:1240)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.visitWildcard(MetadataHelper.java:2278)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.visitWildcard(MetadataHelper.java:2222)\n // at com.strobel.assembler.metadata.WildcardType.accept(WildcardType.java:83)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.adaptRecursive(MetadataHelper.java:2256)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.adaptRecursive(MetadataHelper.java:2233)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.visitParameterizedType(MetadataHelper.java:2246)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.visitParameterizedType(MetadataHelper.java:2222)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedGenericType.accept(CoreMetadataFactory.java:653)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.MetadataHelper.adapt(MetadataHelper.java:1312)\n // at com.strobel.assembler.metadata.MetadataHelper$11.visitClassType(MetadataHelper.java:2708)\n // at com.strobel.assembler.metadata.MetadataHelper$11.visitClassType(MetadataHelper.java:2692)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visitParameterizedType(DefaultTypeVisitor.java:65)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedGenericType.accept(CoreMetadataFactory.java:653)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.MetadataHelper.asSubType(MetadataHelper.java:720)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:926)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:770)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:766)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2515)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1029)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1656)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:672)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:655)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:365)\n // at com.strobel.decompiler.ast.TypeAnalysis.run(TypeAnalysis.java:96)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:109)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:214)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformCall(AstMethodBodyBuilder.java:1162)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformByteCode(AstMethodBodyBuilder.java:1009)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformExpression(AstMethodBodyBuilder.java:540)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformByteCode(AstMethodBodyBuilder.java:554)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformExpression(AstMethodBodyBuilder.java:540)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformNode(AstMethodBodyBuilder.java:392)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformBlock(AstMethodBodyBuilder.java:333)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:294)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:125)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at us.deathmarine.luyten.FileSaver.doSaveJarDecompiled(FileSaver.java:192)\n // at us.deathmarine.luyten.FileSaver.access$300(FileSaver.java:45)\n // at us.deathmarine.luyten.FileSaver$4.run(FileSaver.java:112)\n // at java.lang.Thread.run(Unknown Source)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }",
"public abstract int compare(final T l1, final T l2);",
"public HashMapValueComparator() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void visit(AnyComparisonExpression arg0) {\n\n\t}",
"private SimplexComparator() {}",
"@Override\n public int compareTo(Object o) {\n return 0;\n }",
"@Override\n public int compareTo(Object o) {\n return 0;\n }",
"@Override\n public int compareTo(Object o) {\n return 0;\n }",
"@Override\n public Comparator<Object> thenComparing(final Comparator<?> p0) {\n // This method could not be decompiled.\n // \n // Could not show original bytecode, likely due to the same error.\n // \n // The error that occurred was:\n // \n // java.lang.NullPointerException\n // at com.strobel.assembler.metadata.WildcardType.containsGenericParameters(WildcardType.java:55)\n // at com.strobel.assembler.metadata.TypeReference.containsGenericParameters(TypeReference.java:48)\n // at com.strobel.assembler.metadata.MethodReference.containsGenericParameters(MethodReference.java:79)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2497)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1029)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1656)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:672)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:655)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:365)\n // at com.strobel.decompiler.ast.TypeAnalysis.run(TypeAnalysis.java:96)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:109)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:214)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformCall(AstMethodBodyBuilder.java:1162)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformByteCode(AstMethodBodyBuilder.java:1009)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformExpression(AstMethodBodyBuilder.java:540)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformByteCode(AstMethodBodyBuilder.java:554)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformExpression(AstMethodBodyBuilder.java:540)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformNode(AstMethodBodyBuilder.java:392)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformBlock(AstMethodBodyBuilder.java:333)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:294)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:125)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at us.deathmarine.luyten.FileSaver.doSaveJarDecompiled(FileSaver.java:192)\n // at us.deathmarine.luyten.FileSaver.access$300(FileSaver.java:45)\n // at us.deathmarine.luyten.FileSaver$4.run(FileSaver.java:112)\n // at java.lang.Thread.run(Unknown Source)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }",
"public int compare(Employeeclass e1,Employeeclass e2) {\n\t\tif(e2.eid==e1.eid)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\telse if(e2.eid>e1.eid)\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t}",
"public compare(){\r\n }",
"public interface Sort<E extends Comparable<E>> {\n void sort(E[] e);\n\n default void show(E[] e) {\n StringBuffer res = new StringBuffer(\"[\");\n for (int i = 0; i < e.length; i++) {\n res.append(e[i] + \",\");\n }\n\n res = res.deleteCharAt(res.length() - 1);\n res.append(\"]\");\n System.out.println(res.toString());\n }\n\n default boolean isSorted(E[] e) {\n for (int i = 0; i < e.length - 1; i++) {\n if (e[i].compareTo(e[i + 1]) > 0)\n throw new IllegalArgumentException(\"排序出错, 请检查程序\");\n }\n\n System.out.println(\"排序正常...\");\n return true;\n }\n}",
"public boolean hasComparatorInputOverride() {\n\t\treturn true;\n\t}",
"@Test\n public void compareFunctionalSmaller() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p2, p1);\n \n assertEquals(1, a);\n }",
"public DefaultJavaElementComparator() {\n // initialize default categories\n this.categories = new int[] { // static type\n 1, // static field\n 2, // static initializer\n 3, // static method\n 7, // type\n 6, // field\n 4, // initializer\n 5, // constructor\n 8, // method\n 9 };\n this.collator = Collator.getInstance();\n }",
"@Override\n\tpublic void visit(AnyComparisonExpression arg0) {\n\t\t\n\t}",
"public interface StartTreeNodeComparator\n{\n public boolean compare (StartTreeNode node);\n}",
"private IdentifiableComparator() {\n\t\t// This class is not intended to create own objects from it.\n\t}",
"public T caseComparisonPart(ComparisonPart object)\n {\n return null;\n }",
"public DMSQueueEntryComparator()\n {\n\n }",
"@Override\n\t\t\tpublic int compare( Entry<Exercice, Integer> o1, Entry<Exercice, Integer> o2 )\n\t\t\t{\n\t\t\t\treturn - o1.getValue().compareTo( o2.getValue() );\n\t\t\t}",
"public static <T> Comparator<T> chain(final List<Comparator<? super T>> c) {\n return new Comparator<T>() {\n public int compare(T o1, T o2) {\n int x = 0;\n Iterator<Comparator<? super T>> it = c.iterator();\n while (x == 0 && it.hasNext()) {\n x = it.next().compare(o1, o2);\n }\n return x;\n }\n };\n }",
"public WaitablePQueue(Comparator<? super E> comparator) {\n\t\tthis(DEFAULT_INITIAL_CAPACITY, comparator);\n }",
"public interface Comparable {\n\n\n boolean better(Comparable other);\n}",
"public JwComparator<AcUpuTagSummaryVo> getDestinationOfficeOfExchangeQualifierComparatorNullsLower()\n {\n return DestinationOfficeOfExchangeQualifierComparatorNullsLower;\n }",
"public DatasetEuklidianComparator(Dataset candidate){\n this.candidate = candidate;\n }",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}"
] |
[
"0.81026787",
"0.73516273",
"0.717643",
"0.69725853",
"0.6923746",
"0.6588181",
"0.6513258",
"0.6409375",
"0.6330941",
"0.6316713",
"0.6282006",
"0.61892295",
"0.6141495",
"0.59984237",
"0.59867036",
"0.5941538",
"0.5938415",
"0.58971924",
"0.5860373",
"0.56748635",
"0.561126",
"0.557449",
"0.5560811",
"0.5535136",
"0.5533905",
"0.5496011",
"0.54874986",
"0.54498065",
"0.5436113",
"0.54291195",
"0.54154813",
"0.540907",
"0.5406969",
"0.53811646",
"0.5379241",
"0.53638864",
"0.53470975",
"0.5314184",
"0.529505",
"0.52947855",
"0.5278267",
"0.527377",
"0.52648425",
"0.5264664",
"0.52500653",
"0.5247042",
"0.5215794",
"0.520413",
"0.5200683",
"0.5190539",
"0.5140653",
"0.513931",
"0.5133071",
"0.5119408",
"0.5117578",
"0.5109674",
"0.50980294",
"0.5092436",
"0.5091662",
"0.50910735",
"0.5085746",
"0.50849736",
"0.5074207",
"0.50652605",
"0.50632775",
"0.5059318",
"0.5045928",
"0.5039731",
"0.50357956",
"0.5034601",
"0.502743",
"0.5023959",
"0.50192165",
"0.50190294",
"0.5018743",
"0.5018743",
"0.5018743",
"0.50115824",
"0.50061846",
"0.500049",
"0.49881172",
"0.49822",
"0.49785888",
"0.49773684",
"0.49755847",
"0.49708122",
"0.49613363",
"0.495675",
"0.49538183",
"0.49498737",
"0.49496734",
"0.49463522",
"0.49437332",
"0.494235",
"0.49353677",
"0.49284473",
"0.49284473",
"0.49284473",
"0.49284473",
"0.49284473",
"0.49284473"
] |
0.0
|
-1
|
Note: not thread safe Format: TXN_ID_TAG REGEX txnId TXN_STATUS_TAG REGEX txnStatus TXN_READ_TAG REGEX readKey1 TXN_READ_TAG REGEX readKey2 ... TXN_WRITE_TAG REGEX writeKey1 TXN_VAL_TAG REGEX writeVal1 TXN_WRITE_TAG REGEX writeKey2 TXN_VAL_TAG REGEX writeVal2 ...
|
public String createLogInfo() {
String res = TXN_ID_TAG + REGEX + this.txnId + "\n" +
TXN_STATUS_TAG + REGEX + this.txnStatus + "\n";
if (this.readKeyList != null && this.readKeyList.length != 0) {
for (String readKey : this.readKeyList) {
res += TXN_READ_TAG + REGEX + readKey + "\n";
}
}
if (this.writeKeyList != null && this.writeKeyList.length != 0) {
for (int i = 0; i < this.writeKeyList.length; i++) {
res += TXN_WRITE_TAG + REGEX + this.writeKeyList[i] + "\n";
res += TXN_VAL_TAG + REGEX + this.writeValList[i] + "\n";
}
}
return res;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n String st;\n /*Created LinkedHashMaps for transactions and locks for keeping the records of both*/\n HashMap<String, HashMap<String, Object>> transactions = new LinkedHashMap<>();\n HashMap<Character, HashMap<String, Object>> locks = new LinkedHashMap<>();\n\n /*Created HashMap for keeping the records for blocked operation with respect to the transactionId which blocks those operation*/\n HashMap<String, LinkedList<String>> blockedOp = new HashMap<>();\n int i = 1;\n ConcurrencyControl cc = new ConcurrencyControl();\n fw = new FileWriter(\"output.txt\");\n while ((st = br.readLine()) != null) {\n st = st.trim();\n int index = st.indexOf(';');\n fw.write(\"Input : \"+ st.substring(0, index) +\"\\n\");\n if (st.charAt(0) == 'b') {\n /* will just create record of current transaction with active state and timestamp */\n cc.beginTransaction(transactions, locks, st, i);\n i++;\n }\n else if (st.charAt(0) == 'r') {\n /* will perform read operation */\n cc.readTransaction(transactions, locks, st, blockedOp);\n }\n else if (st.charAt(0) == 'w') {\n /* will perform read operation */\n cc.writeTransaction(transactions, locks, st, blockedOp);\n }\n else {\n String key = \"T\"+st.charAt(1);\n /* If a transaction is aborted then it will not commit */\n if (!transactions.get(key).get(\"State\").equals(\"Aborted\"))\n cc.endOrAbort(transactions, locks, key, \"Commited\", blockedOp);\n }\n cc.printRecords(transactions, locks);\n }\n System.out.println(\"Output written in output.txt successfully !!\");\n fw.close();\n }",
"void setTransaction(final INodeReadTrx pRtx);",
"private void readKeyDataToIdentifyTransactions(){\n\t\t\n\t\tBufferedReader reader = null;\n\t\t\n\t\ttry{\n\t\t\treader = new BufferedReader(new FileReader(keyFile));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tif((line.startsWith(\"#\")) || (line.equals(\"\")))\n\t\t\t\t\tcontinue;\n\t\t\t\telse{\n\t\t\t\t\tString transacName = line.split(\";\")[0];\n\t\t\t\t\tchar transacType = line.split(\";\")[1].charAt(0);\n\t\t\t\t\ttypeTransData.put(transacName,transacType);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Sorry!! \"+ keyFile +\" required for processing!!!\");\n\t\t\tSystem.out.println(\"Please try again !!!\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t}",
"void execute(final ReadWriteTransaction readWriteTransaction);",
"@Test\n\tpublic void testInsertRead() {\n\t\tfinal String TABLE1 = \"testInsertRead\";\n\t\tfinal String NON_EXISTENT_TABLE = \"non-existent-table\";\n\t\tfinal String RECORD1 = \"record1\";\n\t\tfinal String NON_EXISTENT_RECORD = \"non-existent-record\";\n\t\tfinal String FIELD1 = \"field1\";\n\t\tfinal String FIELD2 = \"field2\";\n\t\tfinal String VALUE1 = \"value1\";\n\t\tfinal String VALUE2 = \"value2\";\n\t\tfinal HashMap<String,String> record1 = new HashMap<String,String>();\n\t\trecord1.put(FIELD1, VALUE1);\n\t\trecord1.put(FIELD2, VALUE2);\n\t\tmembaseClient.insert(TABLE1, RECORD1, record1);\n\n\t\t// read from non-existent table\n\t\tfinal HashMap<String,String> nonExistentTableFields = new HashMap<String,String>();\n\t\tmembaseClient.read(NON_EXISTENT_TABLE, RECORD1, null, nonExistentTableFields);\n\t\tassertEquals(\"Unexpected fields in read from non-existent table\", 0, nonExistentTableFields.size());\n\n\t\t// read non-existent record\n\t\tfinal HashMap<String,String> nonExistentRecordFields = new HashMap<String,String>();\n\t\tmembaseClient.read(TABLE1, NON_EXISTENT_RECORD, null, nonExistentRecordFields);\n\t\tassertEquals(\"Unexpected fields in read from non-existent record\", 0, nonExistentRecordFields.size());\n\t\t\n\t\t// read all fields\n\t\tfinal HashMap<String,String> record1AllFields = new HashMap<String,String>();\n\t\tmembaseClient.read(TABLE1, RECORD1, null, record1AllFields);\n\t\tassertEquals(\"Unexpected number of fields in record 1 all fields\", 2, record1AllFields.size());\n\t\tassertEquals(\"Unexpected value for field 1 of record 1 all fields\", VALUE1, record1AllFields.get(FIELD1));\n\t\tassertEquals(\"Unexpected value for field 2 of record 1 all fields\", VALUE2, record1AllFields.get(FIELD2));\n\n\t\t// read specific fields\n\t\tfinal HashMap<String,String> record1SelectFields = new HashMap<String,String>();\n\t\tfinal Set<String> record1Fields = new HashSet<String>();\n\t\trecord1Fields.add(FIELD2);\n\t\tmembaseClient.read(TABLE1, RECORD1, record1Fields, record1SelectFields);\n\t\tassertEquals(\"Unexpected number of fields in record 1 select fields\", 1, record1SelectFields.size());\n\t\tassertEquals(\"Unexpected value for field 2 of record 1 all fields\", VALUE2, record1SelectFields.get(FIELD2));\n\t}",
"public interface IndexTransaction\n{\n\tpublic static final int STATUS_ACTIVE = 0;\n\n\tpublic static final int STATUS_COMMITTED = 3;\n\n\tpublic static final int STATUS_COMMITTING = 8;\n\n\tpublic static final int STATUS_MARKED_ROLLBACK = 1;\n\n\tpublic static final int STATUS_NO_TRANSACTION = 6;\n\n\tpublic static final int STATUS_PREPARED = 2;\n\n\tpublic static final int STATUS_PREPARING = 7;\n\n\tpublic static final int STATUS_ROLLEDBACK = 4;\n\n\tpublic static final int STATUS_ROLLING_BACK = 9;\n\n\tpublic static final int STATUS_UNKNOWN = 5;\n\n\tpublic static final String[] TRANSACTION_STATUS = { \"Created\", \"Marked for Rollback\",\n\t\t\t\"Prepared\", \"Committed\", \"Rolled Back\", \"Unknown\", \"No Transaction\",\n\t\t\t\"Preparing\", \"Committing\", \"Rolling Back\" };\n\n\tpublic static final boolean[] TRANSACTION_ACTIVE = { true, false, true, false, false,\n\t\t\tfalse, false, true, false, false };\n\n\t/**\n\t * Prepare to commit this transaction, all the work is done, but all the\n\t * listeners need to be ready and able to performa commit without failure\n\t */\n\tvoid prepare() throws IndexTransactionException;\n\n\t/**\n\t * Commit the transaction and make it available to others in the cluster\n\t * \n\t * @throws IndexTransactionException\n\t */\n\tvoid commit() throws IndexTransactionException;\n\n\t/**\n\t * @throws IndexTransactionException\n\t * if the transaction is not open\n\t */\n\tvoid rollback() throws IndexTransactionException;\n\n\t/**\n\t * @return\n\t */\n\tlong getTransactionId();\n\n\t/**\n\t * @throws IndexTransactionException\n\t */\n\tvoid close() throws IndexTransactionException;\n\n\t/**\n\t * get the transaction status\n\t * \n\t * @return\n\t */\n\tint getStatus();\n\n\t/**\n\t * get an Object from the transaction, that may have been placed in the\n\t * transaction by earlier phases.\n\t * \n\t * @param key\n\t * @return\n\t */\n\tObject get(String key);\n\n\t/**\n\t * Clear an object placed in the transaction\n\t * \n\t * @param key\n\t */\n\tvoid clear(String key);\n\n\t/**\n\t * Put an object into the transaction for use in later phases\n\t * \n\t * @param key\n\t * @param obj\n\t */\n\tvoid put(String key, Object obj);\n\n\t/**\n\t * @throws IndexTransactionException\n\t */\n\tvoid open() throws IndexTransactionException;\n\n}",
"private DynamoOperation(Context context, int myAddress, int nodeCount, int replicationCount, int readQuorum, int writeQuorum){\n\t\tdbHelper = new DBHelper(context);\n\t\tdynamoRing = DynamoRing.createAndGetInstance(nodeCount);\n\t\tMY_ADDRESS = myAddress;\n\t\tREPLICATION_COUNT = replicationCount;\n\t\tREAD_QUORUM = readQuorum;\n\t\tWRITE_QUORUM = writeQuorum;\n\t\tsync();\n\t}",
"private void concurrencyWrites1() {\n\t\ttry {\n\t\t\tlog.info(\"Starting TrxTableClient5: concurrencyWrites1\");\n\t\t\tlog.info(\"main--put[v1]\");\n\t\t\tlog.info(\"t1-----------beginTrans---put[v2]---------------------------commit\");\n\t\t\tlog.info(\"t2-------------------------------------beginTrans---put[v3]----------commit\");\n\t\t\tlog.info(\"main---get[v2]\");\n\n\t\t\tSsccTableClientUtils.initialize();\n\t\t\tputValue();\n\n\t\t\tfinal P0Trx01 t1 = new P0Trx01();\n\t\t\tfinal P0Trx02 t2 = new P0Trx02();\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt1.doWork();\n\t\t\t\t\tlog.info(\" Trx1 finished\");\n\t\t\t\t\tcdl.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx1\").start();\n\n\t\t\t// to make sure t2 is later than t1\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt2.doWork();\n\t\t\t\t\tlog.info(\" Trx2 finished\");\n\t\t\t\t\tcdl.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx2\").start();\n\n\t\t\tcdl.await();\n\t\t\tSsccTableClientUtils.testSsccBeginTransaction();\n\t\t\tInteger[] result = SsccTableClientUtils.testSsccGet();\n\t\t\tSsccTableClientUtils.testSsccCommitIfPossible();\n\t\t\tlog.info(\"Finish TrxTableClient5: concurrencyWrites1\");\n\n\t\t\tif (result.length == 1 && result[0] == 2) {\n\t\t\t\tsuccessNum++;\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"SUCCESS\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t} else {\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"FAILURE\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public ProcessTxnResult processTxn(TxnHeader hdr, Record txn, TxnDigest digest) {\n return dataTree.processTxn(hdr, txn, digest);\n }",
"private void concurrencyWrites2() {\n\t\ttry {\n\t\t\tlog.info(\"Starting TrxTableClient5: concurrencyWrites2\");\n\t\t\tlog.info(\"main--put[v1]\");\n\t\t\tlog.info(\"t1-----------beginTrans---put[v2]---------------------------commit\");\n\t\t\tlog.info(\"t2-------------------------------------beginTrans---put[v3]----------abort\");\n\t\t\tlog.info(\"main---get[v2]\");\n\t\t\tSsccTableClientUtils.initialize();\n\t\t\tputValue();\n\n\t\t\tfinal P0Trx11 t1 = new P0Trx11();\n\t\t\tfinal P0Trx12 t2 = new P0Trx12();\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt1.doWork();\n\t\t\t\t\tlog.info(\" Trx1 finished\");\n\t\t\t\t\tcdl2.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx1\").start();\n\n\t\t\t// to make sure t2 is later than t1\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt2.doWork();\n\t\t\t\t\tlog.info(\" Trx2 finished\");\n\t\t\t\t\tcdl2.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx2\").start();\n\n\t\t\tcdl2.await();\n\n\t\t\tSsccTableClientUtils.testSsccBeginTransaction();\n\t\t\tInteger[] result = SsccTableClientUtils.testSsccGet();\n\t\t\tSsccTableClientUtils.testSsccCommitIfPossible();\n\t\t\tlog.info(\"Finish TrxTableClient5: concurrencyWrites2\");\n\n\t\t\tif (result.length == 1 && result[0] == 2) {\n\t\t\t\tsuccessNum++;\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"SUCCESS\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t} else {\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"FAILURE\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"Map retrievePreparedTransactions();",
"private void concurrencyWrites3() {\n\t\ttry {\n\t\t\tlog.info(\"Starting TrxTableClient5: concurrencyWrites3\");\n\t\t\tlog.info(\"main--put[v1]\");\n\t\t\tlog.info(\"t1-----------beginTrans---put[v2]---------------------------abort\");\n\t\t\tlog.info(\"t2-------------------------------------beginTrans---put[v3]----------commit\");\n\t\t\tlog.info(\"main---get[v1]\");\n\t\t\tSsccTableClientUtils.initialize();\n\t\t\tputValue();\n\n\t\t\tfinal P0Trx21 t1 = new P0Trx21();\n\t\t\tfinal P0Trx22 t2 = new P0Trx22();\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt1.doWork();\n\t\t\t\t\tlog.info(\" Trx1 finished\");\n\t\t\t\t\tcdl3.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx1\").start();\n\n\t\t\t// to make sure t2 is later than t1\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt2.doWork();\n\t\t\t\t\tlog.info(\" Trx2 finished\");\n\t\t\t\t\tcdl3.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx2\").start();\n\n\t\t\tcdl3.await();\n\n\t\t\tSsccTableClientUtils.testSsccBeginTransaction();\n\t\t\tInteger[] result = SsccTableClientUtils.testSsccGet();\n\t\t\tSsccTableClientUtils.testSsccCommitIfPossible();\n\t\t\tlog.info(\"Finish TrxTableClient5: concurrencyWrites3\");\n\n\t\t\tif (result.length == 1 && result[0] == 1) {\n\t\t\t\tsuccessNum++;\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"SUCCESS\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t} else {\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"FAILURE\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private static boolean writeOperation(Transaction txn, Operation oper) {\n int var_id = oper.getvarid();\n int trans_id = txn.getId();\n List<Variable> variableList = null;\n // ********NEED TO CHANGE\n\n if (txn.checkForWrite(var_id, oper.getValue())) {\n // checking value in own\n System.out.println(\"Writing new value to self locked variable\");\n return true;\n }\n\n if (!isVariableLocked(var_id)) {\n // Along side locking the variable, check if the variable is justRecovered\n // If so, set the justRecovered flag of the variable to false for the site\n // which is recovering. (Not for the DOWN or UP site)\n // TO DO .. check for all the sites where this variable resides\n // If the site status is RECOVERING, set the justRecovered flag to false\n // for that copy of the variable.\n\n // System.out.println(\"writeOperation::Variable not locked\");\n // getting all variable copies\n variableList = writelockVariable(var_id);\n\n if (!variableList.isEmpty()) {\n\n // not sure about use of this below statement\n txn.addOperationToTransaction(oper);\n\n // add to transaction variable-transaction map\n addVariableToMap(trans_id, var_id);\n\n // since we got the lock we can execute it\n // add all the variables of each site to the commit map of transaction\n for (Variable v : variableList) {\n\n txn.addOperationToCommitMap(v, oper.getValue());\n }\n\n System.out\n .println(\"T\" + trans_id + \" Writing \" + oper.getValue() + \" to variable x\" + var_id);\n\n } else {\n Tuple<Transaction, Operation> t = new Tuple<Transaction, Operation>(txn, oper);\n System.out.println(\"T\" + trans_id + \" needs to Wait\");\n\n waitingRecoverOperations.add(t);\n // releaseResources(trans_id);\n // clearWaitingOperations();\n }\n\n } else {\n // check if already waiting\n // if (!alreadyWaiting(txn, oper)) {\n\n\n // }\n\n\n // add to waiting transaction list\n // we need to add edge to the graph\n // first we check if an edge already exists that is\n // check the dependency between transactions\n // and check if there is a deadlock;\n // find the transaction which has lock on this variables\n // and add the dependency edge.\n\n\n // System.out.println(\"writeOperation::Variable is locked\");\n List<Integer> independent_trans_ids = transaction_variable_map.get(var_id);\n\n\n // read locked by self\n if (independent_trans_ids.contains(trans_id)) {\n // System.out.println(\"self contained \");\n List<Integer> list = getTransactionsWaiting(var_id);\n\n if (!list.isEmpty()) {\n // some other transaction is waiting for same variable\n // and this variable was previously locked by me too\n // so deadlock\n int secondTrans = list.get(0);\n if (transactions.get(secondTrans).getStartTime() <= transactions.get(trans_id)\n .getStartTime()) {\n\n // i M getting killed\n releaseResources(trans_id);\n System.out.println(\"Aborted :\" + trans_id);\n clearWaitingOperations();\n return false;\n\n } else {\n // i am not youngest, i can get lock now\n releaseResources(secondTrans);\n clearWaitingOperations();\n System.out.println(\"Aborted :\" + secondTrans);\n }\n\n\n\n }\n\n\n if (independent_trans_ids.size() == 1) {\n // i am the only transaction working on this variable so i can upgrade my lock\n System.out.println(\"Upgrading lock\");\n variableList = writelockVariable(var_id);\n\n if (!variableList.isEmpty()) {\n\n // not sure about use of this below statement\n txn.addOperationToTransaction(oper);\n\n // add to transaction variable-transaction map\n addVariableToMap(trans_id, var_id);\n\n // since we got the lock we can execute it\n // add all the variables of each site to the commit map of transaction\n for (Variable v : variableList) {\n\n txn.addOperationToCommitMap(v, oper.getValue());\n }\n System.out.println(\n \"T\" + trans_id + \" Writing \" + oper.getValue() + \" to variable x\" + var_id);\n\n\n\n } else {\n Tuple<Transaction, Operation> t = new Tuple<Transaction, Operation>(txn, oper);\n\n waitingRecoverOperations.add(t);\n System.out.println(\"T\" + trans_id + \" needs to Wait\");\n // releaseResources(trans_id);\n // clearWaitingOperations();\n }\n\n return true;\n }\n\n\n }\n\n System.out.println(\"T\" + trans_id + \" needs to Wait\");\n\n for (Integer independent_trans_id : independent_trans_ids) {\n if (independent_trans_id == trans_id)\n continue;\n if (checkAndAddDependency(trans_id, independent_trans_id)) {\n\n if (!alreadyWaiting(txn, oper)) {\n // System.out.println(\"writeOperation:: Not already waiting\");\n Tuple<Transaction, Operation> t = new Tuple<Transaction, Operation>(txn, oper);\n\n waitingOperations.add(t);\n\n\n\n }\n }\n }\n\n\n return false;\n }\n\n return true;\n\n }",
"public static void makeReadOperation(int trans_id, int var_id) {\n System.out.println(\"T\" + trans_id + \" wishes to read x\" + var_id);\n Transaction txn = null;\n if (transactions.containsKey(trans_id))\n txn = transactions.get(trans_id);\n if (txn != null) {\n if (txn.getType() == TransactionType.RO) {\n makeReadOnlyOperation(trans_id, var_id);\n return;\n }\n // System.out.println(\"makeReadOperation\");\n\n Operation oper = new Operation(trans_id, var_id);\n readOperation(txn, oper);\n } else {\n // aborted\n System.out.println(\"Aborted : T\" + trans_id);\n }\n\n }",
"private void concurrencyWrites7() {\n\t\ttry {\n\t\t\tlog.info(\"Starting TrxTableClient5: concurrencyWrites7\");\n\t\t\tlog.info(\"main--put[v1]\");\n\t\t\tlog.info(\"t1-----------beginTrans------------------------------------------put[v2]---commit\");\n\t\t\tlog.info(\"t2-------------------------beginTrans---put[v3]---abort\");\n\t\t\tlog.info(\"main---get[v2]\");\n\t\t\tSsccTableClientUtils.initialize();\n\t\t\tputValue();\n\n\t\t\tfinal P0Trx61 t1 = new P0Trx61();\n\t\t\tfinal P0Trx62 t2 = new P0Trx62();\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt1.doWork();\n\t\t\t\t\tlog.info(\" Trx1 finished\");\n\t\t\t\t\tcdl7.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx1\").start();\n\n\t\t\t// to make sure t2 is later than t1\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt2.doWork();\n\t\t\t\t\tlog.info(\" Trx2 finished\");\n\t\t\t\t\tcdl7.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx2\").start();\n\n\t\t\tcdl7.await();\n\n\t\t\tSsccTableClientUtils.testSsccBeginTransaction();\n\t\t\tInteger[] result = SsccTableClientUtils.testSsccGet();\n\t\t\tSsccTableClientUtils.testSsccCommitIfPossible();\n\t\t\tlog.info(\"Finish TrxTableClient5: concurrencyWrites7\");\n\n\t\t\tif (result.length == 1 && result[0] == 2) {\n\t\t\t\tsuccessNum++;\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"SUCCESS\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t} else {\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"FAILURE\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Test\n public void processTransactionManagerCaseD()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n acc_db.addAccount(acc3);\n\n trans_mang.processTransaction(acc.get_Account_Number(), acc2.get_Account_Number(), 30);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc.get_Account_Number(),acc3.get_Account_Number(),30));\n }",
"private void concurrencyWrites6() {\n\t\ttry {\n\t\t\tlog.info(\"Starting TrxTableClient5: concurrencyWrites6\");\n\t\t\tlog.info(\"main--put[v1]\");\n\t\t\tlog.info(\"t1-----------beginTrans------------------------------------------put[v2]---abort\");\n\t\t\tlog.info(\"t2-------------------------beginTrans---put[v3]---commit\");\n\t\t\tlog.info(\"main---get[v3]\");\n\n\t\t\tSsccTableClientUtils.initialize();\n\t\t\tputValue();\n\n\t\t\tfinal P0Trx51 t1 = new P0Trx51();\n\t\t\tfinal P0Trx52 t2 = new P0Trx52();\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt1.doWork();\n\t\t\t\t\tlog.info(\" Trx1 finished\");\n\t\t\t\t\tcdl6.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx1\").start();\n\n\t\t\t// to make sure t2 is later than t1\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt2.doWork();\n\t\t\t\t\tlog.info(\" Trx2 finished\");\n\t\t\t\t\tcdl6.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx2\").start();\n\n\t\t\tcdl6.await();\n\n\t\t\tSsccTableClientUtils.testSsccBeginTransaction();\n\t\t\tInteger[] result = SsccTableClientUtils.testSsccGet();\n\t\t\tSsccTableClientUtils.testSsccCommitIfPossible();\n\t\t\tlog.info(\"Finish TrxTableClient5: concurrencyWrites6\");\n\n\t\t\tif (result.length == 1 && result[0] == 3) {\n\t\t\t\tsuccessNum++;\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"SUCCESS\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t} else {\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"FAILURE\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Test\n @Ignore(\"This is only applicable to Neo4j 2.0.0-M03 and below where transactions \" +\n \"were not mandatory for reading\")\n public void defaultReadingIsReadCommitted() throws Exception {\n assertNameAndAgeViaLookup(john.getId(), \"John\", 34, \"John\");\n\n // Do the update in a separate Thread and ensure its actually updated\n doUpdateInSeparateThread(new PersonUpdater(\"John\", 44));\n\n // Now, back in our thread, ensure we read the commited value\n assertNameAndAgeViaLookup(john.getId(), \"John\", 44, \"John\");\n }",
"com.google.protobuf.ByteString getTransactions(int index);",
"private void concurrencyWrites4() {\n\t\ttry {\n\t\t\tlog.info(\"Starting TrxTableClient5: concurrencyWrites4\");\n\t\t\tlog.info(\"main--put[v1]\");\n\t\t\tlog.info(\"t1-----------beginTrans---put[v2]---------------------------abort\");\n\t\t\tlog.info(\"t2-------------------------------------beginTrans---put[v3]----------abort\");\n\t\t\tlog.info(\"main---get[v1]\");\n\t\t\tSsccTableClientUtils.initialize();\n\t\t\tputValue();\n\n\t\t\tfinal P0Trx31 t1 = new P0Trx31();\n\t\t\tfinal P0Trx32 t2 = new P0Trx32();\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt1.doWork();\n\t\t\t\t\tlog.info(\" Trx1 finished\");\n\t\t\t\t\tcdl4.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx1\").start();\n\n\t\t\t// to make sure t2 is later than t1\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt2.doWork();\n\t\t\t\t\tlog.info(\" Trx2 finished\");\n\t\t\t\t\tcdl4.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx2\").start();\n\n\t\t\tcdl4.await();\n\n\t\t\tSsccTableClientUtils.testSsccBeginTransaction();\n\t\t\tInteger[] result = SsccTableClientUtils.testSsccGet();\n\t\t\tSsccTableClientUtils.testSsccCommitIfPossible();\n\t\t\tlog.info(\"Finish TrxTableClient5: concurrencyWrites4\");\n\n\t\t\tif (result.length == 1 && result[0] == 1) {\n\t\t\t\tsuccessNum++;\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"SUCCESS\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t} else {\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"FAILURE\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void createTransaction() throws IOException {\n\t\t\n\t\tDate date = new Date((long) random(100000000));\n\t\tString date2 = \"'19\" + date.getYear() + \"-\" + (random(12)+1) + \"-\" + (random(28)+1) + \"'\";\n\t\tint amount = random(10000);\n\t\tint cid = random(SSNmap.size()) + 1;\n\t\tint vid = random(venders.size()) + 1;\n\t\t\n\t\twhile(ownership.get(cid) == null)\n\t\t\tcid = random(SSNmap.size()) + 1;\n\t\tString cc = ownership.get(cid).get(random(ownership.get(cid).size()));\n\t\t\n\t\twriter.write(\"INSERT INTO Transaction (Id, Date, vid, cid, CCNum, amount) Values (\" + tid++ +\", \" \n\t\t\t\t+ date2 + \", \" + vid + \", \" + cid + \", '\" + cc + \"', \" + amount + line);\n\t\twriter.flush();\n\t}",
"public void commit(int tid) {\n List<Lock> lockList = null;\n\n // check wheter there is read-only transaction running\n boolean hasRO = _tm.hasRunningReadonly();\n for (Integer varIndex : _lockTable.keySet()) {\n lockList = _lockTable.get(varIndex);\n int size = lockList.size();\n for (int i = size - 1; i >= 0; i--) {\n Lock lc = lockList.get(i);\n if (lc.getTranId() == tid) {\n\n // If the lock type is write, means this transaction writes a variable\n // in uncommitDataMap\n if (lc.getType() == Lock.Type.WRITE) {\n if (_uncommitDataMap.containsKey(varIndex)) {\n List<Data> dataList = _dataMap.get(varIndex);\n Data d = _uncommitDataMap.get(varIndex);\n d.setCommitTime(_tm.getCurrentTime());\n\n // If no read-only transaction, replace the old version\n if (!hasRO) {\n dataList.clear();\n }\n dataList.add(d);\n _uncommitDataMap.remove(varIndex);\n }\n }\n lockList.remove(i);\n break;\n }\n }\n }\n // remove this transaction from accessed list\n _accessedTransactions.remove(tid);\n }",
"private void concurrencyWrites5() {\n\t\ttry {\n\t\t\tlog.info(\"Starting TrxTableClient5: concurrencyWrites5\");\n\t\t\tlog.info(\"main--put[v1]\");\n\t\t\tlog.info(\"t1-----------beginTrans------------------------------------------put[v2]---commit\");\n\t\t\tlog.info(\"t2-------------------------beginTrans---put[v3]---commit\");\n\t\t\tlog.info(\"main---get[v3]\");\n\n\t\t\tSsccTableClientUtils.initialize();\n\t\t\tputValue();\n\n\t\t\tfinal P0Trx41 t1 = new P0Trx41();\n\t\t\tfinal P0Trx42 t2 = new P0Trx42();\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt1.doWork();\n\t\t\t\t\tlog.info(\" Trx1 finished\");\n\t\t\t\t\tcdl5.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx1\").start();\n\n\t\t\t// to make sure t2 is later than t1\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt2.doWork();\n\t\t\t\t\tlog.info(\" Trx2 finished\");\n\t\t\t\t\tcdl5.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx2\").start();\n\n\t\t\tcdl5.await();\n\n\t\t\tSsccTableClientUtils.testSsccBeginTransaction();\n\t\t\tInteger[] result = SsccTableClientUtils.testSsccGet();\n\t\t\tSsccTableClientUtils.testSsccCommitIfPossible();\n\t\t\tlog.info(\"Finish TrxTableClient5: concurrencyWrites5\");\n\n\t\t\tif (result.length == 1 && result[0] == 3) {\n\t\t\t\tsuccessNum++;\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"SUCCESS\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t} else {\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"FAILURE\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Test\n public void testHandleTxs() {\n\n // Creates 100 coins to Alice\n Transaction createCoinTx = new Transaction();\n createCoinTx.addOutput(100, kpAlice.getPublic());\n createCoinTx.finalize();\n // Output of createCoinTx is put in UTXO pool\n UTXOPool utxoPool = new UTXOPool();\n UTXO utxo = new UTXO(createCoinTx.getHash(), 0);\n utxoPool.addUTXO(utxo, createCoinTx.getOutput(0));\n TxHandler txHandler = new TxHandler(utxoPool);\n\n // Alice transfers 10 coins to Bob, 20 to Cal\n Transaction tx1 = new Transaction();\n tx1.addInput(createCoinTx.getHash(), 0);\n tx1.addOutput(10, kpBob.getPublic());\n tx1.addOutput(20, kpCal.getPublic());\n\n // Sign for tx1\n byte[] sig1 = null;\n try {\n Signature sig = Signature.getInstance(\"SHA256withRSA\");\n sig.initSign(kpAlice.getPrivate());\n sig.update(tx1.getRawDataToSign(0));\n sig1 = sig.sign();\n } catch (NoSuchAlgorithmException | InvalidKeyException | SignatureException e) {\n e.printStackTrace();\n }\n tx1.getInput(0).addSignature(sig1);\n tx1.finalize();\n\n // Cal transfers 5 coins to Bob, Bob transfers 2 coins to Alice\n Transaction tx2 = new Transaction();\n tx2.addInput(tx1.getHash(), 0); // index 0 refers to output 1 of tx1\n tx2.addInput(tx1.getHash(), 1); // index 1 refers to output 1 of tx1\n tx2.addOutput(2, kpAlice.getPublic());\n tx2.addOutput(5, kpBob.getPublic());\n\n // Sign for tx2\n byte[] sig2 = null;\n try {\n Signature sig = Signature.getInstance(\"SHA256withRSA\");\n sig.initSign(kpBob.getPrivate());\n sig.update(tx2.getRawDataToSign(0));\n sig2 = sig.sign();\n } catch (NoSuchAlgorithmException | InvalidKeyException | SignatureException e) {\n e.printStackTrace();\n }\n tx2.getInput(0).addSignature(sig2);\n\n byte[] sig3 = null;\n try {\n Signature sig = Signature.getInstance(\"SHA256withRSA\");\n sig.initSign(kpCal.getPrivate());\n sig.update(tx2.getRawDataToSign(1));\n sig3 = sig.sign();\n } catch (NoSuchAlgorithmException | InvalidKeyException | SignatureException e) {\n e.printStackTrace();\n }\n tx2.getInput(1).addSignature(sig3);\n tx2.finalize();\n\n // Alice transfers 3 coins to Cal\n Transaction tx3 = new Transaction();\n tx3.addInput(tx2.getHash(), 0);\n tx3.addOutput(3, kpCal.getPublic());\n\n // Sign for tx3\n byte[] sig4 = null;\n try {\n Signature sig = Signature.getInstance(\"SHA256withRSA\");\n sig.initSign(kpAlice.getPrivate());\n sig.update(tx3.getRawDataToSign(0));\n sig4 = sig.sign();\n } catch (NoSuchAlgorithmException | InvalidKeyException | SignatureException e) {\n e.printStackTrace();\n }\n tx3.getInput(0).addSignature(sig4);\n tx3.finalize();\n\n Transaction[] acceptedTx = txHandler.handleTxs(new Transaction[] {tx1, tx2, tx3});\n // tx1, tx2 supposed to be valid, tx3 supposed to be invalid\n assertEquals(acceptedTx.length, 2);\n // assertFalse(txHandler.isValidTx(tx3));\n }",
"private String getTypeOfTransaction(String transact) {\n\t\tif ( transact.indexOf(\"w\") != -1 ) {\n\t\t\treturn TRANSTYPE_WRITABLE;\n\t\t} \n\t\treturn TRANSTYPE_READABLE;\n\t}",
"private static synchronized void writeTransaction( StmTransaction transaction ) {\n\n // Check for conflicts.\n for ( AbstractVersionedItem versionedItem : transaction.versionedItemsRead ) {\n versionedItem.ensureNotWrittenByOtherTransaction();\n }\n\n // Set the revision number to a committed value.\n transaction.targetRevisionNumber.set( lastCommittedRevisionNumber.incrementAndGet() );\n\n }",
"@Test\n public void processTransactionManagerCaseC()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n acc_db.addAccount(acc3);\n\n\n trans_mang.processTransaction(acc.get_Account_Number(), acc2.get_Account_Number(), 30);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc3.get_Account_Number(),acc2.get_Account_Number(),30));\n }",
"T handle(Tx tx) throws Exception;",
"@Test\n public void testRead() {\n // Choose a random key to read, among the available ones.\n int readKeyNumber = new Random().nextInt(RiakKVClientTest.recordsToInsert);\n // Prepare two fields to read.\n Set<String> fields = new HashSet<>();\n fields.add(RiakKVClientTest.firstField);\n fields.add(RiakKVClientTest.thirdField);\n // Prepare an expected result.\n HashMap<String, String> expectedValue = new HashMap<>();\n expectedValue.put(RiakKVClientTest.firstField, Integer.toString(readKeyNumber));\n expectedValue.put(RiakKVClientTest.thirdField, Integer.toString((readKeyNumber * readKeyNumber)));\n // Define a HashMap to store the actual result.\n HashMap<String, ByteIterator> readValue = new HashMap<>();\n // If a read transaction has been properly done, then one has to receive a Status.OK return from the read()\n // function. Moreover, the actual returned result MUST match the expected one.\n Assert.assertEquals(\"Read transaction FAILED.\", OK, RiakKVClientTest.riakClient.read(RiakKVClientTest.bucket, ((RiakKVClientTest.keyPrefix) + (Integer.toString(readKeyNumber))), fields, readValue));\n Assert.assertEquals(\"Read test FAILED. Actual read transaction value is NOT MATCHING the expected one.\", expectedValue.toString(), readValue.toString());\n }",
"private static void sendReadWriteRequests() throws IOException {\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\t\tString cmdLine = null;\n\t\tSystem.out.println(\"Read: R <consistency_level> <Key_int> Write: W <consistency_level> <Key_int> <Value_String>\");\n\t\tSystem.out.println(\"Type <exit> to exit\");\n\t\twhile(!(cmdLine = input.nextLine().trim().toLowerCase()).equals(\"exit\")) {\n\t\t\tString[] args = cmdLine.split(\" \");\n\t\t\tif(args.length ==3 || args.length>=4 ) {\n\t\t\t\t\n\t\t\t\tif(args[0].equals(\"r\") || args[0].equals(\"w\")) {\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsocket = new Socket(coordIp,coordPort);\n\t\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\tSystem.out.println(\"Coordinator not available\");\n\t\t\t\t\t\t\tif(socket!=null) {\n\t\t\t\t\t\t\t\tsocket.close();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tSystem.out.println(\"Coordinator not available\");\n\t\t\t\t\t\t\tif(socket!=null) {\n\t\t\t\t\t\t\t\tsocket.close();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(args[0].equals(\"r\") && args.length==3) { // READ BLOCK: READ CMD AND RECIEVE RETURNED VALUE HERE\n\t\t\t\t\t\t\tint cLevel = Integer.parseInt(args[1]);\n\t\t\t\t\t\t\tint key = Integer.parseInt(args[2]);\n\t\t\t\t\t\t\tif(key < 0) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Enter valid key between 0 to 255 (inclusive)\");\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tCasandra.ReadValue readMsg = Casandra.ReadValue.newBuilder().setKey(key).setLevel(cLevel).build();\n\t\t\t\t\t\t\tCasandra.NodeMessage nodeMsg = Casandra.NodeMessage.newBuilder().setReadValue(readMsg).build();\n\t\t\t\t\t\t\tnodeMsg.writeDelimitedTo(socket.getOutputStream());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tCasandra.NodeMessage nodeMsgReadValue = Casandra.NodeMessage.parseDelimitedFrom(socket.getInputStream());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(nodeMsgReadValue.hasReturnVal()) { // If valid response is returned\n\t\t\t\t\t\t\t\tCasandra.ReturnVal retMsg = nodeMsgReadValue.getReturnVal();\n\t\t\t\t\t\t\t\tSystem.out.println(\"Value for key \"+key+ \" is \"+retMsg.getValue());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(nodeMsgReadValue.hasSystemException()){ // If exception has occured\n\t\t\t\t\t\t\t\tSystem.out.println(\"Exception occured: \"+nodeMsgReadValue.getSystemException().getMessage());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\telse if(args[0].equals(\"w\") && args.length>=4) { // WRITE BLOCK: WRITE CMD AND RECIEVE ACK HERE\n\t\t\t\t\t\t\tint cLevel = Integer.parseInt(args[1]);\n\t\t\t\t\t\t\tint key = Integer.parseInt(args[2]);\n\t\t\t\t\t\t\tif(key < 0) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Enter valid key between 0 to 255 (inclusive)\");\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tString value = args[3];\n\t\t\t\t\t\t\tfor(int i=4;i<args.length;i++) {\n\t\t\t\t\t\t\t\tvalue+=\" \"+args[i];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tCasandra.Put writeMsg = Casandra.Put.newBuilder().setKey(key).setLevel(cLevel).setValue(value).build();\n\t\t\t\t\t\t\tCasandra.NodeMessage nodeMsg = Casandra.NodeMessage.newBuilder().setPut(writeMsg).build();\n\t\t\t\t\t\t\tnodeMsg.writeDelimitedTo(socket.getOutputStream());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tCasandra.NodeMessage nodeMsgReadValue = Casandra.NodeMessage.parseDelimitedFrom(socket.getInputStream());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(nodeMsgReadValue.hasAckWrite()) { // If valid response is returned\n\t\t\t\t\t\t\t\tCasandra.AckWrite ackWrite = nodeMsgReadValue.getAckWrite();\n\t\t\t\t\t\t\t\tSystem.out.println(\"Key value was successfully inserted: \"+ackWrite.getFrom());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(nodeMsgReadValue.hasSystemException()){ //If exception has occured\n\t\t\t\t\t\t\t\tSystem.out.println(\"Exception occured: \"+nodeMsgReadValue.getSystemException().getMessage());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tSystem.err.println(\"Invalid input format\");\n\t\t\t\t\t\t\t//continue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsocket.close();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(NumberFormatException nfe) {\n\t\t\t\t\t\tSystem.err.println(\"Invalid input format\");\n\t\t\t\t\t\t//continue;\n\t\t\t\t\t}\n\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.err.println(\"Invalid input format\");\n\t\t\t\t\t//continue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tSystem.err.println(\"Invalid input format\");\n\t\t\t\t//continue;\n\t\t\t}\n\t\t\tif(socket!=null)\n\t\t\t\tsocket.close();\n\t\t\t\n\t\t}\n\t\t\n\t\tinput.close();\n\t\tif(socket!=null)\n\t\tsocket.close();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\n\tpublic void scan(Transaction tx) {\n\n\t}",
"long getTxid();",
"private void concurrencyWrites8() {\n\t\ttry {\n\t\t\tlog.info(\"Starting TrxTableClient5: concurrencyWrites8\");\n\t\t\tlog.info(\"main--put[v1]\");\n\t\t\tlog.info(\"t1-----------beginTrans------------------------------------------put[v2]---abort\");\n\t\t\tlog.info(\"t2-------------------------beginTrans---put[v3]---abort\");\n\t\t\tlog.info(\"main---get[v1]\");\n\t\t\tSsccTableClientUtils.initialize();\n\t\t\tputValue();\n\n\t\t\tfinal P0Trx71 t1 = new P0Trx71();\n\t\t\tfinal P0Trx72 t2 = new P0Trx72();\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt1.doWork();\n\t\t\t\t\tlog.info(\" Trx1 finished\");\n\t\t\t\t\tcdl8.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx1\").start();\n\n\t\t\t// to make sure t2 is later than t1\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt2.doWork();\n\t\t\t\t\tlog.info(\" Trx2 finished\");\n\t\t\t\t\tcdl8.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx2\").start();\n\n\t\t\tcdl8.await();\n\n\t\t\tSsccTableClientUtils.testSsccBeginTransaction();\n\t\t\tInteger[] result = SsccTableClientUtils.testSsccGet();\n\t\t\tSsccTableClientUtils.testSsccCommitIfPossible();\n\t\t\tlog.info(\"Finish TrxTableClient5: concurrencyWrites8\");\n\n\t\t\tif (result.length == 1 && result[0] == 1) {\n\t\t\t\tsuccessNum++;\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"SUCCESS\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t} else {\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"FAILURE\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n\tpublic TransactionMetadata initializeTransaction(BigInteger txid,TransactionMetadata prevMetadata) {\n\t\tTransactionMetadata ret = initializeTransactionMetadat();\r\n\t\tif(nextBatchRows!=null && !nextBatchRows.isEmpty()){\r\n\t\t\tList<ObjectId> rowIds = Util.convertToIdList(nextBatchRows);\r\n//\t\t\tquantity = quantity > MAX_TRANSACTION_SIZE ? MAX_TRANSACTION_SIZE : quantity;\r\n\t\t\tret = new TransactionMetadata(collectionName,rowIds);\r\n\t\t\tObjectId[] objectIds = Util.convertObjectIdListToArr(rowIds);\r\n\t\t\tString objIdStr = Util.convertObjectIdArrToStr(objectIds);\r\n\t\t\tlogger.debug(\"store transactionMetadata,txid:\"+txid+\" [collection:\"+collectionName+\"]objIds : \"+objIdStr);\r\n\t\t}\r\n//\t\tnextRead += quantity;\r\n//\t\tmongoManager.updateFlagToInprogress(idList);\r\n\t\treturn ret;\r\n\t}",
"private void setTransactions(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureTransactionsIsMutable();\n transactions_.set(index, value);\n }",
"public TransactionResponse processAllTransaction() throws ParseException {\n TransactionResponse response = new TransactionResponse();\n\n //User0\n response.setTransaction(new Transaction(\"user0\",\"0001\", \"type0\",\"user0_Billing\",\"user0_Sub\",\n new SimpleDateFormat(\"yyyy-mm-dd-hh\").parse(\"2020-01-02-00\")));\n\n //User1\n response.setTransaction(new Transaction(\"user1\", \"0101\",\"type0\",\"user1_Billing\", \"user1_Sub\",\n new SimpleDateFormat(\"yyyy-mm-dd-hh\").parse(\"2020-01-02-02\")));\n\n response.setTransaction(new Transaction(\"user1\", \"0102\", \"type1\",\"user1_Billing\", \"user1_Sub\",\n new SimpleDateFormat(\"yyyy-mm-dd-hh\").parse(\"2020-01-03-00\")));\n\n //User2\n response.setTransaction(new Transaction(\"user2\", \"0201\", \"type1\",\"user2_Billing\", \"user2_Sub\",\n new SimpleDateFormat(\"yyyy-mm-dd-hh\").parse(\"2020-01-01-00\")));\n\n response.setTransaction(new Transaction(\"user2\", \"0202\", \"type2\",\"user2_Billing\", \"user2_Sub\",\n new SimpleDateFormat(\"yyyy-mm-dd-hh\").parse(\"2020-01-03-01\")));\n\n response.setTransaction(new Transaction(\"user2\", \"0203\",\"type1\",\"user2_Billing\", \"user2_Sub\",\n new SimpleDateFormat(\"yyyy-mm-dd-hh\").parse(\"2020-01-03-01\")));\n\n //User3\n response.setTransaction(new Transaction(\"user3\", \"0301\",\"type0\",\"user3_Billing\", \"user3_Sub\",\n new SimpleDateFormat(\"yyyy-mm-dd-hh\").parse(\"2020-01-02-02\")));\n\n response.setTransaction(new Transaction(\"user3\", \"0302\",\"type1\",\"user3_Billing\", \"user3_Sub\",\n new SimpleDateFormat(\"yyyy-mm-dd-hh\").parse(\"2020-01-03-01\")));\n\n return response;\n }",
"private void executeTransaction(ArrayList<Request> transaction) {\n // create a new TransactionMessage\n TransactionMessage tm = new TransactionMessage(transaction);\n //if(tm.getStatementCode(0)!=8&&tm.getStatementCode(0)!=14)\n // return;\n try {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(tm);\n oos.flush();\n\n byte[] data = bos.toByteArray();\n\n byte[] buffer = null;\n long startTime = System.currentTimeMillis();\n buffer = clientShim.execute(data);\n long endTime = System.currentTimeMillis();\n if (reqIndex < maxNoOfRequests && id > 0) {\n System.out.println(\"#req\" + reqIndex + \" \" + startTime + \" \" + endTime + \" \" + id);\n }\n reqIndex++;\n\n father.addTransaction();\n\n // IN THE MEAN TIME THE INTERACTION IS BEING EXECUTED\n\n\t\t\t\t/*\n\t\t\t\t * possible values of r: 0: commit 1: rollback 2: error\n\t\t\t\t */\n int r = ByteBuffer.wrap(buffer).getInt();\n //System.out.println(\"r = \"+r);\n if (r == 0) {\n father.addCommit();\n } else if (r == 1) {\n father.addRollback();\n } else {\n father.addError();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public abstract void lockTableForReading(String table) throws RollbackException;",
"public static void ProcessTransaction(){\r\n\t Iterator<String> iter = masterEventsFile.iterator();\r\n\t //this uses the deletePastEvents method to delete all the past events in the masterEventsFile\r\n\t while (iter.hasNext()){\r\n\t\t String e = iter.next();\r\n\t \r\n\t //for (String e : masterEventsFile){\r\n\t\t Event CheckEvent = new Event(e);\r\n\t\t boolean pastDate = deletePastEvents(CheckEvent);\r\n\t\t if (!pastDate){\r\n\t\t\t break;\r\n\t\t } \r\n\t }\r\n\t //makes each line of the masterEventFile into an Event object for easier processing\r\n\t for (String e : masterEventsFile){\r\n\t\t Event event = new Event(e);\r\n\t\t alteredEventsFile.add(event);\r\n\t }\r\n\t //makes each line into a Transaction object for easier processing\r\n\t for (String t: mergedEventTransactionFile){\r\n\t\t Transaction transaction= new Transaction(t);\r\n\t\t allTransactions.add(transaction);\r\n\t }\r\n\t \r\n\t //Iterates through each Transaction processing them one at a time based on their id\r\n\t for (Transaction t: allTransactions){\r\n\t\t //process sell, return, create, add, delete,end\r\n\t\t if(t.id == 00){\r\n\t\t\t break;\r\n\t\t }\r\n\t\t Event changeEvent = findEvent(t.name);\r\n\t\t if (changeEvent != null){\r\n\t\t\t if (t.id == 01){\t\t\t\t\t\t//sell transaction\r\n\t\t\t\t if((changeEvent.ticket -t.ticket)<0){\r\n\t\t\t\t\t System.out.println(\"Sell transaction could not be performed, not enough tickets\"); //Contraints: no event should ever have a negative nmber of ticekts\r\n\t\t\t\t }else{\r\n\t\t\t\t\t changeEvent.ticket = changeEvent.ticket -t.ticket;\r\n\t\t\t\t }\r\n\t\t\t }else if (t.id == 02){\t\t\t\t//return transaction\r\n\t\t\t\t changeEvent.ticket =changeEvent.ticket + t.ticket;\r\n\t\t\t }else if (t.id == 04){\t\t\t\t//add transaction\r\n\t\t\t\t changeEvent.ticket += t.ticket;\t\r\n\t\t\t }else if (t.id == 05){\t\t\t\t//delete transaction\r\n\t\t\t\t changeEvent = null;\r\n\t\t\t }\r\n\t\t }else{\t\t\t\t\t\t\t\t//constraint: a new event must have a name different from all existing events\r\n\t\t\t if(t.id == 03){\t\t\t\t\t\t//create transaction\r\n\t\t\t\t Event newEvent = new Event (t.getEventLine());\r\n\t\t\t\t InsertEvent(newEvent);\t\t//constraint: <asterEventFile must be kept in ascending order by date\r\n\t\t\t }\r\n\t\t }\r\n\t }\r\n\t \r\n\t String newMasterEventsFile = \"\";\r\n\t String newCurrentEventsFile = \"\"\r\n\t\t\t ;\r\n\t // creates two strings in proper format for output to currenteventsFile and MasterEventsFile\r\n\t for (Event e: alteredEventsFile){\t\t\t\t\t\t\t\t//assumes correct input... constraint:every line is exactly 33 characters(plus newline)\r\n\t\t newMasterEventsFile += e.getEventLine() +\"\\n\";\r\n\t\t newCurrentEventsFile += e.getCurrentEventLine() + \"\\n\";\r\n\t }\r\n\t \r\n\t //does file output stuff\r\n\t try{\r\n\t\t endBackEnd(newMasterEventsFile, newCurrentEventsFile);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }",
"public interface TransactionInterface {\n\n\t/**\n\t * Get metadata about the transaction, this is used when the transaction is generated on the server\n\t * @return \n\t */\n\tpublic ActH01 getActH01();\n\t\n\tpublic void setActH01(ActH01 actH01);\n\t\n\t/**\n\t * \n\t * @return Get metadata about the transaction, this comes from the client\n\t */\n\tpublic ActH01 getClientActH01();\n\t\n\tpublic void setClientActH01(ActH01 actH01);\n\t\n\t/**\n\t * Get this transactions audit id\n\t * @return\n\t */\n\tpublic int getAuditId();\n\t\n\t/**\n\t * Get this transactions action type\n\t * @return\n\t */\n\tpublic int getActionType();\n\t\n\t/**\n\t * Get this transactions xml representation\n\t * @return\n\t */\n\tpublic String getAuditXml();\n\n\tpublic void setAuditXml(String xml);\n\n\t/**\n\t * Get this transactions replication, so get all the SQL that were executed by this transaction\n\t * @return\n\t */\n\tpublic String getReplicationXml();\n\n\tpublic void setReplicationXml(String xml);\n\t\n\t/**\n\t * Classpath location for the schema/xsd this transaction must be validated against\n\t * if this is not set or invalid you WILL NOT be able to execute the transaction \n\t * @return\n\t */\n\tpublic String getSchemaLocation();\n\n\t/**\n\t * \n\t * @param session\n\t * @return\n\t * @throws TransactionException\n\t * Execute the transaction, amongst other logic the transactions\n\t * executeWrite logic will be executed\n\t */\n\tpublic TransactionInterface executeWrite() throws TransactionException;\n\n}",
"private void parseTransactions(List<Transaction> transactions) {\n transactions.forEach(transaction -> {\n Account senderAccount = getAccount(transaction.getSender());\n Account receiverAccount = getAccount(transaction.getReceiver());\n senderAccount.addOutgoingTransaction(transaction);\n receiverAccount.addIncomingTransaction(transaction);\n });\n }",
"void shift() {\n deleteStart += txnOps;\n deleteEnd += txnOps;\n updateStart += txnOps;\n updateEnd += txnOps;\n insertStart += txnOps;\n insertEnd += txnOps;\n }",
"@Test\n public void processTransactionManagerCaseE() throws InterruptedException\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n trans_mang.processTransaction(acc.get_Account_Number(),acc2.get_Account_Number(),30);\n\n Thread.sleep(15000);\n\n Assert.assertEquals(true,trans_mang.processTransaction(acc.get_Account_Number(),acc2.get_Account_Number(),30));\n }",
"protected void reuseTxn(Txn txn) throws Exception {\r\n }",
"public Transaction(String transactionLine){\r\n\t\t\t//String delims = \"[\\\\s+]\";\r\n\t\t\tString[] tokens = transactionLine.split(\" +\");\r\n\t\t\tif (tokens[0].equals(\"\")){\r\n\t\t\t\tid = 00;\r\n\t\t\t}else{\r\n\t\t\t\tid = Integer.parseInt(tokens[0]);\r\n\t\t\t}\r\n\t\t\tif (id == 0){\r\n\t\t\t\tdate = 0;\r\n\t\t\t\tticket = 0;\r\n\t\t\t\tname = \"\";\r\n\t\t\t}else{\r\n\t\t\t\tdate = Integer.parseInt(tokens[2]);\r\n\t\t\t\tticket = Integer.parseInt(tokens[3]);\r\n\t\t\t\tname = tokens[1];\r\n\t\t\t\t\t\t\r\n\t\t\t}\r\n\r\n\t }",
"java.lang.String getTxId();",
"private int readByReadWriteTransaction(Operation o, Variable v) {\n if (v.getTransactionIdToCommit() == o.getTransactionId()) {\n o.setValue(v.getValueToCommit());\n return v.getValueToCommit();\n } else {\n o.setValue(v.getLastCommittedValue());\n return v.getLastCommittedValue();\n }\n }",
"public interface TransactionReadOnly {\n boolean isReadyOnly(String sql);\n\n}",
"@Override\n\tpublic void beginTransaction() {\n\t\tSystem.out.println(\"Transaction 1 begins\");\n\t\t\n\t\t/*String queryLock = \"LOCK TABLES hpq_mem READ;\";\n\t\t\n\t\tPreparedStatement ps;\n\t\ttry {\n\t\t\tconn.setAutoCommit(false);\n\t\t\tps = conn.prepareStatement(queryLock);\n\t\t\tps.execute();\n\t\t\tps = conn.prepareStatement(\"START TRANSACTION;\");\n\t\t\tps.execute();\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\t\n\t\tSystem.out.println(\"After obtaining readLock\");\n\t\t\n\t}",
"Transaction getTransctionByTxId(String txId);",
"void processTransaction(String[] transaction) {\n\t\titemsetSets.get(itemsetSets.size() - 1).processTransaction(transaction);\n\t}",
"public static void write(int xact, int key, int value) throws Exception {\n\t if (! mData.containsKey(key))\n\t\t throw new Exception(\"Try to read a non-existing key\");\n\t Transaction tran = mTransactions.get(xact);\n\t if (! mLiveList.contains(tran))\n\t\t throw new Exception(\"T(\"+(xact+1)+\")DOES NOT EXIST\");\n\t \n\t System.out.println(\"T(\"+(xact+1)+\"):W(\"+key+\",\"+value+\")\");\n\t \n\t // Add this value into WriteList\n\t mTransactions.get(xact).addWriteList(new Tuple(key, value));\n\t\t\n\t int index = find_right_version(xact, key);\n\t Version v = mData.get(key).get(index);\n\t \n\t // There is another transaction T' with TS' bigger than\n\t // TS of transaction T read the value that T' must not read\n\t if (xact < v.getRTS()) {\n\t\t rollback(xact);\n\t } else {\n\t\t if (xact == v.getWTS()) {\n\t\t\t mData.get(key).get(index).setValue(value);\n\t\t } else if (xact > v.getWTS()) {\n\t\t\t Version new_version = new Version(xact, xact, value);\n\t\t\t LinkedList<Version> versions = mData.get(key);\n\t\t\t versions.add(new_version);\n\t\t\t mData.put(key, versions);\n\t\t }\n\t }\n }",
"public TransactionObj getTransaction(String sID){\n\t\treturn hmTransaction.get(sID);\n\t}",
"public abstract boolean writeDataItem(BDTuple tuple) throws RollbackException;",
"public void writeState() {\n Throwable th;\n String str;\n String str2;\n IOException e;\n IOException e2;\n List<AppOpsManager.PackageOps> allOps;\n Throwable th2;\n String lastPkg;\n List<AppOpsManager.PackageOps> allOps2;\n String lastPkg2;\n List<AppOpsManager.PackageOps> allOps3;\n String proxyPkg;\n synchronized (this.mFile) {\n try {\n FileOutputStream stream = this.mFile.startWrite();\n String str3 = null;\n List<AppOpsManager.PackageOps> allOps4 = getPackagesForOps(null);\n try {\n XmlSerializer out = new FastXmlSerializer();\n out.setOutput(stream, StandardCharsets.UTF_8.name());\n out.startDocument(null, true);\n out.startTag(null, \"app-ops\");\n out.attribute(null, \"v\", String.valueOf(1));\n synchronized (this) {\n try {\n int uidStateCount = this.mUidStates.size();\n for (int i = 0; i < uidStateCount; i++) {\n try {\n UidState uidState = this.mUidStates.valueAt(i);\n if (uidState.opModes != null && uidState.opModes.size() > 0) {\n out.startTag(null, WatchlistLoggingHandler.WatchlistEventKeys.UID);\n out.attribute(null, \"n\", Integer.toString(uidState.uid));\n SparseIntArray uidOpModes = uidState.opModes;\n int opCount = uidOpModes.size();\n for (int j = 0; j < opCount; j++) {\n int op = uidOpModes.keyAt(j);\n int mode = uidOpModes.valueAt(j);\n out.startTag(null, \"op\");\n out.attribute(null, \"n\", Integer.toString(op));\n out.attribute(null, \"m\", Integer.toString(mode));\n out.endTag(null, \"op\");\n }\n out.endTag(null, WatchlistLoggingHandler.WatchlistEventKeys.UID);\n }\n } catch (Throwable th3) {\n e2 = th3;\n while (true) {\n try {\n break;\n } catch (Throwable th4) {\n e2 = th4;\n }\n }\n throw e2;\n }\n }\n } catch (Throwable th5) {\n e2 = th5;\n while (true) {\n break;\n }\n throw e2;\n }\n }\n if (allOps4 != null) {\n String lastPkg3 = null;\n boolean z = false;\n int i2 = 0;\n while (i2 < allOps4.size()) {\n AppOpsManager.PackageOps pkg = allOps4.get(i2);\n if (pkg.getPackageName() == null) {\n allOps = allOps4;\n } else {\n if (!pkg.getPackageName().equals(lastPkg3)) {\n if (lastPkg3 != null) {\n try {\n out.endTag(str3, \"pkg\");\n } catch (IOException e3) {\n e = e3;\n try {\n Slog.w(TAG, \"Failed to write state, restoring backup.\", e);\n this.mFile.failWrite(stream);\n if (stream != null) {\n }\n } catch (Throwable th6) {\n th = th6;\n if (stream != null) {\n try {\n stream.close();\n } catch (IOException e4) {\n Slog.w(TAG, \"Failed to close stream: \" + e4.getMessage());\n }\n }\n throw th;\n }\n } catch (Throwable th7) {\n th = th7;\n if (stream != null) {\n }\n throw th;\n }\n }\n lastPkg3 = pkg.getPackageName();\n out.startTag(str3, \"pkg\");\n out.attribute(str3, \"n\", lastPkg3);\n }\n out.startTag(str3, WatchlistLoggingHandler.WatchlistEventKeys.UID);\n out.attribute(str3, \"n\", Integer.toString(pkg.getUid()));\n synchronized (this) {\n try {\n Ops ops = getOpsRawLocked(pkg.getUid(), pkg.getPackageName(), z, z);\n if (ops != null) {\n try {\n out.attribute(str3, \"p\", Boolean.toString(ops.isPrivileged));\n } catch (Throwable th8) {\n th2 = th8;\n }\n } else {\n out.attribute(str3, \"p\", Boolean.toString(z));\n }\n } catch (Throwable th9) {\n th2 = th9;\n while (true) {\n try {\n break;\n } catch (Throwable th10) {\n th2 = th10;\n }\n }\n throw th2;\n }\n }\n List<AppOpsManager.OpEntry> ops2 = pkg.getOps();\n int j2 = z;\n while (j2 < ops2.size()) {\n AppOpsManager.OpEntry op2 = ops2.get(j2 == true ? 1 : 0);\n out.startTag(str3, \"op\");\n out.attribute(str3, \"n\", Integer.toString(op2.getOp()));\n if (op2.getMode() != AppOpsManager.opToDefaultMode(op2.getOp())) {\n out.attribute(str3, \"m\", Integer.toString(op2.getMode()));\n }\n LongSparseArray keys = op2.collectKeys();\n if (keys == null) {\n allOps2 = allOps4;\n lastPkg = lastPkg3;\n } else if (keys.size() <= 0) {\n allOps2 = allOps4;\n lastPkg = lastPkg3;\n } else {\n int keyCount = keys.size();\n int k = 0;\n while (k < keyCount) {\n long key = keys.keyAt(k);\n int uidState2 = AppOpsManager.extractUidStateFromKey(key);\n int flags = AppOpsManager.extractFlagsFromKey(key);\n long accessTime = op2.getLastAccessTime(uidState2, uidState2, flags);\n long rejectTime = op2.getLastRejectTime(uidState2, uidState2, flags);\n long accessDuration = op2.getLastDuration(uidState2, uidState2, flags);\n String proxyPkg2 = op2.getProxyPackageName(uidState2, flags);\n int proxyUid = op2.getProxyUid(uidState2, flags);\n if (accessTime > 0 || rejectTime > 0 || accessDuration > 0) {\n proxyPkg = proxyPkg2;\n } else {\n proxyPkg = proxyPkg2;\n if (proxyPkg == null && proxyUid < 0) {\n allOps3 = allOps4;\n lastPkg2 = lastPkg3;\n k++;\n allOps4 = allOps3;\n lastPkg3 = lastPkg2;\n }\n }\n allOps3 = allOps4;\n lastPkg2 = lastPkg3;\n try {\n out.startTag(null, \"st\");\n out.attribute(null, \"n\", Long.toString(key));\n if (accessTime > 0) {\n out.attribute(null, \"t\", Long.toString(accessTime));\n }\n if (rejectTime > 0) {\n out.attribute(null, \"r\", Long.toString(rejectTime));\n }\n if (accessDuration > 0) {\n out.attribute(null, \"d\", Long.toString(accessDuration));\n }\n if (proxyPkg != null) {\n out.attribute(null, \"pp\", proxyPkg);\n }\n if (proxyUid >= 0) {\n out.attribute(null, \"pu\", Integer.toString(proxyUid));\n }\n out.endTag(null, \"st\");\n k++;\n allOps4 = allOps3;\n lastPkg3 = lastPkg2;\n } catch (IOException e5) {\n e = e5;\n Slog.w(TAG, \"Failed to write state, restoring backup.\", e);\n this.mFile.failWrite(stream);\n if (stream != null) {\n }\n }\n }\n allOps2 = allOps4;\n lastPkg = lastPkg3;\n out.endTag(null, \"op\");\n allOps4 = allOps2;\n lastPkg3 = lastPkg;\n str3 = null;\n j2++;\n }\n out.endTag(null, \"op\");\n allOps4 = allOps2;\n lastPkg3 = lastPkg;\n str3 = null;\n j2++;\n }\n allOps = allOps4;\n out.endTag(null, WatchlistLoggingHandler.WatchlistEventKeys.UID);\n lastPkg3 = lastPkg3;\n }\n i2++;\n allOps4 = allOps;\n str3 = null;\n z = false;\n }\n if (lastPkg3 != null) {\n out.endTag(null, \"pkg\");\n }\n }\n out.endTag(null, \"app-ops\");\n out.endDocument();\n this.mFile.finishWrite(stream);\n out.flush();\n if (stream != null) {\n try {\n stream.close();\n } catch (IOException e6) {\n str2 = TAG;\n str = \"Failed to close stream: \" + e6.getMessage();\n }\n }\n } catch (IOException e7) {\n e = e7;\n Slog.w(TAG, \"Failed to write state, restoring backup.\", e);\n this.mFile.failWrite(stream);\n if (stream != null) {\n try {\n stream.close();\n } catch (IOException e8) {\n str2 = TAG;\n str = \"Failed to close stream: \" + e8.getMessage();\n }\n }\n } catch (Throwable th11) {\n th = th11;\n if (stream != null) {\n }\n throw th;\n }\n } catch (IOException e9) {\n Slog.w(TAG, \"Failed to write state: \" + e9);\n return;\n }\n }\n Slog.w(str2, str);\n }",
"private SourceRecord convertTransactionDataRecord (\n DomainRecord domainRecord\n ) \n throws Exception \n {\n if (!domainRecord.isTransactionInfoRecord()) {\n throw new Exception (\n \"Invalid transaction data record, reason type is \" + \n domainRecord.getDomainRecordType()\n );\n }\n \n TransactionInfoRecord txr = (TransactionInfoRecord) domainRecord;\n \n Struct kstruct = null;\n Schema kschema = null;\n Schema vschema = schema.valueSchema();\n String topic = vschema.name();\n String partKey = topic;\n\n if (mode.publishKeys()) {\n /* set key schema and value for publishing keys */\n kschema = schema.keySchema();\n if (kschema == null) {\n throw new Exception (\n \"Connector is configured to publish keys, but none \" +\n \"available for topic: \" + vschema.name()\n );\n }\n kstruct = new Struct (kschema);\n }\n else {\n /* sanity check */\n if (schema.keySchema() != null) {\n logger.warn (\n \"Connector is configured to not publish keys, but key \" +\n \"schema is available for topic: \" + vschema.name()\n );\n }\n }\n \n if (mode.publishKeys()) {\n kstruct.put (\"XID\", txr.getId());\n }\n \n Struct vstruct = new Struct (vschema);\n \n vstruct.put (\"XID\", txr.getId());\n vstruct.put (\"START_SCN\", txr.getStartSCN());\n vstruct.put (\"END_SCN\", txr.getEndSCN());\n vstruct.put (\"START_TIME\", txr.getStartTime());\n vstruct.put (\"END_TIME\", txr.getEndTime());\n vstruct.put (\"START_CHANGE_ID\", txr.getStartRecordId());\n vstruct.put (\"END_CHANGE_ID\", txr.getEndRecordId());\n vstruct.put (\"CHANGE_COUNT\", txr.getRecordCount());\n \n /* array of structs to hold counts per replicated schema */\n List<Struct> sarray = new ArrayList<Struct>();\n Map<String, Integer> counts = txr.getSchemaRecordCounts();\n for (String name : counts.keySet()) {\n Integer count = counts.get (name);\n Struct cstruct = new Struct (\n vschema.field(\"SCHEMA_CHANGE_COUNT_ARRAY\")\n .schema().valueSchema()\n );\n cstruct.put (\"SCHEMA_NAME\", name);\n cstruct.put (\"CHANGE_COUNT\", count);\n sarray.add (cstruct);\n }\n \n vstruct.put (\"SCHEMA_CHANGE_COUNT_ARRAY\", sarray);\n \n SourceRecord srecord = null;\n if (mode.publishKeys()) {\n srecord = new SourceRecord (\n Collections.singletonMap(\n ReplicateSourceTask.REPLICATE_NAME_KEY, \n partKey\n ),\n Collections.singletonMap(\n ReplicateSourceTask.REPLICATE_OFFSET_KEY,\n txr.getReplicateOffset().toJSONString()\n ),\n topic,\n kschema,\n kstruct,\n vschema, \n vstruct\n );\n }\n else {\n srecord = new SourceRecord (\n Collections.singletonMap(\n ReplicateSourceTask.REPLICATE_NAME_KEY, \n partKey\n ),\n Collections.singletonMap(\n ReplicateSourceTask.REPLICATE_OFFSET_KEY,\n txr.getReplicateOffset().toJSONString()\n ),\n topic, \n vschema, \n vstruct\n );\n }\n \n return srecord;\n }",
"public static void prepDb(Configuration conf) throws Exception {\n\n Connection conn = null;\n Statement stmt = null;\n try {\n conn = getConnection(conf);\n stmt = conn.createStatement();\n stmt.execute(\"CREATE TABLE TXNS (\" +\n \" TXN_ID bigint PRIMARY KEY,\" +\n \" TXN_STATE char(1) NOT NULL,\" +\n \" TXN_STARTED bigint NOT NULL,\" +\n \" TXN_LAST_HEARTBEAT bigint NOT NULL,\" +\n \" TXN_USER varchar(128) NOT NULL,\" +\n \" TXN_HOST varchar(128) NOT NULL,\" +\n \" TXN_TYPE integer)\");\n\n stmt.execute(\"CREATE TABLE TXN_COMPONENTS (\" +\n \" TC_TXNID bigint NOT NULL REFERENCES TXNS (TXN_ID),\" +\n \" TC_DATABASE varchar(128) NOT NULL,\" +\n \" TC_TABLE varchar(128),\" +\n \" TC_PARTITION varchar(767),\" +\n \" TC_OPERATION_TYPE char(1) NOT NULL,\" +\n \" TC_WRITEID bigint)\");\n stmt.execute(\"CREATE TABLE COMPLETED_TXN_COMPONENTS (\" +\n \" CTC_TXNID bigint NOT NULL,\" +\n \" CTC_DATABASE varchar(128) NOT NULL,\" +\n \" CTC_TABLE varchar(128),\" +\n \" CTC_PARTITION varchar(767),\" +\n \" CTC_TIMESTAMP timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL,\" +\n \" CTC_WRITEID bigint,\" +\n \" CTC_UPDATE_DELETE char(1) NOT NULL)\");\n stmt.execute(\"CREATE TABLE NEXT_TXN_ID (\" + \" NTXN_NEXT bigint NOT NULL)\");\n stmt.execute(\"INSERT INTO NEXT_TXN_ID VALUES(1)\");\n\n stmt.execute(\"CREATE TABLE TXN_TO_WRITE_ID (\" +\n \" T2W_TXNID bigint NOT NULL,\" +\n \" T2W_DATABASE varchar(128) NOT NULL,\" +\n \" T2W_TABLE varchar(256) NOT NULL,\" +\n \" T2W_WRITEID bigint NOT NULL)\");\n stmt.execute(\"CREATE TABLE NEXT_WRITE_ID (\" +\n \" NWI_DATABASE varchar(128) NOT NULL,\" +\n \" NWI_TABLE varchar(256) NOT NULL,\" +\n \" NWI_NEXT bigint NOT NULL)\");\n\n stmt.execute(\"CREATE TABLE MIN_HISTORY_LEVEL (\" +\n \" MHL_TXNID bigint NOT NULL,\" +\n \" MHL_MIN_OPEN_TXNID bigint NOT NULL,\" +\n \" PRIMARY KEY(MHL_TXNID))\");\n\n stmt.execute(\"CREATE TABLE HIVE_LOCKS (\" +\n \" HL_LOCK_EXT_ID bigint NOT NULL,\" +\n \" HL_LOCK_INT_ID bigint NOT NULL,\" +\n \" HL_TXNID bigint NOT NULL,\" +\n \" HL_DB varchar(128) NOT NULL,\" +\n \" HL_TABLE varchar(128),\" +\n \" HL_PARTITION varchar(767),\" +\n \" HL_LOCK_STATE char(1) NOT NULL,\" +\n \" HL_LOCK_TYPE char(1) NOT NULL,\" +\n \" HL_LAST_HEARTBEAT bigint NOT NULL,\" +\n \" HL_ACQUIRED_AT bigint,\" +\n \" HL_USER varchar(128) NOT NULL,\" +\n \" HL_HOST varchar(128) NOT NULL,\" +\n \" HL_HEARTBEAT_COUNT integer,\" +\n \" HL_AGENT_INFO varchar(128),\" +\n \" HL_BLOCKEDBY_EXT_ID bigint,\" +\n \" HL_BLOCKEDBY_INT_ID bigint,\" +\n \" PRIMARY KEY(HL_LOCK_EXT_ID, HL_LOCK_INT_ID))\");\n stmt.execute(\"CREATE INDEX HL_TXNID_INDEX ON HIVE_LOCKS (HL_TXNID)\");\n\n stmt.execute(\"CREATE TABLE NEXT_LOCK_ID (\" + \" NL_NEXT bigint NOT NULL)\");\n stmt.execute(\"INSERT INTO NEXT_LOCK_ID VALUES(1)\");\n\n stmt.execute(\"CREATE TABLE COMPACTION_QUEUE (\" +\n \" CQ_ID bigint PRIMARY KEY,\" +\n \" CQ_DATABASE varchar(128) NOT NULL,\" +\n \" CQ_TABLE varchar(128) NOT NULL,\" +\n \" CQ_PARTITION varchar(767),\" +\n \" CQ_STATE char(1) NOT NULL,\" +\n \" CQ_TYPE char(1) NOT NULL,\" +\n \" CQ_TBLPROPERTIES varchar(2048),\" +\n \" CQ_WORKER_ID varchar(128),\" +\n \" CQ_START bigint,\" +\n \" CQ_RUN_AS varchar(128),\" +\n \" CQ_HIGHEST_WRITE_ID bigint,\" +\n \" CQ_META_INFO varchar(2048) for bit data,\" +\n \" CQ_HADOOP_JOB_ID varchar(32))\");\n\n stmt.execute(\"CREATE TABLE NEXT_COMPACTION_QUEUE_ID (NCQ_NEXT bigint NOT NULL)\");\n stmt.execute(\"INSERT INTO NEXT_COMPACTION_QUEUE_ID VALUES(1)\");\n\n stmt.execute(\"CREATE TABLE COMPLETED_COMPACTIONS (\" +\n \" CC_ID bigint PRIMARY KEY,\" +\n \" CC_DATABASE varchar(128) NOT NULL,\" +\n \" CC_TABLE varchar(128) NOT NULL,\" +\n \" CC_PARTITION varchar(767),\" +\n \" CC_STATE char(1) NOT NULL,\" +\n \" CC_TYPE char(1) NOT NULL,\" +\n \" CC_TBLPROPERTIES varchar(2048),\" +\n \" CC_WORKER_ID varchar(128),\" +\n \" CC_START bigint,\" +\n \" CC_END bigint,\" +\n \" CC_RUN_AS varchar(128),\" +\n \" CC_HIGHEST_WRITE_ID bigint,\" +\n \" CC_META_INFO varchar(2048) for bit data,\" +\n \" CC_HADOOP_JOB_ID varchar(32))\");\n\n stmt.execute(\"CREATE TABLE AUX_TABLE (\" +\n \" MT_KEY1 varchar(128) NOT NULL,\" +\n \" MT_KEY2 bigint NOT NULL,\" +\n \" MT_COMMENT varchar(255),\" +\n \" PRIMARY KEY(MT_KEY1, MT_KEY2))\");\n\n stmt.execute(\"CREATE TABLE WRITE_SET (\" +\n \" WS_DATABASE varchar(128) NOT NULL,\" +\n \" WS_TABLE varchar(128) NOT NULL,\" +\n \" WS_PARTITION varchar(767),\" +\n \" WS_TXNID bigint NOT NULL,\" +\n \" WS_COMMIT_ID bigint NOT NULL,\" +\n \" WS_OPERATION_TYPE char(1) NOT NULL)\"\n );\n\n stmt.execute(\"CREATE TABLE REPL_TXN_MAP (\" +\n \" RTM_REPL_POLICY varchar(256) NOT NULL, \" +\n \" RTM_SRC_TXN_ID bigint NOT NULL, \" +\n \" RTM_TARGET_TXN_ID bigint NOT NULL, \" +\n \" PRIMARY KEY (RTM_REPL_POLICY, RTM_SRC_TXN_ID))\"\n );\n\n stmt.execute(\"CREATE TABLE MATERIALIZATION_REBUILD_LOCKS (\" +\n \" MRL_TXN_ID BIGINT NOT NULL, \" +\n \" MRL_DB_NAME VARCHAR(128) NOT NULL, \" +\n \" MRL_TBL_NAME VARCHAR(256) NOT NULL, \" +\n \" MRL_LAST_HEARTBEAT BIGINT NOT NULL, \" +\n \" PRIMARY KEY(MRL_TXN_ID))\"\n );\n\n try {\n stmt.execute(\"CREATE TABLE \\\"APP\\\".\\\"SEQUENCE_TABLE\\\" (\\\"SEQUENCE_NAME\\\" VARCHAR(256) NOT \" +\n\n \"NULL, \\\"NEXT_VAL\\\" BIGINT NOT NULL)\"\n );\n } catch (SQLException e) {\n if (e.getMessage() != null && e.getMessage().contains(\"already exists\")) {\n LOG.info(\"SEQUENCE_TABLE table already exist, ignoring\");\n } else {\n throw e;\n }\n }\n\n try {\n stmt.execute(\"CREATE TABLE \\\"APP\\\".\\\"NOTIFICATION_SEQUENCE\\\" (\\\"NNI_ID\\\" BIGINT NOT NULL, \" +\n\n \"\\\"NEXT_EVENT_ID\\\" BIGINT NOT NULL)\"\n );\n } catch (SQLException e) {\n if (e.getMessage() != null && e.getMessage().contains(\"already exists\")) {\n LOG.info(\"NOTIFICATION_SEQUENCE table already exist, ignoring\");\n } else {\n throw e;\n }\n }\n\n try {\n stmt.execute(\"CREATE TABLE \\\"APP\\\".\\\"NOTIFICATION_LOG\\\" (\\\"NL_ID\\\" BIGINT NOT NULL, \" +\n \"\\\"DB_NAME\\\" VARCHAR(128), \\\"EVENT_ID\\\" BIGINT NOT NULL, \\\"EVENT_TIME\\\" INTEGER NOT\" +\n\n \" NULL, \\\"EVENT_TYPE\\\" VARCHAR(32) NOT NULL, \\\"MESSAGE\\\" CLOB, \\\"TBL_NAME\\\" \" +\n \"VARCHAR\" +\n \"(256), \\\"MESSAGE_FORMAT\\\" VARCHAR(16))\"\n );\n } catch (SQLException e) {\n if (e.getMessage() != null && e.getMessage().contains(\"already exists\")) {\n LOG.info(\"NOTIFICATION_LOG table already exist, ignoring\");\n } else {\n throw e;\n }\n }\n\n stmt.execute(\"INSERT INTO \\\"APP\\\".\\\"SEQUENCE_TABLE\\\" (\\\"SEQUENCE_NAME\\\", \\\"NEXT_VAL\\\") \" +\n \"SELECT * FROM (VALUES ('org.apache.hadoop.hive.metastore.model.MNotificationLog', \" +\n \"1)) tmp_table WHERE NOT EXISTS ( SELECT \\\"NEXT_VAL\\\" FROM \\\"APP\\\"\" +\n \".\\\"SEQUENCE_TABLE\\\" WHERE \\\"SEQUENCE_NAME\\\" = 'org.apache.hadoop.hive.metastore\" +\n \".model.MNotificationLog')\");\n\n stmt.execute(\"INSERT INTO \\\"APP\\\".\\\"NOTIFICATION_SEQUENCE\\\" (\\\"NNI_ID\\\", \\\"NEXT_EVENT_ID\\\")\" +\n \" SELECT * FROM (VALUES (1,1)) tmp_table WHERE NOT EXISTS ( SELECT \" +\n \"\\\"NEXT_EVENT_ID\\\" FROM \\\"APP\\\".\\\"NOTIFICATION_SEQUENCE\\\")\");\n } catch (SQLException e) {\n try {\n conn.rollback();\n } catch (SQLException re) {\n LOG.error(\"Error rolling back: \" + re.getMessage());\n }\n\n // Another thread might have already created these tables.\n if (e.getMessage() != null && e.getMessage().contains(\"already exists\")) {\n LOG.info(\"Txn tables already exist, returning\");\n return;\n }\n\n // This might be a deadlock, if so, let's retry\n if (e instanceof SQLTransactionRollbackException && deadlockCnt++ < 5) {\n LOG.warn(\"Caught deadlock, retrying db creation\");\n prepDb(conf);\n } else {\n throw e;\n }\n } finally {\n deadlockCnt = 0;\n closeResources(conn, stmt, null);\n }\n }",
"protected void txPut(int n) {}",
"private void fiveNodesTopo() {\n ReadWriteTransaction tx = dataBroker.newReadWriteTransaction();\n n(tx, true, \"n1\", Stream.of(pI(\"n1:1\"), pB(\"n1:2\"), pI(\"n1:3\"), pO(\"n1:4\")));\n n(tx, true, \"n2\", Stream.of(pI(\"n2:1\"), pB(\"n2:2\"), pO(\"n2:3\"), pI(\"n2:4\")));\n n(tx, true, \"n3\", Stream.of(pO(\"n3:1\"), pB(\"n3:2\"), pO(\"n3:3\"), pI(\"n3:4\")));\n n(tx, true, \"n4\", Stream.of(pO(\"n4:1\"), pI(\"n4:2\"), pB(\"n4:3\"), pB(\"n4:4\")));\n n(tx, true, \"n5\", Stream.of(pI(\"n5:1\"), pB(\"n5:2\"), pB(\"n5:3\"), pO(\"n5:4\")));\n l(tx, \"n2\", \"n2:3\", \"n3\", \"n3:4\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n3\", \"n3:1\", \"n1\", \"n1:1\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n3\", \"n3:3\", \"n5\", \"n5:1\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n4\", \"n4:1\", \"n1\", \"n1:3\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n1\", \"n1:4\", \"n2\", \"n2:4\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n5\", \"n5:4\", \"n4\", \"n4:2\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n try {\n tx.submit().checkedGet();\n } catch (TransactionCommitFailedException e) {\n e.printStackTrace();\n }\n }",
"@Test\n public void processTransactionManagerCaseB()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n Assert.assertEquals(true,trans_mang.processTransaction(acc.get_Account_Number(),acc2.get_Account_Number(),30));\n }",
"@Test\n public void processTransactionManagerCaseA()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc.get_Account_Number(),acc2.get_Account_Number(),2000));\n }",
"AtomicData createAtomicData();",
"@Override\n public void startTx() {\n \n }",
"public String getTransactionState();",
"private static void makeReadOnlyOperation(int trans_id, int var_id) {\n\n Transaction txn = transactions.get(trans_id);\n txn.readVariableReadOnly(var_id);\n // may be redundant\n addVariableToReadOnlyMap(trans_id, var_id);\n\n }",
"private String formTransactionKey(String transaction){\n\t\tString transKey = \"\";\n\t\tString[] transKeyValues = transaction.split(\" \");\n\t\tfor(String parts : transKeyValues){\n\t\t\tif(parts.matches(\".*\\\\d+.*\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttransKey += parts;\n\t\t\t\tString existingKey = isKeyAlreadyFormed(transKey);\n\t\t\t\tif(!existingKey.equals(\"\"))\n\t\t\t\t\treturn existingKey;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn transKey;\n\t}",
"public static void processCustomerMgmt() throws IOException, XMLStreamException, ParseException {\n futureNullDate = formatter.parse(\"2999-12-31\");\n deleteDatabase();\n\n XMLInputFactory xmlif = XMLInputFactory.newInstance();\n\n xmlif.setEventAllocator(new XMLEventAllocatorImpl());\n allocator = xmlif.getEventAllocator();\n\n XMLStreamReader xmlr = xmlif.createXMLStreamReader(filename, new FileInputStream(filename));\n\n int eventType = xmlr.getEventType();\n\n while (xmlr.hasNext()) {\n eventType = xmlr.next();\n\n if (eventType == XMLStreamConstants.START_ELEMENT && xmlr.getLocalName().equals(\"Action\") && mode == Mode.NULL) {\n StartElement event = getXMLEvent(xmlr).asStartElement();\n\n Attribute attr = event.getAttributeByName(new QName(\"ActionType\"));\n // System.out.println (\"Action: \" + attr.getValue());\n\n\n switch (attr.getValue()) {\n case \"NEW\":\n System.out.println(\"Start NEW\");\n mode = Mode.NEW;\n break;\n case \"ADDACCT\":\n System.out.println(\"Start ADDACCT\");\n mode = Mode.ADDACCT;\n break;\n case \"UPDCUST\":\n System.out.println(\"Start UPDCUST\");\n mode = Mode.UPDCUST;\n break;\n case \"UPDACCT\":\n System.out.println(\"Start UPDACCT\");\n mode = Mode.UPDACCT;\n break;\n case \"CLOSEACCT\":\n System.out.println(\"Start CLOSEACCT\");\n mode = Mode.CLOSEACCT;\n break;\n case \"INACT\":\n System.out.println(\"Start INACT\");\n mode = Mode.INACT;\n break;\n default:\n throw new IllegalArgumentException(\"Invalid attribute: [\" + attr.getValue() + \"]\");\n }\n\n attr = event.getAttributeByName(new QName(\"ActionTS\"));\n actionTimestamp = timeStamp.parse(attr.getValue());\n }\n\n if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"Action\") && mode != Mode.NULL) {\n mode = Mode.NULL;\n actionTimestamp = null;\n }\n\n\n if (eventType == XMLStreamConstants.START_ELEMENT && xmlr.getLocalName().equals(\"Customer\") && mode != Mode.NULL) {\n StartElement event = getXMLEvent(xmlr).asStartElement();\n\n accounts = new ArrayList<DimAccount>();\n String customerID;\n\n Attribute attr = event.getAttributeByName(new QName(\"C_ID\"));\n customerID = attr.getValue();\n System.out.println(\" Customer ID = [\" + customerID + \"]\");\n\n if (mode == Mode.NEW || mode == Mode.UPDCUST || mode == Mode.INACT) {\n dimCustomer = new DimCustomer();\n dimCustomer.setCustomerID(Long.parseLong(attr.getValue())); // I think this gets moved into logic below...\n\n ////////\n // Kimballian Type 2 (New Customer Record)\n dimCustomer.setIsCurrent(true);\n dimCustomer.setEffectiveDate(actionTimestamp);\n dimCustomer.setEndDate(futureNullDate);\n }\n\n if (mode == Mode.ADDACCT || mode == Mode.UPDACCT || mode == Mode.CLOSEACCT) {\n dimCustomer = DimCustomer.find.where().eq(\"customer_id\", customerID).eq(\"is_current\", \"1\").findUnique();\n }\n\n // Copy the original row before making any changes...\n if (mode == Mode.UPDCUST || mode == Mode.INACT) {\n DimCustomer dimCustomerOld = DimCustomer.find.where().eq(\"customer_id\", customerID).eq(\"is_current\", \"1\").findUnique();\n DimCustomer.copyData(dimCustomerOld, dimCustomer);\n\n ////////\n // Kimballian Type 2 (Old Customer Record)\n dimCustomerOld.setIsCurrent(false);\n dimCustomerOld.setEndDate(actionTimestamp);\n dimCustomerOld.save();\n dimCustomerOld = null;\n System.out.println(\" Copy old customer record\");\n }\n\n if (mode == Mode.NEW) {\n dimCustomer.setStatus(\"Active\");\n }\n\n if (mode == Mode.INACT) {\n dimCustomer.setStatus(\"Inactive\");\n }\n\n attr = event.getAttributeByName(new QName(\"C_TAX_ID\"));\n if (attr != null) {\n dimCustomer.setTaxID(attr.getValue());\n }\n\n attr = event.getAttributeByName(new QName(\"C_GNDR\"));\n if (attr != null) {\n dimCustomer.setGender(attr.getValue());\n }\n\n attr = event.getAttributeByName(new QName(\"C_TIER\"));\n if (attr != null) {\n if (!attr.getValue().trim().isEmpty()) {\n dimCustomer.setTier(Integer.parseInt(attr.getValue()));\n }\n else {\n dimCustomer.setTier(null);\n }\n }\n\n attr = event.getAttributeByName(new QName(\"C_DOB\"));\n if (attr != null) {\n dimCustomer.setDob(formatter.parse(attr.getValue()));\n }\n\n } // START_ELEMENT \"Customer\"\n\n\n if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"Customer\") && mode != Mode.NULL) {\n if (mode == Mode.NEW || mode == Mode.UPDCUST || mode == Mode.INACT) {\n dimCustomer.save();\n System.out.println(\" Save customer UID = [\" + dimCustomer.getsK_CustomerID() + \"] Customer ID = [\" + dimCustomer.getCustomerID() + \"]\");\n }\n\n // Iterate over accounts\n for (DimAccount account : accounts) {\n account.setsK_CustomerId(dimCustomer.getsK_CustomerID());\n account.save();\n System.out.println(\" Save account UID = [\" + account.getsK_AccountId() + \"] Account ID = [\" + account.getAccountID() + \"]\");\n }\n\n //for (DimAccount account : accounts) { // I'm going for an explicit delete... just in case GC can't sort it out.\n // accounts.remove(account);\n //}\n accounts = null;\n dimCustomer = null;\n } // END_ELEMENT \"Customer\"\n\n\n if (eventType == XMLStreamConstants.START_ELEMENT && xmlr.getLocalName().equals(\"Account\") && mode != Mode.NULL) {\n StartElement event = getXMLEvent(xmlr).asStartElement();\n\n Attribute attr = event.getAttributeByName(new QName(\"CA_ID\"));\n String accountID = attr.getValue();\n System.out.println(\" Account ID = [\" + accountID + \"]\");\n\n // If we're here, we will always create a new account...\n dimAccount = new DimAccount();\n dimAccount.setAccountID(accountID);\n\n ////////\n // Kimballian Type 2 (New Account Record)\n dimAccount.setIsCurrent(true);\n dimAccount.setEffectiveDate(actionTimestamp);\n dimAccount.setEndDate(futureNullDate);\n\n if (mode == Mode.UPDACCT || mode == Mode.CLOSEACCT) {\n DimAccount dimAccountOld = DimAccount.find.where().eq(\"account_id\", accountID).eq(\"is_current\", \"1\").findUnique();\n DimAccount.copyData(dimAccountOld, dimAccount);\n\n ////////\n // Kimballian Type 2 (Old Account Record)\n dimAccountOld.setIsCurrent(false);\n dimAccountOld.setEndDate(actionTimestamp);\n dimAccountOld.save();\n dimAccountOld = null;\n System.out.println(\" Copy old account record\");\n }\n\n if (mode == Mode.NEW || mode == Mode.ADDACCT) {\n dimAccount.setStatus(\"Active\");\n }\n\n if (mode == Mode.CLOSEACCT) {\n dimAccount.setStatus(\"Inactive\");\n }\n\n attr = event.getAttributeByName(new QName(\"CA_TAX_ST\"));\n if (attr != null) {\n dimAccount.setTaxStatus(attr.getValue());\n }\n\n } // START_ELEMENT \"Account\"\n\n\n if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"Account\") && mode != Mode.NULL) {\n accounts.add(dimAccount);\n\n dimAccount = null;\n }\n\n\n if (eventType == XMLStreamConstants.CHARACTERS) {\n tagContent = xmlr.getText().trim();\n }\n\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_L_NAME\") && mode != Mode.NULL) {\n dimCustomer.setLastName(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_F_NAME\") && mode != Mode.NULL) {\n dimCustomer.setFirstName(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_M_NAME\") && mode != Mode.NULL) {\n dimCustomer.setMiddleInitial(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_ADLINE1\") && mode != Mode.NULL) {\n dimCustomer.setAddressLine1(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_ADLINE2\") && mode != Mode.NULL) {\n dimCustomer.setAddressLine2(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_ZIPCODE\") && mode != Mode.NULL) {\n dimCustomer.setPostalCode(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_CITY\") && mode != Mode.NULL) {\n dimCustomer.setCity(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_STATE_PROV\") && mode != Mode.NULL) {\n dimCustomer.setStateProv(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_CTRY\") && mode != Mode.NULL) {\n dimCustomer.setCountry(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_PRIM_EMAIL\") && mode != Mode.NULL) {\n dimCustomer.seteMail1(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_ALT_EMAIL\") && mode != Mode.NULL) {\n dimCustomer.seteMail2(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"CA_B_ID\") && mode != Mode.NULL) {\n dimAccount.setBrokerId(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"CA_NAME\") && mode != Mode.NULL) {\n dimAccount.setAccountDesc(tagContent);\n }\n else if (eventType == XMLStreamConstants.START_ELEMENT && xmlr.getLocalName().equals(\"C_PHONE_1\") && mode != Mode.NULL) {\n phone = \"\";\n }\n else if (eventType == XMLStreamConstants.START_ELEMENT && xmlr.getLocalName().equals(\"C_PHONE_2\") && mode != Mode.NULL) {\n phone = \"\";\n }\n else if (eventType == XMLStreamConstants.START_ELEMENT && xmlr.getLocalName().equals(\"C_PHONE_3\") && mode != Mode.NULL) {\n phone = \"\";\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_CTRY_CODE\") && mode != Mode.NULL) {\n if (!tagContent.trim().isEmpty()) {\n phone += \"+\" + tagContent;\n }\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_AREA_CODE\") && mode != Mode.NULL) {\n if (!tagContent.trim().isEmpty()) {\n phone += \" (\" + tagContent + \")\";\n }\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_LOCAL\") && mode != Mode.NULL) {\n if (!tagContent.trim().isEmpty()) {\n phone += \" \" + tagContent;\n }\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_EXT\") && mode != Mode.NULL) {\n if (!tagContent.trim().isEmpty()) {\n phone += \" x\" + tagContent;\n }\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_PHONE_1\") && mode != Mode.NULL) {\n dimCustomer.setPhone1(phone.trim());\n phone = \"\";\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_PHONE_2\") && mode != Mode.NULL) {\n dimCustomer.setPhone2(phone.trim());\n phone = \"\";\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_PHONE_3\") && mode != Mode.NULL) {\n dimCustomer.setPhone3(phone.trim());\n phone = \"\";\n }\n\n }\n }",
"@Override\n public void beginDatabaseBatchWrite() throws BlockStoreException {\n if (!autoCommit) {\n return;\n }\n if (instrument)\n beginMethod(\"beginDatabaseBatchWrite\");\n\n batch = db.createWriteBatch();\n uncommited = new HashMap<ByteBuffer, byte[]>();\n uncommitedDeletes = new HashSet<ByteBuffer>();\n utxoUncommittedCache = new HashMap<ByteBuffer, UTXO>();\n utxoUncommittedDeletedCache = new HashSet<ByteBuffer>();\n autoCommit = false;\n if (instrument)\n endMethod(\"beginDatabaseBatchWrite\");\n }",
"public static void beginTransaction(int trans_id, String trans_type) {\n\n // System.out.println(\"beginTransaction\");\n long currTime = time;\n time++;\n Transaction txn = new Transaction(trans_id, currTime, trans_type);\n transactions.put(trans_id, txn);\n\n if (trans_type == \"RO\") {\n setVariableListForReadOnlyTxn(txn);\n System.out.println(\"T\" + trans_id + \" begins and is Read Only\");\n } else {\n System.out.println(\"T\" + trans_id + \" begins\");\n }\n\n\n }",
"void setTransactionId( long txId )\n {\n this.transactionId = txId;\n }",
"public interface TransactionContext extends Serializable {\n\n\n class Factory {\n public static TransactionContext getInstance() {\n TransactionContext instance = TransactionContextImpl.getInstance();\n if (instance == null) {\n instance = TransactionContextImpl.newInstance();\n }\n return instance;\n }\n }\n\n void setContextData(String key, Object value);\n\n <T> T getContextData(String key, Class<T> valueType);\n\n EncodeProtocol getProtocol();\n\n String getServiceName();\n\n String getMethod();\n\n String getVersion();\n\n /** 获取option整个值(int型) */\n int getOptions();\n\n /** 判断option中二进制第index位是否为1 */\n boolean getOption(int index);\n\n int getSequence();\n\n String getCallerId();\n\n long getSessionTid();\n\n long getCallerTid();\n\n long getCalleeTid();\n\n @Deprecated\n long getUid();\n\n long getStartTime();\n\n @Deprecated\n int getConcurrentCount();\n\n String getUip();\n\n String getForwardedFor();\n\n String getProxyIP();\n\n InetAddress getCallerIP();\n\n int getCallerPort();\n\n Map<String, String> getCookie();\n\n TransactionContext setCookie(Map<String, String> cookie);\n\n TransactionContext setCookie(String key, String value);\n\n String getUserSign();\n\n TransactionContext setTimeout(long timeout);\n\n long getTimeout();\n\n String getReturnCode();\n\n void setReturnCode(String returnCode);\n\n String getReturnMessage();\n\n void setReturnMessage(String returnMessage);\n\n String getErrorGroup();\n\n void setErrorGroup(String errorGroup);\n\n String getErrorLevel();\n\n String getErrorLocation();\n\n boolean isCircuitBroken();\n\n void setCircuitBroken(boolean circuitBroken);\n\n /** 是否重试 */\n boolean isRetry();\n\n void setRetry(boolean retry);\n\n @Deprecated\n long getReceivedTime();\n\n @Deprecated\n int getCalleeTime1();\n\n @Deprecated\n int getCalleeTime2();\n\n @Deprecated\n int getSendLength();\n\n @Deprecated\n int getRecvLength();\n\n @Deprecated\n Long getMscTraceId();\n\n @Deprecated\n Long getMscSpanId();\n\n String getRemoteAddress();\n\n String getLocalAddress();\n\n String getDomain();\n}",
"protected abstract Object newTransaction(int isolationLevel) throws TransactionInfrastructureException;",
"AtomicDataAttributes createAtomicDataAttributes();",
"void readOnlyTransaction();",
"@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);",
"private void logTx(String message) throws IOException {\n\t\tlog.write(\"TX \" + System.currentTimeMillis() +\n\t\t\t\": \" + message + \"\\n\");\n\t}",
"private void fourNodesTopo() {\n ReadWriteTransaction tx = dataBroker.newReadWriteTransaction();\n n(tx, true, \"n1\", Stream.of(pB(\"n1:1\"), pB(\"n1:2\"), pI(\"n1:3\"), pO(\"n1:4\"), pO(\"n1:5\")));\n n(tx, true, \"n2\", Stream.of(pB(\"n2:1\"), pB(\"n2:2\"), pO(\"n2:3\"), pI(\"n2:4\"), pI(\"n2:5\")));\n n(tx, true, \"n3\", Stream.of(pB(\"n3:1\"), pB(\"n3:2\"), pO(\"n3:3\"), pO(\"n3:4\"), pI(\"n3:5\")));\n n(tx, true, \"n4\", Stream.of(pB(\"n4:1\"), pB(\"n4:2\"), pI(\"n4:3\"), pI(\"n4:4\"), pO(\"n4:5\")));\n l(tx, \"n1\", \"n1:5\", \"n2\", \"n2:5\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n1\", \"n1:4\", \"n4\", \"n4:4\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n2\", \"n2:3\", \"n4\", \"n4:3\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n3\", \"n3:4\", \"n2\", \"n2:4\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n4\", \"n4:5\", \"n3\", \"n3:5\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n try {\n tx.submit().checkedGet();\n } catch (TransactionCommitFailedException e) {\n e.printStackTrace();\n }\n }",
"private static void executeTransaction(IgniteCache<Long, Person> cache) {\n try (Transaction tx = Ignition.ignite().transactions().txStart()) {\n Person val = cache.get(id);\n\n System.out.println(\"Read value: \" + val);\n\n val = cache.getAndPut(id, new Person(id, \"Isaac\", \"Newton\"));\n\n System.out.println(\"Overwrote old value: \" + val);\n\n val = cache.get(id);\n\n System.out.println(\"Read value: \" + val);\n\n tx.commit();\n }\n\n System.out.println(\"Read value after commit: \" + cache.get(id));\n\n // Clear entry from memory, but keep it in store.\n cache.clear(id);\n\n // Operations on this cache will not affect store.\n IgniteCache<Long, Person> cacheSkipStore = cache.withSkipStore();\n\n System.out.println(\"Read value skipping store (expecting null): \" + cacheSkipStore.get(id));\n\n System.out.println(\"Read value with store lookup (expecting NOT null): \" + cache.get(id));\n\n // Expecting not null, since entry should be in memory since last call.\n System.out.println(\"Read value skipping store (expecting NOT null): \" + cacheSkipStore.get(id));\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getTransactions(int index) {\n return transactions_.get(index);\n }",
"Set<SoftLock> collectAllSoftLocksForTransactionID(TransactionID transactionID);",
"@Test\n public void testAllDirtySucceeds()\n throws IOException, DbException, TransactionAbortedException {\n HeapFile f = SystemTestUtil.createRandomHeapFile(2, 512 * 10, null, null);\n Database.resetBufferPool(1);\n\n // BEGIN TRANSACTION\n Transaction t = new Transaction();\n t.start();\n\n // Insert a new row\n TransactionTestUtil.insertRow(f, t);\n\n // Scanning the table must fail because it can't evict the dirty page\n try {\n TransactionTestUtil.findMagicTuple(f, t);\n } catch (DbException e) {\n fail(\"Expected scan to run be able to evict buffer pages\");\n }\n t.commit();\n }",
"@Test\n public void testScan() {\n // Choose, among the available ones, a random key as starting point for the scan transaction.\n int startScanKeyNumber = new Random().nextInt(((RiakKVClientTest.recordsToInsert) - (RiakKVClientTest.recordsToScan)));\n // Prepare a HashMap vector to store the scan transaction results.\n Vector<HashMap<String, ByteIterator>> scannedValues = new Vector<>();\n // Check whether the scan transaction is correctly performed or not.\n Assert.assertEquals(\"Scan transaction FAILED.\", OK, RiakKVClientTest.riakClient.scan(RiakKVClientTest.bucket, ((RiakKVClientTest.keyPrefix) + (Integer.toString(startScanKeyNumber))), RiakKVClientTest.recordsToScan, null, scannedValues));\n // After the scan transaction completes, compare the obtained results with the expected ones.\n for (int i = 0; i < (RiakKVClientTest.recordsToScan); i++) {\n Assert.assertEquals(\"Scan test FAILED: the current scanned key is NOT MATCHING the expected one.\", RiakKVClientTest.createExpectedHashMap((startScanKeyNumber + i)).toString(), scannedValues.get(i).toString());\n }\n }",
"private synchronized int getNewTransactionId() throws IOException {\n File file = new File(TA_ID_FILE_NAME);\n int transactionId = 0;\n\n if (file.exists()) {\n FileReader freader = new FileReader(file);\n BufferedReader breader = new BufferedReader(freader);\n\n String stringtaid = breader.readLine();\n transactionId = Integer.parseInt(stringtaid);\n\n breader.close();\n } else {\n file.createNewFile();\n }\n\n FileWriter writer = new FileWriter(TA_ID_FILE_NAME);\n writer.write(Integer.toString(transactionId + 1));\n writer.close();\n\n return transactionId;\n }",
"void transaction(String controllerName, String policyName, Metric transaction);",
"private void handleTransaction() throws Exception {\r\n\t\tString receiver;\r\n\t\tString amount;\r\n\t\tMessage sendTransaction = new Message().addData(\"task\", \"transaction\").addData(\"message\", \"do_transaction\");\r\n\t\tMessage response;\r\n\r\n\t\tthis.connectionData.getTerminal().write(\"enter receiver\");\r\n\t\treceiver = this.connectionData.getTerminal().read();\r\n\r\n\t\t// tries until a amount is typed that's between 1 and 10 (inclusive)\r\n\t\tdo {\r\n\t\t\tthis.connectionData.getTerminal().write(\"enter amount (1-10)\");\r\n\t\t\tamount = this.connectionData.getTerminal().read();\r\n\t\t} while (!amount.matches(\"[0-9]|10\"));\r\n\r\n\t\t// does the transaction\r\n\t\tsendTransaction.addData(\"receiver\", this.connectionData.getAes().encode(receiver)).addData(\"amount\",\r\n\t\t\t\tthis.connectionData.getAes().encode(amount));\r\n\r\n\t\tthis.connectionData.getConnection().write(sendTransaction);\r\n\r\n\t\tresponse = this.connectionData.getConnection().read();\r\n\t\tif (response.getData(\"message\").equals(\"success\")) {\r\n\t\t\tthis.connectionData.getTerminal().write(\"transaction done\");\r\n\t\t} else {\r\n\t\t\tthis.connectionData.getTerminal().write(\"transaction failed. entered correct username?\");\r\n\t\t}\r\n\t}",
"protected abstract Transaction createAndAdd();",
"private int readByReadOnlyTransaction(int ts, Operation o, Variable v) {\n o.setValue(v.getLastCommittedValueBefore(ts));\n return v.getLastCommittedValueBefore(ts);\n }",
"private boolean _read(Transaction trans, DBObject obj, int index,\n boolean forUpdate, Filter filter) throws StorageException,\n LockConflict {\n long previousHolder = 0;\n if (forUpdate)\n previousHolder = lock(trans, index);\n\n // Get the location of the row on this page\n int loc = dir.loc(index);\n\n if (!RowHeader.isDeleted(pageBuffer, loc)) {\n // Read the tuple\n pageBuffer.get(loc + RowHeader.getOverhead(), obj);\n\n if (filter == null || filter.passes(obj)) {\n if (forUpdate) {\n // log the lock (needed for multi-versioning undo purposes)\n attachUndo(UNDO_LOCK, 10).getData().putShort((short) index)\n .putLong(previousHolder);\n attachRedo(REDO_LOCK, 10).getData().putShort((short) index)\n .putLong(trans.getTransId());\n }\n return true;\n }\n }\n\n if (forUpdate) {\n // Replace the lock before returning false\n if (previousHolder == 0)\n RowHeader.setLocked(pageBuffer, loc, false);\n else\n RowHeader.setLockHolder(pageBuffer, loc, previousHolder);\n }\n\n return false;\n }",
"public void testSaveTableByTimeWithTxTemplateInTest() throws Exception {\n\t\tfailed = false;\n\t\tlogger.info(\"loop test 2\");\n\n\t\tExecutorService executor = Executors.newFixedThreadPool(nThreads * 2);\n\t\tList<Callable<Object>> tasks1 = insertTasks();\n\n\t\tList<Callable<Object>> tasks2 = updateTasksFailing();\n\n\t\tCollection<Callable<Object>> tasks = new ArrayList<>();\n\t\ttasks.addAll(tasks1);\n\t\ttasks.addAll(tasks2);\n\n\t\trunTasks(executor, tasks);\n\n\t\tshutdownExecutor(executor);\n\t\tlogger.info(\"I have {} Tables saved\", getCountTableFailing());\n\t}",
"Transaction beginTx();",
"public boolean processTransaction() {\r\n\t\t\r\n\t\t\tif(verifySignature() == false) {\r\n\t\t\t\tSystem.out.println(\"#Transaction Signature failed to verify\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\ttransactionId = calulateHash();\r\n\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\treturn true;\r\n\t\t}",
"public static int read(int xact, int key) throws Exception {\n\t if (! mData.containsKey(key))\n\t\t\tthrow new Exception(\"Try to read a non-existing key\");\n\t\t\n\t int index = find_right_version(xact, key);\n\t Version v = mData.get(key).get(index);\n\t \n\t // Change RTS if necessary\n\t if (xact > v.getRTS())\n\t \tmData.get(key).get(index).setRTS(xact);\n\t \n\t Transaction tran = mTransactions.get(xact);\n\t tran.addReadList(new Tuple(key, v.getValue()));\n\t mData.get(key).get(index).addReadList(tran);\n\t System.out.println(\"T(\"+(xact+1)+\"):R(\"+key+\") => \"+v.getValue());\n\t \n\t return v.getValue();\n }",
"UUID getTransactionId();",
"public void testSaveTableByTimeWithTxTemplateInService() throws Exception {\n\t\tfailed = false;\n\t\tlogger.info(\"loop test 3\");\n\n\t\tExecutorService executor = Executors.newFixedThreadPool(nThreads * 2);\n\t\tList<Callable<Object>> tasks1 = insertTasks();\n\n\t\tList<Callable<Object>> tasks2 = updateTasksFailing2();\n\n\t\tCollection<Callable<Object>> tasks = new ArrayList<>();\n\t\ttasks.addAll(tasks1);\n\t\ttasks.addAll(tasks2);\n\n\t\trunTasks(executor, tasks);\n\n\t\tshutdownExecutor(executor);\n\t\tlogger.info(\"I have {} Tables saved\", getCountTableServiceFailing());\n\t}",
"private void transactionHash(int i, HashTreeNode htn, String transaction) {\n\t\tVector itemsetList = new Vector();\n\t\tint length;\n\t\tString temp;\n\t\tItemsetNode tempNode = new ItemsetNode();\t\t\n\t\tStringTokenizer st;\n\t\t\n\t\tif(htn.nodeAttr == 2) {\n\t\t\titemsetList = (Vector)htn.itemsetList;\n\t\t\tlength = itemsetList.size();\n\t\t\tfor(int j = 0; j<length; j++) {\n\t\t\t\tst = new StringTokenizer(transaction);\n\t\t\t\ttempNode = (ItemsetNode)itemsetList.get(j);\n\t\t\t\ttemp = getItemAt(tempNode.itemset, htn.nodeDepth);\n\t\t\t\twhile(st.hasMoreTokens()) {\n\t\t\t\t\tif(st.nextToken().compareToIgnoreCase(temp) == 0) {\n\t\t\t\t\t\t((ItemsetNode)itemsetList.get(j)).count++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\telse { //HashTable node\n\t\t\tfor(int t = i+1; t<=itemsetSize(transaction); t++) {\n\t\t\t\tif(htn.hashTable.containsKey((getItemAt(transaction, t)))){\n\t\t\t\t\ttransactionHash(i, (HashTreeNode)htn.hashTable.get(getItemAt(transaction, t)), transaction);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"<T> T executeInTransaction(OperationsCallback<K, V, T> callback);",
"@java.lang.Override\n public com.google.protobuf.ByteString getTransactions(int index) {\n return instance.getTransactions(index);\n }",
"public void run() {\n \n \t//overall loop which runs until all the transactions have been processed\n while(true) {\n \t\n \t//instantiate the local cachelist\n \tcacheList = new Cache[constants.numLetters];\n \tfor (int k = A; k <= Z; k++) {\n cacheList[k] = new Cache(accounts[k]);\n \n \t}\n \t\n \t//parsing the input file \n \tString[] commands = transaction.split(\";\");\n \tfor (int i = 0; i < commands.length; i++) {\n\t \t \n\t \tString[] words = commands[i].trim().split(\"\\\\s\");\n\t if (words.length < 3) throw new InvalidTransactionError();\n\t \n\t \n\t //sets the read lock for the cache of the account.\n\t Cache lhs = parseAccount(words[0]);\n\t \n\t if (!words[1].equals(\"=\"))\n\t throw new InvalidTransactionError();\n\t \n\t int rhs = parseAccountOrNum(words[2]);\n\t for (int j = 3; j < words.length; j+=2) {\n\t if (words[j].equals(\"+\"))\n\t rhs += parseAccountOrNum(words[j+1]);\n\t else if (words[j].equals(\"-\"))\n\t rhs -= parseAccountOrNum(words[j+1]);\n\t else\n\t throw new InvalidTransactionError();\n\t }\n\t //sets the write lock for the account in the cache\n\t lhs.writeCache(rhs);\n\t \n\t }\n \t\n\t //for loop \n \t/*int i = 0;\n\t \n\t try {\n\t \tfor (i = A; i <= Z; i++) {\n\t \t\tcacheList[i].openCache();\n\t \t}\n\t\t\t} \n\t catch (TransactionAbortException e) {\n\t \tfor (int j = A; j < i; j++) {\n\t \t\tcacheList[j].closeCache();\n\t\t\t\t}\n\t \tSystem.out.println(\"open abort: \" + transaction);\n\t\t\t\tcontinue;\n\t\t\t}\n\t \n\t //try and verify do the same as the open locks \n\t try {\n\t \tfor (i = A; i <= Z; i++) {\n\t \t\tcacheList[i].verify();\n\t \t}\n\t\t\t}\n\t \n\t catch (TransactionAbortException e) {\n\t \tfor (int j = A; j < i; j++) {\n\t \t\tcacheList[j].closeCache();\n\t\t\t\t}\n\t \tSystem.out.println(\"verify abort: \" + transaction);\n\t\t\t\tcontinue;\n\t\t\t}\n\t \n\t //loops to commit\n\t for (int k = A; k <= Z; k ++) {\n \t\tcacheList[k].commit();\n \t}\n\t \n\t System.out.println(\"commit: \" + transaction);\n\t \n\t //loops to close\n\t for (int k = A; k <= Z; k ++) {\n\t \tcacheList[k].closeCache();\n \t}\n\t \n\t break;*/\n\t \n \t//Code needed for concurrency programming, Loops over the entire cache list 4 different time\n \t//and in order first attempts to open each caches locks, and then verifies all caches, then commits\n \t//the caches, and finally closes all the locks for the caches. If it any point there is an exception\n \t//is thrown then checks will end and all the accounts will be closed and the loop will restart from the top\n \t//restart the transaction\n \ttry {\n \t\tfor (int i = A; i <= Z; i++) {\n\t \t\tcacheList[i].openCache();\n\t \t}\n \t\t\n \t\tfor (int i = A; i <= Z; i++) {\n\t \t\tcacheList[i].verify();\n\t \t}\n \t\t\n \t\tfor (int k = A; k <= Z; k ++) {\n \t\tcacheList[k].commit();\n \t}\n \t\t\n \t\tSystem.out.println(\"commit: \" + transaction);\n \t\t\n \t\tfor (int k = A; k <= Z; k ++) {\n\t\t \tcacheList[k].closeCache();\n\t \t}\n \t\t\n \t\tbreak;\n \t\t\n\t\t\t} catch (TransactionAbortException e) {\n\t\t\t\tfor (int k = A; k <= Z; k ++) {\n\t\t \tcacheList[k].closeCache();\n\t \t}\n\t\t\t\tcontinue;\n\t\t\t}\n \t\n }//while loop\n \n }",
"public abstract void readDataItem(BDTuple tuple) throws RollbackException;",
"public void endOrAbort(HashMap<String, HashMap<String, Object>> transactions, HashMap<Character, HashMap<String, Object>> locks, String tr, String condition, HashMap<String, LinkedList<String>> blockedOp) throws IOException {\n if (transactions.get(tr).get(\"State\").equals(\"Blocked\") && condition.equals(\"Commited\")) {\n String transaction = ((ArrayList) transactions.get(tr).get(\"Blocked_By\")).get(((ArrayList) transactions.get(tr).get(\"Blocked_By\")).size() - 1).toString();\n blockedOp.get(transaction).addLast(tr);\n ((ArrayList) transactions.get(tr).get(\"Blocked_Operations\")).add(\"e\"+tr.charAt(1));\n fw.write(\"Transaction is \"+transactions.get(tr).get(\"State\")+\" so nothing will happen \\n\");\n return;\n }\n if (condition.equals(\"Commited\")) {\n fw.write(\"Commiting the transaction \" + tr +\"\\n\");\n }\n else {\n fw.write(\"Aborting the transaction \" + tr+\"\\n\");\n }\n /* Updating the Lock Table records with respect to current transaction */\n transactions.get(tr).put(\"State\", condition);\n transactions.get(tr).put(\"Blocked_By\", new ArrayList());\n transactions.get(tr).put(\"Blocked_Operations\", new ArrayList());\n ArrayList<Character> ch = new ArrayList<>();\n for (Character lock : locks.keySet()) {\n HashMap<String, Object> currentLock = locks.get(lock);\n ArrayList<String> tIdList = (ArrayList) currentLock.get(\"tid\");\n if (tIdList.size() > 0 && tIdList.contains(tr)) {\n if (tIdList.size() == 1) {\n ch.add(lock);\n } else {\n ((ArrayList)(locks.get(lock).get(\"tid\"))).remove(tr);\n }\n }\n }\n if (ch.size() > 0) {\n for (Character c : ch) {\n locks.remove(c);\n }\n }\n /*Removing the aborted transaction from blocked by list of every transaction and Activating the blocked transactions which are blocked by current transaction*/\n for (String allTransactions : transactions.keySet()) {\n ArrayList list1 = ((ArrayList) transactions.get(allTransactions).get(\"Blocked_By\"));\n if (!list1.isEmpty()) {\n if (list1.contains(tr)) {\n ((ArrayList) transactions.get(allTransactions).get(\"Blocked_By\")).remove(tr);\n list1 = ((ArrayList) transactions.get(allTransactions).get(\"Blocked_By\"));\n if (list1.size() == 0) {\n transactions.get(allTransactions).put(\"State\", \"Active\");\n ArrayList<String> operations = ((ArrayList) transactions.get(allTransactions).get(\"Blocked_Operations\"));\n ArrayList<String> operationsRef = (ArrayList<String>) operations.clone();\n for (String op : operationsRef) {\n if (blockedOp.containsKey(tr) && blockedOp.get(tr).contains(op))\n ((ArrayList) transactions.get(allTransactions).get(\"Blocked_Operations\")).remove(op);\n }\n }\n }\n }\n }\n /*Running their operations which are activated*/\n if (blockedOp.containsKey(tr)) {\n fw.write(\"Activating if any, the blocked transactions which are blocked by \"+tr+\" and running their operations \\n\");\n for (String op : blockedOp.get(tr)) {\n if (transactions.get(\"T\"+op.charAt(1)).get(\"State\").equals(\"Aborted\") || transactions.get(\"T\"+op.charAt(1)).get(\"State\").equals(\"Commited\"))\n continue;\n fw.write(\"Blocked operation \" + op + \" by \" + tr + \" will be executed \\n\");\n ConcurrencyControl concurrencyControl = new ConcurrencyControl();\n if (op.charAt(0) == 'r') {\n concurrencyControl.readTransaction(transactions, locks, op, blockedOp);\n } else if (op.charAt(0) == 'w') {\n concurrencyControl.writeTransaction(transactions, locks, op, blockedOp);\n } else {\n concurrencyControl.endOrAbort(transactions, locks, \"T\"+op.charAt(1), \"Commited\", blockedOp);\n }\n }\n blockedOp.remove(tr);\n }\n }"
] |
[
"0.601963",
"0.52055895",
"0.51795524",
"0.50439155",
"0.5000845",
"0.49922657",
"0.49137777",
"0.49037424",
"0.484345",
"0.48078132",
"0.47956473",
"0.47872764",
"0.47707012",
"0.47697645",
"0.4764559",
"0.4750625",
"0.4746316",
"0.47301686",
"0.47276923",
"0.47269177",
"0.46705747",
"0.4656691",
"0.46027935",
"0.459912",
"0.4597199",
"0.45950997",
"0.45800945",
"0.45388764",
"0.4503355",
"0.45027438",
"0.44982424",
"0.448791",
"0.44871303",
"0.44803149",
"0.44697997",
"0.4464792",
"0.44599852",
"0.44450858",
"0.44441798",
"0.44288462",
"0.44253975",
"0.44157273",
"0.4412283",
"0.4399183",
"0.439151",
"0.43871397",
"0.4386266",
"0.43858412",
"0.43763727",
"0.43747047",
"0.43732902",
"0.43685022",
"0.43591103",
"0.43433207",
"0.4340397",
"0.43298775",
"0.43289635",
"0.43207443",
"0.4309076",
"0.4308839",
"0.43049732",
"0.4301842",
"0.42921662",
"0.4284774",
"0.42779264",
"0.42700577",
"0.4262365",
"0.42615142",
"0.42555228",
"0.4249292",
"0.42488137",
"0.42441532",
"0.42426506",
"0.4240646",
"0.42360485",
"0.4231984",
"0.42310545",
"0.4229628",
"0.42265907",
"0.42231143",
"0.42141563",
"0.42111322",
"0.42091542",
"0.42063287",
"0.41952848",
"0.41942328",
"0.41918796",
"0.41892657",
"0.41783088",
"0.4170783",
"0.41697466",
"0.41686872",
"0.41674015",
"0.4166503",
"0.416604",
"0.41588125",
"0.4154331",
"0.41507113",
"0.41491947",
"0.41418654"
] |
0.5245045
|
1
|
transponiert alle Noten der Melodie um den gleichen Wert nach oben oder nach unten. Besteht die Melodie beispielsweise aus den Noten do mi re, so lauten diese nach Aufruf der Methode mit steps=3 fa la sol. Dabei liegt ein zyklischer Abschluss vor: Die sieben Noten lauten do re mi fa sol la si. Auf die letzte Note si folgt wieder do.
|
public void transpose(int steps) {
for ( Note n : this.alMelodie )
n.transpose(steps);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void reorganizeNote() {\n note = Position.orderList(note);\n }",
"@SuppressWarnings(\"unused\")\n private void transformLateralShift() {\n if (steps.size() < 3) {\n return;\n }\n final int index = steps.size() - 3;\n final MoveStep step1 = getStep(index);\n final MoveStep step2 = getStep(index + 1);\n final MoveStep step3 = getStep(index + 2);\n\n if (step1.oppositeTurn(step3)\n && ((step2.getType() == MovePath.MoveStepType.BACKWARDS) || (step2.getType() == MovePath.MoveStepType.FORWARDS))) {\n final MoveStepType stepType = step1.getType();\n final MoveStepType direction = step2.getType();\n // remove all old steps\n steps.removeElementAt(index);\n steps.removeElementAt(index);\n steps.removeElementAt(index);\n // add new step\n final MoveStep shift = new MoveStep(this, lateralShiftForTurn(stepType, direction));\n addStep(shift);\n }\n }",
"@Override\n public void mutate(Song song, int noteIndex) {\n if (Math.random() < this.getProbability()) {\n if (noteIndex > 0) {\n MidiUtil mu = new MidiUtil();\n int nbrOfTotalReversing = nbrOfAdditionalReversing + 1\n + ((int) Math.random() * nbrRange);\n ArrayList<Integer> noteIndexes = new ArrayList<Integer>();\n ArrayList<Note> notes = new ArrayList<Note>();\n noteIndexes.add(noteIndex);\n notes.add(song.getScore().getPart(0).getPhrase(0)\n .getNote(noteIndex));\n int currentIndex = noteIndex - 1;\n noteIteration: for (int i = 1; i < nbrOfTotalReversing; i++) {\n while (mu.isBlank(currentIndex) && currentIndex >= 0) {\n currentIndex--;\n }\n if (currentIndex < 0) {\n break noteIteration;\n } else {\n noteIndexes.add(currentIndex);\n notes.add(song.getScore().getPart(0).getPhrase(0)\n .getNote(currentIndex));\n }\n }\n int totalReverses = noteIndexes.size();\n for (int j = 0; j < noteIndexes.size(); j++) {\n if (withRhythmLength) {\n song.getScore()\n .getPart(0)\n .getPhrase(0)\n .setNote(notes.get(totalReverses - 1 - j),\n noteIndexes.get(j));\n } else {\n int newPitch = notes.get(totalReverses - 1 - j)\n .getPitch();\n song.getScore().getPart(0).getPhrase(0)\n .getNote(noteIndexes.get(j)).setPitch(newPitch);\n }\n }\n }\n }\n }",
"private void loveYourz()\n {\n Song loveYourz = new Song();\n loveYourz.add(new Note(noteD4, 0));\n loveYourz.add(new Note(noteBB3, 0));\n loveYourz.add(new Note(noteG3, 0));\n loveYourz.add(new Note(noteDS3, 0));\n loveYourz.add(new Note(noteC2, 0));\n loveYourz.add(new Note(noteC1, WHOLE_NOTE/2));\n\n loveYourz.add(new Note(noteD4, 0));\n loveYourz.add(new Note(noteBB3, 0));\n loveYourz.add(new Note(noteG3, 0));\n loveYourz.add(new Note(noteDS3, 0));\n loveYourz.add(new Note(noteC2, 0));\n loveYourz.add(new Note(noteC1, WHOLE_NOTE/4));\n\n loveYourz.add(new Note(noteDS4, 0));\n loveYourz.add(new Note(noteBB3, 0));\n loveYourz.add(new Note(noteG3, 0));\n loveYourz.add(new Note(noteDS2, 0));\n loveYourz.add(new Note(noteDS1, WHOLE_NOTE/4));\n\n\n loveYourz.add(new Note(noteG4, 0));\n loveYourz.add(new Note(noteDS4, 0));\n loveYourz.add(new Note(noteC4, 0));\n loveYourz.add(new Note(noteBB3, 0));\n loveYourz.add(new Note(noteGS2, 0));\n loveYourz.add(new Note(noteGS1, WHOLE_NOTE/2));\n\n loveYourz.add(new Note(noteG4, 0));\n loveYourz.add(new Note(noteDS4, 0));\n loveYourz.add(new Note(noteC4, 0));\n loveYourz.add(new Note(noteBB3, 0));\n loveYourz.add(new Note(noteGS2, 0));\n loveYourz.add(new Note(noteGS1, WHOLE_NOTE/8));\n\n loveYourz.add(new Note(noteF4, 0));\n loveYourz.add(new Note(noteGS2, 0));\n loveYourz.add(new Note(noteGS1, WHOLE_NOTE/8));\n\n loveYourz.add(new Note(noteDS4, 0));\n loveYourz.add(new Note(noteGS2, 0));\n loveYourz.add(new Note(noteGS1, WHOLE_NOTE/8));\n\n loveYourz.add(new Note(noteD4, 0));\n loveYourz.add(new Note(noteGS2, 0));\n loveYourz.add(new Note(noteGS1, WHOLE_NOTE/8));\n\n\n loveYourz.add(new Note(noteD4, 0));\n loveYourz.add(new Note(noteBB3, 0));\n loveYourz.add(new Note(noteG3, 0));\n loveYourz.add(new Note(noteDS3, 0));\n loveYourz.add(new Note(noteC2, 0));\n loveYourz.add(new Note(noteC1, WHOLE_NOTE/2));\n\n loveYourz.add(new Note(noteD4, 0));\n loveYourz.add(new Note(noteBB3, 0));\n loveYourz.add(new Note(noteG3, 0));\n loveYourz.add(new Note(noteDS3, 0));\n loveYourz.add(new Note(noteC2, 0));\n loveYourz.add(new Note(noteC1, WHOLE_NOTE/4));\n\n loveYourz.add(new Note(noteDS4, 0));\n loveYourz.add(new Note(noteBB3, 0));\n loveYourz.add(new Note(noteG3, 0));\n loveYourz.add(new Note(noteDS2, 0));\n loveYourz.add(new Note(noteDS1, WHOLE_NOTE/4));\n\n\n loveYourz.add(new Note(noteG4, 0));\n loveYourz.add(new Note(noteDS4, 0));\n loveYourz.add(new Note(noteC4, 0));\n loveYourz.add(new Note(noteBB3, 0));\n loveYourz.add(new Note(noteGS2, 0));\n loveYourz.add(new Note(noteGS1, WHOLE_NOTE/2));\n\n loveYourz.add(new Note(noteG4, 0));\n loveYourz.add(new Note(noteDS4, 0));\n loveYourz.add(new Note(noteC4, 0));\n loveYourz.add(new Note(noteBB3, 0));\n loveYourz.add(new Note(noteGS2, 0));\n loveYourz.add(new Note(noteGS1, WHOLE_NOTE/4));\n\n loveYourz.add(new Note(noteDS4, 0));\n loveYourz.add(new Note(noteGS2, 0));\n loveYourz.add(new Note(noteGS1, WHOLE_NOTE/4));\n playSong(loveYourz);\n playSong(loveYourz);\n }",
"private static void verifyAnkiNotesIntegrity() throws ClassNotFoundException {\n List<AnkiNote> notesWithoutPron = new AnkiDatabase().getNotesWithoutPron();\n for (AnkiNote note : notesWithoutPron) {\n String deutsch = note.getDeutsch();\n String tags = note.getTags();\n String articleError = \"Note has flag %s, but does not start with %s: %s%n\";\n //Notes with tag Femininum must have german field starting with e or r/e\n if (tags.contains(\"Femininum\") && !(deutsch.startsWith(\"e \") || deutsch.startsWith(\"r/e \"))) {\n System.err.printf(articleError, \"Femininum\", \"e or r/e\", note);\n }\n\n //Notes with tag Maskulinum must start with r or r/e or r/s\n if (tags.contains(\"Maskulinum\")\n && !(deutsch.startsWith(\"r \") || deutsch.startsWith(\"r/e \")\n || deutsch.startsWith(\"r/s \"))) {\n System.err.printf(articleError, \"Maskulinum\", \"r or r/e\", note);\n }\n\n //Notes with tag Neutrum must start with s or (s)\n if (tags.contains(\"Neutrum\")\n && !(deutsch.startsWith(\"s \") || deutsch.startsWith(\"(s) \")\n || deutsch.startsWith(\"r/s \"))) {\n System.err.printf(articleError, \"Neutrum\", \"s or (s)\", note);\n }\n\n //No nbsp; in notes!\n if (note.getFlds().contains(\"nbsp;\")) {\n System.err.printf(\"Note contains nbsp; :%s%n\", note);\n }\n\n //No special characters in words!\n String word = note.getWord();\n if (word != null && (word.contains(\"<\") || word.contains(\" \") || word.contains(\">\") || word.contains(\"\"))) {\n System.err.printf(\"Note contains one of characters <, ,>,-: %s%n\", note);\n }\n\n //When note has Maskulinum, Femininum or Neutrum, then it must have wort\n if ((tags.contains(\"Maskulinum\") || tags.contains(\"Femininum\") || tags.contains(\"Neutrum\"))\n && !tags.contains(\"wort\")) {\n System.err.printf(\"Note has Maskulinu, Femininum or Neutrum, but doesn't have wort: %s%n\", note);\n }\n }\n }",
"public void affichage() {\n\n if (songnumber==0) {\n vitesse=5.69f;\n depart=55510;\n while (notes.size ()<=fichier.length) {\n for (int j=0; j<fichier.length; j++) {\n if (song[j][0]==1) notes.add(new Note(430, couleurNote1, (j*30)-depart)); \n if (song[j][1]==1) notes.add(new Note(500, couleurNote2, (j*30)-depart)); \n if (song[j][2]==1) notes.add(new Note(570, couleurNote3, (j*30)-depart)); \n if (song[j][3]==1) notes.add(new Note(640, couleurNote4, (j*30)-depart));\n }\n }\n }\n\n if (songnumber==1) {\n vitesse=4;\n depart=57050;\n while (notes.size ()<=fichier2.length) {\n for (int j=0; j<fichier2.length; j++) {\n if (song2[j][0]==1) notes.add(new Note(430, couleurNote1, (j*30)-depart)); \n if (song2[j][1]==1) notes.add(new Note(500, couleurNote2, (j*30)-depart)); \n if (song2[j][2]==1) notes.add(new Note(570, couleurNote3, (j*30)-depart)); \n if (song2[j][3]==1) notes.add(new Note(640, couleurNote4, (j*30)-depart));\n }\n }\n }\n\n if (songnumber==2) {\n vitesse=4.4f;\n depart=47880;\n while (notes.size ()<=fichier4.length) {\n for (int j=0; j<fichier4.length; j++) {\n if (song4[j][0]==1) notes.add(new Note(430, couleurNote1, (j*30)-depart)); \n if (song4[j][1]==1) notes.add(new Note(500, couleurNote2, (j*30)-depart)); \n if (song4[j][2]==1) notes.add(new Note(570, couleurNote3, (j*30)-depart)); \n if (song4[j][3]==1) notes.add(new Note(640, couleurNote4, (j*30)-depart));\n }\n }\n }\n\n if (songnumber==3) {\n vitesse=7.11f;\n depart=57260;\n while (notes.size ()<=fichier3.length) {\n for (int j=0; j<fichier3.length; j++) {\n if (song3[j][0]==1) notes.add(new Note(430, couleurNote1, (j*30)-depart)); \n if (song3[j][1]==1) notes.add(new Note(500, couleurNote2, (j*30)-depart)); \n if (song3[j][2]==1) notes.add(new Note(570, couleurNote3, (j*30)-depart)); \n if (song3[j][3]==1) notes.add(new Note(640, couleurNote4, (j*30)-depart));\n }\n }\n }\n if (songnumber==4) {\n vitesse=4.22f;\n depart=60860;\n while (notes.size ()<=fichier5.length) {\n for (int j=0; j<fichier5.length; j++) {\n if (song5[j][0]==1) notes.add(new Note(430, couleurNote1, (j*30)-depart)); \n if (song5[j][1]==1) notes.add(new Note(500, couleurNote2, (j*30)-depart)); \n if (song5[j][2]==1) notes.add(new Note(570, couleurNote3, (j*30)-depart)); \n if (song5[j][3]==1) notes.add(new Note(640, couleurNote4, (j*30)-depart));\n }\n }\n }\n if (songnumber==5) {\n vitesse=4.09f;\n depart=38300;\n while (notes.size ()<=fichier6.length) {\n for (int j=0; j<fichier6.length; j++) {\n if (song6[j][0]==1) notes.add(new Note(430, couleurNote1, (j*30)-depart)); \n if (song6[j][1]==1) notes.add(new Note(500, couleurNote2, (j*30)-depart)); \n if (song6[j][2]==1) notes.add(new Note(570, couleurNote3, (j*30)-depart)); \n if (song6[j][3]==1) notes.add(new Note(640, couleurNote4, (j*30)-depart));\n }\n }\n }\n}",
"protected boolean isGoedTrio(Speler s1, Speler s2, Speler s3, int ignore) {\r\n if ((s1 != null) && (s2 != null) && (s3 != null)) {\r\n return !s1.isGespeeldTegen(s2, ignore) && !s1.isGespeeldTegen(s3, ignore) && !s2.isGespeeldTegen(s1, ignore)\r\n && !s2.isGespeeldTegen(s3, ignore) && !s3.isGespeeldTegen(s1, ignore)\r\n && !s3.isGespeeldTegen(s2, ignore);\r\n } else {\r\n return false;\r\n }\r\n }",
"public NoteM(Note note) {\n\t\tthis.id = note.getId();\n\t\tthis.idEvaluation = note.getIdEvaluation().getId();\n\t\tthis.idStudent = note.getIdStudent().getId();\n\t\tthis.score = note.getScore();\n\t\tthis.state = note.getState();\n\t\tthis.dateCreation = note.getDateCreation();\n\t\tthis.dateMerge = note.getDateMerge();\n\t\tthis.dateRemoved = note.getDateRemoved();\n\t}",
"public void setNotes(Set<INote> notes) {\r\n this.no = new NoteOperations(notes);\r\n\r\n // the total beats onscreen.\r\n this.totalBeats = no.pieceLength();\r\n\r\n this.setPreferredSize(getPreferredSize());\r\n }",
"protected String usaNote() {\n String testo = VUOTA;\n String tag = \"Note\";\n String ref = \"<references/>\";\n\n testo += LibWiki.setParagrafo(tag);\n testo += A_CAPO;\n testo += ref;\n testo += A_CAPO;\n testo += A_CAPO;\n\n return testo;\n }",
"public MainNoteComponent[] convertApproachTonesToNotes(MainNoteComponent[] partiallyCompletedNotes, List<Tone> toneList){\n\t\tChromaticNoteGenerator generator = new ChromaticNoteGenerator();\n\t\tMainNoteComponent[] fullyCompletedNotes = partiallyCompletedNotes.clone();\n\t\t\n\t\tfor (int i = 0; i < fullyCompletedNotes.length; i++) {\n\t\t\tTone tone = toneList.get(i);\n\t\t\tif (tone instanceof ApproachTone) {\n\t\t\t\tMainNoteComponent approachNote;\n\t\t\t\tif (i == fullyCompletedNotes.length-1){ \n\t\t\t\t\t//if the approach tone is at the end of a phrase then we use the previous note to work out the \n\t\t\t\t\t//next approach tone\n\t\t\t\t\t//this may be a rest tone in fact, which causes errors as we can't get approach tones for rest notes\n\t\t\t\t\tint indexDec = 1;\n\t\t\t\t\tMainNoteComponent previousNote = fullyCompletedNotes[i-indexDec];\n\t\t\t\t\twhile(previousNote.getBasicNote().equals(BasicNote.rest())){\n\t\t\t\t\t\tindexDec++;\n\t\t\t\t\t\tpreviousNote = fullyCompletedNotes[i-indexDec];\n\t\t\t\t\t}\n\t\t\t\t\tList<MainNoteComponent> approachNotes = generator.getChromaticUpAndDown(previousNote);\n\t\t\t\t\tint randIndex = RandomListIndexPicker.pickRandomIndex(approachNotes);\n\t\t\t\t\tapproachNote = approachNotes.get(randIndex);\n\t\t\t\t}\n\t\t\t\telse if (i == 0) {\n\t\t\t\t\t//if the approach tone is at the beginning, then we can only use the next note\n\t\t\t\t\tMainNoteComponent nextNote = fullyCompletedNotes[i+1];\n\t\t\t\t\tList<MainNoteComponent> approachNotes = generator.getChromaticUpAndDown(nextNote);\n\t\t\t\t\tint randIndex = RandomListIndexPicker.pickRandomIndex(approachNotes);\n\t\t\t\t\tapproachNote = approachNotes.get(randIndex);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//else we look at the next note always, but we can use the previous note to decided where we want to approach from\n\t\t\t\t\tMainNoteComponent previousNote = fullyCompletedNotes[i-1];\n\t\t\t\t\tMainNoteComponent nextNote = fullyCompletedNotes[i+1];\n\t\t\t\t\tif (previousNote.isLowerThan(nextNote)){\n\t\t\t\t\t\tapproachNote = generator.getOneChromaticNoteDown(nextNote);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tapproachNote = generator.getOneChromaticNoteUp(nextNote);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfullyCompletedNotes[i] = approachNote;\n\t\t\t}\n\t\t}\n\t\treturn fullyCompletedNotes;\n\t}",
"public void setTicksForNote(int ticks) {\n\t\tthis.ticksForNote = ticks;\n\t}",
"public final void justify$$dsl$guidsl$ltms( cnfClause reason ) { }",
"public void setNote(int note)\r\n {\r\n if (note >= 1 && note <= 5)\r\n this.note = note;\r\n else\r\n System.out.println(\"ungültige Note\");\r\n }",
"public void parallelNoteEvent(Note note)\r\n {\r\n byte noteValue = note.getValue();\r\n if (voiceValue != 9) // added D G Gray 5th Feb 2017\r\n {\r\n noteValue += this.interval;\r\n note.setValue(noteValue);\r\n\t }\r\n\r\n\r\n getReturnPattern().addElement(note);\r\n }",
"MotifLearner(){\n notes = new ArrayList<>();\n times = new ArrayList<>();\n }",
"void setNote(int note) {\n\t\tthis.note = note;\n\t}",
"public void themDL()\n {n.setTim(txttim.getText());\n n.setManv(ma);\n n.setDiachi(diachi);\n n.setNgaysinh(ngayinh);\n n.setSdt(sdt);\n n.setTennv(ten);\n n.setTrangthai(trangthai);\n }",
"public static int getNote(MidiMessage mes){\r\n\t\tif (!(mes instanceof ShortMessage))\r\n\t\t\treturn 0;\r\n\t\tShortMessage mes2 = (ShortMessage) mes;\r\n\t\tif (mes2.getCommand() != ShortMessage.NOTE_ON)\r\n\t\t\treturn 0;\t\r\n\t\tif (mes2.getData2() ==0) return -mes2.getData1();\r\n\t\treturn mes2.getData1();\r\n\t}",
"private void playNotes()\n\t{\n\t\t//Update tracks when we can shift chords.\n\t\tChord curChord = ClearComposer.cc.getChord();\n\t\tif (index % ClearComposer.cc.getChordInterval() == 0 && (prevChord == null || prevChord != curChord))\n\t\t{\n\t\t\tprevChord = curChord;\n\t\t\ttracks.forEach(GraphicTrack::updateChord);\n\t\t\tClearComposer.cc.updateChordOutlines();\n\t\t}\n\n\t\tfor (GraphicTrack track : tracks)\n\t\t{\n\t\t\tint temp = track.playNote(index);\n\t\t\tif (temp != -1)\n\t\t\t\tMusicPlayer.playNote(temp);\n\t\t}\n\n\t\tindex++;\n\t\twhile (index >= ClearComposer.cc.getNumNotes())\n\t\t\tindex -= ClearComposer.cc.getNumNotes();\n\t}",
"private void printNotes(AbstractInscription... inscs) {\n\t\tfor (AbstractInscription insc : inscs) {\n\t\t\tSystem.out.println(String.format(\n\t\t\t\t\t\"Inscription '%s' : note min = %s, note max = %s, note objectif = %s, note réelle = %s, acquis réel = %s\\r\\n\",\n\t\t\t\t\tinsc, insc.getCalculateur().getNoteMin(), insc.getCalculateur().getNoteMax(),\n\t\t\t\t\tinsc.getCalculateur().getNoteObjectif(), insc.getCalculateur().getNoteReelle(),\n\t\t\t\t\tinsc.getCalculateur().getAcquisReel()));\n\t\t}\n\t}",
"public void contractTransverseMuscle(int i, double force);",
"public void setNotes(String notes) {\n this.notes = notes;\n }",
"private void updateMatchType(MidiNote note) {\n\t\tList<Beat> beats = beatState.getBeats();\n\t\tBeat startBeat = note.getOnsetBeat(beats);\n\t\tBeat endBeat = note.getOffsetBeat(beats);\n\t\t\n\t\tint tactiPerMeasure = beatState.getTactiPerMeasure();\n\t\t\n\t\tint startTactus = getTactusNormalized(tactiPerMeasure, beats.get(0), startBeat.getMeasure(), startBeat.getBeat());\n\t\tint endTactus = getTactusNormalized(tactiPerMeasure, beats.get(0), endBeat.getMeasure(), endBeat.getBeat());\n\t\t\n\t\tint noteLengthTacti = Math.max(1, endTactus - startTactus);\n\t\tstartTactus -= anacrusisLength * subBeatLength;\n\t\tendTactus = startTactus + noteLengthTacti;\n\t\t\n\t\tint prefixStart = startTactus;\n\t\tint middleStart = startTactus;\n\t\tint postfixStart = endTactus;\n\t\t\n\t\tint prefixLength = 0;\n\t\tint middleLength = noteLengthTacti;\n\t\tint postfixLength = 0;\n\t\t\n\t\tint beatLength = subBeatLength * measure.getSubBeatsPerBeat();\n\t\t\n\t\t// Reinterpret note given matched levels\n\t\tif (matches(MetricalLpcfgMatch.SUB_BEAT) && startTactus / subBeatLength != (endTactus - 1) / subBeatLength) {\n\t\t\t// Interpret note as sub beats\n\t\t\t\n\t\t\tint subBeatOffset = startTactus % subBeatLength;\n\t\t\tint subBeatEndOffset = endTactus % subBeatLength;\n\t\t\t\n\t\t\t// Prefix\n\t\t\tif (subBeatOffset != 0) {\n\t\t\t\tprefixLength = subBeatLength - subBeatOffset;\n\t\t\t}\n\t\t\t\n\t\t\t// Middle fix\n\t\t\tmiddleStart += prefixLength;\n\t\t\tmiddleLength -= prefixLength;\n\t\t\t\n\t\t\t// Postfix\n\t\t\tpostfixStart -= subBeatEndOffset;\n\t\t\tpostfixLength += subBeatEndOffset;\n\t\t\t\n\t\t\t// Middle fix\n\t\t\tmiddleLength -= postfixLength;\n\t\t\t\n\t\t} else if (matches(MetricalLpcfgMatch.BEAT) && startTactus / beatLength != (endTactus - 1) / beatLength) {\n\t\t\t// Interpret note as beats\n\t\t\t\n\t\t\t// Add up possible partial beat at the start\n\t\t\tif (anacrusisLength % measure.getSubBeatsPerBeat() != 0) {\n\t\t\t\tint diff = subBeatLength * (measure.getSubBeatsPerBeat() - (anacrusisLength % measure.getSubBeatsPerBeat()));\n\t\t\t\tstartTactus += diff;\n\t\t\t\tendTactus += diff;\n\t\t\t}\n\t\t\tint beatOffset = (startTactus + subBeatLength * (anacrusisLength % measure.getSubBeatsPerBeat())) % beatLength;\n\t\t\tint beatEndOffset = (endTactus + subBeatLength * (anacrusisLength % measure.getSubBeatsPerBeat())) % beatLength;\n\t\t\t\n\t\t\t// Prefix\n\t\t\tif (beatOffset != 0) {\n\t\t\t\tprefixLength = beatLength - beatOffset;\n\t\t\t}\n\t\t\t\n\t\t\t// Middle fix\n\t\t\tmiddleStart += prefixLength;\n\t\t\tmiddleLength -= prefixLength;\n\t\t\t\n\t\t\t// Postfix\n\t\t\tpostfixStart -= beatEndOffset;\n\t\t\tpostfixLength += beatEndOffset;\n\t\t\t\n\t\t\t// Middle fix\n\t\t\tmiddleLength -= postfixLength;\n\t\t}\n\t\t\n\t\t// Prefix checking\n\t\tif (prefixLength != 0) {\n\t\t\tupdateMatchType(prefixStart, prefixLength);\n\t\t}\n\t\t\n\t\t// Middle checking\n\t\tif (!isFullyMatched() && !isWrong() && middleLength != 0) {\n\t\t\tupdateMatchType(middleStart, middleLength);\n\t\t}\n\t\t\n\t\t// Postfix checking\n\t\tif (!isFullyMatched() && !isWrong() && postfixLength != 0) {\n\t\t\tupdateMatchType(postfixStart, postfixLength);\n\t\t}\n\t}",
"private void step3() {\n\t\tthis.demonstrationStep++;\n\t\tthis.editableFields = (this.getView().getUserInput().length - 2);\n\t\tthis.getView().getForwardingViewContainer().remove(this.getView().getProceed());\n\t\tthis.getView().setProceed(null);\n\t\tthis.getView().getUserInput()[1].setBorder(null);\n\t\tthis.getView().getUserOutput()[1].setBorder(null);\n\t\tfor (int i = 2; i < this.getView().getUserInput().length; i++) {\n\t\t\tthis.getView().getUserOutput()[i].setEditable(true);\n\t\t}\n\t\tthis.getView()\n\t\t\t\t.getExplanations()\n\t\t\t\t.setText(\n\t\t\t\t\t\tthis.wrapHtml(CryptoDemonstrationController.i18n\n\t\t\t\t\t\t\t\t.tr(\"Oh mighty Caesar. No one will ever be able to destroy you! Because of that fact lets end\"\n\t\t\t\t\t\t\t\t\t\t+ \" this childish games and finish the rest of the fields fast. Then we can send the courier again\"\n\t\t\t\t\t\t\t\t\t\t+ \" but this time your enemies will have no idea who wrote it and you will conquer the world.\")));\n\t\tthis.getView().getUserOutput()[2].requestFocus();\n\t\tthis.getView().validate();\n\n\t}",
"@Override\n public void addNote(Note n) {\n if (this.sheet.size() < n.getDuration() + n.getStartMeasure()) {\n for (int i = this.sheet.size(); i < n.getDuration() + n.getStartMeasure(); i++) {\n sheet.add(new HashSet<>());\n }\n }\n for (int i = 0; i < n.getDuration(); i++) {\n for (Note t : this.sheet.get(i + n.getStartMeasure())) {\n if (t.equals(n)) {\n throw new IllegalArgumentException(\"Already placed a note.\");\n }\n }\n }\n this.sheet.get(n.getStartMeasure()).add(n);\n int currentMeasure = n.getStartMeasure() + 1;\n for (int i = 1; i < n.getDuration(); i++) {\n Note hold = new Note(1, n.getOctave(), currentMeasure,\n n.getPitch(), false, n.getInstrument(), n.getVolume());\n this.sheet.get(currentMeasure).add(hold);\n currentMeasure++;\n }\n\n this.high = this.getHighest();\n this.low = this.getLowest();\n }",
"private void addLess(NoteColumn n) {\n switch (n.getName()) {\n case C :\n this.notes.add(new NoteColumn(NoteName.B, n.getOctave() - 1));\n break;\n case CSHARP :\n this.notes.add(new NoteColumn(NoteName.C, n.getOctave()));\n break;\n case D :\n this.notes.add(new NoteColumn(NoteName.CSHARP, n.getOctave()));\n break;\n case DSHARP :\n this.notes.add(new NoteColumn(NoteName.D, n.getOctave()));\n break;\n case E :\n this.notes.add(new NoteColumn(NoteName.DSHARP, n.getOctave()));\n break;\n case F :\n this.notes.add(new NoteColumn(NoteName.E, n.getOctave()));\n break;\n case FSHARP :\n this.notes.add(new NoteColumn(NoteName.F, n.getOctave()));\n break;\n case G :\n this.notes.add(new NoteColumn(NoteName.FSHARP, n.getOctave()));\n break;\n case GSHARP :\n this.notes.add(new NoteColumn(NoteName.G, n.getOctave()));\n break;\n case A :\n this.notes.add(new NoteColumn(NoteName.GSHARP, n.getOctave()));\n break;\n case ASHARP :\n this.notes.add(new NoteColumn(NoteName.A, n.getOctave()));\n break;\n case B :\n this.notes.add(new NoteColumn(NoteName.ASHARP, n.getOctave()));\n break;\n default :\n throw new IllegalArgumentException(\"Illegal note name\");\n }\n }",
"protected ArrayList<Integer> bepaalTrioSpelers(Groep groep) {\r\n ArrayList<Integer> trio = new ArrayList<>();\r\n if (groep.getSpelers().size() == 3) {\r\n \t// 3 spelers, dus maak gelijk trio\r\n trio.add(groep.getSpelers().get(0).getId());\r\n trio.add(groep.getSpelers().get(1).getId());\r\n trio.add(groep.getSpelers().get(2).getId());\r\n return trio;\r\n }\r\n int spelerID = 0;\r\n try {\r\n spelerID = IJCController.c().getBeginpuntTrio(groep.getSpelers().size());\r\n }\r\n catch (Exception e) {\r\n \tlogger.log(Level.WARNING, \"Problem with spelersID. No int.\");\r\n }\r\n int minDelta = 1;\r\n int plusDelta = 1;\r\n int ignore = 0;\r\n boolean doorzoeken = true;\r\n while (doorzoeken) {\r\n Speler s1 = groep.getSpelerByID(spelerID);\r\n Speler s2 = groep.getSpelerByID(spelerID - minDelta);\r\n Speler s3 = groep.getSpelerByID(spelerID + plusDelta);\r\n if (isGoedTrio(s1, s2, s3, ignore)) {\r\n trio.add(s1.getId());\r\n trio.add(s2.getId());\r\n trio.add(s3.getId());\r\n return trio;\r\n } else {\r\n if ((s2 == null) || (s3 == null)) {\r\n if (ignore > 4) {\r\n doorzoeken = false;\r\n }\r\n ignore += 1;\r\n minDelta = 1;\r\n plusDelta = 1;\r\n } else {\r\n if (minDelta > plusDelta) {\r\n plusDelta++;\r\n } else {\r\n minDelta++;\r\n }\r\n }\r\n }\r\n }\r\n return trio;\r\n }",
"private void updateMatchType(int startTactus, int noteLengthTacti) {\n\t\tint beatLength = subBeatLength * measure.getSubBeatsPerBeat();\n\t\tint measureLength = beatLength * measure.getBeatsPerMeasure();\n\t\t\n\t\tint subBeatOffset = startTactus % subBeatLength;\n\t\tint beatOffset = startTactus % beatLength;\n\t\tint measureOffset = startTactus % measureLength;\n\t\t\n\t\tif (matches(MetricalLpcfgMatch.SUB_BEAT)) {\n\t\t\t// Matches sub beat (and not beat)\n\t\t\t\n\t\t\tif (noteLengthTacti < subBeatLength) {\n\t\t\t\t// Note is shorter than a sub beat\n\t\t\t\t\n\t\t\t} else if (noteLengthTacti == subBeatLength) {\n\t\t\t\t// Note is exactly a sub beat\n\t\t\t\t\n\t\t\t} else if (noteLengthTacti < beatLength) {\n\t\t\t\t// Note is between a sub beat and a beat in length\n\t\t\t\t\n\t\t\t\t// Can only happen when the beat is divided in 3, but this is 2 sub beats\n\t\t\t\taddMatch(MetricalLpcfgMatch.WRONG);\n\t\t\t\t\n\t\t\t} else if (noteLengthTacti == beatLength) {\n\t\t\t\t// Note is exactly a beat in length\n\t\t\t\t\n\t\t\t\t// Must match exactly\n\t\t\t\taddMatch(beatOffset == 0 ? MetricalLpcfgMatch.BEAT : MetricalLpcfgMatch.WRONG);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t// Note is greater than a beat in length\n\t\t\t\t\n\t\t\t\tif (noteLengthTacti % beatLength != 0) {\n\t\t\t\t\t// Not some multiple of the beat length\n\t\t\t\t\taddMatch(MetricalLpcfgMatch.WRONG);\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} else if (matches(MetricalLpcfgMatch.BEAT)) {\n\t\t\t// Matches beat (and not sub beat)\n\t\t\t\n\t\t\tif (noteLengthTacti < subBeatLength) {\n\t\t\t\t// Note is shorter than a sub beat\n\t\t\t\t\n\t\t\t\tif (subBeatLength % noteLengthTacti != 0 || subBeatOffset % noteLengthTacti != 0) {\n\t\t\t\t\t// Note doesn't divide sub beat evenly\n\t\t\t\t\taddMatch(MetricalLpcfgMatch.WRONG);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else if (noteLengthTacti == subBeatLength) {\n\t\t\t\t// Note is exactly a sub beat\n\t\t\t\t\n\t\t\t\t// Must match sub beat exactly\n\t\t\t\taddMatch(subBeatOffset == 0 ? MetricalLpcfgMatch.SUB_BEAT : MetricalLpcfgMatch.WRONG);\n\t\t\t\t\n\t\t\t} else if (noteLengthTacti < beatLength) {\n\t\t\t\t// Note is between a sub beat and a beat in length\n\t\t\t\t\n\t\t\t\t// Wrong if not aligned with beat at onset or offset\n\t\t\t\tif (beatOffset != 0 && beatOffset + noteLengthTacti != beatLength) {\n\t\t\t\t\taddMatch(MetricalLpcfgMatch.WRONG);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else if (noteLengthTacti == beatLength) {\n\t\t\t\t// Note is exactly a beat in length\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t// Note is longer than a beat in length\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t// Matches neither sub beat nor beat\n\t\t\t\n\t\t\tif (noteLengthTacti < subBeatLength) {\n\t\t\t\t// Note is shorter than a sub beat\n\t\t\t\t\n\t\t\t\tif (subBeatLength % noteLengthTacti != 0 || subBeatOffset % noteLengthTacti != 0) {\n\t\t\t\t\t// Note doesn't divide sub beat evenly\n\t\t\t\t\taddMatch(MetricalLpcfgMatch.WRONG);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else if (noteLengthTacti == subBeatLength) {\n\t\t\t\t// Note is exactly a sub beat\n\t\t\t\t\n\t\t\t\t// Must match sub beat exactly\n\t\t\t\taddMatch(subBeatOffset == 0 ? MetricalLpcfgMatch.SUB_BEAT : MetricalLpcfgMatch.WRONG);\n\t\t\t\t\n\t\t\t} else if (noteLengthTacti < beatLength) {\n\t\t\t\t// Note is between a sub beat and a beat in length\n\t\t\t\t\n\t\t\t\t// Wrong if not aligned with beat at onset or offset\n\t\t\t\tif (beatOffset != 0 && beatOffset + noteLengthTacti != beatLength) {\n\t\t\t\t\taddMatch(MetricalLpcfgMatch.WRONG);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else if (noteLengthTacti == beatLength) {\n\t\t\t\t// Note is exactly a beat in length\n\t\t\t\t\n\t\t\t\t// Must match beat exactly\n\t\t\t\taddMatch(beatOffset == 0 ? MetricalLpcfgMatch.BEAT : MetricalLpcfgMatch.WRONG);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t// Note is greater than a beat in length\n\t\t\t\t\n\t\t\t\tif (measureLength % noteLengthTacti != 0 || measureOffset % noteLengthTacti != 0 ||\n\t\t\t\t\t\tbeatOffset != 0 || noteLengthTacti % beatLength != 0) {\n\t\t\t\t\t// Note doesn't divide measure evenly, or doesn't match a beat\n\t\t\t\t\taddMatch(MetricalLpcfgMatch.WRONG);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void setNotes(String notes) {\n\t\tthis.notes = notes;\r\n\t}",
"private boolean addNote(ProblemNote pn) {\n String s = VistAUtil.concatParams(problem.getId().getIdPart(), null, pn.getFacility().getIdElement().getIdPart(),\n null, pn.getNarrative());\n s = getBroker().callRPC(\"BGOPRBN SET\", s);\n \n if (PCC.errorCheck(s)) {\n return false;\n }\n \n // Problem IEN [1] ^ Note IEN [2] ^ Location IEN [3] ^ Note # [4] ^ Narrative [5] ^\n // Status [6] ^ Date Entered [7] ^ Author Name [8] ^ Note ID [9]\n \n String[] pcs = StrUtil.split(s, StrUtil.U, 9);\n \n pn.setId(pcs[1]);\n Organization org = new Organization();\n org.setId(pcs[2]);\n pn.setFacility(org);\n pn.setNumber(pcs[3]);\n pn.setNarrative(pcs[4]);\n pn.setStatus(pcs[5]);\n pn.setDateAdded(new FMDate(pcs[6]));\n pn.setAuthor(pcs[7]);\n return true;\n }",
"public void setNotes(String notes) {\n\tthis.notes = notes;\n}",
"@Test\n\tpublic void findTraineeNoteTest(){\n//\t\tlog.trace(\"Testing findTraineeNote\");\n\t\tfinal short weekNum = 2;\n\t\tfinal String content = \"Good communication. Not as confident and less use of technical terms\";\n\t\t\n\t\t// find trainee note\n\t\tNote actual = noteDao.findTraineeNote(TEST_TRAINEE_ID, weekNum);\n\n\t\t// compare with expected\n\t\tassertFalse(actual.isQcFeedback());\n\t\tassertEquals(content, actual.getContent());\n\t\tassertEquals(weekNum, actual.getWeek());\n\t\tassertEquals(TEST_TRAINEE_ID, actual.getTrainee().getTraineeId());\n\t}",
"public void actionsTouches () {\n\t\t//Gestion des deplacements du mineur si demande\n\t\tif (Partie.touche == 'g' || Partie.touche == 'd' || Partie.touche == 'h' || Partie.touche == 'b') deplacements();\n\n\t\t//Affichage du labyrinthe et des instructions, puis attente de consignes clavier.\n\t\tpartie.affichageLabyrinthe();\n\n\t\t//Quitte la partie si demande.\n\t\tif (Partie.touche == 'q') partie.quitter();\n\n\t\t//Trouve et affiche une solution si demande.\n\t\tif (Partie.touche == 's') affichageSolution();\n\n\t\t//Recommence la partie si demande.\n\t\tif (Partie.touche == 'r') {\n\t\t\tgrille.removeAll();\n\t\t\tpartie.initialisation();\n\t\t}\n\n\t\t//Affichage de l'aide si demande\n\t\tif (Partie.touche == 'a') {\n\t\t\tString texteAide = new String();\n\t\t\tswitch(themeJeu) {\n\t\t\tcase 2 : texteAide = \"Le but du jeu est d'aider Link à trouver la sortie du donjon tout en récupérant le(s) coffre(s).\\n Link doit egalement recuperer la Master Sword qui permet de tuer le monstre bloquant le chemin.\\n\\nLink se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 3 : texteAide = \"Le but du jeu est d'aider Samus à trouver la sortie du vaisseau tout en récupérant le(s) émeraude(s).\\nSamus doit egalement recuperer la bombe qui permet de tuer le metroid qui bloque l'accès à la sortie.\\n\\nSamus se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 4 : texteAide = \"Le but du jeu est d'aider le pompier à trouver la sortie du batiment tout en sauvant le(s) rescapé(s).\\nLe pompier doit egalement recuperer l'extincteur qui permet d'éteindre le feu qui bloque l'accès à la sortie.\\n\\nLe pompier se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 5 : texteAide = \"Le but du jeu est d'aider Mario à trouver le drapeau de sortie tout en ramassant le(s) pièce(s).\\nMario doit egalement recuperer l'étoile d'invincibilité qui permet de se débarasser du Goomba qui l'empêche de sortir.\\n\\nMario se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Here we gooo !\"; break;\n\t\t\tdefault : texteAide = \"Le but du jeu est d'aider le mineur à trouver la sortie du labyrinthe tout en extrayant le(s) filon(s).\\nLe mineur doit egalement recuperer la clef qui permet l'ouverture de le porte qui bloque l'accès à la sortie.\\n\\nLe mineur se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n============================================ AIDE ========================================\\n\\n\" + texteAide + \"\\n\\n==========================================================================================\\n\");\n\t\t\tJOptionPane.showMessageDialog(null, texteAide, \"Aide\", JOptionPane.QUESTION_MESSAGE);\n\t\t\tPartie.touche = ' ';\n\t\t}\n\n\t\t//Affichage de les infos si demande\n\t\tif (Partie.touche == 'i') {\n\t\t\tSystem.out.println(\"\\n============================================ INFOS =======================================\\n\\nCe jeu a ete developpe par Francois ADAM et Benjamin Rancinangue\\ndans le cadre du projet IPIPIP 2015.\\n\\n==========================================================================================\\n\");\n\t\t\tPartie.touche = ' ';\n\t\t\tJOptionPane.showMessageDialog(null, \"Ce jeu a été développé par François Adam et Benjamin Rancinangue\\ndans le cadre du projet IPIPIP 2015.\", \"Infos\", JOptionPane.INFORMATION_MESSAGE, new ImageIcon(getClass().getResource(\"/images/EMN.png\")));\n\t\t}\n\n\t\t//Nettoyage de l'ecran de console\n\t\tSystem.out.println(\"\\n==========================================================================================\\n\");\n\t}",
"private void getNotes(MusicCircle circle){\n\t\tif(! circle.isMuted()){\n\t\t\tfor(int i=0; i<circle.getNumNotes(); i++){\n\t\t\t\tif( circle.getS(i) != SILENCE) note(circle.getT(i) + loopOffset, circle.getD(i), Fofs(circle.getS(i) + circle.getBaseSemitone()));\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void removeNote(Note n) {\n if (!n.getIsHead()) {\n throw new IllegalArgumentException(\"cannot remove a note that is not\" +\n \"the head note\");\n }\n boolean result = false;\n for (int i = 0; i < n.getDuration(); i++) {\n for (Note t : this.sheet.get(i + n.getStartMeasure())) {\n if (t.equals(n)) {\n result = true;\n }\n }\n }\n if (result == false) {\n throw new IllegalArgumentException(\"note doesn't exist\");\n }\n Note head = find(n.getStartMeasure(), n.getDuration(), n.getOctave(), n\n .toMidiIndex());\n this.sheet.get(n.getStartMeasure()).remove(head);\n\n\n for (int i = 1; i < n.getDuration(); i++) {\n int currentMeasure = n.getStartMeasure() + i;\n\n Note hold = find(currentMeasure, 1, n.getOctave(), n\n .toMidiIndex());\n this.sheet.get(currentMeasure).remove(hold);\n }\n }",
"private void calculadorNotaFinal() {\n\t\t//calculo notaFinal, media de las notas medias\n\t\tif(this.getAsignaturas() != null) {\n\t\t\t\tfor (Iterator<Asignatura> iterator = this.asignaturas.iterator(); iterator.hasNext();) {\n\t\t\t\t\tAsignatura asignatura = (Asignatura) iterator.next();\n\t\t\t\t\tif(asignatura.getNotas() != null) {\n\t\t\t\t\tnotaFinal += asignatura.notaMedia();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//curarse en salud con division entre 0\n\t\t\t\tif(this.getAsignaturas().size() != 0) {\n\t\t\t\tnotaFinal /= this.getAsignaturas().size();\n\t\t\t\t}\n\t\t}\n\t}",
"private final void step3() { if (k == 0) return; /* For Bug 1 */ switch (b[k-1])\n\t {\n\t case 'a': if (ends(\"ational\")) { r(\"ate\"); break; }\n\t if (ends(\"tional\")) { r(\"tion\"); break; }\n\t break;\n\t case 'c': if (ends(\"enci\")) { r(\"ence\"); break; }\n\t if (ends(\"anci\")) { r(\"ance\"); break; }\n\t break;\n\t case 'e': if (ends(\"izer\")) { r(\"ize\"); break; }\n\t break;\n\t case 'l': if (ends(\"bli\")) { r(\"ble\"); break; }\n\t if (ends(\"alli\")) { r(\"al\"); break; }\n\t if (ends(\"entli\")) { r(\"ent\"); break; }\n\t if (ends(\"eli\")) { r(\"e\"); break; }\n\t if (ends(\"ousli\")) { r(\"ous\"); break; }\n\t break;\n\t case 'o': if (ends(\"ization\")) { r(\"ize\"); break; }\n\t if (ends(\"ation\")) { r(\"ate\"); break; }\n\t if (ends(\"ator\")) { r(\"ate\"); break; }\n\t break;\n\t case 's': if (ends(\"alism\")) { r(\"al\"); break; }\n\t if (ends(\"iveness\")) { r(\"ive\"); break; }\n\t if (ends(\"fulness\")) { r(\"ful\"); break; }\n\t if (ends(\"ousness\")) { r(\"ous\"); break; }\n\t break;\n\t case 't': if (ends(\"aliti\")) { r(\"al\"); break; }\n\t if (ends(\"iviti\")) { r(\"ive\"); break; }\n\t if (ends(\"biliti\")) { r(\"ble\"); break; }\n\t break;\n\t case 'g': if (ends(\"logi\")) { r(\"log\"); break; }\n\t } }",
"public void setNotes(String notes) {\n\t\tthis.notes = notes;\n\t}",
"public void syncTicks(int noteLength){\n\t\tthis.ticksForNote = Mathematics.lcm(noteLength,this.ticksForNote); \n\t}",
"public void notaFinal() {\n\n for (int i = 0; i <= (nombres.size() - 1); i++) {\n\n notaFinal.add((notas.get(0) + notas.get(1) + notas.get(2)) / 3);\n\n }\n\n }",
"private void setNote() {\n\t\tNoteOpt.add(\"-nd\");\n\t\tNoteOpt.add(\"/nd\");\n\t\tNoteOpt.add(\"notedetails\");\n\n\t}",
"private List<MetricalLpcfgMetricalModelState> getAllFirstStepBranches() {\n\t\tList<MetricalLpcfgMetricalModelState> newStates = new ArrayList<MetricalLpcfgMetricalModelState>();\n\t\t\n\t\tlong lastTime = notesToCheck.peek().getOffsetTime();\n\t\tlong lastBeatTime = beatState.getBeats().get(beatState.getBeats().size() - 1).getTime();\n\t\t\n\t\t// No notes have finished yet, we must still wait\n\t\tif (lastBeatTime < lastTime) {\n\t\t\tnewStates.add(this);\n\t\t\treturn newStates;\n\t\t}\n\t\t\n\t\t// A note has finished, add measure hypotheses\n\t\tfor (int subBeatLength = 1; subBeatLength <= 1; subBeatLength++) {\n\t\t\t\n\t\t\tfor (Measure measure : grammar.getMeasures()) {\n\t\t\t\t\n\t\t\t\tint subBeatsPerMeasure = measure.getBeatsPerMeasure() * measure.getSubBeatsPerBeat();\n\t\t\t\tfor (int anacrusisLength = 0; anacrusisLength < subBeatsPerMeasure; anacrusisLength++) {\n\t\t\t\t\t\n\t\t\t\t\tMetricalLpcfgMetricalModelState newState =\n\t\t\t\t\t\t\tnew MetricalLpcfgMetricalModelState(this, grammar, measure, subBeatLength, anacrusisLength);\n\t\t\t\t\tnewState.updateMatchType();\n\t\t\t\t\t\n\t\t\t\t\t// This hypothesis could match the first note\n\t\t\t\t\tif (!newState.isWrong()) {\n\t\t\t\t\t\tnewStates.add(newState);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Main.VERBOSE) {\n\t\t\t\t\t\t\tSystem.out.println(\"Adding \" + newState);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn newStates;\n\t}",
"public void deplacements () {\n\t\t//Efface de la fenetre le mineur\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getLabyrinthe()[this.laby.getMineur().getY()][this.laby.getMineur().getX()].imageCase(themeJeu));\n\t\t//Deplace et affiche le mineur suivant la touche pressee\n\t\tpartie.laby.deplacerMineur(Partie.touche);\n\t\tPartie.touche = ' ';\n\n\t\t//Operations effectuees si la case ou se trouve le mineur est une sortie\n\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Sortie) {\n\t\t\t//On verifie en premier lieu que tous les filons ont ete extraits\n\t\t\tboolean tousExtraits = true;\t\t\t\t\t\t\t\n\t\t\tfor (int i = 0 ; i < partie.laby.getHauteur() && tousExtraits == true ; i++) {\n\t\t\t\tfor (int j = 0 ; j < partie.laby.getLargeur() && tousExtraits == true ; j++) {\n\t\t\t\t\tif (partie.laby.getLabyrinthe()[i][j] instanceof Filon) {\n\t\t\t\t\t\ttousExtraits = ((Filon)partie.laby.getLabyrinthe()[i][j]).getExtrait();\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Si c'est le cas alors la partie est terminee et le joueur peut recommencer ou quitter, sinon le joueur est averti qu'il n'a pas recupere tous les filons\n\t\t\tif (tousExtraits == true) {\n\t\t\t\tpartie.affichageLabyrinthe ();\n\t\t\t\tSystem.out.println(\"\\nFelicitations, vous avez trouvé la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire à present : [r]ecommencer ou [q]uitter ?\");\n\t\t\t\tString[] choixPossiblesFin = {\"Quitter\", \"Recommencer\"};\n\t\t\t\tint choixFin = JOptionPane.showOptionDialog(null, \"Felicitations, vous avez trouve la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire a present :\", \"Fin de la partie\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, choixPossiblesFin, choixPossiblesFin[0]);\n\t\t\t\tif ( choixFin == 1) {\n\t\t\t\t\tPartie.touche = 'r';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tPartie.touche = 'q';\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpartie.enTete.setText(\"Tous les filons n'ont pas ete extraits !\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t//Si la case ou se trouve le mineur est un filon qui n'est pas extrait, alors ce dernier est extrait.\n\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Filon && ((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getExtrait() == false) {\n\t\t\t\t((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setExtrait();\n\t\t\t\tSystem.out.println(\"\\nFilon extrait !\");\n\t\t\t}\n\t\t\t//Sinon si la case ou se trouve le mineur est une clef, alors on indique que la clef est ramassee, puis on cherche la porte et on l'efface de la fenetre, avant de rendre la case quelle occupe vide\n\t\t\telse {\n\t\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Clef && ((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getRamassee() == false) {\n\t\t\t\t\t((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setRamassee();\n\t\t\t\t\tint[] coordsPorte = {-1,-1};\n\t\t\t\t\tfor (int i = 0 ; i < this.laby.getHauteur() && coordsPorte[1] == -1 ; i++) {\n\t\t\t\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() && coordsPorte[1] == -1 ; j++) {\n\t\t\t\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Porte) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcoordsPorte[0] = j;\n\t\t\t\t\t\t\t\tcoordsPorte[1] = i;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpartie.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].setEtat(true);\n\t\t\t\t\t((JLabel)grille.getComponents()[coordsPorte[1]*this.laby.getLargeur()+coordsPorte[0]]).setIcon(this.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].imageCase(themeJeu));\n\t\t\t\t\tSystem.out.println(\"\\nClef ramassee !\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static PatternInterface trill(Note baseNote, char trillDirection, double singleSoundDuration){\r\n \r\n \tStringBuilder musicStringBuilder = new StringBuilder();\r\n \r\n \tdouble totalDuration = baseNote.getDecimalDuration();\r\n double actualDuration = 0.0d;\r\n \r\n byte secondNote = baseNote.getValue();\r\n \r\n if(trillDirection == EFFECT_DIRECTION_UP){\r\n \tsecondNote++;\r\n } else if(trillDirection == EFFECT_DIRECTION_DOWN){\r\n \tsecondNote--;\r\n }\r\n \r\n double remainingDuration = totalDuration - (2*singleSoundDuration);\r\n if(remainingDuration > 0.0d){\r\n \t\r\n \tappendNoteValueAndDuration(musicStringBuilder, baseNote.getValue(), singleSoundDuration);\r\n \tactualDuration+=singleSoundDuration;\r\n \t\r\n \twhile(actualDuration < totalDuration){\r\n \t\tif(actualDuration + (2*singleSoundDuration) < totalDuration){\r\n \t\t\tappendNoteValueAndDuration(musicStringBuilder, secondNote, singleSoundDuration);\r\n \t\t\tactualDuration += singleSoundDuration;\r\n \t\t\tappendNoteValueAndDuration(musicStringBuilder, baseNote.getValue(), singleSoundDuration);\r\n \t\t\tactualDuration += singleSoundDuration;\r\n \t\t} else if(actualDuration + singleSoundDuration > totalDuration){\r\n \t\t\tdouble gapDuration = totalDuration - actualDuration;\r\n \t\t\tappendNoteValueAndDuration(musicStringBuilder, baseNote.getValue(), gapDuration);\r\n \t\t\tactualDuration+=gapDuration;\r\n \t\t} else {\r\n \t\t\tappendNoteValueAndDuration(musicStringBuilder, baseNote.getValue(), singleSoundDuration);\r\n \t\t\tactualDuration+=singleSoundDuration;\r\n \t\t}\r\n \t}\r\n \treturn new Pattern(musicStringBuilder.toString().trim());\r\n } else {\r\n \treturn new Pattern(baseNote.getMusicString());\r\n }\r\n }",
"@Override\n\tpublic void rotiereNachRechts() {\n\n\t}",
"private void setupEscenario3( )\n {\n String todasMarcadas, casillasSinMarca;\n String[] marcadas, noMarcadas;\n int casilla;\n // Prepara el tablero\n triqui = new Triqui( );\n\n // Primer jugador\n\n marcaJugador1 = \"X\";\n todasMarcadas = \"1,3,7,9\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador1 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador1 );\n casillasJugador1.add( new Integer( casilla ) );\n }\n\n // Segundo jugador\n\n marcaJugador2 = \"O\";\n todasMarcadas = \"2,4,6,8\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador2 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador2 );\n casillasJugador2.add( new Integer( casilla ) );\n }\n\n // Casillas sin marcar\n\n casillasSinMarca = \"5\";\n noMarcadas = casillasSinMarca.split( \",\" );\n casillasSinMarcar = new ArrayList( );\n\n for( int i = 0; i < noMarcadas.length; i++ )\n {\n casilla = Integer.parseInt( noMarcadas[ i ] );\n casillasSinMarcar.add( new Integer( casilla ) );\n }\n }",
"private ModelImpl(int tempo, List<Note> notes) {\n if (tempo < 50000 || tempo > 250000) {\n throw new IllegalArgumentException(\"Invalid tempo.\");\n }\n if (notes.isEmpty()) {\n throw new IllegalArgumentException(\"This shouldn't happen.\");\n }\n this.tempo = tempo;\n this.currentMeasure = DEFAULT_START;\n this.status = Status.Playing;\n this.low = new Note(1, 8, 0, Note.Pitches.C, true, 0, 1);\n this.high = new Note(1, 0, 0, Note.Pitches.A, true, 0, 1);\n this.sheet = new ArrayList<Set<Note>>();\n this.addAll(notes);\n }",
"public void commentOnAction(Object signal)\r\n/* 81: */ {\r\n/* 82: 88 */ if ((signal instanceof Long))\r\n/* 83: */ {\r\n/* 84: 89 */ long time = ((Long)signal).longValue();\r\n/* 85: 90 */ if (this.tripleList.isEmpty()) {\r\n/* 86: 91 */ return;\r\n/* 87: */ }\r\n/* 88: 94 */ ThingTimeTriple firstTriple = (ThingTimeTriple)this.tripleList.get(0);\r\n/* 89: */ \r\n/* 90: 96 */ long reference = 0L;\r\n/* 91: 98 */ if (this.mode == this.start) {\r\n/* 92: 99 */ reference = firstTriple.from;\r\n/* 93:102 */ } else if (this.mode == this.stop) {\r\n/* 94:103 */ reference = firstTriple.to;\r\n/* 95: */ }\r\n/* 96:106 */ if (time > reference) {\r\n/* 97: */ try\r\n/* 98: */ {\r\n/* 99:108 */ String english = firstTriple.english;\r\n/* 100:109 */ double offset = reference / 1000.0D;\r\n/* 101:110 */ boolean noteworthy = (this.previousTriple == null) || (isNoteworthy(firstTriple, this.previousTriple));\r\n/* 102: */ \r\n/* 103:112 */ String displayedText = ((offset > 0.0D ? String.format(\"%.1f \", new Object[] { Double.valueOf(offset) }) : \"\") + english).trim();\r\n/* 104:114 */ if (noteworthy)\r\n/* 105: */ {\r\n/* 106:115 */ Connections.getPorts(this).transmit(TO_TEXT_VIEWER, new BetterSignal(new Object[] { \"Commentary\", Html.line(Html.bold(displayedText)) }));\r\n/* 107:116 */ Connections.getPorts(this).transmit(TO_TALKER, english);\r\n/* 108: */ }\r\n/* 109: */ else\r\n/* 110: */ {\r\n/* 111:119 */ Connections.getPorts(this).transmit(TO_TEXT_VIEWER, new BetterSignal(new Object[] { \"Commentary\", Html.line(displayedText) }));\r\n/* 112: */ }\r\n/* 113:121 */ Connections.getPorts(this).transmit(INNERESE, firstTriple.t);\r\n/* 114: */ }\r\n/* 115: */ catch (Exception e)\r\n/* 116: */ {\r\n/* 117:125 */ Mark.err(new Object[] {\"Blew out attempting to transmit IMPACT result\", firstTriple });\r\n/* 118: */ }\r\n/* 119: */ finally\r\n/* 120: */ {\r\n/* 121:128 */ this.previousTriple = firstTriple;\r\n/* 122:129 */ this.tripleList.remove(firstTriple);\r\n/* 123: */ }\r\n/* 124: */ }\r\n/* 125: */ }\r\n/* 126: */ }",
"public void lowerAmountOfPlattforms(){\n if(plattformsPerChunk > 2 ){\n plattformsPerChunk--;\n\t}\n }",
"@SuppressWarnings(\"static-method\")\n\tprotected String transformInformationNotes(String text) {\n\t\tfinal String info = Strings.emptyIfNull(System.getProperty(INFO_NOTE_PATTERN_PROPERTY));\n\t\tfinal String warning = Strings.emptyIfNull(System.getProperty(WARNING_NOTE_PATTERN_PROPERTY));\n\t\tfinal String danger = Strings.emptyIfNull(System.getProperty(DANGER_NOTE_PATTERN_PROPERTY));\n\t\tif (Strings.isEmpty(info) && Strings.isEmpty(warning) && Strings.isEmpty(danger)) {\n\t\t\treturn text;\n\t\t}\n\n\t\tfinal Pattern startPattern = Pattern.compile(MARKDOWN_INFORMATION_NOTE_PATTERN1);\n\t\tfinal Pattern continuePattern = Pattern.compile(MARKDOWN_INFORMATION_NOTE_PATTERN2);\n\t\tfinal StringBuilder result = new StringBuilder();\n\t\tString currentName = null;\n\t\tStringBuilder currentNote = null;\n\t\tfor (final String line : text.split(\"\\r*\\n\\r*\")) {\n\t\t\tString newLine = null;\n\t\t\tif (currentName == null) {\n\t\t\t\tfinal Matcher matcher = startPattern.matcher(line);\n\t\t\t\tif (matcher.matches()) {\n\t\t\t\t\tcurrentName = matcher.group(1).trim();\n\t\t\t\t\tcurrentNote = new StringBuilder(matcher.group(2).trim());\n\t\t\t\t} else {\n\t\t\t\t\tcurrentName = null;\n\t\t\t\t\tcurrentNote = null;\n\t\t\t\t\tnewLine = line;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfinal Matcher matcher = continuePattern.matcher(line);\n\t\t\t\tif (matcher.matches()) {\n\t\t\t\t\tassert currentNote != null;\n\t\t\t\t\tcurrentNote.append(\" \").append(matcher.group(1).trim());\n\t\t\t\t} else {\n\t\t\t\t\tupdateBuffer(result, currentName, currentNote, info, warning, danger);\n\t\t\t\t\tcurrentName = null;\n\t\t\t\t\tcurrentNote = null;\n\t\t\t\t\tnewLine = line;\n\t\t\t\t}\n\t\t\t}\n\t\t\tupdateBuffer(result, newLine);\n\t\t}\n\t\tupdateBuffer(result, currentName, currentNote, info, warning, danger);\n\t\treturn result.toString();\n\t}",
"public static void passerTour(){\n\t\tif(tour<jeu.getJoueurs().length){\n\t\t\ttour++;\n\t\t}\n\t\telse {\n\t\t\ttour = 1;\n\t\t}\n\t\tfor(int i=0;i<joueurElimine;i++){\n\t\t\tif(jeu.getJoueurs()[tour-1].getMonnaie()==0){\n\t\t\t\tif(tour<jeu.getJoueurs().length){\n\t\t\t\t\ttour++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttour = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Notas(ProfesorManagerImpl profesorManagerRe, PlanManagerImpl planManagerRe, DescripcionManagerImpl descripcionManagerRe, EstudianteManagerImpl estudianteManagerRe, GradoManagerImpl gradoManagerRe, GradoMateriaManagerImpl gradoMateriaManagerRe, GrupoManagerImpl grupoManagerRe, MateriaManagerImpl materiaManagerRe, NotasManagerImpl notasManagerRe, ProfesorMateriaManagerImpl profesorMateriaManagerRe) {\n profesorManager = profesorManagerRe;\n planManager = planManagerRe;\n descripcionManager = descripcionManagerRe;\n estudianteManager = estudianteManagerRe;\n gradoManager = gradoManagerRe;\n gradoMateriaManager = gradoMateriaManagerRe;\n grupoManager = grupoManagerRe;\n materiaManager = materiaManagerRe;\n notasManager = notasManagerRe;\n profesorMateriaManager = profesorMateriaManagerRe;\n initComponents();\n modelo.addColumn(\"IdNota\");\n modelo.addColumn(\"Descripcion Plan\");\n modelo.addColumn(\"Estudiante\");\n modelo.addColumn(\"Materia\");\n modelo.addColumn(\"nota\");\n modelo.addColumn(\"nombre Nota\");\n modelo.addColumn(\"descripcion Nota\");\n jTable1.setModel(modelo);\n\n JDescripcion.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent e) {\n JDescripcion.setText(\"\");\n }\n });\n Jestudiante.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent e) {\n Jestudiante.setText(\"\");\n }\n });\n Jmateria.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent e) {\n Jmateria.setText(\"\");\n }\n });\n NotN.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent e) {\n NotN.setText(\"\");\n }\n });\n JnombreNota.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent e) {\n JnombreNota.setText(\"\");\n }\n });\n JdescripcionNota.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent e) {\n JdescripcionNota.setText(\"\");\n }\n });\n Eliminar1.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent e) {\n Eliminar1.setText(\"\");\n }\n });\n IdNot.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent e) {\n IdNot.setText(\"\");\n }\n });\n Not.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent e) {\n Not.setText(\"\");\n }\n });\n\n }",
"@Override\n\tpublic double calculaTributos() {\n\t\treturn numeroDePacientes * 10;\n\t}",
"public Notes() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public void setNotes(java.lang.String notes) {\n this.notes = notes;\n }",
"public LinearAcceptingNestedWordAutomaton transform(NondeterministicNestedWordAutomaton nnwa) {\n LinearAcceptingNestedWordAutomaton dnwa = new LinearAcceptingNestedWordAutomaton();\n\n ArrayList<HierarchyState> nnwaHierarchyStates = nnwa.getP();\n ArrayList<HierarchyState> nnwaHierarchyAcceptingStates = nnwa.getPf();\n ArrayList<LinearState> nnwalinearStates = nnwa.getQ();\n ArrayList<LinearState> nnwaLinearAcceptingStates = nnwa.getQf();\n\n /* ArrayList<PowerSetHierarchyState> dnwaPowerSetHierarchyStates = new ArrayList<PowerSetHierarchyState>();\n ArrayList<PowerSetHierarchyState> dnwaPowerSetHierarchyAcceptingStates = new ArrayList<PowerSetHierarchyState>();\n ArrayList<PowerSetLinearState> dnwaPowerSetLinearStates = new ArrayList<PowerSetLinearState>();\n ArrayList<PowerSetLinearState> dnwaPowerSetLinearAcceptingStates = new ArrayList<PowerSetLinearState>();\n*/\n for (HierarchyState hState : nnwaHierarchyStates) {\n\n }\n\n\n return dnwa;\n }",
"@Override\n\tpublic TextNote getTextNote(TextNote note) {\n\t\tif (note == null) return note;\n\t\t\n\t\tList<TextNote> noteList = repository.findAll();\n\t\tint listIndex = noteList.indexOf(note);\n\t\treturn noteList.get(listIndex);\n\t}",
"public void move(Note n, Note.Pitches pitch, int octave, int measure) {\n if (!n.getIsHead()) {\n throw new IllegalArgumentException(\"Can't move a tail note\");\n }\n boolean result = false;\n for (int i = 0; i < n.getDuration(); i++) {\n for (Note t : this.sheet.get(i + n.getStartMeasure())) {\n if (t.equals(n)) {\n result = true;\n }\n }\n }\n if (result == false) {\n throw new IllegalArgumentException(\"note doesn't exist\");\n } else {\n this.removeNote(n);\n }\n Note n2 = n.moveTo(pitch, octave, measure);\n for (int i = 0; i < n2.getDuration(); i++) {\n for (Note t : this.sheet.get(i + n2.getStartMeasure())) {\n if (t.equals(n2)) {\n throw new IllegalArgumentException(\"Already placed a note.\");\n }\n }\n }\n this.addNote(n2);\n }",
"public static PatternInterface trill(Note baseNote, char trillDirection){\r\n \treturn trill(baseNote, trillDirection, THIRTY_SECOND);\r\n }",
"java.lang.String getNotes();",
"java.lang.String getNotes();",
"public void setNote(String note) {\r\n this.note = note; \r\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"public void diagrafiSintagis() {\n\t\t// Elegxw an yparxoun syntages\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages \n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t\t\t\tSystem.out.println();\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ttmp_1 = sir.readPositiveInt(\"DWSTE TON ARITHMO THS SYNTAGHS POU THELETAI NA DIAGRAFEI: \");\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos egkyrotitas tou ari8mou pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfPrescription)\n\t\t\t{\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"KSANAEISAGETAI ARITHMO SYNTAGHS: \");\n\t\t\t}\n\t\t\t// Metakinw tis epomenes syntages mia 8esi pio aristera\n\t\t\tfor(int k = tmp_1; k < numOfPrescription - 1; k++)\n\t\t\t{\n\t\t\t\tprescription[k] = prescription[k+1]; // Metakinw thn syntagh sti 8esi k+1 pio aristera\n\t\t\t}\n\t\t\tnumOfPrescription--; // Meiwse ton ari8mo twn syntagwn\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.print(\"\\nDEN YPARXOUN DIATHESIMES SYNTAGES PROS DIAGRAFH!\\n\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public void pruefungsleistungEntfernen(String modulname, int note) {\n\t\ttry {\n\t\t\tPruefungsleistung pruefungsleistung = new Pruefungsleistung(modulname, note);\n\t\t\tfor (Pruefungsleistung element : pruefungsleistungen) {\n\t\t\t\tif (element.equals(pruefungsleistung)) {\n\t\t\t\t\tpruefungsleistungen.remove(element);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (NotenException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"public void setNote(String note) {\r\n this.note = note;\r\n }",
"int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }",
"@Override\n\tpublic void doit() {\n\t\tafficher_texte(UtilitaireChainesCommunes.demande_saisie_nombre);\n\t\tint i = saisie_entier();\n\t\tafficher_texte(UtilitaireChainesCommunes.demande_saisie_nombre);\n\t\tint j = saisie_entier();\n\t\t// tous deux strictements positifs ou strictement négatifs? \n\t\t// vrai => produit positif\n\t\t// faux => produit negatif ou nul\n\t\tboolean Truth = TrueIfSameTruthValue(i,j,this.estposit);\n if (Truth){afficher_texte(UtilitaireChainesCommunes.resultat_positif);}\n else{ \n \t// l un des deux est soit de signe différent soit nul.\n \t// on vire le cas \"est de signe différent\" (on aurait pu faire l autre)\n \tboolean Truth2 = ((i < 0 && j > 0) || (i > 0 && j < 0));\n \tif (Truth2){afficher_texte(UtilitaireChainesCommunes.resultat_negatif);}\n \telse {afficher_texte(UtilitaireChainesCommunes.nombre_nul);}\n }\n\n\t}",
"public void cartgarTareasConRepeticionDespuesDe(TareaModel model,int unid_medi,String cant_tiempo,String tomas)\n {\n Date fecha = convertirStringEnFecha(model.getFecha_aviso(),model.getHora_aviso());\n Calendar calendar = Calendar.getInstance();\n\n if(fecha != null)\n {\n calendar.setTime(fecha);\n calcularCantidadDeRepeticionesHorasMin(unid_medi,calendar,cant_tiempo,tomas,model);\n }\n }",
"private void prepararNoticias() {\n Noticia noticia = new Noticia(\n \"Novo Residencial perto de você!\",\n \"Venha conhecer nosso mais novo empreendimento.\"\n );\n noticias.add(noticia);\n\n noticia = new Noticia(\n \"As melhores condições para você adiquirir um imovel hoje mesmo\",\n \"Marque uma visita.\"\n );\n noticias.add(noticia);\n\n adapter.notifyDataSetChanged();\n }",
"public static PatternInterface trill(Note baseNote){\r\n \treturn trill(baseNote, EFFECT_DIRECTION_UP);\r\n }",
"public void pruefungsleistungHinzufuegen(String modulname, int note) {\n\t\ttry {\n\t\t\tpruefungsleistungen.add(new Pruefungsleistung(modulname, note));\n\t\t} catch (NotenException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"public Double getNote()\r\n {\r\n return note;\r\n }",
"public void insertarNota(Note nota){\n ContentValues valores = new ContentValues();\n valores.put(\"fecha\",nota.obtenerFechaFormateada());\n valores.put(\"titulo\",nota.getTitulo());\n valores.put(\"nota\",nota.getNota());\n if(nota.getIdExamenAsociado()!=-1){\n valores.put(\"examenAsociado\",nota.getIdExamenAsociado());\n }\n db.insert(\"nota\",null,valores);\n }",
"private boolean isNoteworthy(ThingTimeTriple firstTriple, ThingTimeTriple previousTriple)\r\n/* 129: */ {\r\n/* 130:137 */ Mark.say(\r\n/* 131: */ \r\n/* 132: */ \r\n/* 133: */ \r\n/* 134: */ \r\n/* 135: */ \r\n/* 136: */ \r\n/* 137: */ \r\n/* 138: */ \r\n/* 139: */ \r\n/* 140: */ \r\n/* 141: */ \r\n/* 142: */ \r\n/* 143: */ \r\n/* 144: */ \r\n/* 145: */ \r\n/* 146: */ \r\n/* 147: */ \r\n/* 148: */ \r\n/* 149: */ \r\n/* 150: */ \r\n/* 151: */ \r\n/* 152: */ \r\n/* 153: */ \r\n/* 154: */ \r\n/* 155: */ \r\n/* 156: */ \r\n/* 157: */ \r\n/* 158: */ \r\n/* 159: */ \r\n/* 160: */ \r\n/* 161: */ \r\n/* 162: */ \r\n/* 163: */ \r\n/* 164: */ \r\n/* 165: */ \r\n/* 166: */ \r\n/* 167: */ \r\n/* 168: */ \r\n/* 169: */ \r\n/* 170: */ \r\n/* 171: */ \r\n/* 172: */ \r\n/* 173: */ \r\n/* 174:181 */ new Object[] { \"Inputs to isNoteworthy\", firstTriple.english, previousTriple.english });\r\n/* 175:138 */ if (previousTriple == null)\r\n/* 176: */ {\r\n/* 177:139 */ resetReference(firstTriple);\r\n/* 178:140 */ return true;\r\n/* 179: */ }\r\n/* 180:143 */ if (previousTriple.english.equals(firstTriple.english))\r\n/* 181: */ {\r\n/* 182:144 */ Mark.say(new Object[] {\"English is the same\" });\r\n/* 183: */ }\r\n/* 184: */ else\r\n/* 185: */ {\r\n/* 186:147 */ String type = firstTriple.t.getType();\r\n/* 187:148 */ Mark.say(new Object[] {\"Significant types\", type, this.significantEvents });\r\n/* 188:150 */ if (this.significantEvents.contains(type))\r\n/* 189: */ {\r\n/* 190:151 */ Mark.say(new Object[] {firstTriple.english, \"is significant\" });\r\n/* 191: */ \r\n/* 192: */ \r\n/* 193: */ \r\n/* 194:155 */ ThingTimeTriple previousEventOfSameType = (ThingTimeTriple)this.previousTriples.get(type);\r\n/* 195:157 */ if (previousEventOfSameType == null)\r\n/* 196: */ {\r\n/* 197:158 */ resetReference(firstTriple);\r\n/* 198:159 */ return true;\r\n/* 199: */ }\r\n/* 200:162 */ if (overlaps(firstTriple, previousEventOfSameType))\r\n/* 201: */ {\r\n/* 202:167 */ Connections.getPorts(this).transmit(TO_TEXT_VIEWER, new BetterSignal(new Object[] { \"Commentary\", Html.line(\"Events overlap [\" + \r\n/* 203:168 */ previousEventOfSameType.from / 1000L + \" \" + previousEventOfSameType.to / 1000L + \"] [\" + firstTriple.from / 1000L + \" \" + \r\n/* 204:169 */ firstTriple.to / 1000L + \"] \") }));\r\n/* 205: */ }\r\n/* 206: */ else\r\n/* 207: */ {\r\n/* 208:172 */ resetReference(firstTriple);\r\n/* 209:173 */ return true;\r\n/* 210: */ }\r\n/* 211: */ }\r\n/* 212: */ else\r\n/* 213: */ {\r\n/* 214:177 */ Mark.say(new Object[] {firstTriple.english, \"NOT significant\" });\r\n/* 215: */ }\r\n/* 216: */ }\r\n/* 217:180 */ return false;\r\n/* 218: */ }",
"public void sendMessage(final int note) {\n final ShortMessage myMsg = new ShortMessage();\n final long timeStamp = -1;\n\n // hard-coded a moderate velocity of 93 because there is no way of tracking speed of finger movement\n try {\n myMsg.setMessage(ShortMessage.NOTE_ON, 0, note, 93);\n } catch (final InvalidMidiDataException e) {\n System.err.println(\"Could not send midi message! \");\n System.err.println(e.getMessage());\n }\n this.midiReceiver.send(myMsg, timeStamp);\n\n// turn the note off after one second of playing\n final ExecutorService service = Executors.newFixedThreadPool(1);\n service.submit(() -> {\n try {\n Thread.sleep(1000);\n //stop old note from playing\n myMsg.setMessage(ShortMessage.NOTE_OFF, 0, note, 0);\n this.midiReceiver.send(myMsg, timeStamp);\n } catch (final InterruptedException | InvalidMidiDataException e) {\n e.printStackTrace();\n }\n });\n }",
"@Override\n public Coup meilleurCoup(Plateau _plateau, Joueur _joueur, boolean _ponder) {\n \n _plateau.sauvegardePosition(0);\n \n /* On créé un noeud père, qui est le noeud racine de l'arbre. On définit arbitrairement le joueur associé (\n (0 ou 1, il importe peu de savoir quel joueur correspond à ce nombre, cette information étant déjà portée par \n j1 et j2 dans l'algorithme. Le tout est de faire alterner cette valeur à chaque niveau de l'arbre. */\n \n Noeud pere = new Noeud();\n pere.joueurAssocie = 0;\n \n // On définit ici c, le coefficient d'arbitrage entre exploration et exploitation. Ce dernier est théroquement optimal pour una valeur égale à sqrt(2).\n \n double c = 10 * Math.sqrt(2);\n double[] resultat = new double[2];\n \n // Conditions de fonctionnement par itération\n \n //int i = 1;\n //int nbTours = 10000;\n \n //while(i <= nbTours){\n \n // Conditions de fonctionnement en mode \"compétition\" (100 ms pour se décider au maximum).\n \n long startTime = System.currentTimeMillis();\n \n while((System.currentTimeMillis()-startTime) < 100){\n\n // La valeur résultat ne sert à rien fondamentalement ici, elle sert uniquement pour le bon fonctionnement de l'algorithme en lui même.\n // On restaure le plateau à chaque tour dans le MCTS (Sélection - Expension - Simulation - Backpropagation). \n \n resultat = MCTS(pere, _plateau, this.j_humain, this.j_ordi, c, this.is9x9, this.methodeSimulation);\n _plateau.restaurePosition(0);\n \n //i++;\n }\n\n // On doit maintenant choisir le meilleur coup parmi les fils du noeud racine, qui correspondent au coup disponibles pour l'IA.\n \n double maxValue = 0;\n int maxValueIndex = 0;\n \n for(int j = 0; j < pere.fils.length; j++){\n \n double tauxGain = ((double)pere.fils[j].nbPartiesGagnees / (double)pere.fils[j].nbPartiesJouees);\n\n // On choisirat le coup qui maximise le taux de gain des parties simulées.\n \n if(tauxGain >= maxValue){\n maxValueIndex = j;\n maxValue = tauxGain;\n \n }\n }\n \n // On retourne le coup associé au taux de gain le plus élevé.\n\n return pere.fils[maxValueIndex].coupAssocie;\n }",
"private static void processPart (WorkPart part) \n\t\tthrows Exception\n\t{\n\t\tTextWrapper textWrapper = part.getPrimaryText();\n\t\tif (textWrapper == null) return;\n\t\tText primary = textWrapper.getText();\n\t\tint n = primary.getNumLines();\n\t\tTextLine[] primaryLines = primary.getLines();\n\t\tTextLine[] translationLines = new TextLine[n];\n\t\tCollection lines = pm.getLinesInWorkPart(part);\n\t\tint numTranslatedLines = 0;\n\t\tfor (Iterator it = lines.iterator(); it.hasNext(); ) {\n\t\t\tLine line = (Line)it.next();\n\t\t\tTextRange location = line.getLocation();\n\t\t\tif (location == null) continue;\n\t\t\tTextLocation start = location.getStart();\n\t\t\tif (start == null) continue;\n\t\t\tTextLocation end = location.getEnd();\n\t\t\tif (end == null) continue;\n\t\t\tint endIndex = end.getIndex();\n\t\t\tString lineTag = line.getTag();\n\t\t\tif (lineTag == null) continue;\n\t\t\tElement el = (Element)lineTagToElMap.get(lineTag);\n\t\t\tif (el == null) continue;\n\t\t\tlineTagsFound.add(lineTag);\n\t\t\tTextLine translationLine = new BuildParagraph(el, \n\t\t\t\tTextParams.ROMAN,\n\t\t\t\tTextParams.TRANSLATED_LINE_FONT_SIZE);\n\t\t\tTextLine primaryLine = primaryLines[endIndex];\n\t\t\tint primaryIndentation = primaryLine.getIndentation();\n\t\t\ttranslationLine.setIndentation(primaryIndentation +\n\t\t\t\tTextParams.TRANSLATION_INDENTATION);\n\t\t\ttranslationLines[endIndex] = translationLine;\n\t\t\tnumTranslatedLines++;\n\t\t}\n\t\tif (numTranslatedLines == 0) return;\n\t\tText translation = new Text();\n\t\ttranslation.setCollapseBlankLines(false);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tTextLine translationLine = translationLines[i];\n\t\t\tif (translationLine == null) {\n\t\t\t\ttranslation.appendBlankLine();\n\t\t\t} else {\n\t\t\t\ttranslation.appendLine(translationLine);\n\t\t\t}\n\t\t}\n\t\ttranslation.finalize();\n\t\tpm.begin();\n\t\tTextWrapper translationWrapper = new TextWrapper(translation);\n\t\tpm.save(translationWrapper);\n\t\tpart.addTranslation(translationTag, translationWrapper);\n\t\tpm.commit();\n\t}",
"public void setNote( final Double note )\r\n {\r\n this.note = note;\r\n }",
"public void setNote(String note) {\r\n\r\n this.note = note;\r\n }",
"public int toMidi(Note n) {\n\n int normIndex = n.getNoteIndex() + numOffset + (7 * octaveOffset);\n int numOctaves = normIndex/7;\n\n int midiAddend = MIDI_OFFSETS[normIndex - (7*numOctaves)];\n\n return 38 + midiAddend + 12*numOctaves; // 37 is low D\n }",
"private void prepare_3_warten_auf_start() {\n if (stopBecause_wartenAufStart() ) {\n this.zeitgeber.stopGame(\"spielzeit des vorbereitenden ist abgelaufen\");\n }\n \n // zeit wieder starten, falls vorbereiten leer ist oder eine zeile mit start in der zukunft hat, falls evnet auf pause ist\n if (jetzt.isUnterbruch() && ! stopBecause_zumVorbereiten()) {\n if (this._3_vorbereitet.isEmpty() || jetzt.getSpielZeit().isBefore(new DateTime(_3_vorbereitet.get(0).getStart()))) {\n this.zeitgeber.startGame(0, \"liste mit vorbereiteten ist wieder leer\");\n }\n }\n }",
"@Test\n public void testPartieContinue(){\n Joueur NORD = new Joueur(\"NORD\");\n Joueur SUD = new Joueur(\"SUD\");\n assertTrue(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n // avec des bases injouables\n NORD.setAscendant(61);\n NORD.setDescendant(0);\n SUD.setAscendant(61);\n SUD.setDescendant(0);\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0, false));\n // avec un jeu vide\n NORD.jeu.clear();\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0, false));\n\n SUD.jeu.clear();\n NORD.jeu.add(0,59);\n NORD.jeu.add(1,58);\n NORD.setAscendant(57);\n NORD.setDescendant(2);\n SUD.setAscendant(1);\n SUD.setDescendant(60);\n assertTrue(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n NORD.setAscendant(58);\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n //cas spécifique\n NORD.setAscendant(49);\n NORD.setDescendant(2);\n SUD.setAscendant(53);\n SUD.setDescendant(9);\n SUD.jeu.add(0,34);\n SUD.jeu.add(1,44);\n SUD.jeu.add(2,38);\n SUD.jeu.add(3,6);\n SUD.jeu.add(4,41);\n SUD.jeu.add(5,39);\n assertTrue(Regles.partieContinue(SUD.clone(), NORD.clone(), 0, false));\n\n\n }",
"public static void mostrarNotificacoesTempoReal() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tmostraNotificacoes = true;\n\t\tSystem.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nNotificacoes em Tempo Real sobre as Eleicoes a decorrer: \\nPrima qualquer tecla para sair...\\n\\n\");\n\t\tsc.nextLine();\n\t\tmostraNotificacoes = false;\n\t}",
"public java.lang.String getRemark3()\r\n {\r\n return _remark3;\r\n }",
"@Override\r\n\t\t\t\t\tpublic void sendNoteOn(NoteOn noteOn) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@Override\n public double calculaTributos() {\n // TODO Auto-generated method stub\n return 10;\n }",
"@Override\n public void combineSim(ArrayList<Note> list) {\n }",
"public void sequentialNoteEvent(Note note)\r\n {\r\n byte noteValue = note.getValue();\r\n if (voiceValue != 9) // added D G Gray 5th Feb 2017\r\n {\r\n noteValue += this.interval;\r\n note.setValue(noteValue);\r\n\t }\r\n\r\n\r\n getReturnPattern().addElement(note);\r\n }",
"public int getTaillePoule (){\n\t\treturn 3;\n\t}",
"public String converterTemperatura(Medidas medidaUm, Medidas medidaDois) {\n String medidaUmUnidade = medidaUm.getUnidadeDeTemperatura();\n String medidaDoisUnidade = medidaDois.getUnidadeDeTemperatura();\n boolean unidadesIguais = medidaUmUnidade.equals(medidaDoisUnidade) ? true : false;\n String errorMessage = \"Não é possível realizar a conversão, pois as duas medidas já estão na mesma unidade.\";\n\n if (unidadesIguais)\n return errorMessage;\n else {\n int medidaUmTemperaturaNova = (int) ((medidaUmUnidade == \"f\") ? ((medidaUm.getTemperatura() - 32) / 1.8)\n : ((medidaUm.getTemperatura() * 1.8) + 32));\n medidaUm.setTemperatura(medidaUmTemperaturaNova);\n String medidaUmUnidadeDeTemperaturaNova = (medidaUmUnidade == \"f\") ? \"c\" : \"f\";\n medidaUm.setUnidadeDeTemperatura(medidaUmUnidadeDeTemperaturaNova);\n\n int medidaDoisTemperaturaNova = (int) ((medidaDoisUnidade == \"f\") ? ((medidaDois.getTemperatura() - 32) / 1.8)\n : ((medidaDois.getTemperatura() * 1.8) + 32));\n medidaDois.setTemperatura(medidaDoisTemperaturaNova);\n String medidaDoisUnidadeDeTemperaturaNova = (medidaUmUnidade == \"f\") ? \"c\" : \"f\";\n medidaDois.setUnidadeDeTemperatura(medidaDoisUnidadeDeTemperaturaNova);\n }\n\n String medidaUmConvertida = medidaUm.getTemperatura() + \" \" + medidaUm.getUnidadeDeTemperatura();\n String medidaDoisConvertida = medidaDois.getTemperatura() + \" \" + medidaDois.getUnidadeDeTemperatura();\n\n return (\"Temp. 01: \" + medidaUmConvertida + \" | \" + \"Temp. 02: \" + medidaDoisConvertida);\n }",
"public void ParcoursInfixe(ArrayList<Item> items) {\r\n// Item[] listeItem= new Item[this.taille()];\r\n if (getGauche() != null) {\r\n getGauche().ParcoursInfixe(items);\r\n }\r\n items.add((Item) getElement());\r\n if (getDroite() != null) {\r\n getDroite().ParcoursInfixe(items);\r\n }\r\n// return listeItem;\r\n }",
"Etudiant(String prenom, String nom, double note) {\n this.prenom = prenom;\n this.nom = nom;\n this.note = note;\n\n addNote(note);\n addEtudiant();\n\n }",
"private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\t/*\r\n\t\t * Exercicio 1\r\n\t\t*/\r\n\t\t\r\n\t\tint c = 0;\r\n\t\tint s = 1;\r\n\t\tint f = 0;\r\n\t\tint b = 0;\r\n\t\t\r\n\t\twhile( c < 8 ) {\r\n\t\t\t\r\n\t\t\tb = f + s;\r\n\t\t\tf = s;\r\n\t\t\ts = b;\r\n\t\t\tc++;\r\n\t\t\tSystem.out.println(b);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t * Exercicio 2\r\n\t\t */\r\n\t\t\r\n\t\tdouble[][] notas = new double[6][2];\r\n\t\tSystem.out.println(\"Digite a notas dos 6 alunos, em ordem (primeiro aluno: primeira nota depois segunda nota)\");\r\n\t\tfor(int i = 0; i <6; i++) {\r\n\t\t\tfor(int j = 0; i <2; i++) {\r\n\t\t\t\tnotas[i][j] = scan.nextDouble();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < 6; i++) {\r\n\t\t\tdouble m = (notas[i][0] + notas[i][1]) / 2;\r\n\t\t\tnotas[i][2] = m;\r\n\t\t\tSystem.out.println(notas[i][2]);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < 6; i++) {\r\n\t\t\tSystem.out.println(notas[i][2] >= 6 ? \"Aluno \"+(i)+\" Passou\" : \"Aluno \"+(i)+\" Recuperação\");\r\n\t\t}\r\n\t\t\r\n\t\tint a = 0;\r\n\t\t\r\n\t\tfor(int i = 0; i < 6; i++) {\r\n\t\t\tif(notas[i][2] >= 6) {\r\n\t\t\t\ta++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(a+\" Alunos passaram\");\r\n\t\t\r\n\t\tint d = 0;\r\n\t\t\r\n\t\tfor(int i = 0; i < 6; i++) {\r\n\t\t\tif(notas[i][2] <= 3) {\r\n\t\t\t\td++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(d+\" Alunos reprovaram\");\r\n\t\t\r\n\t\tint e = 0;\r\n\t\t\r\n\t\tfor(int i = 0; i < 6; i++) {\r\n\t\t\tif((notas[i][2] <= 6)||(notas[i][2] >= 3)) {\r\n\t\t\t\te++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(e+\" Alunos de recuperação\");\r\n\t\t\r\n\t\tdouble g = 0;\r\n\t\t\r\n\t\tfor(int i = 0; i < 6; i++) {\r\n\t\t\tg = g + notas[i][2];\r\n\t\t}\r\n\t\tSystem.out.println(\"Media da sala: \"+g/6);\r\n\t\t\r\n\t\t/*\r\n\t\t * Exercicio 3\r\n\t\t */\r\n\t\t\r\n\t\tboolean prime = true;\r\n\t\tSystem.out.println(\"Insira o numero que desejas saber se é primo ou não (inteiro positivo) \");\r\n\t\tint h = scan.nextInt();\r\n\t\tfor(int i = 2; i <= h; i ++) {\r\n\t\t\tif( (h % i == 0) && (i != h) ) {\r\n\t\t\t\tprime = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(prime)\r\n\t\t\tSystem.out.print(\"O numero \"+h+\" é primo\");\r\n\t\telse\r\n\t\t\tSystem.out.print(\"O numero \"+h+\" não é primo\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Exercicio 4\r\n\t\t */\r\n\t\t\r\n\t\tSystem.out.println(\"Insira notas dos alunos (Ordem: Primeira nota, segunda nota, presença)\");\r\n\t\tint[][] Sala = new int[5][3];\r\n\t\tfor(int i = 0; i < 5; i++) {\r\n\t\t\tfor(int j = 0; j < 3; j++) {\r\n\t\t\t\tSala[i][j] = scan.nextInt();\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < 5; i++) {\r\n\t\t\tif((Sala[i][0] + Sala[i][1] >= 6) && (Sala[i][2] / 18 >= 0.75)){\r\n\t\t\t\tSystem.out.println(\"Aluno \"+i+\" aprovado\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"Aluno \"+i+\" reprovado\");\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t * Exercicio 5\r\n\t\t */\r\n\t\t\r\n\t\tint[] first = {1,2,3,4,5,};\r\n\t\tint[] second = {10,9,8,7,6,5,4,3,2,1,};\r\n\t\tint[][] third = {{1,2,3,},\r\n\t\t\t\t\t {4,5,6},\r\n\t\t\t\t\t {7,8,9},\r\n\t\t\t\t\t {10,11,12}};\r\n\t\tint[][] fourth = new int[4][3]; \r\n\t\tint m = 0;\r\n\t\t//If they were random numbers, would i need to use the lowest integer? or just be clever\r\n\t\tint n = 1;\r\n\t\t\r\n\t\tfor(int i = 0; i < first.length; i++) {\r\n\t\t\tif(first[i] > m)\r\n\t\t\t\tm = first[i];\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < second.length; i++) {\r\n\t\t\tif(second[i] < n)\r\n\t\t\t\tn = second[i];\r\n\t\t}\r\n\t\t\r\n\t\tint x = n*m;\r\n\t\tint k = 0;\r\n\t\tint l = 0;\r\n\t\tint o = 0;\r\n\t\tint p = 0;\r\n\t\t\r\n\t\tfor(int i = 0; i < 4; i ++) {\r\n\t\t\tfor(int j = 0; j < 3; j++) {\r\n\t\t\t\tfourth[i][j] = third[i][j] + x;\r\n\t\t\t\r\n\t\t\t\tif(fourth[0][j] % 2 == 0) {\r\n\t\t\t\t\tk += fourth[0][j]; \r\n\t\t\t\t}\r\n\t\t\t\tif(fourth[1][j] % 2 == 0) {\r\n\t\t\t\t\tl += fourth[1][j];\r\n\t\t\t\t}\t\r\n\t\t\t\tif(fourth[0][j] % 2 == 0) {\r\n\t\t\t\t\to += fourth[2][j];\r\n\t\t\t\t}\r\n\t\t\t\tif(fourth[3][j] % 2 == 0) {\r\n\t\t\t\t\tp += fourth[3][j];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t * Exercicio 6\r\n\t\t */\r\n\t\t\r\n\t\tboolean[][] assentos = new boolean[2][5];\r\n\t\tfor(int i = 0; i < 2; i++) {\r\n\t\t\tfor(int j = 0; j < 5; j++) {\r\n\t\t\t\tassentos[i][j] = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tscan.close();\r\n\t}"
] |
[
"0.5535927",
"0.54389805",
"0.5354038",
"0.53496134",
"0.529563",
"0.52367854",
"0.5156596",
"0.50574654",
"0.5035836",
"0.50333434",
"0.50252855",
"0.5004484",
"0.500324",
"0.49972305",
"0.49795237",
"0.49783596",
"0.49697226",
"0.49595478",
"0.49530268",
"0.49340475",
"0.49267343",
"0.49255067",
"0.49190083",
"0.49147552",
"0.48956272",
"0.48848447",
"0.48730668",
"0.48687533",
"0.4867369",
"0.48627338",
"0.48610553",
"0.48557264",
"0.48545438",
"0.48495314",
"0.48483384",
"0.48411292",
"0.4833896",
"0.48299274",
"0.48242447",
"0.48144394",
"0.48130515",
"0.48126918",
"0.48014253",
"0.47874275",
"0.47861955",
"0.47611967",
"0.47544816",
"0.47542217",
"0.47418836",
"0.47305518",
"0.4727465",
"0.47235793",
"0.47230044",
"0.47197172",
"0.47127515",
"0.47118637",
"0.47116268",
"0.47100013",
"0.47025165",
"0.46919107",
"0.46903658",
"0.46903658",
"0.46864474",
"0.46819952",
"0.46819952",
"0.46819952",
"0.46819952",
"0.46819952",
"0.4679603",
"0.46750745",
"0.46711373",
"0.4664908",
"0.46489817",
"0.46401885",
"0.4639122",
"0.46386102",
"0.46385106",
"0.46384898",
"0.46305564",
"0.46230352",
"0.46211648",
"0.46167532",
"0.46118417",
"0.46092087",
"0.46077883",
"0.46075395",
"0.46054766",
"0.45936292",
"0.45926553",
"0.45875412",
"0.4587019",
"0.45808953",
"0.4574532",
"0.45673808",
"0.4565456",
"0.4564787",
"0.4563508",
"0.45607388",
"0.45593786",
"0.45552832"
] |
0.57887983
|
0
|
Tests whether the given attribute key is prefixed with cloudEvents:
|
@Override
protected boolean isCloudEventsHeader(final String key) {
final int prefixLength = AmqpConstants.CE_PREFIX.length();
return key.length() > prefixLength && key.startsWith(AmqpConstants.CE_PREFIX);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean containsEventMetadata(\n long key);",
"boolean containsAttributes(java.lang.String key);",
"private boolean hasAttributeKey(String xryLine) {\n int attributeKeyIndex = xryLine.indexOf(KEY_VALUE_DELIMITER);\n //No key structure found.\n if (attributeKeyIndex == -1) {\n return false;\n }\n\n String normalizedDataKey = xryLine.substring(0,\n attributeKeyIndex).trim().toLowerCase();\n return normalizedDataKey.equals(ATTRIBUTE_KEY);\n }",
"private boolean isXKey(String key) {\r\n return key.startsWith(\"x-\");\r\n }",
"public boolean hasKeyComponents(){\n\n // Event is valid if it has an event name date\n if(event == null || date == 0 || startTime == null || endTime == null){\n return false;\n }\n return true;\n }",
"public abstract boolean shouldObserve(String key);",
"public boolean containsAttribute(String key) {\n return attributes.containsKey(key);\n }",
"public static boolean isFullyQualified(String key) {\n return isFullyQualified(key, false);\n }",
"boolean hasKey(String key);",
"public boolean existsKeyInS3(String inKey);",
"boolean containsKey(String keyLabel);",
"boolean containsMetadata(\n java.lang.String key);",
"boolean containsMetadata(\n java.lang.String key);",
"@Override\n public boolean isCorrespondingTo(Event event){\n String n = event.getName();\n return n.equals(name) || n.equals(name_lt) || n.equals(name_gt);\n }",
"public boolean containsKey(String key);",
"private boolean checkStartElement(XMLEvent event, String elementName) {\n\t\tif (event.isStartElement()\n\t\t\t\t&& event.asStartElement().getName().getLocalPart()\n\t\t\t\t\t\t.toLowerCase().equals(elementName)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public boolean isCorrespondingTo(String eventName) {\n return eventName.equals(name) || eventName.equals(name_lt) || eventName.equals(name_gt) ;\n }",
"public boolean startsWith(XMLString prefix) {\n/* 353 */ return this.m_str.startsWith(prefix.toString());\n/* */ }",
"public boolean containsKey(String key) throws Exception {\n //return properties.containsKey(key);\n if (config != null) {\n Configuration[] props = config.getChildren(\"property\");\n for (int i = 0; i < props.length; i++) {\n if (props[i].getAttribute(\"name\") != null && props[i].getAttribute(\"name\").equals(key)) return true;\n }\n }\n return false;\n }",
"@Override\n\t\t\tpublic boolean contains(String key) {\n\t\t\t\treturn false;\n\t\t\t}",
"public boolean containsKey(String n){\n\t\treturn name.containsKey(n);\n\t}",
"public boolean containsKey(String s){\r\n return this.get(s) != 0;\r\n }",
"public static boolean isReservedFileInfoKey(byte[] key) {\n return Bytes.startsWith(key, FileInfo.RESERVED_PREFIX_BYTES);\n }",
"@Override\n\tpublic boolean containsKey(Object key) {\n\t\tString uKey = key.toString().toUpperCase();\n\t\treturn super.containsKey(uKey);\n\t}",
"private boolean validate(String key) {\n \t\t\t for (int i = 0; i < ignoreKeys.length; i ++) {\n \t\t\t\t String test = key.trim();\n \t\t\t\t if(test.equalsIgnoreCase(ignoreKeys[i])) return false;\n \t\t\t }\n \t\t\t return true;\n \t\t }",
"boolean containsKey(CoreLabel key);",
"boolean isTypeKey(String key);",
"boolean hasProperty(String key);",
"public boolean hasProperty( String key );",
"public static boolean isFullyQualified(String key, boolean literal) {\n return !literal && key != null && (key.contains(SEPARATOR) || INDEX_PATTERN.matcher(key).find());\n }",
"public static Boolean isContains(String key){\r\n return scenarioContext.containsKey(key.toString());\r\n }",
"@Override\n protected String toCloudEventsKey(final String key) {\n return key.substring(AmqpConstants.CE_PREFIX.length());\n }",
"private boolean isMessageNameMatching(AuditEvent event) {\n return messageRegexp == null || messageRegexp.matcher(event.getMessage()).find();\n }",
"boolean isPrefix(String potentialPrefix);",
"private boolean hasDataKey(String xryLine) {\n int dataKeyIndex = xryLine.indexOf(KEY_VALUE_DELIMITER);\n //No key structure found.\n if (dataKeyIndex == -1) {\n return false;\n }\n\n String normalizedDataKey = xryLine.substring(0,\n dataKeyIndex).trim().toLowerCase();\n return normalizedDataKey.equals(DATA_KEY);\n }",
"public boolean containsKey(String key) {\n \treturn (getNode(key) != null);\n }",
"@Override\n\t\tpublic boolean hasProperty(String key) {\n\t\t\treturn false;\n\t\t}",
"@Override // android.media.MediaFormat.FilteredMappedKeySet\n public boolean keepKey(String key) {\n return key.startsWith(this.mPrefix);\n }",
"private String isKeyAlreadyFormed(String Key){\n\t\tfor(String key : userData.keySet()){\n\t\t\tif(key.startsWith(Key)){\n\t\t\t\treturn key;\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}",
"@Test\n\tpublic void test_TCM__String_getNamespacePrefix() {\n\t\tfinal Namespace namespace = Namespace.getNamespace(\"prefx\", \"http://some.other.place\");\n\n\t\tfinal Attribute attribute = new Attribute(\"test\", \"value\", namespace);\n\t\tassertTrue(\"incorrect prefix\", attribute.getNamespacePrefix().equals(\"prefx\"));\n\t}",
"public static boolean isNameStart(int c) {\n return c < 0x10000 && (CHARS[c] & MASK_NAME_START) != 0;\n }",
"public boolean startsWith(String prefix) {\n TrieNode node = search(root, prefix, 0);\n\t\treturn hasKey(node);\n }",
"public boolean startsWith(String prefix) {\n char[] chs = prefix.toCharArray();\n TreeNode cur = root;\n for (int i = 0; i < chs.length; i++) {\n int ind = chs[i] - 'a';\n if (cur.map[ind] == null) {\n return false;\n }\n cur = cur.map[ind];\n }\n return true;\n }",
"boolean containsField(\n java.lang.String key);",
"public boolean definesKey( final String key ) {\n return values.containsKey( key );\n }",
"public boolean startsWith(XMLString prefix, int toffset) {\n/* 313 */ return this.m_str.startsWith(prefix.toString(), toffset);\n/* */ }",
"private static boolean hasData(Map<String, Object> record, String prefix, String fieldName) {\n boolean hasData = false;\n if (!StringUtils.isEmpty(prefix)) {\n fieldName = prefix + Constants.DOT + fieldName;\n }\n for (String key : record.keySet()) {\n if (null != record.get(key) &&\n (key.equals(fieldName) || key.startsWith(fieldName.concat(Constants.DOT)))) {\n hasData = true;\n break;\n }\n }\n\n return hasData;\n }",
"@Test\n public void testGetReservedKeys() {\n assertEquals(\"Timestamp must match\",TIMESTAMP.toString(), ev.get(\"_timestamp\"));\n assertEquals(\"Sources must match\",source,ev.get(\"_source\"));\n }",
"public boolean containAttribute(String name);",
"public boolean startsWith(String prefix) {\n return getNode(prefix) != null;\n }",
"public boolean lineContainsAttributeName(String line,\n String attributeName) {\n\n int startSearchIndex = 0;\n boolean validStart = false;\n boolean validEnd = false;\n if (isEmpty(line) || isEmpty(attributeName)) {\n return false;\n }\n\n if (!line.contains(attributeName)) {\n return false;\n }\n\n while (true) {\n int startIndexOfAttr =\n line.indexOf(attributeName, startSearchIndex);\n\n if (startIndexOfAttr < 0) {\n return false;\n }\n\n if (startIndexOfAttr == 0) {\n validStart = true;\n } else {\n Character charbefore = line.charAt(startIndexOfAttr - 1);\n if (Character.isWhitespace(charbefore)) {\n validStart = true;\n } else {\n validStart = false;\n }\n }\n\n if (validStart == false) {\n startSearchIndex = startSearchIndex + attributeName.length();\n continue;\n }\n\n int endIndexOfAttr = startIndexOfAttr + attributeName.length();\n int strLength = line.length();\n // this is quite silly - because it should not end with the attributeName, but its still valid\n if (endIndexOfAttr == strLength - 1) {\n validEnd = true;\n } else {\n Character charAfter = line.charAt(endIndexOfAttr);\n if (Character.isWhitespace(charAfter)) {\n validEnd = true;\n }\n if (charAfter == '=') {\n validEnd = true;\n }\n }\n if (validStart && validEnd) {\n return true;\n }\n\n startSearchIndex = startSearchIndex + attributeName.length();\n\n }\n\n\n }",
"public boolean containsKey(final String key) {\n return key != null && _properties.containsKey(key);\n }",
"public boolean isSmartKey(String key);",
"public boolean containsKey (String key)\n\t{\n\t\treturn properties.containsKey(key);\n\t}",
"private boolean isMessageNameMatching(TreeWalkerAuditEvent event) {\n return messageRegexp == null || messageRegexp.matcher(event.getMessage()).find();\n }",
"public boolean startsWith(String prefix) {\n return (walkTo(prefix) != null);\n }",
"public boolean startsWith(String prefix) {\n TrieTree point = root;\n for(int i = 0; i < prefix.length(); i++){\n char ch = prefix.charAt(i);\n if(point.getChild(ch - 'a') == null) return false;\n point = point.getChild(ch - 'a');\n }\n return true;\n }",
"public boolean startsWith(String prefix) {\n Node current = root;\n for (int i = 0; i < prefix.length(); i++) {\n int c = prefix.charAt(i) - 'a';\n if (current.children[c] == null) return false;\n current = current.children[c];\n }\n return true;\n }",
"private boolean isKeyword(String value) {\n return Keywords.isKeyword(value);\n }",
"public boolean existsKey(String inKey);",
"public boolean startWith(String prefix) {\n boolean result = true;\n char[] prefixChar = prefix.toCharArray();\n if (prefixChar.length > data.length) {\n return false;\n }\n for (int i = 0; i < prefixChar.length; i++) {\n if (prefixChar[i] != data[i]) {\n result = false;\n break;\n }\n }\n return result;\n }",
"public boolean hasAttribute(String name)\n/* */ {\n/* 1234 */ return findAttribute(name) != null;\n/* */ }",
"public static boolean isStartsWith(String str, String prefix) {\n\treturn null != str && str.startsWith(prefix);\n }",
"public boolean startsWith(String prefix) {\n/* 333 */ return this.m_str.startsWith(prefix);\n/* */ }",
"private static boolean stringStartsWith(String string, String prefix){\n for(int i=0; i < prefix.length(); i++){\n if(string.charAt(i) != prefix.charAt(i)){\n return false;\n }\n }\n return true;\n }",
"boolean containsProperties(\n java.lang.String key);",
"public boolean existsKeyInS3(String inBucket, String inKey);",
"public boolean contains(String key);",
"public boolean startsWith(String prefix) {\n\t\tcur = root;\n\t\tfor (char c : prefix.toCharArray()) {\n\t\t\tif (cur == null)\n\t\t\t\treturn false;\n\t\t\tcur = cur.children[c - 'a'];\n\t\t}\n\t\treturn cur != null;\n\t}",
"protected static boolean hasEntryInList(String key, String entry) {\n String entries = getSPreference(key);\n if (TextUtils.isEmpty(entries))\n return false;\n\n for (String e: entries.split(\":\"))\n if (e.equalsIgnoreCase(entry))\n return true;\n\n return false;\n }",
"boolean contains(String key);",
"boolean contains(String key);",
"boolean containsLabels(java.lang.String key);",
"boolean containsLabels(java.lang.String key);",
"boolean containsLabels(java.lang.String key);",
"boolean containsLabels(java.lang.String key);",
"public boolean checkKeyExistance(Node target, String key){\n\t\tElement child = (Element) target;\n\t\tString result = child.getAttribute(key);\n\t\tif(result.equals(\"\")) return false; //return if no key exists\n\t\treturn true;\n\t}",
"protected boolean isAttributeCaseSensitive() {\n return true;\n }",
"boolean hasVersionNamePrefix();",
"@Override // android.media.MediaFormat.FilteredMappedKeySet\n public boolean keepKey(String key) {\n return !key.startsWith(this.mPrefix);\n }",
"public boolean isEvent(String eventName) {\r\n\t\tboolean result = false;\r\n\t\tfor (Event e : events) {\r\n\t\t\tif (e.getName().equals(eventName)) {\r\n\t\t\t\tresult = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"private boolean m20199OooO00o(String str) {\n if (!TextUtils.isEmpty(str)) {\n return str.split(Constants.ACCEPT_TIME_SEPARATOR_SP).length == 3;\n }\n AbstractC8536oo00OO0O.OooO0O0(\"HiAnalytics/event\", \"event data is empty\");\n return false;\n }",
"public boolean containsPrefixName(String name) {\n return repositoryWithDualKeyNCategory.containsKey(name.toLowerCase());\n }",
"private boolean isAttributeDefined(String attrName)\n {\n return getAttributes().get(attrName) != null;\n }",
"public boolean startsWith(String prefix) {\n TrieNode ptr = root;\n for(int i = 0;i < prefix.length();i++) {\n char c = prefix.charAt(i);\n if(ptr.child[c - 'a'] == null) {\n return false;\n }\n ptr = ptr.child[c - 'a'];\n }\n return true;\n }",
"public boolean has(String key)\n {\n if (key.contains(\".\"))\n {\n String[] pieces = key.split(\"\\\\.\", 2);\n DataSection section = getSection(pieces[0]);\n return section != null && section.has(pieces[1]);\n }\n return data.containsKey(key);\n }",
"public boolean containsEvent(CalendarEvent p_event){\n return (_eventsByStamp.indexOfKey(p_event.getTimeStamp()) >= 0 && _eventsByStamp.get(p_event.getTimeStamp()).getEventName() == p_event.getEventName());\n }",
"public boolean isValidKey(String key) throws Exception;",
"public boolean startsWith(String prefix) {\n Node curr = root;\n for (int i = 0; i < prefix.length(); i++) {\n char c = prefix.charAt(i);\n Node subNode = curr.subNodes[c - 'a'];\n if (subNode == null) {\n return false;\n }\n curr = subNode;\n }\n return true;\n }",
"public boolean containsKey(Key key) ;",
"public boolean unitNameHasPrefix(String unitNameWithPrefix, boolean constrainBasedOnValidUnitNames){\n return findFirstPrefixPairMatches(unitNameWithPrefix, constrainBasedOnValidUnitNames) != NO_PREFIX_MATCH_ARRAY;\n }",
"boolean containsDetails(\n java.lang.String key);",
"boolean containsDetails(\n java.lang.String key);",
"public static final boolean isEventAllowedWithoutLogin (String event) {\n for (String str : ALLOWED_EVENTS_WITHOUT_LOGIN) {\n if (str.equals(event)) {\n return true;\n }\n }\n\n return false;\n }",
"public boolean startsWith(String prefix) {\n TrieNode curr = root;\n for (char c : prefix.toCharArray()) {\n int idx = c - 'a';\n if (curr.children[idx] == null) {\n return false;\n }\n curr = curr.children[idx];\n }\n return true;\n }",
"abstract boolean hasXMLProperty(XMLName name);",
"boolean hasAttribute(String name);",
"protected boolean shouldAddProperty(String key) {\n return !key.equals(\"label\") && !key.equals(\"id\");\n }",
"boolean hasCampaignName();",
"public boolean existsKey(String bucket, String inKey);"
] |
[
"0.5967758",
"0.5944677",
"0.59266955",
"0.57655853",
"0.56464136",
"0.5575386",
"0.5486498",
"0.54864925",
"0.5473708",
"0.5461783",
"0.5452691",
"0.54431194",
"0.54431194",
"0.54080355",
"0.5407885",
"0.5401281",
"0.53890604",
"0.53537256",
"0.5341325",
"0.53398246",
"0.530416",
"0.52363414",
"0.52312684",
"0.522648",
"0.5202714",
"0.5202073",
"0.5198696",
"0.5173915",
"0.51525164",
"0.51464903",
"0.5130198",
"0.51246387",
"0.51241004",
"0.51238215",
"0.51118374",
"0.5109212",
"0.5104013",
"0.5103349",
"0.50863063",
"0.5085063",
"0.50667775",
"0.5064206",
"0.5062424",
"0.50617063",
"0.5060154",
"0.5059522",
"0.5047036",
"0.5046781",
"0.5046171",
"0.5031519",
"0.5003476",
"0.49950385",
"0.49941275",
"0.49937424",
"0.499299",
"0.49909845",
"0.4989726",
"0.4987845",
"0.4981205",
"0.49791175",
"0.49643013",
"0.49614838",
"0.49597752",
"0.49583852",
"0.49516085",
"0.4947904",
"0.49434403",
"0.49416333",
"0.4940155",
"0.49393022",
"0.4935526",
"0.4935526",
"0.49330536",
"0.49330536",
"0.49330536",
"0.49330536",
"0.49316844",
"0.49264142",
"0.49231303",
"0.49174753",
"0.4916626",
"0.48991922",
"0.48967502",
"0.4895304",
"0.48903",
"0.48855647",
"0.48794344",
"0.48758575",
"0.48673874",
"0.4862653",
"0.48606902",
"0.48561537",
"0.48561537",
"0.48514873",
"0.48514435",
"0.4846734",
"0.48423705",
"0.48368284",
"0.4832997",
"0.48303393"
] |
0.73236674
|
0
|
Gets the cloud event attribute key without the preceding prefix.
|
@Override
protected String toCloudEventsKey(final String key) {
return key.substring(AmqpConstants.CE_PREFIX.length());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public java.lang.String getAttributeKey() {\r\n return localAttributeKey;\r\n }",
"@Override\n public String getLocalKey() {\n if (prefixComponentIndex < prefix.size())\n return prefix.get(prefixComponentIndex);\n else\n return null;\n }",
"public String getKey() {\n\t\tString t = doc.get(\"key\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}",
"public String getKey() {\r\n return getAttribute(\"id\");\r\n }",
"@XmlAttribute(name = \"key\")\r\n public String getKey()\r\n {\r\n return key;\r\n }",
"java.lang.String getClientKey();",
"public String getKeyPrefix() {\n\t\treturn keyPrefix;\n\t}",
"public String getKeyName() {\n\t\treturn this.attributeName;\r\n\t}",
"public String getKeyPrefix() {\n return keyPrefix;\n }",
"public String getKey() { \n\t\treturn getKeyElement().getValue();\n\t}",
"@Override\n\tpublic String getKey() {\n\t\treturn getCid();\n\t}",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"@Override\r\n\tpublic String getKey() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getKey() {\n\t\treturn null;\r\n\t}",
"private String loadAttributeName() {\n return parseMapField().getKey();\n }",
"public String getKey() {\n\t\treturn id + \"\";\n\t}",
"public static String getKey() {\t\t\n\t\treturn key;\n\t}",
"default String getKey() {\n return key(getClassName(), getName());\n }",
"public String getKey_() {\n return key_;\n }",
"public static String getKey(){\n\t\treturn key;\n\t}",
"public String getKey() {\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tif (getLineNo() != null) {\r\n\t\t\tbuilder.append(getLineNo());\r\n\t\t} else if (this.getEntityId() != null) {\r\n\t\t\tbuilder.append(getEntityId());\r\n\t\t}\r\n\t\treturn builder.toString();\r\n\t}",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return element == null ? null : element.getKey();\n }",
"private String getKey() {\r\n if (key == null) {\r\n key = getURI();\r\n }\r\n return key;\r\n }",
"@Override\n public byte[] getKey() {\n return MetricUtils.concat2(clusterName, topologyName, getTime().getTime()).getBytes();\n\n }",
"public String getKey() {\n Object ref = key_;\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 key_ = s;\n }\n return s;\n }\n }",
"public final String getKey() {\n return key;\n }",
"@Override\n\tpublic String getKey() {\n\t\treturn null;\n\t}",
"public String getKey() {\n Object ref = key_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n key_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey(){\n\t\treturn key;\n\t}",
"public String getKey() {\r\n\t\treturn key;\r\n\t}",
"public String getKey() {\r\n\t\treturn key;\r\n\t}",
"public String getKey() {\r\n\t\treturn key;\r\n\t}",
"public String getKey() {\n\t\treturn key;\n\t}",
"public String getKey() {\n\t\treturn key;\n\t}",
"public String getKey() {\n\t\treturn key;\n\t}",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"public String getKey()\n\t\t{\n\t\t\treturn key;\n\t\t}",
"public static Object getStaticAttributeKey(final Object key) {\n return key.getClass().getName() + \".\" + key.toString();\n }",
"public String getUserKey()\r\n {\r\n return getAttribute(\"userkey\");\r\n }",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"@XmlElement(name = \"Key\", namespace = Constants.NS)\r\n public String getKey()\r\n {\r\n return m_key;\r\n }",
"public String key() {\n return key;\n }",
"public String key() {\n return key;\n }",
"public java.lang.String getKey(){\n return localKey;\n }",
"@Override\n\tpublic String getKey() {\n\t\treturn key;\n\t}",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey()\n\t{\n\t\treturn key;\n\t}",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\n if (model == null)\n return strKey;\n return model.getKey();\n }",
"public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getKey() {\n return key;\n }",
"public String getKey()\n\t{\n\t\treturn this.key;\n\t}",
"public String getKey() {\n\t\treturn this.key;\n\t}",
"public String getKey() {\n\t\treturn this.key;\n\t}",
"public String getKey() {\n\t\treturn this.key;\n\t}",
"public com.coda.www.efinance.schemas.elementmaster.ElmFullKey getKey() {\r\n return key;\r\n }",
"String getControllingAttributeName();",
"public String getKeyName(){\n\n //returns the value of the keyName field\n return this.keyName;\n }",
"String key();",
"public java.lang.String getKey() {\n\t\treturn this.key;\n\t}",
"public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n return s;\n }\n }",
"public String getKey() {\n\treturn key;\n }",
"public String getKey()\r\n {\r\n return getValue().toString();\r\n }",
"@Nullable public String getKey() {\n return key;\n }",
"@Override\n public String tagKey(String key) {\n String conventionKey = NamingConvention.snakeCase.tagKey(key);\n\n String sanitized = tagKeyChars.matcher(conventionKey).replaceAll(SEPARATOR);\n if (!Character.isLetter(sanitized.charAt(0))) {\n sanitized = \"m_\" + sanitized;\n }\n return sanitized;\n }",
"public String getKey() {\n return this.key;\n }"
] |
[
"0.6660618",
"0.61949944",
"0.61619663",
"0.61494255",
"0.61093235",
"0.6105877",
"0.60549104",
"0.60524637",
"0.6050591",
"0.6043891",
"0.5940909",
"0.59153324",
"0.59153324",
"0.59153324",
"0.59153324",
"0.59153324",
"0.59153324",
"0.59153324",
"0.59153324",
"0.59153324",
"0.59153324",
"0.59153324",
"0.59153324",
"0.59153324",
"0.5896311",
"0.5896311",
"0.5891411",
"0.5887697",
"0.58871263",
"0.5865403",
"0.5861931",
"0.5854459",
"0.5846057",
"0.5834326",
"0.5834326",
"0.5827839",
"0.582448",
"0.582414",
"0.5809592",
"0.5808162",
"0.5807952",
"0.5806057",
"0.5805425",
"0.5805425",
"0.5805425",
"0.58029574",
"0.5785823",
"0.5785823",
"0.5785823",
"0.5785183",
"0.5785183",
"0.5785183",
"0.57850826",
"0.57850826",
"0.57850826",
"0.57850826",
"0.57850826",
"0.57850826",
"0.57847697",
"0.5784134",
"0.5780027",
"0.5774659",
"0.5774659",
"0.5774659",
"0.5774659",
"0.5773535",
"0.57625675",
"0.57625675",
"0.5759233",
"0.5757062",
"0.5756663",
"0.5756663",
"0.5756663",
"0.5756663",
"0.5756663",
"0.5756663",
"0.5756663",
"0.5756663",
"0.5756663",
"0.5756663",
"0.5746283",
"0.57453156",
"0.572308",
"0.56954134",
"0.5689616",
"0.5683352",
"0.5677311",
"0.5677311",
"0.5677311",
"0.5674911",
"0.5661889",
"0.56599057",
"0.5657316",
"0.56525093",
"0.5642839",
"0.5635397",
"0.56343263",
"0.5630347",
"0.56258315",
"0.56218505"
] |
0.5884396
|
29
|
Gets the cloud event representation of the value. This method simply returns the string representation of the type of value passed as argument.
|
@Override
protected String toCloudEventsValue(final Object value) {
return value.toString();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static String eventTypeToString(EventType e) {\n return TypeToString.eventTypeToString(e);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s:%s\", type, value);\n\t}",
"public String Get_event_value() \n {\n\n return event_value;\n }",
"String event_type () throws BaseException;",
"@Override\n public String toString() {\n return String.valueOf(value());\n }",
"@Override\n public String toString() {\n StringBuffer buf = new StringBuffer(\"TriggerEvent{name=\");\n buf.append(name).append(\",type=\").append(type);\n if (payload != null) {\n buf.append(\",payload=\").append(payload.toString());\n }\n buf.append(\"}\");\n return String.valueOf(buf);\n }",
"String getEventType();",
"String getValue()\n {\n return value.toString();\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn this.event;\r\n\t}",
"public String toStr() {\r\n return value.toString();\r\n }",
"@Override\n public String toString() {\n return value + symbol(this.type);\n }",
"String value();",
"String value();",
"protected static String toString(Value value) {\n String result = StringProvider.toIvmlString(value);\n IDatatype type = value.getType();\n if (StringType.TYPE.isAssignableFrom(type)) {\n while (result.startsWith(\"\\\"\")) {\n result = result.substring(1);\n }\n while (result.endsWith(\"\\\"\")) {\n result = result.substring(0, result.length() - 1);\n }\n } else if (Enum.TYPE.isAssignableFrom(type)) {\n int pos = result.lastIndexOf(\".\");\n if (pos > 0 && pos + 1 < result.length()) {\n result = result.substring(pos + 1);\n }\n } else if (Container.TYPE.isAssignableFrom(type)) {\n if (result.startsWith(\"{\\\"\")) {\n result = result.substring(2);\n }\n while (result.endsWith(\"\\\"}\")) {\n result = result.substring(0, result.length() - 2);\n }\n }\n return result;\n }",
"@java.lang.Override\n public java.lang.String getE() {\n java.lang.Object ref = e_;\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 e_ = s;\n return s;\n }\n }",
"@Override\n public String toString(){\n return String.valueOf(value);\n }",
"@Override\n public String getValue() {\n return this.value.toString();\n }",
"@java.lang.Override\n public java.lang.String getStringValue() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (typeCase_ == 5) {\n type_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"java.lang.String getEventType();",
"public String toString() {\n return value;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn this.getStringEventId();\n\t}",
"public String toString()\r\n {\r\n return e.toString();\r\n }",
"public String toString() {\n return value;\r\n }",
"public java.lang.String getE() {\n java.lang.Object ref = e_;\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 e_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n public String toString() {\n return getClass().getSimpleName() + \"[\" + value + \"]\";\n }",
"@Override\n\tpublic String toString() {\n\t\treturn value;\n\t}",
"com.google.protobuf.ByteString getEventTypeBytes();",
"public String getEventTypeName()\n {\n return eventTypeName;\n }",
"public abstract String valueAsText();",
"String getValueAsString();",
"public String getValueType() {\n return valueType;\n }",
"public java.lang.String getStringValue() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (typeCase_ == 5) {\n type_ = s;\n }\n return s;\n }\n }",
"@Override\n public final String toString() {\n return this.value;\n }",
"@Override\n public String toString() {\n return value();\n }",
"public String getTypeEvent() {\n\t\treturn typeEvent;\n\t}",
"public String toString() {\n switch (m_type) {\n case OPENTAG:\n return \"OPEN-\" + m_value.toUpperCase();\n case CLOSETAG:\n return \"CLOSE-\" + m_value.toUpperCase();\n case WORD:\n return \"WORD(\" + m_value + \")\";\n case NUMBER:\n return \"NUMBER(\" + m_value + \")\";\n case APOSTROPHIZED:\n return \"APOSTROPHIZED(\" + m_value + \")\";\n case HYPHENATED:\n return \"HYPHENATED(\" + m_value + \")\";\n case PUNCTUATION:\n return \"PUNCTUATION(\" + m_value + \")\";\n default:\n return \"UNKNOWN(\" + m_value + \")\";\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getStringValueBytes() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (typeCase_ == 5) {\n type_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String toString(){\n return \"Eventtype: \" + eventType + \", event time: \" + eventTime + \", Tally time: \" + tallyTime + \", cash: \" + cash;\n }",
"public java.lang.String getEventtype() {\n\treturn eventtype;\n}",
"public String calculateTimestampAsString(Object value) \r\n\t{\r\n\t\tString valueString = \"\";\r\n\t\tif (value != null) \r\n\t\t{\r\n\t\t\tvalueString = value.toString();\r\n\t\t}\r\n\t\treturn valueString;\r\n\t}",
"public String getString(T value);",
"public String getValue() {\n return String.valueOf(value);\n }",
"public String value()\n {\n return value;\n }",
"public String getEventType()\n {\n return eventType;\n }",
"@NonNull\n protected String getEventName(Map<String, String> json) {\n // Extract the GA event type\n return json.get(\"&t\");\n }",
"public String getEventType()\r\n {\r\n return eventType;\r\n }",
"@Override\n public StringType asString() {\n return TypeFactory.getStringType(this.getValue());\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn val.toString();\r\n\t}",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n }\n }",
"public String value() {\n return value;\n }",
"public String toString() {\n if(getPersistedAttribute().getDatevalue() == null) {\n return \"null\";\n }\n return DateUtil.formatRfc3339Calendar(getValue());\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getPushEvent();",
"protected String formatValue (Object value)\n {\n return String.valueOf(value);\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn value + \"\";\r\n\t}",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n }\n }",
"@Override\r\n\tpublic String toString() \r\n\t{\n\t\treturn \"I am in to String DrawEvent\";\r\n\t}",
"public String toString()\n {\n return this.getGeoEvent().toString();\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n }\n }",
"public String getEventType() {\n return eventType;\n }",
"public String getStringValue() {\n return box.getFormat().format(box, box.getValue());\n }",
"public String toAPICallbackEvent() {\n if (sdkNotificationEvent == null) {\n return apiCallbackEvent;\n }\n return sdkNotificationEvent.getApiValue();\n }",
"public String getEventType() {\r\n return eventType;\r\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"private String toString(Object value) {\n if (value == null) return \"null\";\n // TODO: handle arrays in a nicer way.\n return value.toString();\n }",
"@Override\n public String toString() {\n return \"\" + this.value;\n }",
"@Override\n public String getValue() {\n return value;\n }",
"@Override\n protected String handleGetExceptionType()\n {\n\n final Object value = this.findTaggedValue(GuiProfile.TAGGEDVALUE_EXCEPTION_TYPE);\n\n return (value == null) ? \"\" : value.toString();\n\n }",
"public String toString() {\n StringBuffer buffer = new StringBuffer(\"\\t<semantic_event\");\n\n if (transactionId != null) {\n buffer.append(\" transaction_id=\\\"\");\n buffer.append(LogFormatUtils.escapeAttribute(transactionId));\n buffer.append(\"\\\"\");\n }\n\n if (name != null) {\n buffer.append(\" name=\\\"\");\n buffer.append(LogFormatUtils.escapeAttribute(name));\n buffer.append(\"\\\"\");\n }\n\n if (trigger != null) {\n buffer.append(\" trigger=\\\"\");\n buffer.append(LogFormatUtils.escapeAttribute(trigger));\n buffer.append(\"\\\"\");\n }\n\n if (subtype != null) {\n buffer.append(\" subtype=\\\"\");\n buffer.append(LogFormatUtils.escapeAttribute(subtype));\n buffer.append(\"\\\"\");\n }\n\n buffer.append(\"/>\\n\");\n\n return buffer.toString();\n }",
"@Override\n\tpublic String getValue() {\n\t\treturn PushyView.c.getValue();\n\t}",
"public String toString() {\n return type.toString();\n }",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public java.lang.String getValue() {\n return value;\n }",
"@Override\n\t\t\tpublic String getValue() {\n\t\t\t\treturn value;\n\t\t\t}",
"public String getValue() { return value; }",
"private String convertToString( Value recordValue, GraphPropertyDataType sourceType ) {\n if ( recordValue == null ) {\n return null;\n }\n if ( sourceType == null ) {\n return JSONValue.toJSONString( recordValue.asObject() );\n }\n switch ( sourceType ) {\n case String:\n return recordValue.asString();\n default:\n return JSONValue.toJSONString( recordValue.asObject() );\n }\n }",
"public String getValue() {\n Object ref = value_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n value_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public abstract String toText(T value);",
"String getTypeAsString();",
"public String getValue()\n {\n return value;\n }",
"public String getValue() {\n Object ref = value_;\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 value_ = s;\n return s;\n }\n }",
"public String toString(){\n\t\treturn getValue();\n\t}",
"ValueType getValue();"
] |
[
"0.6420531",
"0.63271284",
"0.63108873",
"0.6229091",
"0.62189853",
"0.62043124",
"0.61292976",
"0.6091028",
"0.6090568",
"0.60387486",
"0.60039085",
"0.5977238",
"0.5977238",
"0.5962963",
"0.5936594",
"0.5914975",
"0.59113765",
"0.5910731",
"0.5900779",
"0.5875379",
"0.58571756",
"0.5851147",
"0.5845869",
"0.5820015",
"0.5809635",
"0.5808516",
"0.5780866",
"0.57807624",
"0.5749792",
"0.5737022",
"0.57339257",
"0.57209325",
"0.5698882",
"0.56845355",
"0.5682258",
"0.56805044",
"0.5670954",
"0.566438",
"0.56514174",
"0.5642252",
"0.5642229",
"0.56369495",
"0.56204224",
"0.56164545",
"0.56100464",
"0.5598716",
"0.55881095",
"0.55827385",
"0.5569227",
"0.55598575",
"0.55585593",
"0.5547312",
"0.55463487",
"0.554563",
"0.554278",
"0.5537287",
"0.5536279",
"0.5532139",
"0.5527419",
"0.5527419",
"0.5527419",
"0.5527419",
"0.5527419",
"0.5527419",
"0.5519081",
"0.55124354",
"0.55124044",
"0.5506862",
"0.55054194",
"0.55026394",
"0.5495025",
"0.549445",
"0.5489356",
"0.54888767",
"0.54885167",
"0.5478608",
"0.5475419",
"0.5473859",
"0.54692787",
"0.5468494",
"0.54588443",
"0.54588443",
"0.54588443",
"0.54588443",
"0.54588443",
"0.54588443",
"0.54588443",
"0.54588443",
"0.54588443",
"0.54493785",
"0.5444633",
"0.5441922",
"0.54404134",
"0.5434121",
"0.54325694",
"0.54323894",
"0.54304004",
"0.54289204",
"0.54217756",
"0.5419062"
] |
0.7943292
|
0
|
featureName, functionName, attr1Name, attr1Type, attr2Name, attr2Type
|
private static void printFeature(CSVPrinter featurePrinter, Feature feature) throws IOException {
featurePrinter.print(feature.getName());
featurePrinter.print(feature.getFunction().getName());
featurePrinter.print(feature.getAttribute1().getName());
featurePrinter.print(feature.getAttribute1().getType().name());
featurePrinter.print(feature.getAttribute2().getName());
featurePrinter.print(feature.getAttribute2().getType().name());
featurePrinter.println();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public interface FeatureFunction {\n double value(Vector vector, MultiLabel multiLabel);\n}",
"Feature createFeature();",
"void addFeature(Feature feature);",
"String getFeature();",
"String getFeature();",
"void addFeatures(Features features);",
"public void addFeatures(IFeature feature);",
"public interface AttributeFun {\n}",
"com.google.protobuf.Struct getCustomFeatures();",
"public void saveFeatureMetadata();",
"protected abstract String getFeatureName(Map<String, Object> data);",
"private FastVector getAccInstanceAttributes() {\n Attribute x_mean = new Attribute(\"x-axis mean\");\n Attribute x_var = new Attribute(\"x-axis var\");\n Attribute y_mean = new Attribute(\"y-axis mean\");\n Attribute y_var = new Attribute(\"y-axis var\");\n Attribute z_mean = new Attribute(\"z-axis mean\");\n Attribute z_var = new Attribute(\"z-axis var\");\n\n // Declare the class attribute along with its values\n FastVector fvClassVal = new FastVector(2);\n fvClassVal.addElement(\"none\");\n fvClassVal.addElement(\"tap\");\n Attribute classAttribute = new Attribute(\"theClass\", fvClassVal);\n\n // Declare the feature vector\n FastVector fvWekaAttributes = new FastVector(7);\n\n fvWekaAttributes.addElement(x_mean);\n fvWekaAttributes.addElement(x_var);\n fvWekaAttributes.addElement(y_mean);\n fvWekaAttributes.addElement(y_var);\n fvWekaAttributes.addElement(z_mean);\n fvWekaAttributes.addElement(z_var);\n fvWekaAttributes.addElement(classAttribute);\n\n// // Declare the numeric attributes\n// Attribute x_var = new Attribute(\"var_x\");\n// Attribute x_var_delta = new Attribute(\"delta_var_x\");\n// Attribute y_var = new Attribute(\"var_y\");\n// Attribute y_var_delta = new Attribute(\"delta_var_y\");\n// Attribute z_var = new Attribute(\"var_z\");\n// Attribute z_var_delta = new Attribute(\"delta_var_z\");\n//\n// // Declare the class attribute along with its values\n// FastVector fvClassVal = new FastVector(3);\n// fvClassVal.addElement(\"none\");\n// fvClassVal.addElement(\"motion\");\n// fvClassVal.addElement(\"tap\");\n// Attribute classAttribute = new Attribute(\"theClass\", fvClassVal);\n\n// // Declare the feature vector\n// FastVector fvWekaAttributes = new FastVector(7);\n//\n// fvWekaAttributes.addElement(x_var);\n// fvWekaAttributes.addElement(x_var_delta);\n// fvWekaAttributes.addElement(y_var);\n// fvWekaAttributes.addElement(y_var_delta);\n// fvWekaAttributes.addElement(z_var);\n// fvWekaAttributes.addElement(z_var_delta);\n// fvWekaAttributes.addElement(classAttribute);\n\n return fvWekaAttributes;\n }",
"public IDataSet extractFeatures(String featureType);",
"void setFeatures(Features f) throws Exception;",
"void addFeature(int index, Feature feature);",
"iet.distributed.telemetry.Feature getFeature(int index);",
"Feature getFeature();",
"Feature getFeature();",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"interface Feature <T> {\n /**\n * @return original source of data.\n */\n Source source();\n\n /**\n * @return feature's data.\n */\n T data();\n }",
"Map getGenAttributes();",
"public static void saveFeature(Feature feature, String allFeaturesFilePath, Project project) throws IOException {\n\t\t\n\t\tFileReader r = new FileReader(allFeaturesFilePath);\n\t\tCSVParser parser = new CSVParser(r);\n\t\tList<CSVRecord> records = parser.getRecords();\n\t\tr.close();\n\n\t\tList<Feature> features = new ArrayList<Feature>();\n\t\tint size = records.size();\n\t\tboolean found = false;\n\t\tfor(int i = 1; i < size; i++){\n\t\t\tCSVRecord rec = records.get(i);\n\t\t\tString featureName = rec.get(0).trim();\n\t\t\tif(featureName.equals(feature.getName())) {\n\t\t\t\tfeatures.add(feature);\n\t\t\t\tfound = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tString functionName = rec.get(1).trim();\n\t\t\t\tString attr1Name = rec.get(2).trim();\n\t\t\t\tString attr1Type = rec.get(3).trim();\n\t\t\t\tString attr2Name = rec.get(4).trim();\n\t\t\t\tString attr2Type = rec.get(5).trim();\n\t\t\t\t\n\t\t\t\tString projectName = project.getName();\n\t\t\t\tFunction function = project.findFunctionByName(functionName);\n\t\t\t\tAttribute attribute1 = new Attribute(attr1Name, Attribute.Type.valueOf(attr1Type));\n\t\t\t\tAttribute attribute2 = new Attribute(attr2Name, Attribute.Type.valueOf(attr2Type));\n\t\t\t\tFeature f = new Feature(featureName, function, projectName, attribute1, attribute2);\n\t\t\t\tfeatures.add(f);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!found) {\n\t\t\tfeatures.add(feature);\n\t\t}\n\t\t\n\t\t// save all the features\n\t\tsaveAllFeatures(features, allFeaturesFilePath);\n\t}",
"private static List<IFeature> parseFeatures(WMElement features) {\n List<IFeature> trainingFeatures = new ArrayList<>();\n for (int i = 0; i < features.ConvertToIdentifier().GetNumberChildren(); i++) {\n IFeature res;\n WMElement curFeatureType = features.ConvertToIdentifier().GetChild(i);\n WMElement curFeature = curFeatureType.ConvertToIdentifier().GetChild(0);\n String featureName = curFeature.GetAttribute();\n String featureVal = curFeature.GetValueAsString();\n double featureValNumerical = -1.0;\n try {\n featureValNumerical = Double.parseDouble(featureVal);\n } catch (Exception e) {\n if (featureVal.equalsIgnoreCase(\"true\")) {\n featureValNumerical = 1.0;\n } else if (featureVal.equalsIgnoreCase(\"false\")) {\n featureValNumerical = 0.0;\n }\n }\n\n switch (curFeatureType.GetAttribute()) {\n case \"boolean\":\n res = new BooleanFeature(featureName, featureValNumerical);\n break;\n case \"numerical\":\n res = new NumericalFeature(featureName, featureValNumerical);\n break;\n case \"categorical\":\n res = new CategoricalFeature(featureName, featureVal);\n break;\n default:\n throw new IllegalArgumentException(\"Given feature type is not supported.\");\n }\n\n trainingFeatures.add(res);\n }\n return trainingFeatures;\n }",
"java.util.List<iet.distributed.telemetry.Feature> \n getFeatureList();",
"public interface Feature {\n String code();\n String featureName();\n Review.State reviewState();\n Review.State nextState();\n}",
"FeatureConcept createFeatureConcept();",
"FTCommand getFeature();",
"public String feature() {\n return feature;\n }",
"public interface GetFeatureRequest extends Request{\n\n /**\n * @return QName : requested type name, can be null\n * if not yet configured.\n */\n QName getTypeName();\n\n /**\n * @param type : requested type name, must not be null\n */\n void setTypeName(QName type);\n\n /**\n * @return Filter : the request filter, null for no filter\n */\n Filter getFilter();\n\n /**\n * @param filter : the request filter, null for no filter\n */\n void setFilter(Filter filter);\n\n /**\n * @return Integer : maximum features returned by this request,\n * null for no limit.\n */\n Integer getMaxFeatures();\n\n /**\n * @param max : maximum features returned by this request,\n * null for no limit.\n */\n void setMaxFeatures(Integer max);\n\n /**\n * @return String[] : array of requested properties,\n * null if all properties, empty for only the id.\n */\n GenericName[] getPropertyNames();\n\n /**\n * @param properties : array of requested properties,\n * null if all properties, empty for only the id.\n */\n void setPropertyNames(GenericName[] properties);\n\n /**\n * Return the output format to use for the response.\n * text/xml; subtype=gml/3.1.1 must be supported.\n * Other output formats are possible as well as long as their MIME\n * type is advertised in the capabilities document.\n *\n * @return The current outputFormat\n */\n String getOutputFormat();\n\n /**\n * Set the output format to use for the response.\n * text/xml; subtype=gml/3.1.1 must be supported.\n * Other output formats are possible as well as long as their MIME\n * type is advertised in the capabilities document.\n *\n * @param outputFormat The current outputFormat\n */\n void setOutputFormat(String outputFormat);\n}",
"public String getFeature() {\r\n return feature;\r\n }",
"public void addFeatures(Feature... f) {\r\n addFeatures(Arrays.asList(f));\r\n }",
"public Vector getSampleAnnotationFieldNames();",
"public static interface AdditionalFeature {\n\n\t\tString getAdditionalFeature();\n\t}",
"public interface FeatureBuilder {\r\n\t\r\n\tpublic SimpleFeatureType getType() ;\r\n\r\n\tpublic SimpleFeature buildFeature(Geometry geometry);\r\n\r\n\tpublic SimpleFeatureCollection buildFeatureCollection(Collection<Geometry> geometryCollection);\r\n\t\r\n\tpublic SimpleFeatureBuilder createFeatureBuilder();\r\n\t\r\n\tpublic SimpleFeatureTypeBuilder createFeatureTypeBuilder(SimpleFeatureType sft, String typeName);\r\n\t\t\r\n}",
"Feature update(Feature feature);",
"com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder();",
"private String getFeatureFieldName(FeatureImpl feature) {\n return feature.getShortName();\n }",
"org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);",
"org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);",
"public MappedFeatureTypeReference( QualifiedName featureTypeName ) {\n this.featureTypeName = featureTypeName;\n }",
"public String getFeatVect();",
"List<Feature> getFeatures();",
"public void setFeatures(List<String> features) {\n this.features = features;\n }",
"java.lang.String getFeatures(int index);",
"iet.distributed.telemetry.FeatureOrBuilder getFeatureOrBuilder(\n int index);",
"public DefaultFeatureTable() {\n }",
"public static void main(String[] args) {\n String className = args[0];\n String methodName = args[1];\n\n double[] features = new double[args.length-2];\n\n for (int i = 2, l = args.length; i < l; i++) {\n features[i-2] = Double.parseDouble(args[i]);\n }\n\n try {\n Class<?> klass = Class.forName(className);\n Method method = klass.getMethod(methodName, new Class[]{double[].class});\n Object result = method.invoke(null, features);\n if (result instanceof double[]) {\n double[] arr = (double[]) result;\n String out = \"\";\n for (int i = 0, l = arr.length; i < l; i++) {\n out += arr[i];\n out += \" \";\n }\n System.out.println(out);\n } else {\n System.out.println(result);\n }\n } catch (ClassNotFoundException | NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {\n e.printStackTrace();\n }\n }",
"public interface TreeEnsembleRegressorParams extends org.apache.spark.ml.tree.TreeEnsembleParams {\n public org.apache.spark.sql.types.StructType validateAndTransformSchema (org.apache.spark.sql.types.StructType schema, boolean fitting, org.apache.spark.sql.types.DataType featuresDataType) ;\n}",
"UMLStructuralFeature createUMLStructuralFeature();",
"@Override\npublic void processAttributes() {\n\t\n}",
"public void addFeature(Feature feature) {\n rows.addElement(feature);\n }",
"public interface IFeature\n{\n\tGeppettoFeature getType();\n}",
"FunctionExtract createFunctionExtract();",
"public FeatureFilter getSchema();",
"public interface IFunction {\r\n void setFunctions(String tag);\r\n}",
"@Override\n public void feature(gherkin.formatter.model.Feature feature) {\n setTagStatementAttributes(testedFeature, feature);\n }",
"public abstract void generateFeatureVector(Factor<Scope> f);",
"public static void deleteFeature(Feature feature, String allFeaturesFilePath, Project project) throws IOException {\n\t\tFileReader r = new FileReader(allFeaturesFilePath);\n\t\tCSVParser parser = new CSVParser(r);\n\t\tList<CSVRecord> records = parser.getRecords();\n\t\tr.close();\n\n\t\tList<Feature> features = new ArrayList<Feature>();\n\t\tint size = records.size();\n\t\tfor(int i = 1; i < size; i++){\n\t\t\tCSVRecord rec = records.get(i);\n\t\t\tString featureName = rec.get(0).trim();\n\t\t\tif (!featureName.equals(feature.getName())) {\n\t\t\t\tString functionName = rec.get(1).trim();\n\t\t\t\tString attr1Name = rec.get(2).trim();\n\t\t\t\tString attr1Type = rec.get(3).trim();\n\t\t\t\tString attr2Name = rec.get(4).trim();\n\t\t\t\tString attr2Type = rec.get(5).trim();\n\t\t\t\t\n\t\t\t\tString projectName = project.getName();\n\t\t\t\tFunction function = project.findFunctionByName(functionName);\n\t\t\t\tAttribute attribute1 = new Attribute(attr1Name, Attribute.Type.valueOf(attr1Type));\n\t\t\t\tAttribute attribute2 = new Attribute(attr2Name, Attribute.Type.valueOf(attr2Type));\n\t\t\t\tFeature f = new Feature(featureName, function, projectName, attribute1, attribute2);\n\t\t\t\tfeatures.add(f);\n\t\t\t}\n\t\t}\n\t\t// save all the features\n\t\tsaveAllFeatures(features, allFeaturesFilePath);\n\t}",
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
"@Override\n\tpublic String getFeatureName() {\n\t\treturn this.name();\n\t}",
"org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();",
"org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();",
"FeatureId getFeatureId();",
"Feature loadFeature(Integer id);",
"FeatureCall getFec();",
"List<String> getFeatures();",
"public Integer getFeature() {\n return feature;\n }",
"public Features() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public List<Feature> process(String tag, String data);",
"public void AssembleFeatureFromTree(Tree parse) {\n String feature=parse.value() + \"->\";\n Tree[] sub_tree = parse.children();\n for(Tree t: sub_tree) {\n if (!t.isPreTerminal()) {\n AssembleFeatureFromTree(t);\n }\n feature+=t.value() + \"+\";\n }\n \n if(!global_dict.containsKey(feature)){\n global_dict.put(feature, global_dict.size()+1);\n }\n fn = global_dict.get(feature);\n //System.out.println(feature + \" : \" + fn);\n ftlist.add(fn);\n }",
"public void addFeature(@Nonnull Feature f) {\r\n features.add(f);\r\n }",
"private static Map<String, Object> handleParams(WMElement params) {\n Map<String, Object> res = new HashMap<>();\n int i = 0;\n for (; i < params.ConvertToIdentifier().GetNumberChildren(); i++) {\n WMElement curParam = params.ConvertToIdentifier().GetChild(i);\n String curParamName = curParam.GetAttribute();\n if (!curParam.GetValueType().equalsIgnoreCase(\"id\")) {\n res.put(curParamName, curParam.GetValueAsString());\n }\n else {\n List<Pair<String, String>> extraFeatures = new ArrayList<>();\n for (int j = 0; j < curParam.ConvertToIdentifier().GetNumberChildren(); j++) {\n WMElement curFeature = curParam.ConvertToIdentifier().GetChild(j);\n extraFeatures.add(new ImmutablePair<>(curFeature.GetAttribute(),\n curFeature.GetValueAsString()));\n }\n\n res.put(curParamName, extraFeatures);\n }\n }\n return res;\n }",
"public Map<Feature,Feature> setAttributes(Collection<Feature> features, String layerName) throws Exception {\r\n // map original feature to modified features\r\n Map<Feature,Feature> map = new HashMap();\r\n\r\n for (Feature feature : features) {\r\n FeatureSchema schema = feature.getSchema();\r\n Feature newFeature = feature.clone(false);\r\n try {\r\n for (SetAttribute setAtt : attributes) {\r\n String name = setAtt.getName();\r\n String value = setAtt.getValue();\r\n\r\n if (!schema.hasAttribute(name)) {\r\n if (isAtomic()) {\r\n throw new Exception(I18N.getMessage(\"set_attributes\",\r\n \"SetAttributesPlugIn.not-consistent-with-schema\",\r\n new Object[]{name, layerName, feature.getID()}));\r\n } else {\r\n continue;\r\n }\r\n }\r\n // This attribute value has not the prerequisite, don't change it\r\n if (!setAtt.checkPrerequisite(feature.getAttribute(name))) {\r\n continue;\r\n }\r\n if (!checkDimension(feature)) {\r\n continue;\r\n }\r\n AttributeType type = schema.getAttributeType(name);\r\n if (value == null) {\r\n newFeature.setAttribute(name, null);\r\n }\r\n else if (type == AttributeType.STRING) {\r\n newFeature.setAttribute(name, value);\r\n }\r\n else if (type == AttributeType.INTEGER) {\r\n newFeature.setAttribute(name, Integer.parseInt(value));\r\n }\r\n else if (type == AttributeType.DOUBLE) {\r\n newFeature.setAttribute(name, Double.parseDouble(value));\r\n }\r\n else if (type == AttributeType.DATE) {\r\n newFeature.setAttribute(name, dateParser.parse(value, false));\r\n }\r\n else if (type == AttributeType.OBJECT) {\r\n newFeature.setAttribute(name, value);\r\n }\r\n else if (AttributeType.class.getField(\"BOOLEAN\") != null && type == AttributeType.BOOLEAN) {\r\n newFeature.setAttribute(name, Boolean.parseBoolean(value));\r\n }\r\n else if (AttributeType.class.getField(\"LONG\") != null && type == AttributeType.LONG) {\r\n newFeature.setAttribute(name, Long.parseLong(value));\r\n }\r\n }\r\n map.put(feature,newFeature);\r\n } catch(Exception e) {\r\n LOG.warn(e.getMessage());\r\n throw e;\r\n }\r\n\r\n }\r\n return map;\r\n }",
"@Override\n\tpublic String getFeatureCode() {\n\t\treturn featureCode;\n\t}",
"protected Map<String, String> getFeatureAttrs(Map<String, Object> data) {\n\t\treturn null;\n\t}",
"public boolean containsFeature(Feature f);",
"boolean containsFeature(Feature feature);",
"public void addFeature(String domain, String name) { addFeature(domain, name, 1); }",
"@Override\n protected SimpleFeature buildFeature() {\n synchronized(EDGE_FEATURE_BUILDER) {\n EDGE_FEATURE_BUILDER.add(getId());\n EDGE_FEATURE_BUILDER.add(displayName);\n EDGE_FEATURE_BUILDER.add(url);\n EDGE_FEATURE_BUILDER.add(selected);\n EDGE_FEATURE_BUILDER.add(lineString);\n return EDGE_FEATURE_BUILDER.buildFeature(null);\n }\n }",
"public Set<String> getFeatures();",
"@Override\n public void setFeature(String feature) {\n this.exteriorFeature = feature;\n }",
"void setFeature(int index, Feature feature);",
"public EStructuralFeature getFeatureByXMLElementName(String namespace, String xmlElementName) {\n \t\t\t// try to find the EStructural feature locally\n \t\t\t// TODO: consider namespace\n \t\t\tEStructuralFeature result = xmlNameToEStructuralFeatureMap.get(xmlElementName);\n \t\t\tif (null == result) {\n \t\t\t\tIterator<EStructuralFeature> allFeaturesIter = eClass.getEAllStructuralFeatures().iterator();\n \t\t\t\tList<EStructuralFeature> results = new ArrayList<EStructuralFeature>();\n \t\t\t\twhile (allFeaturesIter.hasNext()) {\n \t\t\t\t\tEStructuralFeature feature = allFeaturesIter.next();\n \t\t\t\t\tString xmlWrapperName = getRMFExtendedMetaData(feature).getXMLWrapperName();\n \n \t\t\t\t\t// search by feature wrapper\n \t\t\t\t\tif (xmlWrapperName.equals(xmlElementName)) {\n \t\t\t\t\t\tif (isIdentifiedByFeatureWrapper(feature)) {\n \t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t}\n \t\t\t\t\t} else {\n \t\t\t\t\t\t// search by feature name\n \t\t\t\t\t\tString xmlName = getRMFExtendedMetaData(feature).getXMLName();\n \t\t\t\t\t\tif (xmlName.equals(xmlElementName)) {\n \t\t\t\t\t\t\tif (isIdentifiedByFeature(feature)) {\n \t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t// search by type wrapper (assuming type is type of feature)\n \t\t\t\t\t\t\tString classifierWrapperXMLName = getRMFExtendedMetaData(feature.getEType()).getXMLWrapperName();\n \t\t\t\t\t\t\tif (classifierWrapperXMLName.equals(xmlElementName)) {\n \t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t// search by type wrapper name (assuming type not type of feature)\n \t\t\t\t\t\t\t\tEClassifier classifier = getTypeByXMLWrapperName(namespace, xmlElementName);\n \t\t\t\t\t\t\t\tif (null != classifier) {\n \t\t\t\t\t\t\t\t\tif (feature.getEType().equals(classifier)) {\n \t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else if (classifier instanceof EClass) {\n \t\t\t\t\t\t\t\t\t\tEClass eClass = (EClass) classifier;\n \t\t\t\t\t\t\t\t\t\tif (eClass.getEAllSuperTypes().contains(feature.getEType())) {\n \t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t// search by type name (assuming type not type of feature)\n \t\t\t\t\t\t\t\t\tclassifier = getTypeByXMLName(namespace, xmlElementName);\n \t\t\t\t\t\t\t\t\tif (null != classifier) {\n \t\t\t\t\t\t\t\t\t\tif (feature.getEType().equals(classifier)) {\n \t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifier(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else if (classifier instanceof EClass) {\n \t\t\t\t\t\t\t\t\t\t\tif (eClass.getEAllSuperTypes().contains(feature.getEType())) {\n \t\t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifier(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t} // if (null != classifier && classifier instanceof EClass)\n \t\t\t\t\t\t\t} // if (classifierXMLName.equals(xmlElementName))\n \t\t\t\t\t\t} // if (xmlName.equals(xmlElementName))\n \t\t\t\t\t} // if (xmlWrapperName.equals(xmlElementName))\n \t\t\t\t} // while\n \n \t\t\t\t// if there are multiple valid features, we prefer the feature that is many and is not NONE\n \t\t\t\tint size = results.size();\n \t\t\t\tif (1 == size) {\n \t\t\t\t\tresult = results.get(0);\n \t\t\t\t} else if (0 < size) {\n \t\t\t\t\t// rule 1 we like the features that are explicitly selected\n \t\t\t\t\tList<EStructuralFeature> identifiedFeatures = new ArrayList<EStructuralFeature>();\n \t\t\t\t\tList<EStructuralFeature> noneFeatures = new ArrayList<EStructuralFeature>();\n \t\t\t\t\tfor (int i = 0; i < size; i++) {\n \t\t\t\t\t\tEStructuralFeature feature = results.get(i);\n \t\t\t\t\t\tif (isNone(feature)) {\n \t\t\t\t\t\t\tnoneFeatures.add(feature);\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tidentifiedFeatures.add(feature);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tif (identifiedFeatures.isEmpty()) {\n \t\t\t\t\t\t// there are none Features only\n \t\t\t\t\t\tresults = noneFeatures;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tresults = identifiedFeatures;\n \t\t\t\t\t}\n \n \t\t\t\t\tresult = results.get(0);\n \n \t\t\t\t\t// try to find a better features that is many\n \t\t\t\t\tfor (EStructuralFeature feature : results) {\n \t\t\t\t\t\tif (feature.isMany()) {\n \t\t\t\t\t\t\tresult = feature;\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n\t\t\t}\n \n \t\t\t// TODO: fall back to standard serialization?\n \n \t\t\treturn result;\n \t\t}",
"List<IFeature> getFeatureList();",
"public interface PropertyAccess extends FeatureCall\n{\n}",
"StrCommand getFeatureNew();",
"public abstract Map getAttributes();",
"public ExteriorFeature() {\n this.exteriorFeature = \"Generic\";\n }",
"public abstract List<QualifiedName> getAffectedFeatureTypes();",
"java.util.List<? extends iet.distributed.telemetry.FeatureOrBuilder> \n getFeatureOrBuilderList();",
"private static List<Feature> getFeatures(List<String> row) {\n\t\tString sex = row.get(0);\n\t\tdouble length = Double.parseDouble(row.get(1));\n double diameter = Double.parseDouble(row.get(2));\n double height = Double.parseDouble(row.get(3));\n// double whole_height = Double.parseDouble(row.get(4));\n// double shucked_height = Double.parseDouble(row.get(5));\n double viscera_weight = Double.parseDouble(row.get(6));\n double shell_weight = Double.parseDouble(row.get(7));\n\t\tList<Feature> features = new ArrayList<Feature>();\n\t\tfeatures.add(new NominalFeature(sex));\n\t\tfeatures.add(new ContinuousFeature(length));\n\t\tfeatures.add(new ContinuousFeature(diameter));\n\t\tfeatures.add(new ContinuousFeature(height));\n//\t\tfeatures.add(new ContinuousFeature(whole_height));\n//\t\tfeatures.add(new ContinuousFeature(shucked_height));\n\t\tfeatures.add(new ContinuousFeature(viscera_weight));\n\t\tfeatures.add(new ContinuousFeature(shell_weight));\n\t\treturn features;\n\t}",
"SchemaBuilder withFeature(String name, Boolean value);",
"final List<Feature<T, ?>> getFeatures(FunctionDescriptor descriptor, @SuppressWarnings(\"rawtypes\") Class<? extends Feature> featureClass, FunctionDescriptor topLevelDescriptor) {\n\t\tif (featureClass==null)\n\t\t\tthrow new FeatureSyntaxException(\"No class provided for\", descriptor, topLevelDescriptor);\n\t\t\n\t\tList<Feature<T,?>> features = new ArrayList<Feature<T,?>>();\n\t\tint i = 0;\n\t\tList<List<Object>> argumentLists = new ArrayList<List<Object>>();\n\t\tList<Object> initialArguments = new ArrayList<Object>();\n\t\targumentLists.add(initialArguments);\n\t\t\n\t\tfor (FunctionDescriptor argumentDescriptor : descriptor.getArguments()) {\n\t\t\tList<List<Object>> newArgumentLists = new ArrayList<List<Object>>();\n\t\t\tfor (List<Object> arguments : argumentLists) {\n\t\t\t\tif (!argumentDescriptor.isFunction()) {\n\t\t\t\t\tObject literal = argumentDescriptor.getObject();\n\t\t\t\t\tObject convertedObject = literal;\n\t\t\t\t\tif (literal instanceof String) {\n\t\t\t\t\t\tStringLiteralFeature<T> stringLiteralFeature = new StringLiteralFeature<T>((String) literal);\n\t\t\t\t\t\tconvertedObject = stringLiteralFeature;\n\t\t\t\t\t} else if (literal instanceof Boolean) {\n\t\t\t\t\t\tBooleanLiteralFeature<T> booleanLiteralFeature = new BooleanLiteralFeature<T>((Boolean) literal);\n\t\t\t\t\t\tconvertedObject = booleanLiteralFeature;\n\t\t\t\t\t} else if (literal instanceof Double) {\n\t\t\t\t\t\tDoubleLiteralFeature<T> doubleLiteralFeature = new DoubleLiteralFeature<T>((Double) literal);\n\t\t\t\t\t\tconvertedObject = doubleLiteralFeature;\n\t\t\t\t\t} else if (literal instanceof Integer) {\n\t\t\t\t\t\tIntegerLiteralFeature<T> integerLiteralFeature = new IntegerLiteralFeature<T>((Integer) literal);\n\t\t\t\t\t\tconvertedObject = integerLiteralFeature;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// do nothing - this was some sort of other object added by getModifiedDescriptors that should\n\t\t\t\t\t\t// be handled as is.\n\t\t\t\t\t}\n\t\t\t\t\targuments.add(convertedObject);\n\t\t\t\t\tnewArgumentLists.add(arguments);\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tList<Feature<T,?>> featureArguments = this.parseInternal(argumentDescriptor, topLevelDescriptor);\n\t\t\t\t\t// a single argument descriptor could produce multiple arguments\n\t\t\t\t\t// e.g. when a function with an array argument is mapped onto multiple function calls\n\t\t\t\t\tfor (Feature<T,?> featureArgument : featureArguments) {\n\t\t\t\t\t\tList<Object> newArguments = new ArrayList<Object>(arguments);\n\t\t\t\t\t\tnewArguments.add(featureArgument);\n\t\t\t\t\t\tnewArgumentLists.add(newArguments);\n\t\t\t\t\t}\n\t\t\t\t} // function or object?\n\n\t\t\t} // next argument list (under construction from original arguments)\n\t\t\targumentLists = newArgumentLists;\n\t\t} // next argument\n\t\t\n\t\tfor (List<Object> originalArgumentList : argumentLists) {\n\t\t\t// add the argument types (i.e. classes)\n\t\t\t// and convert arrays to multiple constructor calls\n\t\t\tList<Object[]> argumentsList = new ArrayList<Object[]>();\n\t\t\targumentsList.add(new Object[originalArgumentList.size()]);\n\t\t\t\n\t\t\tClass<?>[] argumentTypes = new Class<?>[originalArgumentList.size()];\n\t\t\tList<Object[]> newArgumentsList = new ArrayList<Object[]>();\n\t\t\tfor (i=0;i<originalArgumentList.size();i++) {\n\t\t\t\tObject arg = originalArgumentList.get(i);\n\t\t\t\t\n\t\t\t\tif (arg.getClass().isArray()) {\n\t\t\t\t\t// arrays represent multiple constructor calls\n\t\t\t\t\tObject[] argArray = (Object[]) arg;\n\t\t\t\t\tfor (Object oneArg : argArray) {\n\t\t\t\t\t\tfor (Object[] arguments : argumentsList) {\n\t\t\t\t\t\t\tObject[] newArguments = arguments.clone();\n\t\t\t\t\t\t\tnewArguments[i] = oneArg;\n\t\t\t\t\t\t\tnewArgumentsList.add(newArguments);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\targumentTypes[i] = arg.getClass().getComponentType();\n\t\t\t\t} else {\n\t\t\t\t\tfor (Object[] myArguments : argumentsList) {\n\t\t\t\t\t\tnewArgumentsList.add(myArguments);\n\t\t\t\t\t\tmyArguments[i] = arg;\n\t\t\t\t\t}\n\t\t\t\t\targumentTypes[i] = arg.getClass();\n\t\t\t\t}\n\t\t\t\targumentsList = newArgumentsList;\n\t\t\t\tnewArgumentsList = new ArrayList<Object[]>();\n\t\t\t} // next argument\n\t\t\t\n\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\tConstructor<? extends Feature> constructor = null;\n\t\t\tMONITOR.startTask(\"findContructor\");\n\t\t\ttry {\n\t\t\t\tconstructor = ConstructorUtils.getMatchingAccessibleConstructor(featureClass, argumentTypes);\n\t\t\t\t\t\t\t\t\n\t\t\t\tif (constructor==null) {\n\t\t\t\t\tConstructor<?>[] constructors = featureClass.getConstructors();\n\t\t\t\t\t\n\t\t\t\t\t// check if there's a variable argument constructor\n\t\t\t\t\tfor (Constructor<?> oneConstructor : constructors) {\n\t\t\t\t\t\tClass<?>[] parameterTypes = oneConstructor.getParameterTypes();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (parameterTypes.length>=1 && argumentsList.size()==1 && argumentsList.get(0).length>=parameterTypes.length) {\n\t\t\t\t\t\t\tObject[] arguments = argumentsList.get(0);\n\t\t\t\t\t\t\tClass<?> parameterType = parameterTypes[parameterTypes.length-1];\n\t\t\t\t\t\t\tif (parameterType.isArray()) {\n\t\t\t\t\t\t\t\t// assume it's a variable-argument constructor\n\t\t\t\t\t\t\t\t// build the argument for this constructor\n\t\t\t\t\t\t\t\t// find a common type for all of the arguments.\n\t\t\t\t\t\t\t\tObject argument = arguments[parameterTypes.length-1];\n\t\t\t\t\t\t\t\tClass<?> clazz = null;\n\t\t\t\t\t\t\t\tif (argument instanceof StringFeature)\n\t\t\t\t\t\t\t\t\tclazz = StringFeature.class;\n\t\t\t\t\t\t\t\telse if (argument instanceof BooleanFeature)\n\t\t\t\t\t\t\t\t\tclazz = BooleanFeature.class;\n\t\t\t\t\t\t\t\telse if (argument instanceof DoubleFeature)\n\t\t\t\t\t\t\t\t\tclazz = DoubleFeature.class;\n\t\t\t\t\t\t\t\telse if (argument instanceof IntegerFeature)\n\t\t\t\t\t\t\t\t\tclazz = IntegerFeature.class;\n\t\t\t\t\t\t\t\telse if (argument instanceof StringCollectionFeature)\n\t\t\t\t\t\t\t\t\tclazz = StringFeature.class;\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t// no good, can't make arrays of this type\n\t\t\t\t\t\t\t\t\tcontinue;\n\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\tObject[] argumentArray = (Object[]) Array.newInstance(clazz, (arguments.length-parameterTypes.length)+1);\n\t\t\t\t\t\t\t\tint j = 0;\n\t\t\t\t\t\t\t\tfor (int k=parameterTypes.length-1; k<arguments.length; k++) {\n\t\t\t\t\t\t\t\t\tObject oneArgument = arguments[k];\n\t\t\t\t\t\t\t\t\tif (oneArgument instanceof StringCollectionFeature) {\n\t\t\t\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\t\t\t\tStringCollectionFeature<T> stringCollectionFeature = (StringCollectionFeature<T>) oneArgument;\n\t\t\t\t\t\t\t\t\t\tStringCollectionFeatureProxy<T> proxy = new StringCollectionFeatureProxy<T>(stringCollectionFeature);\n\t\t\t\t\t\t\t\t\t\toneArgument = proxy;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (!clazz.isAssignableFrom(oneArgument.getClass())) {\n\t\t\t\t\t\t\t\t\t\tthrow new FeatureSyntaxException(\"Mismatched array types: \" + clazz.getSimpleName() + \", \" + oneArgument.getClass().getSimpleName(), descriptor, topLevelDescriptor);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\targumentArray[j++] = oneArgument;\n\t\t\t\t\t\t\t\t} // next argument\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tClass<?>[] argumentTypesWithArray = new Class<?>[parameterTypes.length];\n\t\t\t\t\t\t\t\tfor (int k=0;k<parameterTypes.length-1;k++) {\n\t\t\t\t\t\t\t\t\tObject oneArgument = arguments[k];\n\t\t\t\t\t\t\t\t\targumentTypesWithArray[k] = oneArgument.getClass();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\targumentTypesWithArray[argumentTypesWithArray.length-1] = argumentArray.getClass();\n\t\t\t\t\t\t\t\tconstructor = ConstructorUtils.getMatchingAccessibleConstructor(featureClass, argumentTypesWithArray);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (constructor!=null) {\n\t\t\t\t\t\t\t\t\targumentsList = new ArrayList<Object[]>();\n\t\t\t\t\t\t\t\t\tObject[] argumentsWithArray = new Object[parameterTypes.length];\n \t\t\t\t\t\t\t\t\tfor (int k=0;k<parameterTypes.length-1;k++) {\n\t\t\t\t\t\t\t\t\t\tObject oneArgument = arguments[k];\n\t\t\t\t\t\t\t\t\t\targumentsWithArray[k] = oneArgument;\n\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\targumentsWithArray[parameterTypes.length-1] = argumentArray;\n\t\t\t\t\t\t\t\t\targumentsList.add(argumentsWithArray);\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} // constructor takes an array\n\t\t\t\t\t\t} // exactly one parameter for constructor\n\t\t\t\t\t} // next constructor\n\t\t\t\t\t\n\t\t\t\t\tif (constructor==null) {\n\t\t\t\t\t\t// See if various conversions allow us to find a constructor\n\t\t\t\t\t\t// Integer to Double\n\t\t\t\t\t\t// StringCollectionFeature to StringFeature\n\t\t\t\t\t\tfor (Constructor<?> oneConstructor : constructors) {\n\t\t\t\t\t\t\tClass<?>[] parameterTypes = oneConstructor.getParameterTypes();\n\t\t\t\t\t\t\tboolean isMatchingConstructor = false;\n\t\t\t\t\t\t\tList<Integer> intParametersToConvert = new ArrayList<Integer>();\n\t\t\t\t\t\t\tList<Integer> stringCollectionParametersToConvert = new ArrayList<Integer>();\n\t\t\t\t\t\t\tList<Integer> customParametersToConvert = new ArrayList<Integer>();\n\t\t\t\t\t\t\tif (parameterTypes.length==argumentTypes.length) {\n\t\t\t\t\t\t\t\tint j=0;\n\t\t\t\t\t\t\t\tisMatchingConstructor = true;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (Class<?> parameterType : parameterTypes) {\n\t\t\t\t\t\t\t\t\tif (parameterType.isAssignableFrom(argumentTypes[j])&& !StringCollectionFeature.class.isAssignableFrom(argumentTypes[j])) {\n\t\t\t\t\t\t\t\t\t\t// nothing to do here\n\t\t\t\t\t\t\t\t\t} else if (parameterType.equals(DoubleFeature.class) && IntegerFeature.class.isAssignableFrom(argumentTypes[j])) {\n\t\t\t\t\t\t\t\t\t\tintParametersToConvert.add(j);\n\t\t\t\t\t\t\t\t\t} else if ((parameterType.equals(StringFeature.class)||parameterType.equals(Feature.class)) && StringCollectionFeature.class.isAssignableFrom(argumentTypes[j])) {\n\t\t\t\t\t\t\t\t\t\tstringCollectionParametersToConvert.add(j);\n\t\t\t\t\t\t\t\t\t} else if (this.canConvert(parameterType, argumentTypes[j])) {\n\t\t\t\t\t\t\t\t\t\tcustomParametersToConvert.add(j);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tisMatchingConstructor = false;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tj++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (isMatchingConstructor) {\n\t\t\t\t\t\t\t\t@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\t\t\t\t\t\t\t\tConstructor<? extends Feature> matchingConstructor = (Constructor<? extends Feature>) oneConstructor;\n\t\t\t\t\t\t\t\tconstructor = matchingConstructor;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (Object[] myArguments : argumentsList) {\n\t\t\t\t\t\t\t\t\tfor (int indexToConvert : intParametersToConvert) {\n\t\t\t\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\t\t\t\tIntegerFeature<T> integerFeature = (IntegerFeature<T>) myArguments[indexToConvert];\n\t\t\t\t\t\t\t\t\t\tIntegerToDoubleFeature<T> intToDoubleFeature = new IntegerToDoubleFeature<T>(integerFeature);\n\t\t\t\t\t\t\t\t\t\tmyArguments[indexToConvert] = intToDoubleFeature;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tfor (int indexToConvert : stringCollectionParametersToConvert) {\n\t\t\t\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\t\t\t\tStringCollectionFeature<T> stringCollectionFeature = (StringCollectionFeature<T>) myArguments[indexToConvert];\n\t\t\t\t\t\t\t\t\t\tStringCollectionFeatureProxy<T> proxy = new StringCollectionFeatureProxy<T>(stringCollectionFeature);\n\t\t\t\t\t\t\t\t\t\tmyArguments[indexToConvert] = proxy;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tfor (int indexToConvert : customParametersToConvert) {\n\t\t\t\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\t\t\t\tFeature<T,?> argumentToConvert = (Feature<T, ?>) myArguments[indexToConvert];\n\t\t\t\t\t\t\t\t\t\tFeature<T,?> customArgument = this.convertArgument(parameterTypes[indexToConvert], argumentToConvert);\n\t\t\t\t\t\t\t\t\t\tmyArguments[indexToConvert] = customArgument;\n\t\t\t\t\t\t\t\t\t\tcustomArgument.addArgument(argumentToConvert);\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\tbreak;\n\t\t\t\t\t\t\t} // found a matching constructor\n\t\t\t\t\t\t} // next possible constructor\n\t\t\t\t\t} // still haven't found a constructor, what next?\n\t\t\t\t} // didn't find a constructor yet\n\t\t\t} finally {\n\t\t\t\tMONITOR.endTask(\"findContructor\");\n\t\t\t}\n\t\t\t\n\t\t\tif (constructor==null)\n\t\t\t\tthrow new NoConstructorFoundException(\"No constructor found for \" + descriptor.getFunctionName() + \" (\" + featureClass.getName() + \") matching the arguments provided\", descriptor, topLevelDescriptor);\t\t\t\n\t\t\t\n\t\t\tfor (Object[] myArguments : argumentsList) {\n\t\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\t\tFeature feature;\n\t\t\t\ttry {\n\t\t\t\t\tfeature = constructor.newInstance(myArguments);\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t} catch (InstantiationException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tFeature<T,?> genericFeature = (Feature<T,?>) feature;\n\t\t\t\tthis.injectDependencies(feature);\n\t\t\t\tif (genericFeature instanceof ExternalResourceFeature) {\n\t\t\t\t\tif (this.getExternalResourceFinder()==null) {\n\t\t\t\t\t\tthrow new JolicielException(\"No external resource finder set.\");\n\t\t\t\t\t}\n\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\tExternalResourceFeature<T> externalResourceFeature = (ExternalResourceFeature<T>) genericFeature;\n\t\t\t\t\texternalResourceFeature.setExternalResourceFinder(this.getExternalResourceFinder());\n\t\t\t\t} else if (genericFeature instanceof ExternalResourceDoubleFeature) {\n\t\t\t\t\tif (this.getExternalResourceFinder()==null) {\n\t\t\t\t\t\tthrow new JolicielException(\"No external resource finder set.\");\n\t\t\t\t\t}\n\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\tExternalResourceDoubleFeature<T> externalResourceFeature = (ExternalResourceDoubleFeature<T>) genericFeature;\n\t\t\t\t\texternalResourceFeature.setExternalResourceFinder(this.getExternalResourceFinder());\n\t\t\t\t} else if (genericFeature instanceof MultivaluedExternalResourceFeature) {\n\t\t\t\t\tif (this.getExternalResourceFinder()==null) {\n\t\t\t\t\t\tthrow new JolicielException(\"No external resource finder set.\");\n\t\t\t\t\t}\n\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\tMultivaluedExternalResourceFeature<T> externalResourceFeature = (MultivaluedExternalResourceFeature<T>) genericFeature;\n\t\t\t\t\texternalResourceFeature.setExternalResourceFinder(this.getExternalResourceFinder());\n\t\t\t\t} \n\n\t\t\t\t// add this feature's arguments\n\t\t\t\tfor (Object argument : myArguments) {\n\t\t\t\t\tif (argument instanceof Feature[]) {\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tFeature<T,?>[] featureArray = (Feature<T,?>[]) argument;\n\t\t\t\t\t\tfor (Feature<T,?> oneFeature : featureArray) {\n\t\t\t\t\t\t\tgenericFeature.addArgument(oneFeature);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tFeature<T,?> featureArgument = (Feature<T,?>) argument;\n\t\t\t\t\t\tgenericFeature.addArgument(featureArgument);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tFeature<T,?> convertedFeature = this.convertFeature(genericFeature);\n\t\t\t\tfeatures.add(convertedFeature);\n\t\t\t} // next internal argument list\n\t\t} // next argument list\n\t\treturn features;\n\t}",
"public static void unionByAttributeValue(FeatureCollection featureCollection, String attributeName) throws Exception {\n FeatureSchema schema = featureCollection.getFeatureSchema();\n if (featureCollection.getFeatures().size() > 1 && featureCollection.getFeatures().get(0).getGeometry() != null) {\n featureCollection.getFeatures().get(0).getGeometry().getFactory();\n } else {\n Logger.error(I18N.get(\"ui.plugin.analysis.DissolvePlugIn.needs-two-features-or-more\"));\n // return null;\n }\n FeatureSchema newSchema;\n newSchema = schema;\n Map<Object, FeatureCollection> map = new HashMap<Object, FeatureCollection>();\n for (Feature feature : featureCollection.getFeatures()) {\n Object key = feature.getAttribute(attributeName);\n if (!map.containsKey(key)) {\n FeatureCollection fd = new FeatureDataset(featureCollection.getFeatureSchema());\n fd.add(feature);\n map.put(key, fd);\n } else {\n map.get(key).add(feature);\n }\n }\n featureCollection.removeAll(featureCollection.getFeatures());\n for (Iterator<Object> i = map.keySet().iterator(); i.hasNext();) {\n Object key = i.next();\n FeatureCollection fca = map.get(key);\n if (fca.size() > 0) {\n Feature feature = union(fca);\n feature.setAttribute(attributeName, key);\n Feature newFeature = new BasicFeature(newSchema);\n // Copy feature attributes in newFeature\n for (int j = 0, max = newSchema.getAttributeCount(); j < max; j++) {\n newFeature.setAttribute(j, feature.getAttribute(newSchema.getAttributeName(j)));\n }\n featureCollection.add(newFeature);\n }\n }\n // return featureCollection;\n }",
"@Override\n public void setFunctionName(String functionName) {\n\n }",
"private void migrateFeaturesStep_1(Context context, Map featObjMap)\r\n throws Exception{\r\n\r\n \t mqlLogRequiredInformationWriter(\"Inside method migrateFeaturesStep_1 \"+ \"\\n\");\r\n \t //These selectables are for Parent Feature\r\n \t StringList featureObjSelects = new StringList();\r\n\t\t featureObjSelects.addElement(SELECT_TYPE);\r\n\t\t featureObjSelects.addElement(SELECT_NAME);\r\n\t\t featureObjSelects.addElement(SELECT_REVISION);\r\n\t\t featureObjSelects.addElement(SELECT_VAULT);\r\n\t\t featureObjSelects.addElement(SELECT_ID);\r\n\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\");//goes into LF or MF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\");//goes into LF,MF,CF type\r\n\r\n\t\t String featureObjId = \"\";\r\n String strType = \"\";\r\n String strName = \"\";\r\n String strRevision = \"\";\r\n String strNewRelId = \"\";\r\n \t featureObjId = (String) featObjMap.get(SELECT_ID);\r\n\r\n\r\n \t String isConflictFeature = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\t\t String strContextUsage = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t StringList sLFLToDelete = new StringList(); //FLs list to delete\r\n\r\n\t\t strType = (String) featObjMap.get(SELECT_TYPE);\r\n\t\t strName = (String) featObjMap.get(SELECT_NAME);\r\n\t\t strRevision = (String) featObjMap.get(SELECT_REVISION);\r\n\r\n\r\n\t\t if((strType!=null\r\n\t\t\t\t &&(mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))))\r\n {\r\n\t\t\t isConflictFeature = \"No\";\r\n\t\t }\r\n\r\n\t\t if(isConflictFeature.equalsIgnoreCase(\"No\")\r\n\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))\r\n\t\t {\r\n\r\n\r\n\t\t DomainObject domFeatureObj = new DomainObject(featureObjId);\r\n\r\n\t\t HashMap mapAttribute = new HashMap();\r\n\r\n\t\t //check whether feature is standalone or Toplevel or is in the Structure\r\n\t\t //String relPattern = ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO;\r\n\r\n\t\t StringBuffer sbRelPattern1 = new StringBuffer(50);\r\n\t\t\tsbRelPattern1.append(ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO);\r\n\t\t\tsbRelPattern1.append(\",\");\r\n\t\t\tsbRelPattern1.append(ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM);\r\n\r\n\t\t\tStringBuffer sbTypePattern2 = new StringBuffer(50);\r\n\t\t\t\tsbTypePattern2.append(ConfigurationConstants.TYPE_FEATURE_LIST);\r\n\t\t\t\tsbTypePattern2.append(\",\");\r\n\t\t\t\tsbTypePattern2.append(ConfigurationConstants.TYPE_MODEL);\r\n\r\n\r\n\r\n\r\n\t\t StringList flObjSelects = new StringList();\r\n\t\t flObjSelects.addElement(ConfigurationConstants.SELECT_ID);\r\n\t\t flObjSelects.addElement(DomainObject.SELECT_FROM_ID);\r\n\t\t flObjSelects.addElement(DomainObject.SELECT_TO_ID);\r\n\r\n\t\t StringList flRelSelects = new StringList();\r\n\t\t flRelSelects.addElement(ConfigurationConstants.SELECT_RELATIONSHIP_ID);\r\n\t\t flRelSelects.addElement(\"from.from[\" + ConfigurationConstants.RELATIONSHIP_RESOURCE_USAGE + \"].id\");\r\n\r\n\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM+\"].from.id\");\r\n\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM+\"].id\");\r\n\r\n\t\t //Get the Feature Ids,Type and New Feature Type attribute values... when \"Feature List To\" rel traversed\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.id\");\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.type\");\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t //Get the Feature Ids,Type and New Feature Type attribute values... when \"Feature List From\" rel traversed\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t //In DV id Inactive in context of Product or Invalid in context of PV\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t //flObjSelects.addElement(\"from[\" + ConfigurationConstants.RELATIONSHIP_RESOURCE_USAGE + \"].id\");\r\n\t\t //selectables of all attributes on FL which are to be migrated\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_USAGE+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_QUANTITY+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FIND_NUMBER+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"); //goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_RULE_TYPE+\"]\");//goes on to CF,LF,MF relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\"); //goes on to CF type\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"); //will go as interface attribute onto relationship mentioned in PES\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\");//this will be used as described in PES\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\"); //will get split\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_TYPE+\"]\"); //will get split\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n \t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\r\n \t\t //selectables of attribute on FLF relationship\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\");\r\n\r\n \t\t //selectables to determine if the Feature can have Key-In Type = Input\r\n \t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].to.attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\");\r\n \t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].to.attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n\r\n \t\t //selectable to get Key-In Value on Selected Option Relationship\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t //flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n \t\t //flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.id\");\r\n\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Database query on the given Feature Id started ----->\"+\" --- \"+now()+\"\\n\");\r\n\r\n \t\t MapList FL_List = domFeatureObj.getRelatedObjects(context,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //relPattern, //relationshipPattern\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t sbRelPattern1.toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //ConfigurationConstants.TYPE_FEATURE_LIST, //typePattern\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t sbTypePattern2.toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t flObjSelects, //objectSelects\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t flRelSelects, //relationshipSelects\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t true, //getTo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t false, //getFrom\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (short)1, //recurseToLevel\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //objectWhere,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //relationshipWhere\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (int)0, //limit\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null , //includeType\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //includeRelationship\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null); //includeMap\r\n\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Database query on the given Feature Id end ----->\"+\" --- \"+now()+\"\\n\");\r\n\t\t //To check whether the \"Feature Selection Type\" has any conflict for this Feature\r\n\t\t boolean bConflictSelType = false;\r\n\t\t String strFST =\"\";\r\n\t\t StringList sLFST = new StringList();\r\n\t\t for(int iCntFL=0;iCntFL<FL_List.size();iCntFL++){\r\n\t\t\t Map flMap = (Map)FL_List.get(iCntFL);\r\n\t\t\t strFST = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n\t\t\t if(sLFST.size()>0){\r\n\t\t\t\t if(!sLFST.contains(strFST)){\r\n\t\t\t\t\t bConflictSelType = true;\r\n\t\t\t\t\t break;\r\n\t\t\t\t }else{\r\n\t\t\t\t\t sLFST.add(strFST);\r\n\t\t\t\t }\r\n\t\t\t }else{\r\n\t\t\t\t if(strFST!=null && !strFST.equals(\"\")){\r\n\t\t\t\t\t sLFST.add(strFST);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\r\n\t\t //If FL object is absent\r\n\t\t if(FL_List.size()==0)\r\n\t\t {\r\n\t\t\t mqlLogRequiredInformationWriter(\"For given Feature id there are no 'Feature List From' and 'Feature List To' connections.\"+\"\\n\");\r\n\t\t\t if(strType!=null\r\n\t\t\t\t &&(!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))||\r\n\t\t\t\t isOfDerivationChangedType(context, strType)) {\r\n\t\t\t\t if(strType!=null && !isOfDerivationChangedType(context, strType)){\r\n\r\n\r\n\t\t\t\t //Get the new Feature Type\r\n\t\t\t\t String newFeatureType = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\r\n\t\t\t\t //String newFeatureChangeType = PropertyUtil.getSchemaProperty(context,newFeatureType);\r\n\t\t\t\t String newFeatureChangeType = getSchemaProperty(context,newFeatureType);\r\n\r\n\t\t\t\t //Get the new Feature Policy\r\n\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, newFeatureChangeType, true);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type :: \"+ newFeatureChangeType +\"\\n\");\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy \t :: \"+ mNewFeaturePolicy +\"\\n\");\r\n\r\n\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\t\t\t\t //change the feature to new type\r\n\t\t\t\t //BusinessObject featureBO = changeType(context,featObjMap,featureObjId,newFeatureChangeType,newFeaturePolicy);\r\n\t\t\t\t BusinessObject boFeatureObj = new DomainObject(featureObjId);\r\n\t\t\t\t boFeatureObj.change(context,\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\tnewFeatureChangeType,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_NAME),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_REVISION),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_VAULT),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewFeaturePolicy);\r\n\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Object id \t\t\t\t:: \"+featureObjId +\"\\n\");\r\n\t\t \t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ newFeatureChangeType\r\n\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t + newFeaturePolicy\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\r\n\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_ORIGINATOR,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\"));\r\n\t\t\t\t if(newFeatureChangeType!=null &&\r\n\t\t\t\t\t\t (newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t ||newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)\r\n\t\t\t\t\t\t\t\t )){\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\"));\r\n\t\t\t\t }\r\n\t\t\t\t //Set the new Feat Type attribute values when Feat is standalone\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Object id \t\t\t\t\t :: \"+ featureObjId + \"\\n\");\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n\t\t\t\t }else{\r\n\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, strType, true);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type \t\t:: \"+ strType +\"\\n\");\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy \t\t\t:: \"+ mNewFeaturePolicy +\"\\n\");\r\n\r\n\t\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\t\t\t\t\t DomainObject boFeatureObj = new DomainObject(featureObjId);\r\n\t\t\t\t\t boFeatureObj.setPolicy(context, newFeaturePolicy);\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n\t\t\t\t\t domFeatureObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t\t //Set the attribute values for \"software Feature\" when Feat is standalone\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+ featureObjId + \"\\n\");\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n\t\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t }else //if feature is not standalone\r\n\t\t {\r\n\t\t\t MapList FLInfoList = new MapList(); // FLs info MapList to pass to external migrations\r\n\t\t\t \r\n\t\t\t mqlLogRequiredInformationWriter(\"\\n\\n\");\r\n\t\t\t mqlLogRequiredInformationWriter(\"For given Feature id there are 'Feature List From' and 'Feature List To' connections.\"+\"\\n\");\r\n\t\t\t mqlLogRequiredInformationWriter(\"Traverse through the given list of 'Feature List' object start .\"+\"\\n\\n\");\r\n\r\n\t\t\t for(int i=0;i<FL_List.size();i++)\r\n\t\t\t {\r\n\t\t\t\t Map flMap = (Map)FL_List.get(i);\r\n\t\t\t\t String strFLId = (String)flMap.get(DomainConstants.SELECT_ID);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id in process :: \"+ strFLId +\"\\n\");\r\n\r\n\t\t\t\t try{\r\n\t\t\t\t\t String strRelType = (String)flMap.get(\"relationship\");\r\n\t\t\t\t\t if(strRelType!=null && strRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM)){\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id related 'Candiadate Item' rel in process ---> relName \"+ strRelType +\"\\n\");\r\n\t\t\t\t\t\t String strNewRelType = \"\";\r\n\t\t\t\t\t\t //String strManAttr =(String) flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\");\r\n\t\t\t\t\t\t //Use case related to Candidate Item\r\n\t\t\t\t\t\t String strCandItemRel = (String)flMap.get(ConfigurationConstants.SELECT_RELATIONSHIP_ID);\r\n\t\t\t\t\t\t DomainRelationship domrel = new DomainRelationship(strCandItemRel);\r\n\t\t\t\t\t\t Map attributeMap = new HashMap();\r\n\t\t\t\t\t\t attributeMap = domrel.getAttributeMap(context,true);\r\n\t\t\t\t\t\t String strManAttr = (String) attributeMap.get(ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE);\r\n\t\t\t\t\t\t String strInheritedAttr = (String) attributeMap.get(ConfigurationConstants.ATTRIBUTE_INHERITED);\r\n\t\t\t\t\t\t String newFeatureChangeType =\"\";\r\n\r\n \t\t\t\t\t\t if(strType!=null\r\n \t\t\t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n \t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n \t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))\r\n \t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t //Get the new Feature Type\r\n \t\t\t\t\t\t\t String newFeatureType = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n \t\t\t\t\t\t\t //String newFeatureChangeType = PropertyUtil.getSchemaProperty(context,newFeatureType);\r\n \t\t\t\t\t\t\t newFeatureChangeType = getSchemaProperty(context,newFeatureType);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //Get the new Feature Policy\r\n \t\t\t\t\t\t \t\t\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, newFeatureChangeType, true);\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type :: \"+newFeatureChangeType +\"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy :: \"+mNewFeaturePolicy +\"\\n\");\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //change the feature to new type\r\n \t\t\t\t\t\t \t\t\t\t\t\t BusinessObject boFeatureObj = new DomainObject(featureObjId);\r\n\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t boFeatureObj.change(context,\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\tnewFeatureChangeType,\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(String) featObjMap.get(DomainConstants.SELECT_NAME),\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(String) featObjMap.get(DomainConstants.SELECT_REVISION),\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(String) featObjMap.get(DomainConstants.SELECT_VAULT),\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\tnewFeaturePolicy);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+featureObjId +\"\\n\");\r\n\t\t\t \t\t\t\t\t\t \t\t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ newFeatureChangeType\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t + newFeaturePolicy\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_ORIGINATOR,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\"));\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"Yes\"))\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (strInheritedAttr!=null && strInheritedAttr.equalsIgnoreCase(\"False\")))\r\n \t\t\t\t\t\t \t\t\t\t\t {\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES;\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\tif(newFeatureChangeType!=null\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"No\")))\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\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_CANDIDTAE_CONFIGURATION_FEATURES;\r\n \t\t\t\t\t\t\t \t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t &&(newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t ||newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)))\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\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_CANDIDTAE_LOGICAL_FEATURES;\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //Set the new Feat Type attribute values when Feat is standalone\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(ProductLineCommon.isNotNull(strNewRelType)\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && !strNewRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+ featureObjId + \"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t DomainRelationship.setType(context, strCandItemRel,strNewRelType);\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t }else{\r\n\r\n \t\t\t\t\t\t\tnewFeatureChangeType = strType;\r\n\r\n \t\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t/* if(strNewRelType!=null && strNewRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\t\t\t\t\t \t\t\t\t\t\t\t HashMap mapRelAttributes = new HashMap();\r\n\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED, strInheritedAttr);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,\r\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_FALSE);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t domrel.setAttributeValues(context, mapRelAttributes);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t }*/\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"Yes\"))\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (strInheritedAttr!=null && strInheritedAttr.equalsIgnoreCase(\"True\")))\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\t DomainRelationship.disconnect(context, strCandItemRel);\r\n\t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t }else if(strRelType!=null && strRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO)){\r\n\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id related 'Feature list To' rel in process ---> relName \"+ strRelType +\"\\n\\n\");\r\n\t\t\t\t\t\t //Get the \"From Side\" info of FL object\r\n\t\t\t\t\t String strParentFeatureId =\"\";\r\n\t\t\t\t\t String strParentFeatureType =\"\";\r\n\t\t\t\t\t \r\n\t\t\t\t\t if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_COMMITED_ITEM+\"].from.id\")!=null){\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t//Use Case related to hanging FL Objects\r\n\t\t\t\t\t if(strParentFeatureId!=null && strParentFeatureId.length()!=0){\r\n\t\t\t\t\t String isConflictParentFeature =\"No\";\r\n\t\t\t\t\t DomainObject domParentFeat = new DomainObject(strParentFeatureId);\r\n\t\t\t\t\t Map htParentObjData = (Map) domParentFeat.getInfo(context, featureObjSelects);\r\n\r\n\t\t\t\t\t if(mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_FEATURES)){\r\n\r\n\t\t\t\t\t\t isConflictParentFeature = (String)htParentObjData.get(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\r\n\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t //Both the side Objects of FL should be convertible\r\n \t\t\t if(isConflictFeature.equalsIgnoreCase(\"No\")&& isConflictParentFeature.equalsIgnoreCase(\"No\")){\r\n\r\n\t\t\t\t\t /* First ...Check if Parent is already converted to New Type or not\r\n\t\t\t\t\t * If Not then convert it to the new Type then continue\r\n\t\t\t\t\t * Attributes will be set later ..whenever the Feature comes as child in the list.*/\r\n\t\t\t\t\t if(strParentFeatureType!=null\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_PRODUCTS)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_PRODUCT_LINE)){\r\n\r\n\t\t\t\t\t\t //Get the new Feature Type\r\n\t\t\t\t\t\t String newParentFeatureType = (String)htParentObjData.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\r\n\t\t\t\t\t\t //String newParentFeatureChangeType = PropertyUtil.getSchemaProperty(context,newParentFeatureType);\r\n\t\t\t\t\t\t String newParentFeatureChangeType = getSchemaProperty(context,newParentFeatureType);\r\n\r\n\t\t\t\t\t\t //Get the new Feature Policy\r\n\t\t\t\t\t\t Map mNewParentFeatPolicy = mxType.getDefaultPolicy(context, newParentFeatureChangeType, true);\r\n\t\t\t\t\t\t String strNewParentFeatPolicy = (String) mNewParentFeatPolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature New Type :: \"+ newParentFeatureChangeType +\"\\n\");\r\n\t \t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature New Policy :: \"+ strNewParentFeatPolicy +\"\\n\");\r\n\r\n\t \t\t\t\t\tString MarketTextPar = (String)htParentObjData.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\");\r\n\t \t\t\t\t String MarketNamePar = (String)htParentObjData.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\");\r\n\t \t\t\t\t \r\n\t \t\t\t\t \r\n\t \t\t\t\t\t \r\n\t \t\t\t\t\t//Set the necessary Text and name attribute values of new Type Parent Feature object which will be lost once type is changed below.\r\n\t \t\t\t\t\t HashMap mapParentFeatAttribute = new HashMap();\r\n\t \t\t\t\t\tif(MarketTextPar!=null && !MarketTextPar.equals(\"\")){\r\n\t \t\t\t\t\tmapParentFeatAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT, MarketTextPar);\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\tif(MarketNamePar!=null && !MarketNamePar.equals(\"\")){\r\n\t \t\t\t\t\tmapParentFeatAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME, MarketNamePar);\r\n\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\t\r\n\t\t\t\t\t\t //change the feature to new type\r\n\t\t\t\t\t\t BusinessObject boParFeatureObj = new DomainObject(strParentFeatureId);\r\n\r\n\t\t\t\t\t\t boParFeatureObj.change(context,\r\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t newParentFeatureChangeType,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_NAME),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_REVISION),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_VAULT),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t strNewParentFeatPolicy);\r\n\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+strParentFeatureId +\"\\n\");\r\n\t\t\t\t \t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ newParentFeatureChangeType\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t + strNewParentFeatPolicy\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\tDomainObject domainParentFeat = new DomainObject(strParentFeatureId);\r\n\t\t\t\t\t\tmqlLogRequiredInformationWriter(\"Attribute value Map set for this id ---->\" + \"\\n\" + mapParentFeatAttribute +\"\\n\\n\");\r\n\t\t\t\t\t\tdomainParentFeat.setAttributeValues(context,mapParentFeatAttribute);\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t String newChildFeatureChangeType =\"\";\r\n\t\t\t\t\t //Get the new Feature Relationship\r\n\t\t\t\t\t String newReltoConnect = \"\";\r\n\r\n\t\t\t\t\t if(strType!=null\r\n\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES)\r\n\t\t\t\t\t\t\t\t ){\r\n\r\n\t\t\t\t\t\t//Check whether \"To Side\" i.e. Child Feature is CF/LF/MF.. Do the processing\r\n\t\t\t\t\t\t //newChildFeatureChangeType = PropertyUtil.getSchemaProperty(context,strContextUsage);\r\n\t\t\t\t\t\t newChildFeatureChangeType = getSchemaProperty(context,strContextUsage);\r\n\r\n\t\t\t\t\t\t if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_CONFIGURATION_OPTION)){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS;\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE)){\r\n\r\n\t\t\t\t\t\t\t\t//Varies By,Valid Context,Invalid Context related code\r\n\t\t\t\t\t\t\t\t newReltoConnect = getNewRelForConfigFeatType(context,flMap,featObjMap,strParentFeatureId,strParentFeatureType);\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null\r\n\t\t\t\t\t\t\t\t && (newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t\t\t || newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_SOFTWARE_FEATURE))){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES;\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES;\r\n\r\n\t\t\t\t\t\t }\r\n\r\n\t\t\t\t\t }else{\r\n\t\t\t\t\t\t if(strType!=null && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_OPTION))){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS;\r\n\r\n\t\t\t\t\t\t }else if(strType!=null && strType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE)){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = getNewRelForConfigFeatType(context,flMap,featObjMap,strParentFeatureId,strParentFeatureType);\r\n\r\n\t\t\t\t\t\t }else if(strType!=null\r\n\t\t\t\t\t\t\t\t && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_SOFTWARE_FEATURE)))\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES;\r\n\r\n\t\t\t\t\t\t }else if(strType!=null && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_MANUFACTURING_FEATURE))){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES;\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\t //Set attribute values for \"To Side\" of the \"Feature List To\" relationship i.e. Child Feat Obj\r\n\t\t\t\t\t\t String strSelCriterion = setAttributeValuesOfChildFeatureObj(context,flMap,featObjMap,bConflictSelType);\r\n\r\n \t\t\t\t\t //Do the connection between 2 Feature Objects\r\n\r\n \t\t\t\t\t //restricting the connection if FST = Key-In and Key-In Type = Input\r\n \t\t\t\t\t String strFSTAttrValue = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n \t\t\t\t\t String strKITAttrValue = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\");\r\n \t\t\t\t\t if(strKITAttrValue.equals(RANGE_VALUE_INPUT)\r\n \t\t\t\t\t\t && strFSTAttrValue.equals(ConfigurationConstants.RANGE_VALUE_KEY_IN)\r\n \t\t\t\t\t\t && (newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES)||\r\n \t\t\t\t\t\t\t newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS)))\r\n \t\t\t\t\t {\r\n \t\t\t\t\t\t StringList slPCIds = new StringList();\r\n \t\t\t\t\t\t StringList slSOAttrKIVs = new StringList();\r\n \t\t\t\t\t\t StringList slParentPCIds = new StringList();\r\n \t\t\t\t\t\t StringList slParentSORelIds = new StringList();\r\n\r\n \t\t\t\t\t\t Object objPCIds = flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n \t\t\t\t\t\t if (objPCIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slPCIds = (StringList) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t\t\t\t\t\t} else if (objPCIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslPCIds.addElement((String) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\"));\r\n \t\t\t\t\t\t\t}\r\n\r\n\r\n \t\t\t\t\t\t Object objSOAttrKIVs = flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n \t\t\t\t\t\t if (objSOAttrKIVs instanceof StringList) {\r\n \t\t\t\t\t\t\t slSOAttrKIVs = (StringList) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n\r\n \t\t\t\t\t\t\t} else if (objSOAttrKIVs instanceof String) {\r\n \t\t\t\t\t\t\t\tslSOAttrKIVs.addElement((String) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\"));\r\n \t\t\t\t\t\t\t}\r\n\r\n \t\t\t\t\t\t String strParentPCIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\";\r\n \t\t\t\t\t\t Object objParentPCIds = flMap.get(strParentPCIdSel);\r\n\r\n \t\t\t\t\t\t if(objParentPCIds==null || \"\".equals(objParentPCIds)){\r\n \t\t\t\t\t\t\tstrParentPCIdSel =\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\";\r\n \t\t\t\t\t\t\tobjParentPCIds = flMap.get(strParentPCIdSel);\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t if (objParentPCIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slParentPCIds = (StringList) flMap.get(strParentPCIdSel);\r\n\r\n \t\t\t\t\t\t\t} else if (objParentPCIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslParentPCIds.addElement((String) flMap.get(strParentPCIdSel));\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//to[Feature List From].from.to[Feature List To].from.to[Selected Options].from.type\r\n\r\n \t\t\t\t\t\t String strParentSORelIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\";\r\n \t\t\t\t\t\t Object objParentSORelIds = flMap.get(strParentSORelIdSel);\r\n \t\t\t\t\t\t if(objParentSORelIds==null || \"\".equals(objParentSORelIds)){\r\n \t\t\t\t\t\t\tstrParentSORelIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\";\r\n \t\t\t\t\t\t\t objParentSORelIds = flMap.get(strParentSORelIdSel);\r\n\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t if (objParentSORelIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slParentSORelIds = (StringList) flMap.get(strParentSORelIdSel);\r\n\r\n \t\t\t\t\t\t\t} else if (objParentSORelIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslParentSORelIds.addElement((String) flMap.get(strParentSORelIdSel));\r\n \t\t\t\t\t\t\t}\r\n\r\n \t\t\t\t\t\t //VJB: TODO: seems a bug, int j is never used\r\n \t\t\t\t\t\t for(int j=0;slPCIds!=null && i<slPCIds.size();i++ )\r\n \t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t String strPCId = (String)slPCIds.get(i);\r\n \t\t\t\t\t\t\t String strAttrKIV = (String)slSOAttrKIVs.get(i);\r\n \t\t\t\t\t\t\t if(slParentPCIds!=null && slParentPCIds.contains(strPCId))\r\n \t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t for(int k=0;k<slParentPCIds.size();k++)\r\n \t\t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t\t String strParentPCId = (String)slParentPCIds.get(k);\r\n \t\t\t\t\t\t\t\t\t if(strParentPCId.equals(strPCId))\r\n \t\t\t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t\t\t String strParentSORelId = (String)slParentSORelIds.get(k);\r\n \t\t\t\t\t\t\t\t\t\t DomainRelationship domRel = new DomainRelationship(strParentSORelId);\r\n \t\t\t\t\t\t\t\t\t\t domRel.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE, strAttrKIV);\r\n \t\t\t\t\t\t\t\t\t\t break;\r\n \t\t\t\t\t\t\t\t\t }\r\n \t\t\t\t\t\t\t\t }\r\n \t\t\t\t\t\t\t }\r\n \t\t\t\t\t\t }\r\n\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\t//strNewRelId = connectFeaturesWithNewRel(context,strParentFeatureId,featureObjId,strType,newReltoConnect);\r\n \t\t\t\t\t\tstrNewRelId = connectFeaturesWithNewRel(context,htParentObjData,featureObjId,strType,newReltoConnect);\r\n\r\n \t\t\t\t\t }\r\n\r\n\r\n\r\n \t\t\t\t\t //Migrate attributes from FL to Rel id\r\n \t\t\t\t\t HashMap mapRelAttributes = new HashMap();\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_RULE_TYPE,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_RULE_TYPE+\"]\"));\r\n\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t && (newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES)\r\n \t\t\t\t\t\t || newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES))){\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_FIND_NUMBER,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FIND_NUMBER+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_USAGE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_USAGE+\"]\"));\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t&& newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ATTRIBUTE_LOGICAL_SELECTION_CRITERIA,strSelCriterion);\r\n \t\t\t\t }\r\n\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t \t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t }\r\n\r\n \t\t\t\t\t //Configuration Feature relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_SELECTION_CRITERIA,strSelCriterion);\r\n\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n \t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n \t\t\t\t\t\t //mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n \t\t\t\t\t }\r\n\r\n \t\t\t\t\t //Mandatory Configuration Feature relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\r\n \t\t\t\t\t }\r\n\r\n\r\n \t\t\t\t\t //\"Varies By\" and \"Inactive Varies By\" relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t&&\r\n \t\t\t\t\t\t(newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_VARIES_BY)\r\n \t\t\t\t\t\t ||newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_INACTIVE_VARIES_BY)))\r\n \t\t\t\t\t {\r\n\t\t\t\t\t\t if((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")!=null\r\n\t\t\t\t\t\t\t\t\t&&\r\n\t\t\t\t\t\t\t ((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")).equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_YES)){\r\n\r\n\r\n\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n\t\t\t\t\t\t\t\t\t\t\t \t\t\t\tConfigurationConstants.RANGE_VALUE_MANDATORY);\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n\t\t\t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,\r\n\t\t\t\t\t\t\t\t \t\t\t\tConfigurationConstants.RANGE_VALUE_TRUE);\r\n\r\n\t\t\t\t\t\t\t\t }else if((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")!=null\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((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")).equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_NO)){\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,ConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\r\n\t\t\t\t\t\t\t }\r\n\t\t\t\t\t }\r\n \t\t\t\t\t \r\n \t\t\t\t\t if(strNewRelId!=null && strNewRelId.length()!=0){\r\n\r\n \t\t\t\t\t\t DomainRelationship domRel = new DomainRelationship(strNewRelId);\r\n \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewRelId + \"\\n\");\r\n \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this Rel id :: \"+ mapRelAttributes +\"\\n\\n\");\r\n \t\t\t\t\t\t domRel.setAttributeValues(context, mapRelAttributes);\r\n \t\t\t\t\t\t //preparing MapList to pass to external migration\r\n \t\t\t\t\t\t Map FLInfoMap = new HashMap();\r\n \t\t\t\t\t\t FLInfoMap.put(\"objectId\",strFLId);\r\n \t\t\t\t\t\t FLInfoMap.put(\"newRelId\",strNewRelId);\r\n\r\n \t\t\t\t\t\t DomainRelationship domRel1 = new DomainRelationship(strNewRelId);\r\n \t\t\t\t\t\t domRel1.open(context);\r\n \t\t\t\t\t String connectionName = domRel1.getTypeName();\r\n \t\t\t\t\t FLInfoMap.put(\"newRelType\",connectionName);\r\n \t\t\t\t\t\t FLInfoMap.put(\"newRelName\",newReltoConnect);\r\n \t\t\t\t\t\t FLInfoMap.put(\"infoMapFLConnection\",flMap);\r\n\r\n \t\t\t\t\t\t FLInfoList.add(FLInfoMap);\r\n \t\t\t\t\t }\r\n\r\n\t\t\t\t\t\t //Add FL object to delete list\r\n\t\t\t\t\t\t sLFLToDelete.add(strFLId);\r\n\r\n\t\t\t\t\t }\r\n \t\t\t\t }else{\r\n \t\t\t\t\t\t //This is hanging FL Object ID need to b removed\r\n \t\t\t\t\t\t sLFLToDelete.add(strFLId);\r\n \t\t\t\t\t\t Map FLInfoMap = new HashMap();\r\n \t\t\t\t\t\t FLInfoMap.put(\"objectId\",strFLId);\r\n \t\t\t\t\t\t FLInfoMap.put(\"infoMapFLConnection\",flMap);\r\n \t\t\t\t\t\t FLInfoList.add(FLInfoMap);\r\n \t\t\t\t\t }\r\n \t\t\t\t }\r\n\r\n \t\t\t }catch(Exception e)\r\n \t\t\t {\r\n \t\t\t\t e.printStackTrace();\r\n \t\t\t\t throw new FrameworkException(e.getMessage());\r\n \t\t\t }\r\n \t }\r\n\r\n \t\t\t//Float the connections on FL objects to new Relationships formed\r\n \t\t\t if(strNewRelId!=null && strNewRelId.length()!=0){\r\n\r\n \t\t\t\t floatFLConnections(context,FLInfoList);\r\n \t\t\t }\r\n\r\n\r\n \t\t\t//call external migration\r\n \t\t\tMapList customResults = callInterOpMigrations(context, FLInfoList);\r\n \t\t\tIterator itrCustomResults = customResults.iterator();\r\n \t\t\twhile (itrCustomResults.hasNext()) {\r\n Map customResultsMap = (Map)itrCustomResults.next();\r\n \t\t\t\t Integer status = (Integer)customResultsMap.get(\"status\");\r\n\t\t\t\t String failureMessage = (String)customResultsMap.get(\"failureMessage\");\r\n\r\n\t\t\t\t if(status==1)\r\n\t\t\t\t {\r\n\t\t\t\t\t throw new FrameworkException(failureMessage);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\r\n\r\n\t\t//Check the \"Varies By\" and \"Effectivity Status\" values\r\n\t\t StringList sLVariesByRelId =new StringList();\r\n\t\t StringList sLEffectivityStatusValue=new StringList();\r\n\t\t StringList sLActiveCntValue=new StringList();\r\n\t\t StringList sLInActiveCntValue=new StringList();\r\n\t\t StringList sLParType=new StringList();\r\n\r\n\r\n\t\tif((StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\")!=null){\r\n\r\n\t\t\t//sLName = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t//sLVariesByRelId = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t//sLEffectivityStatusValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t//sLActiveCntValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t//sLInActiveCntValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t//sLParentId = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\r\n\t\t\t/*Not using the above statements as there is issue in sequence of ids in String list\r\n\t\t\t * coming from above getInfo\r\n\t\t\t * Doing the getInfo again on the given Feature Id\r\n\t\t\t */\r\n\r\n\t\t\tString stFeaId = (String) featObjMap.get(SELECT_ID);\r\n\t\t\tDomainObject domFd = new DomainObject(stFeaId);\r\n\t\t\tStringList objSel = new StringList();\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");//Varies By rel id if present\r\n\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");//Varies By rel id if present\r\n\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");//Varies By rel id if present\r\n\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");\r\n\r\n\r\n\t\t\t Map MFeatObj = domFd.getInfo(context, objSel);\r\n\r\n\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");\r\n\r\n\r\n\t\t\tsLVariesByRelId = (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\tsLParType= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\tsLEffectivityStatusValue= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\tsLActiveCntValue= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\tsLInActiveCntValue=(StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\r\n\t\t}\r\n\r\n\t\tHashMap mapRelAtt = null;\r\n\r\n\t\tfor(int iEffStatusCnt=0;iEffStatusCnt<sLEffectivityStatusValue.size();iEffStatusCnt++){\r\n\t\t\tmapRelAtt = new HashMap();\r\n\t\t\tString strEffectStatus = (String)sLEffectivityStatusValue.get(iEffStatusCnt);\r\n\t\t\tif(strEffectStatus!=null && strEffectStatus.equalsIgnoreCase(ConfigurationConstants.EFFECTIVITY_STATUS_INACTIVE)){\r\n\t\t\t\tDomainRelationship.setType(context, (String)sLVariesByRelId.get(iEffStatusCnt), ConfigurationConstants.RELATIONSHIP_INACTIVE_VARIES_BY);\r\n\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,ConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_INHERITED,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t}\r\n\r\n\r\n\t\t\tString strInActiveCntValue = (String)sLInActiveCntValue.get(iEffStatusCnt);\r\n\t\t\tint inactiveCount = Integer.parseInt(strInActiveCntValue);\r\n\r\n\t\t\tString strActiveCntValue = (String)sLActiveCntValue.get(iEffStatusCnt);\r\n\t\t\tint activeCount = Integer.parseInt(strActiveCntValue);\r\n\r\n\t\t\tif( inactiveCount==0 && activeCount==0 ){\r\n\t\t\t\tString strParType = (String)sLParType.get(iEffStatusCnt);\r\n\t\t\t\tif(mxType.isOfParentType(context,strParType, ConfigurationConstants.TYPE_PRODUCTS)){\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\t\t\t}\r\n\t\t\tDomainRelationship domRel = new DomainRelationship((String)sLVariesByRelId.get(iEffStatusCnt));\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+(String)sLVariesByRelId.get(iEffStatusCnt)+ \"\\n\");\r\n\t\t\tmqlLogRequiredInformationWriter(\"Attribute value Map set for this Rel id :: \"+ mapRelAtt +\"\\n\\n\");\r\n\t\t\tdomRel.setAttributeValues(context, mapRelAtt);\r\n\t\t}\r\n\r\n\r\n\t\t//Cleanup - delete related Feature List objects on successful migration of Feature\r\n\t\t deleteObjects(context,sLFLToDelete);\r\n\r\n\t\t loadMigratedOids(featureObjId);\r\n\r\n\t }else{ // for those Features which has \"Conflict\" stamp \"Yes\"\r\n\t\t String strCommand = strType + \",\" + strName + \",\" + strRevision + \",\" + strContextUsage+\"\\n\";\r\n\t\t\t writeUnconvertedOID(strCommand, featureObjId);\r\n\t }\r\n\r\n }",
"public abstract T _withMapperFeatures(int i);",
"private List<XmlElementNameAndContents> encodeFeatures(TOP fs, AttributesImpl attrs,\n boolean insideListNode) throws SAXException {\n List<XmlElementNameAndContents> childElements = new ArrayList<>();\n // int heapValue = cds.cas.getHeapValue(addr);\n // int[] feats = cds.tsi.ll_getAppropriateFeatures(heapValue);\n\n String attrValue;\n // boolean isSofa = false;\n // if (sofaTypeCode == heapValue)\n // {\n // // set isSofa flag to apply SofaID mapping and to store sofaNum->xmi:id mapping\n // isSofa = true;\n // }\n for (final FeatureImpl fi : fs._getTypeImpl().getFeatureImpls()) {\n\n if (cds.isFiltering) {\n // skip features that aren't in the target type system\n String fullFeatName = fi.getName();\n if (cds.filterTypeSystem_inner.getFeatureByFullName(fullFeatName) == null) {\n continue;\n }\n }\n\n final String featName = fi.getShortName();\n final int featureValueClass = fi.rangeTypeClass;\n\n switch (featureValueClass) {\n\n case LowLevelCAS.TYPE_CLASS_BYTE:\n case LowLevelCAS.TYPE_CLASS_SHORT:\n case LowLevelCAS.TYPE_CLASS_INT:\n case LowLevelCAS.TYPE_CLASS_LONG:\n case LowLevelCAS.TYPE_CLASS_FLOAT:\n case LowLevelCAS.TYPE_CLASS_DOUBLE:\n case LowLevelCAS.TYPE_CLASS_BOOLEAN:\n attrValue = fs.getFeatureValueAsString(fi);\n break;\n\n case LowLevelCAS.TYPE_CLASS_STRING:\n attrValue = fs.getFeatureValueAsString(fi);\n break;\n\n // Arrays\n case LowLevelCAS.TYPE_CLASS_INTARRAY:\n case LowLevelCAS.TYPE_CLASS_FLOATARRAY:\n case LowLevelCAS.TYPE_CLASS_BOOLEANARRAY:\n case LowLevelCAS.TYPE_CLASS_BYTEARRAY:\n case LowLevelCAS.TYPE_CLASS_SHORTARRAY:\n case LowLevelCAS.TYPE_CLASS_LONGARRAY:\n case LowLevelCAS.TYPE_CLASS_DOUBLEARRAY:\n case LowLevelCAS.TYPE_CLASS_FSARRAY:\n if (cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n } else {\n attrValue = arrayToString(fs.getFeatureValue(fi), featureValueClass);\n }\n break;\n\n // special case for StringArrays, which stored values as child elements rather\n // than attributes.\n case LowLevelCAS.TYPE_CLASS_STRINGARRAY:\n StringArray stringArray = (StringArray) fs.getFeatureValue(fi);\n if (cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(stringArray);\n } else if (stringArray != null && stringArray.size() == 0) {\n attrValue = \"\"; // https://issues.apache.org/jira/browse/UIMA-5558\n } else {\n stringArrayToElementList(featName, (StringArray) fs.getFeatureValue(fi),\n childElements);\n attrValue = null;\n }\n break;\n\n // Lists\n case CasSerializerSupport.TYPE_CLASS_INTLIST:\n case CasSerializerSupport.TYPE_CLASS_FLOATLIST:\n case CasSerializerSupport.TYPE_CLASS_FSLIST:\n TOP startNode = fs.getFeatureValue(fi);\n if (insideListNode || cds.isStaticMultiRef(fi)) {\n // If the feature has multipleReferencesAllowed = true OR if we're already\n // inside another list node (i.e. this is the \"tail\" feature), serialize as a normal\n // FS.\n // Otherwise, serialize as a multi-valued property.\n // if (cds.isStaticMultRef(feats[i]) ||\n // cds.embeddingNotAllowed.contains(featVal) ||\n // insideListNode) {\n\n attrValue = cds.getXmiId(startNode);\n } else {\n attrValue = listToString((CommonList) fs.getFeatureValue(fi));\n }\n break;\n\n // special case for StringLists, which stored values as child elements rather\n // than attributes.\n case CasSerializerSupport.TYPE_CLASS_STRINGLIST:\n if (insideListNode || cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n } else {\n // it is not safe to use a space-separated attribute, which would\n // break for strings containing spaces. So use child elements instead.\n StringList stringList = (StringList) fs.getFeatureValue(fi);\n if (stringList == null) {\n attrValue = null;\n } else {\n if (stringList instanceof EmptyStringList) {\n attrValue = \"\";\n } else {\n List<String> listOfStrings = stringList.anyListToStringList(null, cds);\n // if (array.length > 0 && !arrayAndListFSs.put(featVal, featVal)) {\n // reportWarning(\"Warning: multiple references to a ListFS. Reference identity\n // will not be preserved.\");\n // }\n for (String string : listOfStrings) {\n childElements.add(new XmlElementNameAndContents(\n new XmlElementName(\"\", featName, featName), string));\n }\n attrValue = null;\n }\n }\n }\n break;\n\n default: // Anything that's not a primitive type, array, or list.\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n break;\n\n } // end of switch\n\n if (attrValue != null && featName != null) {\n addAttribute(attrs, featName, attrValue, \"\");\n }\n } // end of for loop over all features\n\n // add out-of-typesystem features, if any\n if (cds.sharedData != null) {\n OotsElementData oed = cds.sharedData.getOutOfTypeSystemFeatures(fs);\n if (oed != null) {\n // attributes\n Iterator<XmlAttribute> attrIter = oed.attributes.iterator();\n while (attrIter.hasNext()) {\n XmlAttribute attr = attrIter.next();\n addAttribute(workAttrs, attr.name, attr.value);\n }\n // child elements\n childElements.addAll(oed.childElements);\n }\n }\n return childElements;\n }"
] |
[
"0.63267225",
"0.6258612",
"0.61648124",
"0.6053372",
"0.6053372",
"0.601715",
"0.5982246",
"0.5951456",
"0.5934064",
"0.5929774",
"0.5916234",
"0.5905654",
"0.590022",
"0.5898788",
"0.58710617",
"0.58168465",
"0.5800189",
"0.5800189",
"0.57748264",
"0.57748264",
"0.5753109",
"0.5640123",
"0.5628612",
"0.56209236",
"0.5612893",
"0.5605339",
"0.5596701",
"0.5594144",
"0.557302",
"0.5571932",
"0.55678684",
"0.55499464",
"0.5485862",
"0.548245",
"0.5475071",
"0.54711235",
"0.5459377",
"0.5450433",
"0.54134786",
"0.54134786",
"0.5410329",
"0.5388364",
"0.53806365",
"0.5347409",
"0.533144",
"0.53252333",
"0.5322579",
"0.53036773",
"0.52880913",
"0.5286127",
"0.5275592",
"0.5275415",
"0.5272824",
"0.52694535",
"0.5251769",
"0.5249182",
"0.52484816",
"0.52386415",
"0.52259994",
"0.52250546",
"0.52250546",
"0.5224538",
"0.51986104",
"0.51986104",
"0.5197133",
"0.5194484",
"0.5179914",
"0.51723725",
"0.51681584",
"0.51665366",
"0.5163019",
"0.5158271",
"0.51428103",
"0.5141159",
"0.51251787",
"0.5122371",
"0.51216906",
"0.51100165",
"0.51041865",
"0.5103643",
"0.5101954",
"0.5098319",
"0.5096737",
"0.50903296",
"0.5090259",
"0.50863904",
"0.5083499",
"0.5081369",
"0.50787854",
"0.5078232",
"0.5076846",
"0.5076449",
"0.5075458",
"0.506996",
"0.506375",
"0.5062637",
"0.50609034",
"0.5059136",
"0.5057567",
"0.5054967"
] |
0.517658
|
67
|
save the feature in place if it exists else add the feature
|
public static void saveFeature(Feature feature, String allFeaturesFilePath, Project project) throws IOException {
FileReader r = new FileReader(allFeaturesFilePath);
CSVParser parser = new CSVParser(r);
List<CSVRecord> records = parser.getRecords();
r.close();
List<Feature> features = new ArrayList<Feature>();
int size = records.size();
boolean found = false;
for(int i = 1; i < size; i++){
CSVRecord rec = records.get(i);
String featureName = rec.get(0).trim();
if(featureName.equals(feature.getName())) {
features.add(feature);
found = true;
}
else {
String functionName = rec.get(1).trim();
String attr1Name = rec.get(2).trim();
String attr1Type = rec.get(3).trim();
String attr2Name = rec.get(4).trim();
String attr2Type = rec.get(5).trim();
String projectName = project.getName();
Function function = project.findFunctionByName(functionName);
Attribute attribute1 = new Attribute(attr1Name, Attribute.Type.valueOf(attr1Type));
Attribute attribute2 = new Attribute(attr2Name, Attribute.Type.valueOf(attr2Type));
Feature f = new Feature(featureName, function, projectName, attribute1, attribute2);
features.add(f);
}
}
if(!found) {
features.add(feature);
}
// save all the features
saveAllFeatures(features, allFeaturesFilePath);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void addFeature(Feature feature);",
"void addFeature(int index, Feature feature);",
"public void saveFeatureMetadata();",
"void addFeatures(Features features);",
"public void addFeatures(IFeature feature);",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"Feature update(Feature feature);",
"public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }",
"public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }",
"public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$14);\r\n return target;\r\n }\r\n }",
"public void addFeature() throws UMUserManagementException {\n UMFeature uMFeature = convertFeatureDataBeanToFeatureModel(featureDataBean);\n featureService.createFeature(uMFeature);\n clearFeatureData();\n }",
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
"org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature addNewPlanFeature();",
"protected void addPoint( SimpleFeature feature, PointMergeOperations mergeOps )\n \t{\n \t\tmergePoint( feature, 0 );\n \t}",
"private void insert(String component, String feature) {\n\tthis.entities.putIfAbsent(component, new HashSet<String>());\n\tSet<String> componentFeatures = this.entities.get(component);\n\tcomponentFeatures.add(feature);\n\tthis.entities.put(component, componentFeatures);\n\t// From features to components which possess them\n\tthis.features.putIfAbsent(feature, new HashSet<String>());\n\tSet<String> components = this.features.get(feature);\n\tcomponents.add(component);\n\t//LogInfo.logs(\" adding: %s :: %s\", feature, component);\n\tthis.features.put(feature, components);\n }",
"private void addFeature()\r\n {\r\n MapGeometrySupport mgs = myCurrentGeometryHandler.getGeometry();\r\n MetaDataProvider mdp = myMetaDataHandler.getMetaDataProvider();\r\n TimeSpan span = buildTimeSpan(mdp);\r\n mgs.setTimeSpan(span);\r\n MapDataElement element = new DefaultMapDataElement(myFeatureId, span, myType, mdp, mgs);\r\n Color typeColor = myType.getBasicVisualizationInfo().getTypeColor().equals(DEFAULT_FEATURE_COLOR) ? myFeatureColor\r\n : myType.getBasicVisualizationInfo().getTypeColor();\r\n element.getVisualizationState().setColor(typeColor);\r\n myConsumer.addFeature(element);\r\n myFeatureCount++;\r\n }",
"public void putFeature(FeatureData feature, CoinData coin) {\n String sql = \"SELECT Coin.id FROM Coin, Country WHERE \" +\n \"Coin.Country_id = Country.id AND \" +\n \"Country.Name = '\" + coin.country + \"' AND \" +\n \"Coin.Value = \" + coin.value + \";\";\n Cursor cursor = database.rawQuery(sql, null);\n cursor.moveToFirst();\n int coinId = cursor.getInt(0);\n cursor.close();\n\n // put the feature data into the database\n ContentValues values = new ContentValues();\n values.put(\"Type\", feature.type);\n values.put(\"Coin_id\", coinId);\n values.put(\"Keypoints\", MatSerializer.matToBytes(feature.keypoints));\n values.put(\"Descriptor\", MatSerializer.matToBytes(feature.descriptor));\n values.put(\"Mask\", MatSerializer.matToBytes(feature.mask));\n database.insert(\"Feature\", null, values);\n\n }",
"Feature createFeature();",
"public void addFeature(@Nonnull Feature f) {\r\n features.add(f);\r\n }",
"public static Feature update(Feature feature) throws SQLException {\r\n\r\n\t\tString[] data = new String[4];\r\n\r\n\t\tdata[0] = \"\" + feature.getFeatureId() + \"\";\r\n\t\tdata[1] = \"\" + feature.getVideoId() + \"\";\r\n\t\tdata[2] = \"\\'\" + feature.getFeatureName() + \"\\'\";\r\n\t\tdata[3] = \"\\'\" + feature.getFeatureVector() + \"\\'\";\r\n\t\t//data[4] = \"TO_DATE(\\'\" + feature.getCreationDate() + \"\\', \\'yyyy-MM-dd\\', \\'GMT+9\\')\"; //no need to update date\r\n\r\n\t\t//System.out.println(\"Data = \" + Arrays.toString(data));\r\n\t\toperation.insertOrUdate(\"FEATURE\", data);\r\n\r\n\t\treturn feature;\r\n\t}",
"private void addToIndex(SimpleFeature feature) {\n\t\t// ID Index\n\t\tif (idIndex==null) idIndex = new HashMap<String, SimpleFeature>();\n\t\tidIndex.put(feature.getID(), feature);\n\t\t\n\t\t// Type name index\n\t\tif (typeNameIndex==null) typeNameIndex = new HashMap<Name, Set<SimpleFeature>>();\n\t\tName type = feature.getType().getName();\n\t\tSet<SimpleFeature> prev = typeNameIndex.get(type);\n\t\tif (prev==null) prev = new HashSet<SimpleFeature>();\n\t\tprev.add(feature);\n\t\ttypeNameIndex.put(type, prev);\n\t\t\n\t\t// Tile Index\n\t\t// Image features are separated by - and last parts are xref-yref-zoom\n\t\tif (feature.getID().matches(\".*-[0-9]+-[0-9]+-[0-9]+\")) {\n\t\t\tOSMTile tile = new OSMTile(feature.getID());\n\t\t\tprev = tileIndex.get( tile );\n\t\t\tif (prev==null) prev = new HashSet<SimpleFeature>();\n\t\t\tprev.add(feature);\n\t\t\ttileIndex.put(tile, prev);\n\t\t\t\n\t\t} else {\n\t\t\t/* TODO Something for features..?\n\t\t\t * get geometry bounds, calculate tile and insert into relevant index positions?\n\t\t\t * This would then also work for removal...\t */\n\t\t}\n\t\t\n\t}",
"protected void addFeature( SimpleFeature feature, PointMergeOperations mergeOps )\n \t{\n if( isPoint( feature ) )\n {\n \taddPoint( feature, mergeOps );\n }\n else if( isPolyline( feature ) )\n {\n \taddPolyline( feature, mergeOps );\n }\n else\n {\n \t// We do not handle polygons.\n \tSystem.err.printf( \"Unknown feature type (%s)%n\", feature.getType().getGeometryDescriptor().getType().getBinding() );\n }\n \t}",
"public void addVariant(Feature feature){\r\n\t\tthis.alternativeFeatureGroup.get(0).addFeature(feature);\r\n\t}",
"private String createFeatureInStore( final Geometry finalGeometry, final FeatureStore<SimpleFeatureType, SimpleFeature> store ) throws SOProcessException{\n \n SimpleFeature newFeature;\n try {\n newFeature = DataUtilities.template(store.getSchema());\n\n newFeature.setDefaultGeometry(finalGeometry);\n \n Set fidSet = store.addFeatures(DataUtilities.collection(new SimpleFeature[]{newFeature}));\n \n Iterator iter = fidSet.iterator();\n assert iter.hasNext();\n String fid = (String)iter.next();\n \n return fid;\n\n } catch (Exception e) {\n \n final String msg = Messages.ClipProcess_failed_creating_new_feature ;\n LOGGER.severe(msg);\n throw new SOProcessException(msg);\n \n }\n }",
"public void add(Feature f){\n if (debug) logger.info(\"feature added\");\n int z = fc.size();\n fc.add(f);\n fcLastEdits.clear();//clear possible feature edits\n fcLastEdits.add(f);\n lastEditType = EDIT_ADD;\n fireTableRowsInserted(z+1, z+1);\n }",
"org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature insertNewPlanFeature(int i);",
"public org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().insert_element_user(FEATURE$6, i);\r\n return target;\r\n }\r\n }",
"public org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().insert_element_user(FEATURE$6, i);\r\n return target;\r\n }\r\n }",
"public org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().insert_element_user(FEATURE$14, i);\r\n return target;\r\n }\r\n }",
"void setFeatures(Features f) throws Exception;",
"public void addFeature(String domain, String name) { addFeature(domain, name, 1); }",
"@Action( ACTION_CREATE_FEATURE )\r\n public String doCreateFeature( HttpServletRequest request )\r\n {\r\n populate( _feature, request );\r\n\r\n // Check constraints\r\n if ( !validateBean( _feature, VALIDATION_ATTRIBUTES_PREFIX ) )\r\n {\r\n return redirectView( request, VIEW_CREATE_FEATURE );\r\n }\r\n\r\n FeatureHome.create( _feature );\r\n addInfo( INFO_FEATURE_CREATED, getLocale( ) );\r\n\r\n return redirectView( request, VIEW_MANAGE_FEATURES );\r\n }",
"public void addFeature(Feature feature) {\n rows.addElement(feature);\n }",
"boolean removeFeature(Feature feature);",
"public static String SAVE_FEATURE(Feature f) {\n String ret = \"\";\n ret += f.name + \"\\t\" + f.type + \"\\t\";\n int i;\n\n if (Feature.IS_NOMINAL(f.type)) {\n if (f.modalities == null) ret += \"null\";\n else if (f.modalities.size() == 0) ret += \"{}\";\n else\n for (i = 0; i < f.modalities.size(); i++) {\n ret += (String) f.modalities.elementAt(i);\n if (i < f.modalities.size() - 1) ret += \"\\t\";\n }\n } else if (Feature.IS_CONTINUOUS(f.type)) {\n ret += f.dmin + \"\\t\" + f.dmax;\n if (f.dmin_from_data != f.dmax_from_data)\n ret += \"\\t\" + f.dmin_from_data + \"\\t\" + f.dmax_from_data;\n } else if (Feature.IS_INTEGER(f.type)) {\n ret += f.imin + \"\\t\" + f.imax;\n if (f.imin_from_data != f.imax_from_data)\n ret += \"\\t\" + f.imin_from_data + \"\\t\" + f.imax_from_data;\n }\n return ret;\n }",
"public void saveExisting() {\r\n Part modifiedPart = null;\r\n for (Part part : Inventory.getAllParts()) {\r\n if (Integer.parseInt(iDfield.getText()) == part.getId()) {\r\n modifiedPart = part;\r\n }\r\n }\r\n if (modifiedPart instanceof Outsourced && inHouseSelected) {\r\n replacePart(modifiedPart);\r\n\r\n } else if (modifiedPart instanceof InHouse && !inHouseSelected) {\r\n replacePart(modifiedPart);\r\n } else {\r\n modifiedPart.setName(nameField.getText());\r\n modifiedPart.setStock(Integer.parseInt(invField.getText()));\r\n modifiedPart.setPrice(Double.parseDouble(priceField.getText()));\r\n modifiedPart.setMax(Integer.parseInt(maxField.getText()));\r\n modifiedPart.setMin(Integer.parseInt(minField.getText()));\r\n if (inHouseSelected) {\r\n ((InHouse) modifiedPart).setMachineId(Integer.parseInt(machineOrCompanyField.getText()));\r\n } else {\r\n ((Outsourced) modifiedPart).setCompanyName(machineOrCompanyField.getText());\r\n }\r\n\r\n Inventory.updatePart(Inventory.getAllParts().indexOf(modifiedPart), modifiedPart);\r\n }\r\n\r\n }",
"void setFeature(int index, Feature feature);",
"@Action( ACTION_MODIFY_FEATURE )\r\n public String doModifyFeature( HttpServletRequest request )\r\n {\r\n populate( _feature, request );\r\n\r\n // Check constraints\r\n if ( !validateBean( _feature, VALIDATION_ATTRIBUTES_PREFIX ) )\r\n {\r\n return redirect( request, VIEW_MODIFY_FEATURE, PARAMETER_ID_FEATURE, _feature.getId( ) );\r\n }\r\n\r\n FeatureHome.update( _feature );\r\n addInfo( INFO_FEATURE_UPDATED, getLocale( ) );\r\n\r\n return redirectView( request, VIEW_MANAGE_FEATURES );\r\n }",
"public void save(String filename, boolean append) throws IOException {\n\t\ttry {\n\t\t\tFileWriter writer = new FileWriter(filename, append);\n\t\t\t// write file\n\t\t\twriter.write(\"<<MagicLearning[FeatureSet:\" + name + \"]>>\");\n\t\t\twriter.write(System.lineSeparator());\n\t\t\tfor (T feat : features) {\n\t\t\t\twriter.write(feat.toString());\n\t\t\t\twriter.write(System.lineSeparator());\n\t\t\t}\n\t\t\twriter.close();\n\t\t} finally {}\n\t}",
"public void updateFeatue(Long id, FeatureLookup feature) {\n\r\n\t}",
"public static Feature create(Feature feature) throws SQLException {\r\n\r\n\t\tString[] data = new String[5];\r\n\r\n\t\tdata[0] = \"NEXT VALUE FOR siat.feature_pk\";\r\n\t\tdata[1] = \"\" + feature.getVideoId() + \"\";\r\n\t\tdata[2] = \"\\'\" + feature.getFeatureName() + \"\\'\";\r\n\t\tdata[3] = \"\\'\" + feature.getFeatureVector() + \"\\'\";\r\n\t\tdata[4] = \"TO_DATE(\\'\" + feature.getCreationDate() + \"\\', \\'yyyy-MM-dd\\', \\'GMT+9\\')\";\r\n\r\n\t\t//System.out.println(\"Data = \" + Arrays.toString(data));\r\n\t\toperation.insertOrUdate(\"FEATURE\", data);\r\n\r\n\t\treturn feature;\r\n\t}",
"private void updatingOptionalFeature(ArrayList<String>\tOnlyInLeft, ArrayList<String>\tOnlyInRight, Model splModel, Model newModel){\r\n//STEP 1 ---------------------------------------------------------------------------------------------\r\n\t\t//Feature optionalFeature = null;\t\t\r\n\t\t//New 02/12/201/\r\n\t\tFeature newModelOptionalFeature = null;\r\n\t\tFeature newVariant = null;\r\n\t\tConstraint constraint = null;\r\n\t\tnewVariant = new Feature(newModel.getId()+\"_Variant\", \"variant\", this.alternativeFeatureGroup.get(0).getId());\r\n\t\tthis.addVariant(newVariant);\r\n\t\t//-New 02/12/201/\r\n\t\t\r\n\t\tif(OnlyInLeft.size()==0){\r\n\t\t}else{\r\n\t\t\tnewModelOptionalFeature= new Feature(\"f\"+(this.optionalFeatures.size()+1) , \"optional\", this.getBase().getName(), OnlyInLeft);\r\n\t\t\tthis.optionalFeatures.add(newModelOptionalFeature);\r\n\t\t\t\r\n\t\t\t//New 02/12/201/\r\n\t\t\tfor(int i = 0; i < this.getVariants().getFeatures().size();i++){\r\n\t\t\t\tFeature variant = this.getVariants().getFeatures().get(i);\r\n\t\t\t\tif(variant==newVariant){\r\n\t\t\t\t}else{\r\n\t\t\t\t\tconstraint = new Constraint(variant.getName(), \"\\u00AC\"+newModelOptionalFeature.getName());\r\n\t\t\t\t\t//addConstraint(constraint);\r\n\t\t\t\t}//if(variant==newVariant){\r\n\t\t\t\t\r\n\t\t\t}//for(int i = 0; i <this.getVariants().getFeatures().size();i++){\t\r\n\t\t\t//-New 02/12/201/\r\n\t\t\tconstraint = new Constraint(newVariant.getName(), newModelOptionalFeature.getName());\r\n\t\t\t//this.constraints.add(constraint);\r\n\t\t\taddConstraint(constraint);\r\n\t\t\t\r\n\t\t\t//System.out.println(\" *** \"+this.constraints.size());\r\n\t\t\t//System.out.println(\" ... \"+constraint.toString());\r\n\t\t\t\r\n\t\t}//if(OnlyInLeft.size()==0){\r\n\r\n//STEP 2 ---------------------------------------------------------------------------------------------\r\n\t\t\r\n\t\tFeature optionalFeature = null;\r\n\t\t\r\n\t\tArrayList<String> elts = MyString.intersection(OnlyInRight, this.getBase().getElements());\r\n\t\tif(elts.size()==0){\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\tthis.getBase().setElements(MyString.minus(this.getBase().getElements(), elts));\r\n\t\t\toptionalFeature= new Feature(\"f\"+(this.optionalFeatures.size()+1) , \"optional\", this.getBase().getName(), elts);\r\n\t\t\tthis.optionalFeatures.add(optionalFeature);\r\n\t\t\t\r\n\t\t\t//OnlyInRight = MyString.minus(OnlyInRight, elts);\r\n\t\t\t\r\n\t\t\t//New 03/12/2018\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < this.getVariants().getFeatures().size();i++){\r\n\t\t\t\tFeature variant = this.getVariants().getFeatures().get(i);\r\n\t\t\t\tif(variant==newVariant){\r\n\t\t\t\t}else{\r\n\t\t\t\t\tconstraint = new Constraint(variant.getName(), optionalFeature.getName());\r\n\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\taddConstraint(constraint);\r\n\t\t\t\t}//if(variant==newVariant){\r\n\t\t\t}//for(int i = 0; i <this.getVariants().getFeatures().size();i++){\r\n\t\t\t\r\n\t\t\tconstraint = new Constraint(newVariant.getName(), \"\\u00AC\" + optionalFeature.getName());\r\n\t\t\t//this.constraints.add(constraint);\r\n\t\t\t//addConstraint(constraint);\r\n\t\t\t//-New 03/12/2018\r\n\t\t\t\r\n\t\t\t//New 03/12/2018\r\n\t\t\t//update parent feature of feature groups\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor(int i = 1; i < this.getAlternativeFeatureGroup().size(); i++){\r\n\t\t\t\tFeatureGroup fg = this.getAlternativeFeatureGroup().get(i);\r\n\t\t\t\t\r\n\t\t\t\tif(fg.getParent().equals(this.getBase().getName())){\r\n\t\t\t\t\t\r\n\t\t\t\t\tString elt = fg.getFeatures().get(0).getElements().get(0); \r\n\t\t\t\t\tString parentElt = splModel.getParent(splModel.getElement(elt)).getId();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(optionalFeature.contains(parentElt)){\r\n\t\t\t\t\t\t//System.out.println(\"%%%%%%%%%%%%% + \"+parentElt);\r\n\t\t\t\t\t\tfg.setParent(optionalFeature.getName());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}//for(int i = 1; i < this.getAlternativeFeatureGroup().size(); i++){\r\n\t\t\t\r\n\t\t\t//-New 03/12/2018\r\n\t\t}//if(elts.size()==0){\r\n\t\t\r\n//STEP 3 ---------------------------------------------------------------------------------------------\r\n\r\n\t\t\r\n\t\tint i = 0;\r\n\t\twhile( i<this.optionalFeatures.size()){ //New 03/12/02018\r\n\t\t\tFeature f = this.optionalFeatures.get(i);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(f==newModelOptionalFeature){\r\n\t\t\t}else{\r\n\t\t\t\telts = f.getElements();\r\n\t\t\t\tArrayList<String> elts1 = MyString.intersection(OnlyInRight, elts);\r\n\t\t\t\tif(elts1.size()==0 ){\r\n\t\t\t\t\t//SUP\r\n\t\t\t\t\t//New 03/12/02018\r\n\t\t\t\t\tconstraint = new Constraint(newVariant.getName(), f.getName());\r\n\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\taddConstraint(constraint);\r\n\t\t\t\t\t//-New 03/12/02018\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif( MyString.contains(OnlyInRight, elts) ){\r\n\t\t\t\t\t\t//New 03/12/02018\r\n\t\t\t\t\t\t//OnlyInRight = MyString.minus(OnlyInRight, elts); \r\n\t\t\t\t\t\tconstraint = new Constraint(newVariant.getName(), \"\\u00AC\"+f.getName());\r\n\t\t\t\t\t\t//addConstraint(constraint);\r\n\t\t\t\t\t\t//-New 03/12/02018\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\toptionalFeature= new Feature(\"f\"+(this.optionalFeatures.size()+1) , \"optional\", this.getBase().getName(), elts1);\r\n\t\t\t\t\t\tthis.optionalFeatures.add(optionalFeature);\r\n\t\t\t\t\t\tf.setElements(MyString.minus(elts, elts1));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//OnlyInRight = MyString.minus(OnlyInRight, elts1);\r\n\r\n\t\t\t\t\t\t//New 09-01-2019\r\n\t\t\t\t\t\t//OnlyInRight = elts; \r\n\t\t\t\t\t\t//--------New 09-01-2019\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfor(int j = 0; j < this.getVariants().getFeatures().size(); j++){\r\n\t\t\t\t\t\t\tFeature variant = this.getVariants().getFeatures().get(j);\r\n\t\t\t\t\t\t\tif(variant==newVariant){\r\n\t\t\t\t\t\t\t}else{ \r\n\t\t\t\t\t\t\t\tif(Constraint.contains(this.constraints, variant.getName(), f.getName(), \"implies\") ){\r\n\t\t\t\t\t\t\t\t\tconstraint = new Constraint(variant.getName(), optionalFeature.getName());\r\n\t\t\t\t\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\t\t\t\t\taddConstraint(constraint);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}//if(variant==newVariant){\r\n\t\t\t\t\t\t}//for(int j = 0; j < this.getVariants().getFeatures().size(); j++){\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\tconstraint = new Constraint(newVariant.getName(), \"\\u00AC\"+optionalFeature.getName());\r\n\t\t\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\t\t\t//addConstraint(constraint);\r\n\t\t\t\t\t\t\tconstraint = new Constraint(newVariant.getName(), f.getName());\r\n\t\t\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\t\t\taddConstraint(constraint);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//-New 03/12/02018\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//New 03/12/2018\r\n\t\t\t\t\t\t\t//update parent feature of feature groups\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor(int j = 1; j < this.getAlternativeFeatureGroup().size(); j++){\r\n\t\t\t\t\t\t\t\tFeatureGroup fg = this.getAlternativeFeatureGroup().get(j);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif(fg.getParent().equals(f.getName())){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tString elt = fg.getFeatures().get(0).getElements().get(0); \r\n\t\t\t\t\t\t\t\t\tString parentElt = splModel.getParent(splModel.getElement(elt)).getId();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif(optionalFeature.contains(parentElt)){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tfg.setParent(optionalFeature.getName());\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}//for(int i = 1; i < this.getAlternativeFeatureGroup().size(); i++){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//-New 03/12/2018\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//if( MyString.contains(OnlyInRight, f.getElements()) ){\r\n\t\t\t\t}//if( elts1.size()==0 ){\r\n\t\t\t\r\n\t\t\t}//if(f==newModelOptionalFeature){ New 03/12/02018\r\n\t\t\ti++;\r\n\t\t}//while(){\r\n\t\t\r\n\t\r\n\t\t\r\n\t\tthis.updatingAlternativeFeatures(splModel, newModelOptionalFeature, newVariant, OnlyInRight, newModel);\r\n\t}",
"public boolean CreateFeature(Feature feature, String nameTable){\n try {\n String sql = \"INSERT INTO \" + nameTable + \"(`\" + FEATURE_DB_TEXTFEATURE + \"`, `\" + FEATURE_DB_ELO + \"`, `\"\n + FEATURE_DB_MMR + \"`, `\" + FEATURE_DB_AUTHOR + \"`) VALUES (?, ?, ?, ?)\";\n\n\n // Prepare SQL query\n PreparedStatement statement = conn.prepareStatement(sql);\n statement.setString(1, feature.getTextFeature());\n statement.setInt(2, feature.getELO());\n statement.setInt(3, feature.getMMR());\n statement.setString(4, feature.getAuthorEmail());\n\n int result = statement.executeUpdate();\n if (result > 0) {\n System.out.println(\"A new user was inserted successfully!\");\n return true;\n } else {\n return false;\n }\n } catch (SQLException e) {\n e.printStackTrace();\n return false;\n }\n }",
"void add_element_to_feature(Fact factInf, Feature feature_to_assign, Element element, boolean is_fprivate, boolean is_fpublic, Feature parent_feature, boolean by_inference){\n\t\tFeatureBound eb = this.partition.boundsCalc.get_earliest_bound(element, partition.get_all_features(), parent_feature);\n\t\tFeatureBound lb = this.partition.boundsCalc.get_latest_bound(element, partition.get_all_features(), parent_feature);\n\t\tFeaturePossibility poss = this.partition.boundsCalc.get_element_possibilities(element, parent_feature, false);\n\t\t\n\t\tif(eb != null && eb.getFeature() != null){\n\t\t\telement.setEarliest_bound(eb.getFeature());\n\t\t}\n\t\tif(lb != null && lb.getFeature() != null){\n\t\t\telement.setLatest_bound(lb.getFeature());\n\t\t}\n\t\t\n\t\tif(poss != null & poss.getButton_options() != null){\n\t\t\telement.setNumber_possibilities(poss.getButton_options().size());\n\t\t}\n\t\t\n\t\tboolean already_hook = element.isIs_hook();\n\t\tboolean is_hook = hookHandler.check_is_hook(feature_to_assign, element);\n\t\t\n\t\tif(is_hook){\n\t\t\tis_fprivate = false;\n\t\t\tis_fpublic = true;\n\t\t}\n\t\t\n\t\tif(!already_hook && is_hook){\n\t\t\tfactInf.addInference(element.getIdentifier() + \", BttF says it's a hook because it references declaration(s) classified in future features\", element, is_fprivate, is_fpublic, is_hook, feature_to_assign);\n\t\t}\n\t\t\n\t\tif(already_hook && !is_hook){\n\t\t\tfactInf.addInference(element.getIdentifier() + \", BttF says it's no longer a hook, referenced declaration(s) got reclassified\", element, is_fprivate, is_fpublic, is_hook, feature_to_assign);\n\t\t}\n\t\t\n\t\tif(element.getFeature()!= null){\n\t\t\tFeature orig_feature = element.getFeature();\n\t\t\torig_feature.removeElement(element);\n\t\t}\n\t\t\n\t\tfeature_to_assign.addElement(element, is_fprivate, is_fpublic, is_hook, by_inference);\n\t\telement.setOrderOfAssignment(orderOfAssignment);\n\t\torderOfAssignment++;\n\t\t\n\t\tif(is_fprivate){\n\t\t\tpropagate_childs_of_fprivate_containers(element, feature_to_assign, factInf, parent_feature);\n\t\t\tpropagate_fprivate(element, feature_to_assign, factInf, parent_feature);\n\t\t}\n\t\t\n\t\tpropagate_childs_with_no_calls(element, feature_to_assign, factInf, parent_feature);\n\n\t\tif(cycle_stuff_on){\n\t\t\tcycleHandler.propagate_elems_in_cycle(cycle_list, element, feature_to_assign, factInf);\n\t\t}\n\t\t\n\t\t//if we are partitioning into fw+pi and we have a non terminal class, \n\t\t//all of its members go to its same feature\n\t\tif(is_fwpi){\n\t\t\tif(element.getElement_type().equals(ElementType.ELEM_TYPE_CLASS)){\n\t\t\t\t//check if it not should be pulled apart and add all of its members go to its same feature\n\t\t\t\tpropagate_members_of_unbreakable_fwpi(element, feature_to_assign, factInf, parent_feature);\n\t\t\t\t//propagate_members_of_nonterminal(element, feature_to_assign, factInf, parent_feature);\n\t\t\t}\n\t\t\tif(element.getElement_type().equals(ElementType.ELEM_TYPE_METHOD)){\n\t\t\t\tpropagate_reffrom_cannotbehook_fwpi(element, feature_to_assign, factInf, parent_feature);\n\t\t\t\tpropagate_reffrom_staticmethodmember_fwpi(element, feature_to_assign, factInf, parent_feature);\n\t\t\t}\n\t\t}\n\t\thookHandler.late_check_for_hooks(element, factInf, parent_feature);\n\t\thookHandler.recheck_hook(element, factInf);\n\t\t\n\t}",
"public Feature createFeature(Feature.Template ft)\n throws BioException, ChangeVetoException;",
"protected void addPolyline( SimpleFeature feature, PointMergeOperations mergeOps )\n \t{\n \t\tPoint point1 = mergePoint( feature, 0 );\n \t\tPoint point2 = mergePoint( feature, -1 );\n \t\tString id1 = point1.getId().toString();\n \t\tString id2 = point2.getId().toString();\n \t\tString fid = feature.getID();\n \t\n \t\tNode node1 = graph.getNode( id1 );\n \t\tNode node2 = graph.getNode( id2 );\n \t\tEdge edge = null;\n \t\t\n \t\tif( mergeDuplicateEdge && node1 != null && node2 != null )\n \t\t{\n \t\t\tedge = node1.getEdgeToward( node2.getId() );\n \t\t\t\n \t\t\tif( edge == null )\n \t\t\t\tedge = node1.getEdgeFrom( node2.getId() );\n \t\t}\n \n \t\tif( node1 == null )\n \t\t{\n \t\t\tnode1 = graph.addNode( id1 );\n \t\t\taddNodeAttributes( node1, fid, point1 );\n \t\t}\n \n \t\tif( node2 == null )\n \t\t{\n \t\t\tnode2 = graph.addNode( id2 );\n \t\t\taddNodeAttributes( node2, fid, point2 );\n \t\t}\n \t\n \t\tif( edge == null )\n \t\t{\n \t\t\tAttributeSet attr = new AttributeSet( feature );\n \t\t\tEdgeDirecter.Direction dir = edgeDirecter.edgeDirection( point1, point2, attr );\n \t\t\tboolean isDir = true;\n \n \t\t\tif( dir == EdgeDirecter.Direction.TO_FROM )\n \t\t\t{\n \t\t\t\tString id = id2;\n \t\t\t\tid2 = id1;\n \t\t\t\tid1 = id;\n \t\t\t}\n \t\t\telse if( dir == EdgeDirecter.Direction.UNDIRECTED )\n \t\t\t{\n \t\t\t\tisDir = false;\n \t\t\t}\n \t\t\t\n \t\t\tedge = graph.addEdge( fid, id1, id2, isDir );\n \t\t\t\n \t\t\tif( addEdgeLengths ) {\n \t\t\t\tedge.addAttribute( \"length\",\n \t\t\t\t\t\t((Geometry)feature.getDefaultGeometry()).getLength() );\n \t\t\t}\n \t\t\t\n \t\t\tif( addEdgeShapeAttribute ) {\n \t\t\t\taddEdgeShape(edge, ((Geometry)feature.getDefaultGeometry()).getCoordinates());\n \t\t\t}\n \t\t\n \t\t\tmergeAttributes( edge, attr, edgeAttributeFilter, feature );\n \t\t}\n \t}",
"Feature loadFeature(Integer id);",
"@RequestLine(\"PUT /v1/accounts/{accountId}/features/flags/{feature}\")\n @Headers({\n \"Content-Type: multipart/form-data\",\n \"Accept: application/json\",\n })\n FeatureFlag setFeatureFlagAccounts(@Param(\"accountId\") String accountId, @Param(\"feature\") String feature, @Param(\"state\") String state);",
"@Override\n public void enableFeature(String feature) throws RemoteException {\n Database.enableFeature(\n getApplicationContext(),\n feature,\n null\n );\n JID_VERIFICATION_CACHE.clear();\n }",
"public static ClassifiedFeature getOrCreateClassifiedFeature(Classification classification, Feature feature) {\n ClassifiedFeature classifiedFeature = ClassificationUtil.getClassifiedFeature(classification, feature);\n if (classifiedFeature == null) {\n classifiedFeature = ClassificationUtil.createdClassifiedFeature(classification, feature);\n }\n return classifiedFeature;\n }",
"FeatureConcept createFeatureConcept();",
"@Override\n public List<FeatureId> addFeatures(\n FeatureCollection<SimpleFeatureType, SimpleFeature> collection) throws IOException {\n TransformFeatureCollectionWrapper transformed = new TransformFeatureCollectionWrapper(collection, invertedTransformer);\n return store.addFeatures(transformed);\n\n // TODO: re-shape feature ids...\n }",
"void addHasSCF(SCF newHasSCF);",
"boolean add(SysFile model);",
"@Override\n public void setFeature(String feature) {\n this.exteriorFeature = feature;\n }",
"protected void addSaveCookie() {\n if (getLookup().lookup(SaveCookie.class) == null) {\n getCookieSet().add(this.saveCookie);\n }\n }",
"Feature delete(Long featureId);",
"private void migrateFeaturesStep_1(Context context, Map featObjMap)\r\n throws Exception{\r\n\r\n \t mqlLogRequiredInformationWriter(\"Inside method migrateFeaturesStep_1 \"+ \"\\n\");\r\n \t //These selectables are for Parent Feature\r\n \t StringList featureObjSelects = new StringList();\r\n\t\t featureObjSelects.addElement(SELECT_TYPE);\r\n\t\t featureObjSelects.addElement(SELECT_NAME);\r\n\t\t featureObjSelects.addElement(SELECT_REVISION);\r\n\t\t featureObjSelects.addElement(SELECT_VAULT);\r\n\t\t featureObjSelects.addElement(SELECT_ID);\r\n\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\");//goes into LF or MF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\");//goes into LF,MF,CF type\r\n\r\n\t\t String featureObjId = \"\";\r\n String strType = \"\";\r\n String strName = \"\";\r\n String strRevision = \"\";\r\n String strNewRelId = \"\";\r\n \t featureObjId = (String) featObjMap.get(SELECT_ID);\r\n\r\n\r\n \t String isConflictFeature = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\t\t String strContextUsage = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t StringList sLFLToDelete = new StringList(); //FLs list to delete\r\n\r\n\t\t strType = (String) featObjMap.get(SELECT_TYPE);\r\n\t\t strName = (String) featObjMap.get(SELECT_NAME);\r\n\t\t strRevision = (String) featObjMap.get(SELECT_REVISION);\r\n\r\n\r\n\t\t if((strType!=null\r\n\t\t\t\t &&(mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))))\r\n {\r\n\t\t\t isConflictFeature = \"No\";\r\n\t\t }\r\n\r\n\t\t if(isConflictFeature.equalsIgnoreCase(\"No\")\r\n\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))\r\n\t\t {\r\n\r\n\r\n\t\t DomainObject domFeatureObj = new DomainObject(featureObjId);\r\n\r\n\t\t HashMap mapAttribute = new HashMap();\r\n\r\n\t\t //check whether feature is standalone or Toplevel or is in the Structure\r\n\t\t //String relPattern = ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO;\r\n\r\n\t\t StringBuffer sbRelPattern1 = new StringBuffer(50);\r\n\t\t\tsbRelPattern1.append(ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO);\r\n\t\t\tsbRelPattern1.append(\",\");\r\n\t\t\tsbRelPattern1.append(ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM);\r\n\r\n\t\t\tStringBuffer sbTypePattern2 = new StringBuffer(50);\r\n\t\t\t\tsbTypePattern2.append(ConfigurationConstants.TYPE_FEATURE_LIST);\r\n\t\t\t\tsbTypePattern2.append(\",\");\r\n\t\t\t\tsbTypePattern2.append(ConfigurationConstants.TYPE_MODEL);\r\n\r\n\r\n\r\n\r\n\t\t StringList flObjSelects = new StringList();\r\n\t\t flObjSelects.addElement(ConfigurationConstants.SELECT_ID);\r\n\t\t flObjSelects.addElement(DomainObject.SELECT_FROM_ID);\r\n\t\t flObjSelects.addElement(DomainObject.SELECT_TO_ID);\r\n\r\n\t\t StringList flRelSelects = new StringList();\r\n\t\t flRelSelects.addElement(ConfigurationConstants.SELECT_RELATIONSHIP_ID);\r\n\t\t flRelSelects.addElement(\"from.from[\" + ConfigurationConstants.RELATIONSHIP_RESOURCE_USAGE + \"].id\");\r\n\r\n\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM+\"].from.id\");\r\n\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM+\"].id\");\r\n\r\n\t\t //Get the Feature Ids,Type and New Feature Type attribute values... when \"Feature List To\" rel traversed\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.id\");\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.type\");\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t //Get the Feature Ids,Type and New Feature Type attribute values... when \"Feature List From\" rel traversed\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t //In DV id Inactive in context of Product or Invalid in context of PV\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t //flObjSelects.addElement(\"from[\" + ConfigurationConstants.RELATIONSHIP_RESOURCE_USAGE + \"].id\");\r\n\t\t //selectables of all attributes on FL which are to be migrated\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_USAGE+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_QUANTITY+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FIND_NUMBER+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"); //goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_RULE_TYPE+\"]\");//goes on to CF,LF,MF relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\"); //goes on to CF type\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"); //will go as interface attribute onto relationship mentioned in PES\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\");//this will be used as described in PES\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\"); //will get split\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_TYPE+\"]\"); //will get split\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n \t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\r\n \t\t //selectables of attribute on FLF relationship\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\");\r\n\r\n \t\t //selectables to determine if the Feature can have Key-In Type = Input\r\n \t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].to.attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\");\r\n \t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].to.attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n\r\n \t\t //selectable to get Key-In Value on Selected Option Relationship\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t //flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n \t\t //flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.id\");\r\n\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Database query on the given Feature Id started ----->\"+\" --- \"+now()+\"\\n\");\r\n\r\n \t\t MapList FL_List = domFeatureObj.getRelatedObjects(context,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //relPattern, //relationshipPattern\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t sbRelPattern1.toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //ConfigurationConstants.TYPE_FEATURE_LIST, //typePattern\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t sbTypePattern2.toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t flObjSelects, //objectSelects\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t flRelSelects, //relationshipSelects\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t true, //getTo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t false, //getFrom\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (short)1, //recurseToLevel\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //objectWhere,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //relationshipWhere\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (int)0, //limit\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null , //includeType\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //includeRelationship\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null); //includeMap\r\n\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Database query on the given Feature Id end ----->\"+\" --- \"+now()+\"\\n\");\r\n\t\t //To check whether the \"Feature Selection Type\" has any conflict for this Feature\r\n\t\t boolean bConflictSelType = false;\r\n\t\t String strFST =\"\";\r\n\t\t StringList sLFST = new StringList();\r\n\t\t for(int iCntFL=0;iCntFL<FL_List.size();iCntFL++){\r\n\t\t\t Map flMap = (Map)FL_List.get(iCntFL);\r\n\t\t\t strFST = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n\t\t\t if(sLFST.size()>0){\r\n\t\t\t\t if(!sLFST.contains(strFST)){\r\n\t\t\t\t\t bConflictSelType = true;\r\n\t\t\t\t\t break;\r\n\t\t\t\t }else{\r\n\t\t\t\t\t sLFST.add(strFST);\r\n\t\t\t\t }\r\n\t\t\t }else{\r\n\t\t\t\t if(strFST!=null && !strFST.equals(\"\")){\r\n\t\t\t\t\t sLFST.add(strFST);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\r\n\t\t //If FL object is absent\r\n\t\t if(FL_List.size()==0)\r\n\t\t {\r\n\t\t\t mqlLogRequiredInformationWriter(\"For given Feature id there are no 'Feature List From' and 'Feature List To' connections.\"+\"\\n\");\r\n\t\t\t if(strType!=null\r\n\t\t\t\t &&(!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))||\r\n\t\t\t\t isOfDerivationChangedType(context, strType)) {\r\n\t\t\t\t if(strType!=null && !isOfDerivationChangedType(context, strType)){\r\n\r\n\r\n\t\t\t\t //Get the new Feature Type\r\n\t\t\t\t String newFeatureType = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\r\n\t\t\t\t //String newFeatureChangeType = PropertyUtil.getSchemaProperty(context,newFeatureType);\r\n\t\t\t\t String newFeatureChangeType = getSchemaProperty(context,newFeatureType);\r\n\r\n\t\t\t\t //Get the new Feature Policy\r\n\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, newFeatureChangeType, true);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type :: \"+ newFeatureChangeType +\"\\n\");\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy \t :: \"+ mNewFeaturePolicy +\"\\n\");\r\n\r\n\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\t\t\t\t //change the feature to new type\r\n\t\t\t\t //BusinessObject featureBO = changeType(context,featObjMap,featureObjId,newFeatureChangeType,newFeaturePolicy);\r\n\t\t\t\t BusinessObject boFeatureObj = new DomainObject(featureObjId);\r\n\t\t\t\t boFeatureObj.change(context,\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\tnewFeatureChangeType,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_NAME),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_REVISION),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_VAULT),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewFeaturePolicy);\r\n\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Object id \t\t\t\t:: \"+featureObjId +\"\\n\");\r\n\t\t \t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ newFeatureChangeType\r\n\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t + newFeaturePolicy\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\r\n\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_ORIGINATOR,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\"));\r\n\t\t\t\t if(newFeatureChangeType!=null &&\r\n\t\t\t\t\t\t (newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t ||newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)\r\n\t\t\t\t\t\t\t\t )){\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\"));\r\n\t\t\t\t }\r\n\t\t\t\t //Set the new Feat Type attribute values when Feat is standalone\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Object id \t\t\t\t\t :: \"+ featureObjId + \"\\n\");\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n\t\t\t\t }else{\r\n\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, strType, true);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type \t\t:: \"+ strType +\"\\n\");\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy \t\t\t:: \"+ mNewFeaturePolicy +\"\\n\");\r\n\r\n\t\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\t\t\t\t\t DomainObject boFeatureObj = new DomainObject(featureObjId);\r\n\t\t\t\t\t boFeatureObj.setPolicy(context, newFeaturePolicy);\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n\t\t\t\t\t domFeatureObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t\t //Set the attribute values for \"software Feature\" when Feat is standalone\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+ featureObjId + \"\\n\");\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n\t\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t }else //if feature is not standalone\r\n\t\t {\r\n\t\t\t MapList FLInfoList = new MapList(); // FLs info MapList to pass to external migrations\r\n\t\t\t \r\n\t\t\t mqlLogRequiredInformationWriter(\"\\n\\n\");\r\n\t\t\t mqlLogRequiredInformationWriter(\"For given Feature id there are 'Feature List From' and 'Feature List To' connections.\"+\"\\n\");\r\n\t\t\t mqlLogRequiredInformationWriter(\"Traverse through the given list of 'Feature List' object start .\"+\"\\n\\n\");\r\n\r\n\t\t\t for(int i=0;i<FL_List.size();i++)\r\n\t\t\t {\r\n\t\t\t\t Map flMap = (Map)FL_List.get(i);\r\n\t\t\t\t String strFLId = (String)flMap.get(DomainConstants.SELECT_ID);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id in process :: \"+ strFLId +\"\\n\");\r\n\r\n\t\t\t\t try{\r\n\t\t\t\t\t String strRelType = (String)flMap.get(\"relationship\");\r\n\t\t\t\t\t if(strRelType!=null && strRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM)){\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id related 'Candiadate Item' rel in process ---> relName \"+ strRelType +\"\\n\");\r\n\t\t\t\t\t\t String strNewRelType = \"\";\r\n\t\t\t\t\t\t //String strManAttr =(String) flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\");\r\n\t\t\t\t\t\t //Use case related to Candidate Item\r\n\t\t\t\t\t\t String strCandItemRel = (String)flMap.get(ConfigurationConstants.SELECT_RELATIONSHIP_ID);\r\n\t\t\t\t\t\t DomainRelationship domrel = new DomainRelationship(strCandItemRel);\r\n\t\t\t\t\t\t Map attributeMap = new HashMap();\r\n\t\t\t\t\t\t attributeMap = domrel.getAttributeMap(context,true);\r\n\t\t\t\t\t\t String strManAttr = (String) attributeMap.get(ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE);\r\n\t\t\t\t\t\t String strInheritedAttr = (String) attributeMap.get(ConfigurationConstants.ATTRIBUTE_INHERITED);\r\n\t\t\t\t\t\t String newFeatureChangeType =\"\";\r\n\r\n \t\t\t\t\t\t if(strType!=null\r\n \t\t\t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n \t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n \t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))\r\n \t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t //Get the new Feature Type\r\n \t\t\t\t\t\t\t String newFeatureType = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n \t\t\t\t\t\t\t //String newFeatureChangeType = PropertyUtil.getSchemaProperty(context,newFeatureType);\r\n \t\t\t\t\t\t\t newFeatureChangeType = getSchemaProperty(context,newFeatureType);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //Get the new Feature Policy\r\n \t\t\t\t\t\t \t\t\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, newFeatureChangeType, true);\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type :: \"+newFeatureChangeType +\"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy :: \"+mNewFeaturePolicy +\"\\n\");\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //change the feature to new type\r\n \t\t\t\t\t\t \t\t\t\t\t\t BusinessObject boFeatureObj = new DomainObject(featureObjId);\r\n\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t boFeatureObj.change(context,\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\tnewFeatureChangeType,\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(String) featObjMap.get(DomainConstants.SELECT_NAME),\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(String) featObjMap.get(DomainConstants.SELECT_REVISION),\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(String) featObjMap.get(DomainConstants.SELECT_VAULT),\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\tnewFeaturePolicy);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+featureObjId +\"\\n\");\r\n\t\t\t \t\t\t\t\t\t \t\t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ newFeatureChangeType\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t + newFeaturePolicy\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_ORIGINATOR,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\"));\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"Yes\"))\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (strInheritedAttr!=null && strInheritedAttr.equalsIgnoreCase(\"False\")))\r\n \t\t\t\t\t\t \t\t\t\t\t {\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES;\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\tif(newFeatureChangeType!=null\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"No\")))\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\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_CANDIDTAE_CONFIGURATION_FEATURES;\r\n \t\t\t\t\t\t\t \t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t &&(newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t ||newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)))\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\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_CANDIDTAE_LOGICAL_FEATURES;\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //Set the new Feat Type attribute values when Feat is standalone\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(ProductLineCommon.isNotNull(strNewRelType)\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && !strNewRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+ featureObjId + \"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t DomainRelationship.setType(context, strCandItemRel,strNewRelType);\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t }else{\r\n\r\n \t\t\t\t\t\t\tnewFeatureChangeType = strType;\r\n\r\n \t\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t/* if(strNewRelType!=null && strNewRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\t\t\t\t\t \t\t\t\t\t\t\t HashMap mapRelAttributes = new HashMap();\r\n\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED, strInheritedAttr);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,\r\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_FALSE);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t domrel.setAttributeValues(context, mapRelAttributes);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t }*/\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"Yes\"))\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (strInheritedAttr!=null && strInheritedAttr.equalsIgnoreCase(\"True\")))\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\t DomainRelationship.disconnect(context, strCandItemRel);\r\n\t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t }else if(strRelType!=null && strRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO)){\r\n\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id related 'Feature list To' rel in process ---> relName \"+ strRelType +\"\\n\\n\");\r\n\t\t\t\t\t\t //Get the \"From Side\" info of FL object\r\n\t\t\t\t\t String strParentFeatureId =\"\";\r\n\t\t\t\t\t String strParentFeatureType =\"\";\r\n\t\t\t\t\t \r\n\t\t\t\t\t if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_COMMITED_ITEM+\"].from.id\")!=null){\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t//Use Case related to hanging FL Objects\r\n\t\t\t\t\t if(strParentFeatureId!=null && strParentFeatureId.length()!=0){\r\n\t\t\t\t\t String isConflictParentFeature =\"No\";\r\n\t\t\t\t\t DomainObject domParentFeat = new DomainObject(strParentFeatureId);\r\n\t\t\t\t\t Map htParentObjData = (Map) domParentFeat.getInfo(context, featureObjSelects);\r\n\r\n\t\t\t\t\t if(mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_FEATURES)){\r\n\r\n\t\t\t\t\t\t isConflictParentFeature = (String)htParentObjData.get(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\r\n\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t //Both the side Objects of FL should be convertible\r\n \t\t\t if(isConflictFeature.equalsIgnoreCase(\"No\")&& isConflictParentFeature.equalsIgnoreCase(\"No\")){\r\n\r\n\t\t\t\t\t /* First ...Check if Parent is already converted to New Type or not\r\n\t\t\t\t\t * If Not then convert it to the new Type then continue\r\n\t\t\t\t\t * Attributes will be set later ..whenever the Feature comes as child in the list.*/\r\n\t\t\t\t\t if(strParentFeatureType!=null\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_PRODUCTS)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_PRODUCT_LINE)){\r\n\r\n\t\t\t\t\t\t //Get the new Feature Type\r\n\t\t\t\t\t\t String newParentFeatureType = (String)htParentObjData.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\r\n\t\t\t\t\t\t //String newParentFeatureChangeType = PropertyUtil.getSchemaProperty(context,newParentFeatureType);\r\n\t\t\t\t\t\t String newParentFeatureChangeType = getSchemaProperty(context,newParentFeatureType);\r\n\r\n\t\t\t\t\t\t //Get the new Feature Policy\r\n\t\t\t\t\t\t Map mNewParentFeatPolicy = mxType.getDefaultPolicy(context, newParentFeatureChangeType, true);\r\n\t\t\t\t\t\t String strNewParentFeatPolicy = (String) mNewParentFeatPolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature New Type :: \"+ newParentFeatureChangeType +\"\\n\");\r\n\t \t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature New Policy :: \"+ strNewParentFeatPolicy +\"\\n\");\r\n\r\n\t \t\t\t\t\tString MarketTextPar = (String)htParentObjData.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\");\r\n\t \t\t\t\t String MarketNamePar = (String)htParentObjData.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\");\r\n\t \t\t\t\t \r\n\t \t\t\t\t \r\n\t \t\t\t\t\t \r\n\t \t\t\t\t\t//Set the necessary Text and name attribute values of new Type Parent Feature object which will be lost once type is changed below.\r\n\t \t\t\t\t\t HashMap mapParentFeatAttribute = new HashMap();\r\n\t \t\t\t\t\tif(MarketTextPar!=null && !MarketTextPar.equals(\"\")){\r\n\t \t\t\t\t\tmapParentFeatAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT, MarketTextPar);\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\tif(MarketNamePar!=null && !MarketNamePar.equals(\"\")){\r\n\t \t\t\t\t\tmapParentFeatAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME, MarketNamePar);\r\n\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\t\r\n\t\t\t\t\t\t //change the feature to new type\r\n\t\t\t\t\t\t BusinessObject boParFeatureObj = new DomainObject(strParentFeatureId);\r\n\r\n\t\t\t\t\t\t boParFeatureObj.change(context,\r\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t newParentFeatureChangeType,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_NAME),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_REVISION),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_VAULT),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t strNewParentFeatPolicy);\r\n\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+strParentFeatureId +\"\\n\");\r\n\t\t\t\t \t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ newParentFeatureChangeType\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t + strNewParentFeatPolicy\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\tDomainObject domainParentFeat = new DomainObject(strParentFeatureId);\r\n\t\t\t\t\t\tmqlLogRequiredInformationWriter(\"Attribute value Map set for this id ---->\" + \"\\n\" + mapParentFeatAttribute +\"\\n\\n\");\r\n\t\t\t\t\t\tdomainParentFeat.setAttributeValues(context,mapParentFeatAttribute);\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t String newChildFeatureChangeType =\"\";\r\n\t\t\t\t\t //Get the new Feature Relationship\r\n\t\t\t\t\t String newReltoConnect = \"\";\r\n\r\n\t\t\t\t\t if(strType!=null\r\n\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES)\r\n\t\t\t\t\t\t\t\t ){\r\n\r\n\t\t\t\t\t\t//Check whether \"To Side\" i.e. Child Feature is CF/LF/MF.. Do the processing\r\n\t\t\t\t\t\t //newChildFeatureChangeType = PropertyUtil.getSchemaProperty(context,strContextUsage);\r\n\t\t\t\t\t\t newChildFeatureChangeType = getSchemaProperty(context,strContextUsage);\r\n\r\n\t\t\t\t\t\t if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_CONFIGURATION_OPTION)){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS;\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE)){\r\n\r\n\t\t\t\t\t\t\t\t//Varies By,Valid Context,Invalid Context related code\r\n\t\t\t\t\t\t\t\t newReltoConnect = getNewRelForConfigFeatType(context,flMap,featObjMap,strParentFeatureId,strParentFeatureType);\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null\r\n\t\t\t\t\t\t\t\t && (newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t\t\t || newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_SOFTWARE_FEATURE))){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES;\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES;\r\n\r\n\t\t\t\t\t\t }\r\n\r\n\t\t\t\t\t }else{\r\n\t\t\t\t\t\t if(strType!=null && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_OPTION))){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS;\r\n\r\n\t\t\t\t\t\t }else if(strType!=null && strType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE)){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = getNewRelForConfigFeatType(context,flMap,featObjMap,strParentFeatureId,strParentFeatureType);\r\n\r\n\t\t\t\t\t\t }else if(strType!=null\r\n\t\t\t\t\t\t\t\t && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_SOFTWARE_FEATURE)))\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES;\r\n\r\n\t\t\t\t\t\t }else if(strType!=null && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_MANUFACTURING_FEATURE))){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES;\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\t //Set attribute values for \"To Side\" of the \"Feature List To\" relationship i.e. Child Feat Obj\r\n\t\t\t\t\t\t String strSelCriterion = setAttributeValuesOfChildFeatureObj(context,flMap,featObjMap,bConflictSelType);\r\n\r\n \t\t\t\t\t //Do the connection between 2 Feature Objects\r\n\r\n \t\t\t\t\t //restricting the connection if FST = Key-In and Key-In Type = Input\r\n \t\t\t\t\t String strFSTAttrValue = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n \t\t\t\t\t String strKITAttrValue = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\");\r\n \t\t\t\t\t if(strKITAttrValue.equals(RANGE_VALUE_INPUT)\r\n \t\t\t\t\t\t && strFSTAttrValue.equals(ConfigurationConstants.RANGE_VALUE_KEY_IN)\r\n \t\t\t\t\t\t && (newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES)||\r\n \t\t\t\t\t\t\t newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS)))\r\n \t\t\t\t\t {\r\n \t\t\t\t\t\t StringList slPCIds = new StringList();\r\n \t\t\t\t\t\t StringList slSOAttrKIVs = new StringList();\r\n \t\t\t\t\t\t StringList slParentPCIds = new StringList();\r\n \t\t\t\t\t\t StringList slParentSORelIds = new StringList();\r\n\r\n \t\t\t\t\t\t Object objPCIds = flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n \t\t\t\t\t\t if (objPCIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slPCIds = (StringList) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t\t\t\t\t\t} else if (objPCIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslPCIds.addElement((String) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\"));\r\n \t\t\t\t\t\t\t}\r\n\r\n\r\n \t\t\t\t\t\t Object objSOAttrKIVs = flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n \t\t\t\t\t\t if (objSOAttrKIVs instanceof StringList) {\r\n \t\t\t\t\t\t\t slSOAttrKIVs = (StringList) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n\r\n \t\t\t\t\t\t\t} else if (objSOAttrKIVs instanceof String) {\r\n \t\t\t\t\t\t\t\tslSOAttrKIVs.addElement((String) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\"));\r\n \t\t\t\t\t\t\t}\r\n\r\n \t\t\t\t\t\t String strParentPCIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\";\r\n \t\t\t\t\t\t Object objParentPCIds = flMap.get(strParentPCIdSel);\r\n\r\n \t\t\t\t\t\t if(objParentPCIds==null || \"\".equals(objParentPCIds)){\r\n \t\t\t\t\t\t\tstrParentPCIdSel =\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\";\r\n \t\t\t\t\t\t\tobjParentPCIds = flMap.get(strParentPCIdSel);\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t if (objParentPCIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slParentPCIds = (StringList) flMap.get(strParentPCIdSel);\r\n\r\n \t\t\t\t\t\t\t} else if (objParentPCIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslParentPCIds.addElement((String) flMap.get(strParentPCIdSel));\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//to[Feature List From].from.to[Feature List To].from.to[Selected Options].from.type\r\n\r\n \t\t\t\t\t\t String strParentSORelIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\";\r\n \t\t\t\t\t\t Object objParentSORelIds = flMap.get(strParentSORelIdSel);\r\n \t\t\t\t\t\t if(objParentSORelIds==null || \"\".equals(objParentSORelIds)){\r\n \t\t\t\t\t\t\tstrParentSORelIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\";\r\n \t\t\t\t\t\t\t objParentSORelIds = flMap.get(strParentSORelIdSel);\r\n\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t if (objParentSORelIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slParentSORelIds = (StringList) flMap.get(strParentSORelIdSel);\r\n\r\n \t\t\t\t\t\t\t} else if (objParentSORelIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslParentSORelIds.addElement((String) flMap.get(strParentSORelIdSel));\r\n \t\t\t\t\t\t\t}\r\n\r\n \t\t\t\t\t\t //VJB: TODO: seems a bug, int j is never used\r\n \t\t\t\t\t\t for(int j=0;slPCIds!=null && i<slPCIds.size();i++ )\r\n \t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t String strPCId = (String)slPCIds.get(i);\r\n \t\t\t\t\t\t\t String strAttrKIV = (String)slSOAttrKIVs.get(i);\r\n \t\t\t\t\t\t\t if(slParentPCIds!=null && slParentPCIds.contains(strPCId))\r\n \t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t for(int k=0;k<slParentPCIds.size();k++)\r\n \t\t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t\t String strParentPCId = (String)slParentPCIds.get(k);\r\n \t\t\t\t\t\t\t\t\t if(strParentPCId.equals(strPCId))\r\n \t\t\t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t\t\t String strParentSORelId = (String)slParentSORelIds.get(k);\r\n \t\t\t\t\t\t\t\t\t\t DomainRelationship domRel = new DomainRelationship(strParentSORelId);\r\n \t\t\t\t\t\t\t\t\t\t domRel.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE, strAttrKIV);\r\n \t\t\t\t\t\t\t\t\t\t break;\r\n \t\t\t\t\t\t\t\t\t }\r\n \t\t\t\t\t\t\t\t }\r\n \t\t\t\t\t\t\t }\r\n \t\t\t\t\t\t }\r\n\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\t//strNewRelId = connectFeaturesWithNewRel(context,strParentFeatureId,featureObjId,strType,newReltoConnect);\r\n \t\t\t\t\t\tstrNewRelId = connectFeaturesWithNewRel(context,htParentObjData,featureObjId,strType,newReltoConnect);\r\n\r\n \t\t\t\t\t }\r\n\r\n\r\n\r\n \t\t\t\t\t //Migrate attributes from FL to Rel id\r\n \t\t\t\t\t HashMap mapRelAttributes = new HashMap();\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_RULE_TYPE,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_RULE_TYPE+\"]\"));\r\n\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t && (newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES)\r\n \t\t\t\t\t\t || newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES))){\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_FIND_NUMBER,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FIND_NUMBER+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_USAGE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_USAGE+\"]\"));\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t&& newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ATTRIBUTE_LOGICAL_SELECTION_CRITERIA,strSelCriterion);\r\n \t\t\t\t }\r\n\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t \t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t }\r\n\r\n \t\t\t\t\t //Configuration Feature relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_SELECTION_CRITERIA,strSelCriterion);\r\n\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n \t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n \t\t\t\t\t\t //mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n \t\t\t\t\t }\r\n\r\n \t\t\t\t\t //Mandatory Configuration Feature relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\r\n \t\t\t\t\t }\r\n\r\n\r\n \t\t\t\t\t //\"Varies By\" and \"Inactive Varies By\" relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t&&\r\n \t\t\t\t\t\t(newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_VARIES_BY)\r\n \t\t\t\t\t\t ||newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_INACTIVE_VARIES_BY)))\r\n \t\t\t\t\t {\r\n\t\t\t\t\t\t if((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")!=null\r\n\t\t\t\t\t\t\t\t\t&&\r\n\t\t\t\t\t\t\t ((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")).equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_YES)){\r\n\r\n\r\n\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n\t\t\t\t\t\t\t\t\t\t\t \t\t\t\tConfigurationConstants.RANGE_VALUE_MANDATORY);\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n\t\t\t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,\r\n\t\t\t\t\t\t\t\t \t\t\t\tConfigurationConstants.RANGE_VALUE_TRUE);\r\n\r\n\t\t\t\t\t\t\t\t }else if((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")!=null\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((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")).equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_NO)){\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,ConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\r\n\t\t\t\t\t\t\t }\r\n\t\t\t\t\t }\r\n \t\t\t\t\t \r\n \t\t\t\t\t if(strNewRelId!=null && strNewRelId.length()!=0){\r\n\r\n \t\t\t\t\t\t DomainRelationship domRel = new DomainRelationship(strNewRelId);\r\n \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewRelId + \"\\n\");\r\n \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this Rel id :: \"+ mapRelAttributes +\"\\n\\n\");\r\n \t\t\t\t\t\t domRel.setAttributeValues(context, mapRelAttributes);\r\n \t\t\t\t\t\t //preparing MapList to pass to external migration\r\n \t\t\t\t\t\t Map FLInfoMap = new HashMap();\r\n \t\t\t\t\t\t FLInfoMap.put(\"objectId\",strFLId);\r\n \t\t\t\t\t\t FLInfoMap.put(\"newRelId\",strNewRelId);\r\n\r\n \t\t\t\t\t\t DomainRelationship domRel1 = new DomainRelationship(strNewRelId);\r\n \t\t\t\t\t\t domRel1.open(context);\r\n \t\t\t\t\t String connectionName = domRel1.getTypeName();\r\n \t\t\t\t\t FLInfoMap.put(\"newRelType\",connectionName);\r\n \t\t\t\t\t\t FLInfoMap.put(\"newRelName\",newReltoConnect);\r\n \t\t\t\t\t\t FLInfoMap.put(\"infoMapFLConnection\",flMap);\r\n\r\n \t\t\t\t\t\t FLInfoList.add(FLInfoMap);\r\n \t\t\t\t\t }\r\n\r\n\t\t\t\t\t\t //Add FL object to delete list\r\n\t\t\t\t\t\t sLFLToDelete.add(strFLId);\r\n\r\n\t\t\t\t\t }\r\n \t\t\t\t }else{\r\n \t\t\t\t\t\t //This is hanging FL Object ID need to b removed\r\n \t\t\t\t\t\t sLFLToDelete.add(strFLId);\r\n \t\t\t\t\t\t Map FLInfoMap = new HashMap();\r\n \t\t\t\t\t\t FLInfoMap.put(\"objectId\",strFLId);\r\n \t\t\t\t\t\t FLInfoMap.put(\"infoMapFLConnection\",flMap);\r\n \t\t\t\t\t\t FLInfoList.add(FLInfoMap);\r\n \t\t\t\t\t }\r\n \t\t\t\t }\r\n\r\n \t\t\t }catch(Exception e)\r\n \t\t\t {\r\n \t\t\t\t e.printStackTrace();\r\n \t\t\t\t throw new FrameworkException(e.getMessage());\r\n \t\t\t }\r\n \t }\r\n\r\n \t\t\t//Float the connections on FL objects to new Relationships formed\r\n \t\t\t if(strNewRelId!=null && strNewRelId.length()!=0){\r\n\r\n \t\t\t\t floatFLConnections(context,FLInfoList);\r\n \t\t\t }\r\n\r\n\r\n \t\t\t//call external migration\r\n \t\t\tMapList customResults = callInterOpMigrations(context, FLInfoList);\r\n \t\t\tIterator itrCustomResults = customResults.iterator();\r\n \t\t\twhile (itrCustomResults.hasNext()) {\r\n Map customResultsMap = (Map)itrCustomResults.next();\r\n \t\t\t\t Integer status = (Integer)customResultsMap.get(\"status\");\r\n\t\t\t\t String failureMessage = (String)customResultsMap.get(\"failureMessage\");\r\n\r\n\t\t\t\t if(status==1)\r\n\t\t\t\t {\r\n\t\t\t\t\t throw new FrameworkException(failureMessage);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\r\n\r\n\t\t//Check the \"Varies By\" and \"Effectivity Status\" values\r\n\t\t StringList sLVariesByRelId =new StringList();\r\n\t\t StringList sLEffectivityStatusValue=new StringList();\r\n\t\t StringList sLActiveCntValue=new StringList();\r\n\t\t StringList sLInActiveCntValue=new StringList();\r\n\t\t StringList sLParType=new StringList();\r\n\r\n\r\n\t\tif((StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\")!=null){\r\n\r\n\t\t\t//sLName = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t//sLVariesByRelId = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t//sLEffectivityStatusValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t//sLActiveCntValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t//sLInActiveCntValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t//sLParentId = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\r\n\t\t\t/*Not using the above statements as there is issue in sequence of ids in String list\r\n\t\t\t * coming from above getInfo\r\n\t\t\t * Doing the getInfo again on the given Feature Id\r\n\t\t\t */\r\n\r\n\t\t\tString stFeaId = (String) featObjMap.get(SELECT_ID);\r\n\t\t\tDomainObject domFd = new DomainObject(stFeaId);\r\n\t\t\tStringList objSel = new StringList();\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");//Varies By rel id if present\r\n\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");//Varies By rel id if present\r\n\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");//Varies By rel id if present\r\n\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");\r\n\r\n\r\n\t\t\t Map MFeatObj = domFd.getInfo(context, objSel);\r\n\r\n\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");\r\n\r\n\r\n\t\t\tsLVariesByRelId = (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\tsLParType= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\tsLEffectivityStatusValue= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\tsLActiveCntValue= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\tsLInActiveCntValue=(StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\r\n\t\t}\r\n\r\n\t\tHashMap mapRelAtt = null;\r\n\r\n\t\tfor(int iEffStatusCnt=0;iEffStatusCnt<sLEffectivityStatusValue.size();iEffStatusCnt++){\r\n\t\t\tmapRelAtt = new HashMap();\r\n\t\t\tString strEffectStatus = (String)sLEffectivityStatusValue.get(iEffStatusCnt);\r\n\t\t\tif(strEffectStatus!=null && strEffectStatus.equalsIgnoreCase(ConfigurationConstants.EFFECTIVITY_STATUS_INACTIVE)){\r\n\t\t\t\tDomainRelationship.setType(context, (String)sLVariesByRelId.get(iEffStatusCnt), ConfigurationConstants.RELATIONSHIP_INACTIVE_VARIES_BY);\r\n\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,ConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_INHERITED,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t}\r\n\r\n\r\n\t\t\tString strInActiveCntValue = (String)sLInActiveCntValue.get(iEffStatusCnt);\r\n\t\t\tint inactiveCount = Integer.parseInt(strInActiveCntValue);\r\n\r\n\t\t\tString strActiveCntValue = (String)sLActiveCntValue.get(iEffStatusCnt);\r\n\t\t\tint activeCount = Integer.parseInt(strActiveCntValue);\r\n\r\n\t\t\tif( inactiveCount==0 && activeCount==0 ){\r\n\t\t\t\tString strParType = (String)sLParType.get(iEffStatusCnt);\r\n\t\t\t\tif(mxType.isOfParentType(context,strParType, ConfigurationConstants.TYPE_PRODUCTS)){\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\t\t\t}\r\n\t\t\tDomainRelationship domRel = new DomainRelationship((String)sLVariesByRelId.get(iEffStatusCnt));\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+(String)sLVariesByRelId.get(iEffStatusCnt)+ \"\\n\");\r\n\t\t\tmqlLogRequiredInformationWriter(\"Attribute value Map set for this Rel id :: \"+ mapRelAtt +\"\\n\\n\");\r\n\t\t\tdomRel.setAttributeValues(context, mapRelAtt);\r\n\t\t}\r\n\r\n\r\n\t\t//Cleanup - delete related Feature List objects on successful migration of Feature\r\n\t\t deleteObjects(context,sLFLToDelete);\r\n\r\n\t\t loadMigratedOids(featureObjId);\r\n\r\n\t }else{ // for those Features which has \"Conflict\" stamp \"Yes\"\r\n\t\t String strCommand = strType + \",\" + strName + \",\" + strRevision + \",\" + strContextUsage+\"\\n\";\r\n\t\t\t writeUnconvertedOID(strCommand, featureObjId);\r\n\t }\r\n\r\n }",
"@RequestLine(\"PUT /v1/courses/{courseId}/features/flags/{feature}\")\n @Headers({\n \"Content-Type: multipart/form-data\",\n \"Accept: application/json\",\n })\n FeatureFlag setFeatureFlagCourses(@Param(\"courseId\") String courseId, @Param(\"feature\") String feature, @Param(\"state\") String state);",
"boolean containsFeature(Feature feature);",
"private void AddNewScenario(HttpServletRequest request, HttpServletResponse response) {\n XMLTree.getInstance().AddNewScenario();\n }",
"ShipmentItemFeature createShipmentItemFeature();",
"private final void modifyFeatureInStore(SimpleFeature featureToModify, Geometry finalGeometry, FeatureStore<SimpleFeatureType, SimpleFeature> store ) throws SOProcessException{\n // modifies the feature's geometry in the store\n \n FidFilter filter = FILTER_FACTORY.createFidFilter(featureToModify.getID());\n \n GeometryDescriptor geomAttr = getGeomAttrTypeToClip();\n try {\n store.modifyFeatures(geomAttr, finalGeometry, filter);\n } catch (IOException e) {\n final String msg = e.getMessage();\n LOGGER.severe(msg);\n throw new SOProcessException(msg);\n }\n \n }",
"public void save() {\r\n\t\ttry {\r\n\t\t\tthis.iniObjects();\r\n\t\t\tGxyService currentService = getGxyService();\r\n\t\t\tCompassSession session = new CobooCompass().getCompass().openSession();\r\n\t\t\tCompassTransaction tx = session.beginLocalTransaction();\r\n\t\t\tPerson person = null;\r\n\t\t\tCompassHits hits = session.find(\"ResidentpersonId:\" + this.personId.getHValue());\r\n\t\t\tif (hits.length() > 0) {\r\n\t\t\t\tCompassHit hit = hits.hit(0);\r\n\t\t\t\tperson = (Person) hit.getData();\r\n\t\t\t} else {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\tcal.setTime(this.visitTime[visitNo]);\r\n\t\t\tString StrYear = String.valueOf(cal.get(Calendar.YEAR));\r\n\r\n\t\t\tInfo gxyInfo = person.getGxyInfo();\r\n\t\t\tList<YearService> servicesOfYear = new ArrayList<YearService>();\r\n\t\t\tif (gxyInfo == null) {\r\n\t\t\t\tInfo Info = new GxyInfo();\r\n\t\t\t\tInfo.setIf_gxy(true);\r\n\t\t\t\tInfo.setDiagTime(new Date());\r\n\t\t\t\tperson.setGxyInfo(Info);\r\n\t\t\t\tgxyInfo = Info;\r\n\t\t\t} // else {\r\n\t\t\t\r\n\t\t\tservicesOfYear = gxyInfo.getYearServices();\r\n\t\t\tboolean found = false;\r\n\t\t\tfor (YearService ys : servicesOfYear) {\r\n\t\t\t\tif (ys.getYear().equals(StrYear)) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tGxyService[] gxyServices = ys.getServicesOfYear();\r\n\t\t\t\t\tgxyServices[visitNo] = currentService;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif (!found) {\r\n\t\t\t\tYearService newYs = new YearService();\r\n\t\t\t\tnewYs.setYear(StrYear);\r\n\t\t\t\tGxyService[] gxyServices = newYs.getServicesOfYear();\r\n\t\t\t\tfor (int i = 0; i < gxyServices.length; i++) {\r\n\t\t\t\t\tgxyServices[i] = new GxyService();\r\n\t\t\t\t\tgxyServices[i].setId(System.nanoTime());\r\n\t\t\t\t}\r\n\t\t\t\tgxyServices[visitNo] = currentService;\r\n\t\t\t\tservicesOfYear.add(newYs);\r\n\r\n\t\t\t}\r\n\t\t\t// }\r\n\t\t\tgxyInfo.setYearServices(servicesOfYear);\r\n\t\t\tperson.setGxyInfo(gxyInfo);\r\n\r\n\t\t\t// session.save(this.doctors[this.visitNo]);\r\n\t\t\t// gxyInfo.setId(System.nanoTime());\r\n\r\n\t\t\tsession.save(currentService);\r\n\t\t\tsession.save(person);\r\n\t\t\ttx.commit();\r\n\t\t\tsession.close();\r\n\t\t\tsuper.saveFile(this);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"boolean contains(SimpleFeature feature);",
"public void save() {\t\n\t\n\t\n\t}",
"public void putFeatures(List<FeatureData> featureData, CoinData coin){\n String sql = \"SELECT id FROM Coin, Country WHERE \" +\n \"Coin.Country_id = Country.id AND \" +\n \"County.Name = '\" + coin.country + \"' AND \" +\n \"Coin.Value = \" + coin.value + \";\";\n Cursor cursor = database.rawQuery(sql, null);\n cursor.moveToFirst();\n int coinId = cursor.getInt(0);\n cursor.close();\n\n // put the feature data into the database\n for (FeatureData feature: featureData) {\n ContentValues values = new ContentValues();\n values.put(\"Type\", feature.type);\n values.put(\"Coin_id\", coinId);\n values.put(\"Keypoints\", MatSerializer.matToBytes(feature.keypoints));\n values.put(\"Descriptor\", MatSerializer.matToBytes(feature.descriptor));\n values.put(\"Mask\", MatSerializer.matToBytes(feature.mask));\n database.insert(\"Feature\", null, values);\n }\n }",
"public boolean save();",
"Feature getFeature();",
"Feature getFeature();",
"@Override\n\tpublic void saveTag(Tag newTag) throws Exception {\n\n\t}",
"stockFilePT102.StockFileDocument.StockFile addNewStockFile();",
"private static final void addNewAttraction()\r\n { \r\n String attractionID;\r\n String description;\r\n double admissionFee;\r\n boolean duplicateID = false;\r\n \r\n System.out.println(\"Add New Attraction Feature Selected!\");\r\n System.out.println(\"--------------------------------------\");\r\n \r\n System.out.print(\"Enter Attraction ID: \");\r\n attractionID = sc.nextLine();\r\n \r\n System.out.print(\"Enter Attraction Description: \");\r\n description = sc.nextLine();\r\n \r\n System.out.print(\"Enter Admission Fee: \");\r\n admissionFee = sc.nextDouble();\r\n sc.nextLine();\r\n System.out.println();\r\n \r\n // check attractionID with other ID's already in the system\r\n // if duplicate found print error, if no duplicate add object to array\r\n for(int i = 0; i < attractionCount; i++)\r\n {\r\n \t if(attractionList[i].getAttractionID().equalsIgnoreCase(attractionID))\r\n \t {\r\n \t\t duplicateID = true;\r\n \t\t System.out.print(\"Error! Attraction / Tour with this ID already exists!\");\r\n \t\t System.out.println();\r\n \t }\r\n } \r\n\r\n if(duplicateID == false)\r\n {\r\n attractionList[attractionCount] = new Attraction(attractionID, description, admissionFee);\r\n attractionCount++;\r\n }\r\n }",
"public void increaseFeatureCount() {\n this.featureCount++;\n }",
"public void saveFightsystem( Fightsystem fightsystem )\r\n {\n\r\n }",
"public boolean is_set_feature() {\n return this.feature != null;\n }",
"public void getFeature() throws UMUserManagementException {\n UMFeature featureToUpdate = featureService.getFeatureByFeatureId(systemResultViewUtil.getCurrentSelectedFeature());\n\n featureDataBean.setName(featureToUpdate.getName());\n if (featureToUpdate.getParent() != null) {\n featureDataBean.setParent(featureService.getFeatureByFeatureId(featureToUpdate.getParent().getId()).getId());\n } else {\n featureDataBean.setParent(null);\n }\n featureDataBean.setMenuLable(featureToUpdate.getMenuLabel());\n featureDataBean.setDescription(featureToUpdate.getDescription());\n featureDataBean.setPrecedence(featureToUpdate.getPrecedence());\n featureDataBean.setMenuType(featureToUpdate.getMenuType());\n featureDataBean.setFeatureURL(featureToUpdate.getFeatureUrl());\n featureDataBean.setWebserviceURL(featureToUpdate.getWebserviceUrl());\n featureDataBean.setSeqNo(featureToUpdate.getSeqNo());\n featureDataBean.setCrud(featureToUpdate.getIsCrud());\n featureDataBean.setActive(featureToUpdate.getIsActive());\n\n }",
"@RequestLine(\"PUT /v1/users/{userId}/features/flags/{feature}\")\n @Headers({\n \"Content-Type: multipart/form-data\",\n \"Accept: application/json\",\n })\n FeatureFlag setFeatureFlagUsers(@Param(\"userId\") String userId, @Param(\"feature\") String feature, @Param(\"state\") String state);",
"@Override\n\tpublic void save() {\n\t\t\n\t}",
"@Override\n\tpublic void save() {\n\t\t\n\t}",
"protected void removeFromIndex(SimpleFeature feature) {\n\t\tif (feature==null) return;\n\t\t\n\t\t// ID Index\n\t\tidIndex.remove( feature.getID() );\n\t\t\n\t\t// Type name index\n\t\tName type = feature.getType().getName();\n\t\tSet<SimpleFeature> prev = typeNameIndex.get(type);\n\t\tif ( prev.remove( feature ) ) {\n\t\t\tif (prev.size()>0) {\n\t\t\t\ttypeNameIndex.put(type,prev);\n\t\t\t} else {\n\t\t\t\ttypeNameIndex.remove(type);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Tile Index\n\t\tif (feature.getID().matches(\".*-[0-9]+-[0-9]+-[0-9]+\")) {\n\t\t\tOSMTile tile = new OSMTile(feature.getID());\n\t\t\tprev = tileIndex.get( tile );\n\t\t\tif ( prev.remove( feature ) ) {\n\t\t\t\tif (prev.size()>0) {\n\t\t\t\t\ttileIndex.put(tile, prev);\n\t\t\t\t} else {\n\t\t\t\t\ttileIndex.remove(type);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// Whatever for features\n\t\t}\n\t}",
"@Override\n\tpublic MADlibFeature lookUpFeature(MADlibFeatureKey key) {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}",
"public void add(String name) {\n File f = new File(name);\n if (!f.exists()) {\n Utils.message(\"File does not exist.\");\n throw new GitletException();\n }\n Blob blob = new Blob(f);\n untracked.remove(name);\n HashMap<String, Blob> files = head.getContents();\n if (files.containsKey(name)\n && files.get(name).getContent().equals(blob.getContent())) {\n return;\n } else if (!(files.containsKey(name) && files.get(name).equals(blob))) {\n stagingarea.put(blob.getName(), blob);\n File stagefile = Utils.join(staging, blob.getHash());\n Utils.writeObject(stagefile, blob);\n }\n\n }",
"@Override\r\n\tpublic void saveXzfySuggest(XzfyOtherSuggest xzfy) {\n\t\tsuper.saveOrUpdate(xzfy);\r\n\t}",
"public void setFeature(Integer feature) {\n this.feature = feature;\n }",
"@Test(groups = \"noDevBuild\")\n public void checkFeatureCode() {\n browser.reportLinkLog(\"checkFeatureCode\");\n featurePages\n .setNewFeatureBtn(\"publishable\")\n .setNewFeatureName(groupName)\n .setNewFeatureCode(groupName)\n .setNewFeatureDescription(\"Test 1\")\n .setNewFeatureSavebtn();\n portalPages\n .setTopNavLink(topnav);\n featurePages\n .setNewFeatureBtn(\"publishable\")\n .setNewFeatureName(groupName)\n .setNewFeatureCode(groupName)\n .setNewFeatureDescription(\"Test 1\")\n .setNewFeatureSavebtn();\n browser.waitForId(\"helpText_duplicate_featureCode\");\n }",
"public boolean addOrUpdateForexBureau(ForexBureauModel forexBureauDetails) {\n //Use the Cached Connection\n SQLiteDatabase db = getWritableDatabase();\n Boolean transactionSuccessful = false;\n\n //As usual Wrap it in a transaction\n db.beginTransaction();\n try {\n ContentValues values = new ContentValues();\n values.put(KEY_FOREX_BUREAU_OBJECT_ID, forexBureauDetails.getForexBureauObjectId());\n values.put(KEY_FOREX_BUREAU_NAME, forexBureauDetails.getForexBureauName());\n values.put(KEY_FOREX_BUREAU_IMAGE, forexBureauDetails.getForexBureauImage());\n values.put(KEY_FOREX_BUREAU_ADDRESS, forexBureauDetails.getForexBureauAddress());\n values.put(KEY_FOREX_BUREAU_SWIFT_CODE, forexBureauDetails.getForexBureauSwiftCode());\n values.put(KEY_FOREX_BUREAU_STOCK_CODE, forexBureauDetails.getForexBureauStockCode());\n values.put(KEY_FOREX_BUREAU_DESCRIPTION, forexBureauDetails.getForexBureauDescription());\n values.put(KEY_FOREX_BUREAU_ESTABLISHED, forexBureauDetails.getForexBureauEstablished());\n values.put(KEY_FOREX_BUREAU_CONTACTS, forexBureauDetails.getForexBureauContacts());\n values.put(KEY_FOREX_BUREAU_TYPE, forexBureauDetails.getForexBureauType());\n values.put(KEY_FOREX_BUREAU_WEBSITE, forexBureauDetails.getForexBureauWebsite());\n values.put(KEY_FOREX_BUREAU_STATUS, forexBureauDetails.getForexBureauStatus());\n values.put(KEY_FOREX_BUREAU_SUMMARY, forexBureauDetails.getForexBureauSummary());\n //Let's try to update the Saved Product if it exists.\n int rows = db.update(TABLE_FOREX_BUREAUS, values, KEY_FOREX_BUREAU_OBJECT_ID + \"= ?\", new String[]{forexBureauDetails.getForexBureauObjectId()});\n\n //Let's check if the update worked\n if (rows == 1) {\n //Ok, we have updated a Saved forex Bureau, we could probably get the Forex Bureau updated at this point if we needed to\n db.setTransactionSuccessful();\n transactionSuccessful = true;\n\n } else {\n //No Such Forex Bureau Here, insert it\n db.insertOrThrow(TABLE_FOREX_BUREAUS, null, values);\n db.setTransactionSuccessful();\n transactionSuccessful = true;\n }\n } catch (Exception e) {\n Log.d(TAG, \"Error trying to Update Forex Bureaus table\");\n transactionSuccessful = false;\n } finally {\n db.endTransaction();\n }\n return transactionSuccessful;\n\n }",
"void deleteFeature(Integer id);",
"@View( VIEW_CREATE_FEATURE )\r\n public String getCreateFeature( HttpServletRequest request )\r\n {\r\n _feature = ( _feature != null ) ? _feature : new Feature( );\r\n\r\n Map<String, Object> model = getModel( );\r\n model.put( MARK_FEATURE, _feature );\r\n model.put( MARK_CATEGORIES_LIST, FeatureCategoryHome.getCategoriesList( ) );\r\n model.put( MARK_TARGETS_LIST, ActionLinkService.getTargetList( getLocale( ) ) );\r\n model.put( MARK_DISPLAY_LEVELS_LIST, FeatureService.getFeatureDisplayLevels( getLocale( ) ) );\r\n\r\n return getPage( PROPERTY_PAGE_TITLE_CREATE_FEATURE, TEMPLATE_CREATE_FEATURE, model );\r\n }",
"public void saveService();",
"private void finalizeRefValue(int extId, TOP fs, FeatureImpl fi) {\n FSInfo fsInfo = fsTree.get(extId);\n if (fsInfo == null) {\n\n // this feature may be a ref to an out-of-typesystem FS.\n // add it to the Out-of-typesystem features list (APL)\n if (extId != 0 && outOfTypeSystemData != null) {\n List<Pair<String, Object>> ootsAttrs = outOfTypeSystemData.extraFeatureValues\n .computeIfAbsent(fs, k -> new ArrayList<>());\n String featFullName = fi.getName();\n int separatorOffset = featFullName.indexOf(TypeSystem.FEATURE_SEPARATOR);\n String featName = \"_ref_\" + featFullName.substring(separatorOffset + 1);\n ootsAttrs.add(new Pair(featName, Integer.toString(extId)));\n }\n CASImpl.setFeatureValueMaybeSofa(fs, fi, null);\n } else {\n // the sofa ref in annotationBase is set when the fs is created, not here\n if (fi.getCode() != TypeSystemConstants.annotBaseSofaFeatCode) {\n if (fs instanceof Sofa) {\n // special setters for sofa values\n Sofa sofa = (Sofa) fs;\n switch (fi.getRangeImpl().getCode()) {\n case TypeSystemConstants.sofaArrayFeatCode:\n sofa.setLocalSofaData(fsInfo.fs);\n break;\n default:\n throw new CASRuntimeException(UIMARuntimeException.INTERNAL_ERROR);\n }\n return;\n }\n\n // handle case where feature is xyz[] (an array ref, not primitive) but the value of fs is\n // FSArray\n ts.fixupFSArrayTypes(fi.getRangeImpl(), fsInfo.fs);\n CASImpl.setFeatureValueMaybeSofa(fs, fi, fsInfo.fs);\n }\n }\n }",
"public Flight save(Flight flight);",
"@Test\n public void postFeatureFlagTest() throws ApiException {\n String projectKey = null;\n FeatureFlagBody featureFlagBody = null;\n api.postFeatureFlag(projectKey, featureFlagBody);\n\n // TODO: test validations\n }",
"public void put( gtf_feature f )\n {\n int stored = to_report.size() + reported.size();\n if ( stored > max_in_window ) max_in_window = stored;\n overlap_loop( f.get_start() );\n to_report.add( f );\n }",
"@Override\n public boolean save()\n {\n return false;\n }",
"public boolean hasFeature(SimpleFeature feature) {\n\t\treturn idIndex.containsKey(feature.getID());\n\t}",
"void save();",
"void save();"
] |
[
"0.7243415",
"0.67149776",
"0.66393393",
"0.6480117",
"0.64646983",
"0.64394915",
"0.64394915",
"0.6432944",
"0.64222616",
"0.64222616",
"0.6393348",
"0.6346035",
"0.6304745",
"0.6304745",
"0.6220323",
"0.6164471",
"0.6155154",
"0.6145851",
"0.6145545",
"0.60838896",
"0.59407824",
"0.59201574",
"0.59009904",
"0.58952",
"0.58719206",
"0.5867924",
"0.58539504",
"0.58001846",
"0.56575984",
"0.56575984",
"0.56353503",
"0.5627038",
"0.5626144",
"0.5622436",
"0.56113124",
"0.56015426",
"0.5591698",
"0.5584069",
"0.55653244",
"0.5529421",
"0.551952",
"0.5496627",
"0.5477577",
"0.54716223",
"0.54578114",
"0.54336035",
"0.53732634",
"0.53687084",
"0.53574854",
"0.53493977",
"0.5321542",
"0.53164804",
"0.5315797",
"0.53011733",
"0.5295614",
"0.5285007",
"0.5283539",
"0.5282579",
"0.5273817",
"0.52646863",
"0.5261028",
"0.52537805",
"0.5249385",
"0.523856",
"0.5234831",
"0.5231761",
"0.5228815",
"0.52275884",
"0.5202377",
"0.5187773",
"0.5182282",
"0.5182282",
"0.5178803",
"0.5166809",
"0.51631004",
"0.51623243",
"0.51587",
"0.5158641",
"0.5145916",
"0.5132784",
"0.5121228",
"0.5121228",
"0.5120785",
"0.51194435",
"0.5114787",
"0.51090115",
"0.51069003",
"0.5104475",
"0.51037633",
"0.50990754",
"0.5094806",
"0.50929195",
"0.5091733",
"0.50792253",
"0.50720525",
"0.50687194",
"0.50622696",
"0.5060499",
"0.5059032",
"0.5059032"
] |
0.63297874
|
12
|
rewrite the all.features file
|
private static void saveAllFeatures(List<Feature> features,
String allFeaturesFilePath) throws IOException {
BufferedWriter bw = new BufferedWriter(new FileWriter(allFeaturesFilePath));
CSVPrinter featurePrinter = new CSVPrinter(bw, CSVFormat.DEFAULT.toBuilder().withRecordSeparator("\n").build());
printHeader(featurePrinter);
for(Feature feature : features) {
printFeature(featurePrinter, feature);
}
featurePrinter.close();
bw.close();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void saveFeature(Feature feature, String allFeaturesFilePath, Project project) throws IOException {\n\t\t\n\t\tFileReader r = new FileReader(allFeaturesFilePath);\n\t\tCSVParser parser = new CSVParser(r);\n\t\tList<CSVRecord> records = parser.getRecords();\n\t\tr.close();\n\n\t\tList<Feature> features = new ArrayList<Feature>();\n\t\tint size = records.size();\n\t\tboolean found = false;\n\t\tfor(int i = 1; i < size; i++){\n\t\t\tCSVRecord rec = records.get(i);\n\t\t\tString featureName = rec.get(0).trim();\n\t\t\tif(featureName.equals(feature.getName())) {\n\t\t\t\tfeatures.add(feature);\n\t\t\t\tfound = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tString functionName = rec.get(1).trim();\n\t\t\t\tString attr1Name = rec.get(2).trim();\n\t\t\t\tString attr1Type = rec.get(3).trim();\n\t\t\t\tString attr2Name = rec.get(4).trim();\n\t\t\t\tString attr2Type = rec.get(5).trim();\n\t\t\t\t\n\t\t\t\tString projectName = project.getName();\n\t\t\t\tFunction function = project.findFunctionByName(functionName);\n\t\t\t\tAttribute attribute1 = new Attribute(attr1Name, Attribute.Type.valueOf(attr1Type));\n\t\t\t\tAttribute attribute2 = new Attribute(attr2Name, Attribute.Type.valueOf(attr2Type));\n\t\t\t\tFeature f = new Feature(featureName, function, projectName, attribute1, attribute2);\n\t\t\t\tfeatures.add(f);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!found) {\n\t\t\tfeatures.add(feature);\n\t\t}\n\t\t\n\t\t// save all the features\n\t\tsaveAllFeatures(features, allFeaturesFilePath);\n\t}",
"void setFeatures(Features f) throws Exception;",
"public void saveFeatureMetadata();",
"void addFeatures(Features features);",
"@Override\n public List<FeatureId> addFeatures(\n FeatureCollection<SimpleFeatureType, SimpleFeature> collection) throws IOException {\n TransformFeatureCollectionWrapper transformed = new TransformFeatureCollectionWrapper(collection, invertedTransformer);\n return store.addFeatures(transformed);\n\n // TODO: re-shape feature ids...\n }",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"public void setFeatures(List<String> features) {\n this.features = features;\n }",
"void addFeature(Feature feature);",
"public void addFeatures(@Nonnull Collection<Feature> f) {\r\n features.addAll(f);\r\n }",
"public void addFeatures(Feature... f) {\r\n addFeatures(Arrays.asList(f));\r\n }",
"public static void save(String fn, AllSTLsToBuild allSTL)\n\t{\n\t\tif(!fn.endsWith(\".rfo\"))\n\t\t\tfn += \".rfo\";\n\t\tRFO rfo = new RFO(fn, allSTL);\n\t\trfo.copySTLs();\n\t\trfo.createLegend();\n\t\trfo.compress();\n\t\tFile t = new File(rfo.tempDir);\n\t\trecursiveDelete(t);\n\t}",
"public Features() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public static String SAVE_FEATURE(Feature f) {\n String ret = \"\";\n ret += f.name + \"\\t\" + f.type + \"\\t\";\n int i;\n\n if (Feature.IS_NOMINAL(f.type)) {\n if (f.modalities == null) ret += \"null\";\n else if (f.modalities.size() == 0) ret += \"{}\";\n else\n for (i = 0; i < f.modalities.size(); i++) {\n ret += (String) f.modalities.elementAt(i);\n if (i < f.modalities.size() - 1) ret += \"\\t\";\n }\n } else if (Feature.IS_CONTINUOUS(f.type)) {\n ret += f.dmin + \"\\t\" + f.dmax;\n if (f.dmin_from_data != f.dmax_from_data)\n ret += \"\\t\" + f.dmin_from_data + \"\\t\" + f.dmax_from_data;\n } else if (Feature.IS_INTEGER(f.type)) {\n ret += f.imin + \"\\t\" + f.imax;\n if (f.imin_from_data != f.imax_from_data)\n ret += \"\\t\" + f.imin_from_data + \"\\t\" + f.imax_from_data;\n }\n return ret;\n }",
"public void save(String filename, boolean append) throws IOException {\n\t\ttry {\n\t\t\tFileWriter writer = new FileWriter(filename, append);\n\t\t\t// write file\n\t\t\twriter.write(\"<<MagicLearning[FeatureSet:\" + name + \"]>>\");\n\t\t\twriter.write(System.lineSeparator());\n\t\t\tfor (T feat : features) {\n\t\t\t\twriter.write(feat.toString());\n\t\t\t\twriter.write(System.lineSeparator());\n\t\t\t}\n\t\t\twriter.close();\n\t\t} finally {}\n\t}",
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
"public abstract void addFeatures(Collection<Integer> indices,Predicate pred,Word arg,Integer offset,boolean allWords);",
"public static void createFeatureWeightFile(String inputFile, String outpurFile){\n\t\t\n\t\tBufferedReader reed=null;\n\t\tPrintWriter pr= null;\n\t\t\n\t\tHashMap<String,HashMap<String,Integer>> itemId_featureId_count= new HashMap<>();\n\t\ttry {\n\t\t\treed= new BufferedReader(new FileReader(inputFile));\n\t\t\t\n\t\t\tpr= new PrintWriter(new File(outpurFile));\n\t\t\t\n\t\t\tString line=null;\n\t\t\t\n\t\t\treed.readLine();//header\n\t\t\twhile((line=reed.readLine())!=null){\n\t\t\t\tString[] splitted=line.split(\"\\t\");\n\t\t\t\tString itemId=splitted[1];\n\t\t\t\tString featureId=splitted[2];\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(!itemId_featureId_count.containsKey(itemId)){\n\t\t\t\t\titemId_featureId_count.put(itemId,new HashMap<>());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tHashMap<String,Integer> itemHashmap = itemId_featureId_count.get(itemId);\n\t\t\t\tif(!itemHashmap.containsKey(featureId)){\n\t\t\t\t\titemHashmap.put(featureId, 1);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\titemHashmap.put(featureId, itemHashmap.get(featureId)+1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor (String itemId : itemId_featureId_count.keySet()) {\n\t\t\t\tHashMap<String,Integer> itemHashmap = itemId_featureId_count.get(itemId);\n\t\t\t\tfor (String featureId : itemHashmap.keySet()) {\n\t\t\t\t\t// item-id;feature-id:weight feature-id weight\n\t\t\t\t\tInteger weight = itemHashmap.get(featureId);\n\t\t\t\t\tif (weight > 3) {\n\t\t\t\t\t\tString outputLine = itemId + \";\" + featureId + \":\"\n\t\t\t\t\t\t\t\t+ weight;\n\n\t\t\t\t\t\tpr.println(outputLine);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tif(reed!=null)\n\t\t\t\ttry {reed.close();} \n\t\t\tcatch (IOException e) {}\n\t\t\tif(pr!=null){\n\t\t\t\tpr.close();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"public abstract void addFeatures(Collection<Double> indices,Predicate pred, Word arg,boolean allWords);",
"private void processFeatureLocationsInFile(DocWithFileAndCppDirectives extDoc) {\n GroupingListMap<String, FeatureReference> featureReferencesByFilePath = groupFeatureReferencesByFilePath();\n\n final String filePath = extDoc.fp.actualPath;\n final List<FeatureReference> references = featureReferencesByFilePath.get(filePath);\n if (references == null) {\n LOG.debug(\"No feature locations in \" + extDoc.fp.pathKey);\n return;\n }\n\n for (FeatureReference ref : references) {\n extDoc.processFeatureReference(ref);\n }\n\n LOG.debug(\"Done processing feature locations in \" + extDoc.fp.pathKey);\n }",
"org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature addNewPlanFeature();",
"public void rewrite() throws FitsException, IOException;",
"public void AssembleFeatureFromTree(Tree parse) {\n String feature=parse.value() + \"->\";\n Tree[] sub_tree = parse.children();\n for(Tree t: sub_tree) {\n if (!t.isPreTerminal()) {\n AssembleFeatureFromTree(t);\n }\n feature+=t.value() + \"+\";\n }\n \n if(!global_dict.containsKey(feature)){\n global_dict.put(feature, global_dict.size()+1);\n }\n fn = global_dict.get(feature);\n //System.out.println(feature + \" : \" + fn);\n ftlist.add(fn);\n }",
"void changeFile()\n {\n App app = new App();\n // Loop through the read File\n for (String s : readFile) {\n if (app.containsUtilize(s)) {\n // Changes the first use of utilize with use\n String newTemp = s.replaceFirst(\"utilize\", \"use\");\n // Writes to file\n this.writeFile.add(newTemp);\n } else {\n // not utilize\n this.writeFile.add(s);\n }\n }\n }",
"public void loadColumnFeatures(String fname, String outputFile) {\n\t\tint totalFeatureCt = 0;\n\t\tint featureNumber = 0;\n\t\tint linesCount = 0;\n\t\tboolean[] goodWeights = new boolean[weights.length];\n\t\ttry {\n\t\t\tBufferedReader matrixReader = new BufferedReader(new FileReader(fname));\n\t\t\tmatrixReader.readLine(); // get first line\n\t\t\t\n\t\t\t//read file\n\t\t\tfor ( ; ; ) {\n\t\t\t\tString line = matrixReader.readLine();\n\t\n\t\t\t\tif (line == null) {\n\t\t\t\t\tmatrixReader.close();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\n\t\t\t\telse {\n\t\t\t\t\tString[] parts = line.split(\" \");\n\t\t\t\t\tdouble tfWordsInContext = 0;\n\t\t\t\t\tdouble ctWordsInContext = 0;\n\t\t\t\t\tint uniqueCount = 0;\n\t\t\t\t\t\n\t\t\t\t\t//place the words from a context into a Hashtable\n\t\t\t\t\tHashtable<Integer, Double> wordsInCurrFeat = new Hashtable<Integer, Double>();\n\t\t\t\t\tfor(int i = 0; i < parts.length; i+=2){\n\t\t\t\t\t\tif(parts.length > 1 && goodWords.get(Integer.parseInt(parts[i]))){\n\t\t\t\t\t\t\twordsInCurrFeat.put(Integer.parseInt(parts[i]), Double.parseDouble(parts[i+1]));\n\t\t\t\t\t\t\tctWordsInContext += Double.parseDouble(parts[i+1]);\n\t\t\t\t\t\t\ttfWordsInContext += wordsCount.get(Integer.parseInt(parts[i]));\n\t\t\t\t\t\t\tuniqueCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//if there are more than 2 words that can be used for training count tp, fp, fn and tn.\n\t\t\t\t\tif(uniqueCount >= 2){\n\t\t\t\t\t\tdouble[] pairCts = getPairCounts(wordsInCurrFeat); // counts found pairs sharing the same feautre\n\t\t\t\t\t\tdouble relShareFeat = pairCts[0]; // tp\n\t\t\t\t\t\tdouble unrelShareFeat = pairCts[1]; // fp\n\t\t\t\t\t\tdouble relNotShareFeat = countRelatedPairsInDifferentContexts(wordsInCurrFeat); // counts all pairs sharing the same feature\n\t\t\t\t\t\t\n\t\t\t\t\t\ttotalFeatureCt ++;\n\n\t\t\t\t\t\tdouble notShareFeat = ctWordsInContext * (legitWords-tfWordsInContext); \n\t\t\t\t\t\t\n\t\t\t\t\t\tdouble truePos = relShareFeat;\n\t\t\t\t\t\tdouble falsePos = unrelShareFeat;\n\t\t\t\t\t\tdouble falseNeg = relNotShareFeat;\n\t\t\t\t\t\tdouble trueNeg = notShareFeat - falseNeg; // pairs unrelated & not sharing feature\n\t\t\t\t\t\t\n\t\t\t\t\t\t//find association\n\t\t\t\t\t\tdouble value = MatrixWeighter.getAssociation(truePos, falsePos, falseNeg, trueNeg, type);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//check for a few common errors\n\t\t\t\t\t\t//shouldn't matter now but factored in during debugging.\n\t\t\t\t\t\t//if(Double.isNaN(value) || Double.isInfinite(value) || trueNeg < 0){\n\t\t\t\t\t\t\tLOGGER.severe(\"Error at feature: \"+featureNumber +\"\\n\" +(long)truePos + \" \" + (long)falsePos + \"\\n\" + (long)falseNeg + \" \" + (long)trueNeg + \"\\n\" + value);\n\t\t\t\t\t\t//}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//set feature weight\n\t\t\t\t\t\tweights[featureNumber] = value;\n\t\t\t\t\t\tgoodWeights[featureNumber] = true;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tgoodWeights[featureNumber] = false;\n\t\t\t\t\t}\n\t\t\t\t\tfeatureNumber++;\n\t\t\t\t}\n\n\t\t\t\t//track progress\n\t\t\t\tlinesCount++;\n\t\t\t\tif(linesCount % 1000 == 0){\n\t\t\t\t\tLOGGER.info(\"Features processed: \" + linesCount);\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.warning(e.getMessage());\n\t\t}\n\t\tLOGGER.info(\"Features included: \" + totalFeatureCt);\n\t\t\n\t\t//find average feature weight\n\t\tdouble ave = 0;\n\t\tdouble totalGoodWeights = 0;\n\t\tfor(int i = 0; i < weights.length; i++){\n\t\t\tif(goodWeights[i]){\n\t\t\t\tave += weights[i];\n\t\t\t\ttotalGoodWeights++;\n\t\t\t}\n\t\t}\n\t\tave = ave / totalGoodWeights;\n\t\tif(Double.isNaN(ave)){\n\t\t\tLOGGER.warning(\"Not a number\");\n\t\t}\n\t\tLOGGER.info(\"Average score: \" + ave);\n\t\t\n\t\t//normalize average to 1.0 \n\t\t//print out the new weights into the column weight file.\n\t\ttry{\n\t\t\tBufferedWriter weightsWriter = new BufferedWriter(new FileWriter(outputFile));\n\t\t\tfor(int i = 0; i < weights.length; i++){\n\t\t\t\tif(goodWeights[i]){\n\t\t\t\t\tweights[i] = weights[i]/ave;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tweights[i] = ave;\n\t\t\t\t}\n\t\t\t\tweightsWriter.write(i + \" \" + weights[i] + \"\\n\");\n\t\t\t}\n\t\n\t\t\tweightsWriter.close();\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tLOGGER.warning(e.getMessage());\n\t\t}\n\t}",
"void clearFeatures();",
"private void migrateFeaturesStep_1(Context context, Map featObjMap)\r\n throws Exception{\r\n\r\n \t mqlLogRequiredInformationWriter(\"Inside method migrateFeaturesStep_1 \"+ \"\\n\");\r\n \t //These selectables are for Parent Feature\r\n \t StringList featureObjSelects = new StringList();\r\n\t\t featureObjSelects.addElement(SELECT_TYPE);\r\n\t\t featureObjSelects.addElement(SELECT_NAME);\r\n\t\t featureObjSelects.addElement(SELECT_REVISION);\r\n\t\t featureObjSelects.addElement(SELECT_VAULT);\r\n\t\t featureObjSelects.addElement(SELECT_ID);\r\n\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\");//goes into LF or MF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\");//goes into LF,MF,CF type\r\n\r\n\t\t String featureObjId = \"\";\r\n String strType = \"\";\r\n String strName = \"\";\r\n String strRevision = \"\";\r\n String strNewRelId = \"\";\r\n \t featureObjId = (String) featObjMap.get(SELECT_ID);\r\n\r\n\r\n \t String isConflictFeature = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\t\t String strContextUsage = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t StringList sLFLToDelete = new StringList(); //FLs list to delete\r\n\r\n\t\t strType = (String) featObjMap.get(SELECT_TYPE);\r\n\t\t strName = (String) featObjMap.get(SELECT_NAME);\r\n\t\t strRevision = (String) featObjMap.get(SELECT_REVISION);\r\n\r\n\r\n\t\t if((strType!=null\r\n\t\t\t\t &&(mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))))\r\n {\r\n\t\t\t isConflictFeature = \"No\";\r\n\t\t }\r\n\r\n\t\t if(isConflictFeature.equalsIgnoreCase(\"No\")\r\n\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))\r\n\t\t {\r\n\r\n\r\n\t\t DomainObject domFeatureObj = new DomainObject(featureObjId);\r\n\r\n\t\t HashMap mapAttribute = new HashMap();\r\n\r\n\t\t //check whether feature is standalone or Toplevel or is in the Structure\r\n\t\t //String relPattern = ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO;\r\n\r\n\t\t StringBuffer sbRelPattern1 = new StringBuffer(50);\r\n\t\t\tsbRelPattern1.append(ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO);\r\n\t\t\tsbRelPattern1.append(\",\");\r\n\t\t\tsbRelPattern1.append(ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM);\r\n\r\n\t\t\tStringBuffer sbTypePattern2 = new StringBuffer(50);\r\n\t\t\t\tsbTypePattern2.append(ConfigurationConstants.TYPE_FEATURE_LIST);\r\n\t\t\t\tsbTypePattern2.append(\",\");\r\n\t\t\t\tsbTypePattern2.append(ConfigurationConstants.TYPE_MODEL);\r\n\r\n\r\n\r\n\r\n\t\t StringList flObjSelects = new StringList();\r\n\t\t flObjSelects.addElement(ConfigurationConstants.SELECT_ID);\r\n\t\t flObjSelects.addElement(DomainObject.SELECT_FROM_ID);\r\n\t\t flObjSelects.addElement(DomainObject.SELECT_TO_ID);\r\n\r\n\t\t StringList flRelSelects = new StringList();\r\n\t\t flRelSelects.addElement(ConfigurationConstants.SELECT_RELATIONSHIP_ID);\r\n\t\t flRelSelects.addElement(\"from.from[\" + ConfigurationConstants.RELATIONSHIP_RESOURCE_USAGE + \"].id\");\r\n\r\n\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM+\"].from.id\");\r\n\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM+\"].id\");\r\n\r\n\t\t //Get the Feature Ids,Type and New Feature Type attribute values... when \"Feature List To\" rel traversed\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.id\");\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.type\");\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t //Get the Feature Ids,Type and New Feature Type attribute values... when \"Feature List From\" rel traversed\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t //In DV id Inactive in context of Product or Invalid in context of PV\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t //flObjSelects.addElement(\"from[\" + ConfigurationConstants.RELATIONSHIP_RESOURCE_USAGE + \"].id\");\r\n\t\t //selectables of all attributes on FL which are to be migrated\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_USAGE+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_QUANTITY+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FIND_NUMBER+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"); //goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_RULE_TYPE+\"]\");//goes on to CF,LF,MF relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\"); //goes on to CF type\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"); //will go as interface attribute onto relationship mentioned in PES\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\");//this will be used as described in PES\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\"); //will get split\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_TYPE+\"]\"); //will get split\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n \t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\r\n \t\t //selectables of attribute on FLF relationship\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\");\r\n\r\n \t\t //selectables to determine if the Feature can have Key-In Type = Input\r\n \t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].to.attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\");\r\n \t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].to.attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n\r\n \t\t //selectable to get Key-In Value on Selected Option Relationship\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t //flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n \t\t //flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.id\");\r\n\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Database query on the given Feature Id started ----->\"+\" --- \"+now()+\"\\n\");\r\n\r\n \t\t MapList FL_List = domFeatureObj.getRelatedObjects(context,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //relPattern, //relationshipPattern\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t sbRelPattern1.toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //ConfigurationConstants.TYPE_FEATURE_LIST, //typePattern\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t sbTypePattern2.toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t flObjSelects, //objectSelects\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t flRelSelects, //relationshipSelects\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t true, //getTo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t false, //getFrom\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (short)1, //recurseToLevel\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //objectWhere,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //relationshipWhere\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (int)0, //limit\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null , //includeType\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //includeRelationship\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null); //includeMap\r\n\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Database query on the given Feature Id end ----->\"+\" --- \"+now()+\"\\n\");\r\n\t\t //To check whether the \"Feature Selection Type\" has any conflict for this Feature\r\n\t\t boolean bConflictSelType = false;\r\n\t\t String strFST =\"\";\r\n\t\t StringList sLFST = new StringList();\r\n\t\t for(int iCntFL=0;iCntFL<FL_List.size();iCntFL++){\r\n\t\t\t Map flMap = (Map)FL_List.get(iCntFL);\r\n\t\t\t strFST = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n\t\t\t if(sLFST.size()>0){\r\n\t\t\t\t if(!sLFST.contains(strFST)){\r\n\t\t\t\t\t bConflictSelType = true;\r\n\t\t\t\t\t break;\r\n\t\t\t\t }else{\r\n\t\t\t\t\t sLFST.add(strFST);\r\n\t\t\t\t }\r\n\t\t\t }else{\r\n\t\t\t\t if(strFST!=null && !strFST.equals(\"\")){\r\n\t\t\t\t\t sLFST.add(strFST);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\r\n\t\t //If FL object is absent\r\n\t\t if(FL_List.size()==0)\r\n\t\t {\r\n\t\t\t mqlLogRequiredInformationWriter(\"For given Feature id there are no 'Feature List From' and 'Feature List To' connections.\"+\"\\n\");\r\n\t\t\t if(strType!=null\r\n\t\t\t\t &&(!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))||\r\n\t\t\t\t isOfDerivationChangedType(context, strType)) {\r\n\t\t\t\t if(strType!=null && !isOfDerivationChangedType(context, strType)){\r\n\r\n\r\n\t\t\t\t //Get the new Feature Type\r\n\t\t\t\t String newFeatureType = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\r\n\t\t\t\t //String newFeatureChangeType = PropertyUtil.getSchemaProperty(context,newFeatureType);\r\n\t\t\t\t String newFeatureChangeType = getSchemaProperty(context,newFeatureType);\r\n\r\n\t\t\t\t //Get the new Feature Policy\r\n\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, newFeatureChangeType, true);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type :: \"+ newFeatureChangeType +\"\\n\");\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy \t :: \"+ mNewFeaturePolicy +\"\\n\");\r\n\r\n\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\t\t\t\t //change the feature to new type\r\n\t\t\t\t //BusinessObject featureBO = changeType(context,featObjMap,featureObjId,newFeatureChangeType,newFeaturePolicy);\r\n\t\t\t\t BusinessObject boFeatureObj = new DomainObject(featureObjId);\r\n\t\t\t\t boFeatureObj.change(context,\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\tnewFeatureChangeType,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_NAME),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_REVISION),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_VAULT),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewFeaturePolicy);\r\n\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Object id \t\t\t\t:: \"+featureObjId +\"\\n\");\r\n\t\t \t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ newFeatureChangeType\r\n\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t + newFeaturePolicy\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\r\n\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_ORIGINATOR,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\"));\r\n\t\t\t\t if(newFeatureChangeType!=null &&\r\n\t\t\t\t\t\t (newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t ||newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)\r\n\t\t\t\t\t\t\t\t )){\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\"));\r\n\t\t\t\t }\r\n\t\t\t\t //Set the new Feat Type attribute values when Feat is standalone\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Object id \t\t\t\t\t :: \"+ featureObjId + \"\\n\");\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n\t\t\t\t }else{\r\n\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, strType, true);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type \t\t:: \"+ strType +\"\\n\");\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy \t\t\t:: \"+ mNewFeaturePolicy +\"\\n\");\r\n\r\n\t\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\t\t\t\t\t DomainObject boFeatureObj = new DomainObject(featureObjId);\r\n\t\t\t\t\t boFeatureObj.setPolicy(context, newFeaturePolicy);\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n\t\t\t\t\t domFeatureObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t\t //Set the attribute values for \"software Feature\" when Feat is standalone\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+ featureObjId + \"\\n\");\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n\t\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t }else //if feature is not standalone\r\n\t\t {\r\n\t\t\t MapList FLInfoList = new MapList(); // FLs info MapList to pass to external migrations\r\n\t\t\t \r\n\t\t\t mqlLogRequiredInformationWriter(\"\\n\\n\");\r\n\t\t\t mqlLogRequiredInformationWriter(\"For given Feature id there are 'Feature List From' and 'Feature List To' connections.\"+\"\\n\");\r\n\t\t\t mqlLogRequiredInformationWriter(\"Traverse through the given list of 'Feature List' object start .\"+\"\\n\\n\");\r\n\r\n\t\t\t for(int i=0;i<FL_List.size();i++)\r\n\t\t\t {\r\n\t\t\t\t Map flMap = (Map)FL_List.get(i);\r\n\t\t\t\t String strFLId = (String)flMap.get(DomainConstants.SELECT_ID);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id in process :: \"+ strFLId +\"\\n\");\r\n\r\n\t\t\t\t try{\r\n\t\t\t\t\t String strRelType = (String)flMap.get(\"relationship\");\r\n\t\t\t\t\t if(strRelType!=null && strRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM)){\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id related 'Candiadate Item' rel in process ---> relName \"+ strRelType +\"\\n\");\r\n\t\t\t\t\t\t String strNewRelType = \"\";\r\n\t\t\t\t\t\t //String strManAttr =(String) flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\");\r\n\t\t\t\t\t\t //Use case related to Candidate Item\r\n\t\t\t\t\t\t String strCandItemRel = (String)flMap.get(ConfigurationConstants.SELECT_RELATIONSHIP_ID);\r\n\t\t\t\t\t\t DomainRelationship domrel = new DomainRelationship(strCandItemRel);\r\n\t\t\t\t\t\t Map attributeMap = new HashMap();\r\n\t\t\t\t\t\t attributeMap = domrel.getAttributeMap(context,true);\r\n\t\t\t\t\t\t String strManAttr = (String) attributeMap.get(ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE);\r\n\t\t\t\t\t\t String strInheritedAttr = (String) attributeMap.get(ConfigurationConstants.ATTRIBUTE_INHERITED);\r\n\t\t\t\t\t\t String newFeatureChangeType =\"\";\r\n\r\n \t\t\t\t\t\t if(strType!=null\r\n \t\t\t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n \t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n \t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))\r\n \t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t //Get the new Feature Type\r\n \t\t\t\t\t\t\t String newFeatureType = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n \t\t\t\t\t\t\t //String newFeatureChangeType = PropertyUtil.getSchemaProperty(context,newFeatureType);\r\n \t\t\t\t\t\t\t newFeatureChangeType = getSchemaProperty(context,newFeatureType);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //Get the new Feature Policy\r\n \t\t\t\t\t\t \t\t\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, newFeatureChangeType, true);\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type :: \"+newFeatureChangeType +\"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy :: \"+mNewFeaturePolicy +\"\\n\");\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //change the feature to new type\r\n \t\t\t\t\t\t \t\t\t\t\t\t BusinessObject boFeatureObj = new DomainObject(featureObjId);\r\n\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t boFeatureObj.change(context,\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\tnewFeatureChangeType,\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(String) featObjMap.get(DomainConstants.SELECT_NAME),\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(String) featObjMap.get(DomainConstants.SELECT_REVISION),\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(String) featObjMap.get(DomainConstants.SELECT_VAULT),\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\tnewFeaturePolicy);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+featureObjId +\"\\n\");\r\n\t\t\t \t\t\t\t\t\t \t\t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ newFeatureChangeType\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t + newFeaturePolicy\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_ORIGINATOR,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\"));\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"Yes\"))\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (strInheritedAttr!=null && strInheritedAttr.equalsIgnoreCase(\"False\")))\r\n \t\t\t\t\t\t \t\t\t\t\t {\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES;\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\tif(newFeatureChangeType!=null\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"No\")))\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\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_CANDIDTAE_CONFIGURATION_FEATURES;\r\n \t\t\t\t\t\t\t \t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t &&(newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t ||newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)))\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\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_CANDIDTAE_LOGICAL_FEATURES;\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //Set the new Feat Type attribute values when Feat is standalone\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(ProductLineCommon.isNotNull(strNewRelType)\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && !strNewRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+ featureObjId + \"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t DomainRelationship.setType(context, strCandItemRel,strNewRelType);\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t }else{\r\n\r\n \t\t\t\t\t\t\tnewFeatureChangeType = strType;\r\n\r\n \t\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t/* if(strNewRelType!=null && strNewRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\t\t\t\t\t \t\t\t\t\t\t\t HashMap mapRelAttributes = new HashMap();\r\n\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED, strInheritedAttr);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,\r\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_FALSE);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t domrel.setAttributeValues(context, mapRelAttributes);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t }*/\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"Yes\"))\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (strInheritedAttr!=null && strInheritedAttr.equalsIgnoreCase(\"True\")))\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\t DomainRelationship.disconnect(context, strCandItemRel);\r\n\t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t }else if(strRelType!=null && strRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO)){\r\n\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id related 'Feature list To' rel in process ---> relName \"+ strRelType +\"\\n\\n\");\r\n\t\t\t\t\t\t //Get the \"From Side\" info of FL object\r\n\t\t\t\t\t String strParentFeatureId =\"\";\r\n\t\t\t\t\t String strParentFeatureType =\"\";\r\n\t\t\t\t\t \r\n\t\t\t\t\t if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_COMMITED_ITEM+\"].from.id\")!=null){\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t//Use Case related to hanging FL Objects\r\n\t\t\t\t\t if(strParentFeatureId!=null && strParentFeatureId.length()!=0){\r\n\t\t\t\t\t String isConflictParentFeature =\"No\";\r\n\t\t\t\t\t DomainObject domParentFeat = new DomainObject(strParentFeatureId);\r\n\t\t\t\t\t Map htParentObjData = (Map) domParentFeat.getInfo(context, featureObjSelects);\r\n\r\n\t\t\t\t\t if(mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_FEATURES)){\r\n\r\n\t\t\t\t\t\t isConflictParentFeature = (String)htParentObjData.get(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\r\n\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t //Both the side Objects of FL should be convertible\r\n \t\t\t if(isConflictFeature.equalsIgnoreCase(\"No\")&& isConflictParentFeature.equalsIgnoreCase(\"No\")){\r\n\r\n\t\t\t\t\t /* First ...Check if Parent is already converted to New Type or not\r\n\t\t\t\t\t * If Not then convert it to the new Type then continue\r\n\t\t\t\t\t * Attributes will be set later ..whenever the Feature comes as child in the list.*/\r\n\t\t\t\t\t if(strParentFeatureType!=null\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_PRODUCTS)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_PRODUCT_LINE)){\r\n\r\n\t\t\t\t\t\t //Get the new Feature Type\r\n\t\t\t\t\t\t String newParentFeatureType = (String)htParentObjData.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\r\n\t\t\t\t\t\t //String newParentFeatureChangeType = PropertyUtil.getSchemaProperty(context,newParentFeatureType);\r\n\t\t\t\t\t\t String newParentFeatureChangeType = getSchemaProperty(context,newParentFeatureType);\r\n\r\n\t\t\t\t\t\t //Get the new Feature Policy\r\n\t\t\t\t\t\t Map mNewParentFeatPolicy = mxType.getDefaultPolicy(context, newParentFeatureChangeType, true);\r\n\t\t\t\t\t\t String strNewParentFeatPolicy = (String) mNewParentFeatPolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature New Type :: \"+ newParentFeatureChangeType +\"\\n\");\r\n\t \t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature New Policy :: \"+ strNewParentFeatPolicy +\"\\n\");\r\n\r\n\t \t\t\t\t\tString MarketTextPar = (String)htParentObjData.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\");\r\n\t \t\t\t\t String MarketNamePar = (String)htParentObjData.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\");\r\n\t \t\t\t\t \r\n\t \t\t\t\t \r\n\t \t\t\t\t\t \r\n\t \t\t\t\t\t//Set the necessary Text and name attribute values of new Type Parent Feature object which will be lost once type is changed below.\r\n\t \t\t\t\t\t HashMap mapParentFeatAttribute = new HashMap();\r\n\t \t\t\t\t\tif(MarketTextPar!=null && !MarketTextPar.equals(\"\")){\r\n\t \t\t\t\t\tmapParentFeatAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT, MarketTextPar);\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\tif(MarketNamePar!=null && !MarketNamePar.equals(\"\")){\r\n\t \t\t\t\t\tmapParentFeatAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME, MarketNamePar);\r\n\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\t\r\n\t\t\t\t\t\t //change the feature to new type\r\n\t\t\t\t\t\t BusinessObject boParFeatureObj = new DomainObject(strParentFeatureId);\r\n\r\n\t\t\t\t\t\t boParFeatureObj.change(context,\r\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t newParentFeatureChangeType,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_NAME),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_REVISION),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_VAULT),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t strNewParentFeatPolicy);\r\n\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+strParentFeatureId +\"\\n\");\r\n\t\t\t\t \t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ newParentFeatureChangeType\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t + strNewParentFeatPolicy\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\tDomainObject domainParentFeat = new DomainObject(strParentFeatureId);\r\n\t\t\t\t\t\tmqlLogRequiredInformationWriter(\"Attribute value Map set for this id ---->\" + \"\\n\" + mapParentFeatAttribute +\"\\n\\n\");\r\n\t\t\t\t\t\tdomainParentFeat.setAttributeValues(context,mapParentFeatAttribute);\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t String newChildFeatureChangeType =\"\";\r\n\t\t\t\t\t //Get the new Feature Relationship\r\n\t\t\t\t\t String newReltoConnect = \"\";\r\n\r\n\t\t\t\t\t if(strType!=null\r\n\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES)\r\n\t\t\t\t\t\t\t\t ){\r\n\r\n\t\t\t\t\t\t//Check whether \"To Side\" i.e. Child Feature is CF/LF/MF.. Do the processing\r\n\t\t\t\t\t\t //newChildFeatureChangeType = PropertyUtil.getSchemaProperty(context,strContextUsage);\r\n\t\t\t\t\t\t newChildFeatureChangeType = getSchemaProperty(context,strContextUsage);\r\n\r\n\t\t\t\t\t\t if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_CONFIGURATION_OPTION)){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS;\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE)){\r\n\r\n\t\t\t\t\t\t\t\t//Varies By,Valid Context,Invalid Context related code\r\n\t\t\t\t\t\t\t\t newReltoConnect = getNewRelForConfigFeatType(context,flMap,featObjMap,strParentFeatureId,strParentFeatureType);\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null\r\n\t\t\t\t\t\t\t\t && (newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t\t\t || newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_SOFTWARE_FEATURE))){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES;\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES;\r\n\r\n\t\t\t\t\t\t }\r\n\r\n\t\t\t\t\t }else{\r\n\t\t\t\t\t\t if(strType!=null && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_OPTION))){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS;\r\n\r\n\t\t\t\t\t\t }else if(strType!=null && strType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE)){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = getNewRelForConfigFeatType(context,flMap,featObjMap,strParentFeatureId,strParentFeatureType);\r\n\r\n\t\t\t\t\t\t }else if(strType!=null\r\n\t\t\t\t\t\t\t\t && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_SOFTWARE_FEATURE)))\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES;\r\n\r\n\t\t\t\t\t\t }else if(strType!=null && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_MANUFACTURING_FEATURE))){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES;\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\t //Set attribute values for \"To Side\" of the \"Feature List To\" relationship i.e. Child Feat Obj\r\n\t\t\t\t\t\t String strSelCriterion = setAttributeValuesOfChildFeatureObj(context,flMap,featObjMap,bConflictSelType);\r\n\r\n \t\t\t\t\t //Do the connection between 2 Feature Objects\r\n\r\n \t\t\t\t\t //restricting the connection if FST = Key-In and Key-In Type = Input\r\n \t\t\t\t\t String strFSTAttrValue = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n \t\t\t\t\t String strKITAttrValue = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\");\r\n \t\t\t\t\t if(strKITAttrValue.equals(RANGE_VALUE_INPUT)\r\n \t\t\t\t\t\t && strFSTAttrValue.equals(ConfigurationConstants.RANGE_VALUE_KEY_IN)\r\n \t\t\t\t\t\t && (newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES)||\r\n \t\t\t\t\t\t\t newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS)))\r\n \t\t\t\t\t {\r\n \t\t\t\t\t\t StringList slPCIds = new StringList();\r\n \t\t\t\t\t\t StringList slSOAttrKIVs = new StringList();\r\n \t\t\t\t\t\t StringList slParentPCIds = new StringList();\r\n \t\t\t\t\t\t StringList slParentSORelIds = new StringList();\r\n\r\n \t\t\t\t\t\t Object objPCIds = flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n \t\t\t\t\t\t if (objPCIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slPCIds = (StringList) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t\t\t\t\t\t} else if (objPCIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslPCIds.addElement((String) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\"));\r\n \t\t\t\t\t\t\t}\r\n\r\n\r\n \t\t\t\t\t\t Object objSOAttrKIVs = flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n \t\t\t\t\t\t if (objSOAttrKIVs instanceof StringList) {\r\n \t\t\t\t\t\t\t slSOAttrKIVs = (StringList) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n\r\n \t\t\t\t\t\t\t} else if (objSOAttrKIVs instanceof String) {\r\n \t\t\t\t\t\t\t\tslSOAttrKIVs.addElement((String) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\"));\r\n \t\t\t\t\t\t\t}\r\n\r\n \t\t\t\t\t\t String strParentPCIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\";\r\n \t\t\t\t\t\t Object objParentPCIds = flMap.get(strParentPCIdSel);\r\n\r\n \t\t\t\t\t\t if(objParentPCIds==null || \"\".equals(objParentPCIds)){\r\n \t\t\t\t\t\t\tstrParentPCIdSel =\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\";\r\n \t\t\t\t\t\t\tobjParentPCIds = flMap.get(strParentPCIdSel);\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t if (objParentPCIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slParentPCIds = (StringList) flMap.get(strParentPCIdSel);\r\n\r\n \t\t\t\t\t\t\t} else if (objParentPCIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslParentPCIds.addElement((String) flMap.get(strParentPCIdSel));\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//to[Feature List From].from.to[Feature List To].from.to[Selected Options].from.type\r\n\r\n \t\t\t\t\t\t String strParentSORelIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\";\r\n \t\t\t\t\t\t Object objParentSORelIds = flMap.get(strParentSORelIdSel);\r\n \t\t\t\t\t\t if(objParentSORelIds==null || \"\".equals(objParentSORelIds)){\r\n \t\t\t\t\t\t\tstrParentSORelIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\";\r\n \t\t\t\t\t\t\t objParentSORelIds = flMap.get(strParentSORelIdSel);\r\n\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t if (objParentSORelIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slParentSORelIds = (StringList) flMap.get(strParentSORelIdSel);\r\n\r\n \t\t\t\t\t\t\t} else if (objParentSORelIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslParentSORelIds.addElement((String) flMap.get(strParentSORelIdSel));\r\n \t\t\t\t\t\t\t}\r\n\r\n \t\t\t\t\t\t //VJB: TODO: seems a bug, int j is never used\r\n \t\t\t\t\t\t for(int j=0;slPCIds!=null && i<slPCIds.size();i++ )\r\n \t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t String strPCId = (String)slPCIds.get(i);\r\n \t\t\t\t\t\t\t String strAttrKIV = (String)slSOAttrKIVs.get(i);\r\n \t\t\t\t\t\t\t if(slParentPCIds!=null && slParentPCIds.contains(strPCId))\r\n \t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t for(int k=0;k<slParentPCIds.size();k++)\r\n \t\t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t\t String strParentPCId = (String)slParentPCIds.get(k);\r\n \t\t\t\t\t\t\t\t\t if(strParentPCId.equals(strPCId))\r\n \t\t\t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t\t\t String strParentSORelId = (String)slParentSORelIds.get(k);\r\n \t\t\t\t\t\t\t\t\t\t DomainRelationship domRel = new DomainRelationship(strParentSORelId);\r\n \t\t\t\t\t\t\t\t\t\t domRel.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE, strAttrKIV);\r\n \t\t\t\t\t\t\t\t\t\t break;\r\n \t\t\t\t\t\t\t\t\t }\r\n \t\t\t\t\t\t\t\t }\r\n \t\t\t\t\t\t\t }\r\n \t\t\t\t\t\t }\r\n\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\t//strNewRelId = connectFeaturesWithNewRel(context,strParentFeatureId,featureObjId,strType,newReltoConnect);\r\n \t\t\t\t\t\tstrNewRelId = connectFeaturesWithNewRel(context,htParentObjData,featureObjId,strType,newReltoConnect);\r\n\r\n \t\t\t\t\t }\r\n\r\n\r\n\r\n \t\t\t\t\t //Migrate attributes from FL to Rel id\r\n \t\t\t\t\t HashMap mapRelAttributes = new HashMap();\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_RULE_TYPE,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_RULE_TYPE+\"]\"));\r\n\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t && (newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES)\r\n \t\t\t\t\t\t || newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES))){\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_FIND_NUMBER,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FIND_NUMBER+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_USAGE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_USAGE+\"]\"));\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t&& newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ATTRIBUTE_LOGICAL_SELECTION_CRITERIA,strSelCriterion);\r\n \t\t\t\t }\r\n\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t \t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t }\r\n\r\n \t\t\t\t\t //Configuration Feature relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_SELECTION_CRITERIA,strSelCriterion);\r\n\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n \t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n \t\t\t\t\t\t //mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n \t\t\t\t\t }\r\n\r\n \t\t\t\t\t //Mandatory Configuration Feature relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\r\n \t\t\t\t\t }\r\n\r\n\r\n \t\t\t\t\t //\"Varies By\" and \"Inactive Varies By\" relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t&&\r\n \t\t\t\t\t\t(newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_VARIES_BY)\r\n \t\t\t\t\t\t ||newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_INACTIVE_VARIES_BY)))\r\n \t\t\t\t\t {\r\n\t\t\t\t\t\t if((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")!=null\r\n\t\t\t\t\t\t\t\t\t&&\r\n\t\t\t\t\t\t\t ((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")).equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_YES)){\r\n\r\n\r\n\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n\t\t\t\t\t\t\t\t\t\t\t \t\t\t\tConfigurationConstants.RANGE_VALUE_MANDATORY);\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n\t\t\t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,\r\n\t\t\t\t\t\t\t\t \t\t\t\tConfigurationConstants.RANGE_VALUE_TRUE);\r\n\r\n\t\t\t\t\t\t\t\t }else if((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")!=null\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((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")).equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_NO)){\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,ConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\r\n\t\t\t\t\t\t\t }\r\n\t\t\t\t\t }\r\n \t\t\t\t\t \r\n \t\t\t\t\t if(strNewRelId!=null && strNewRelId.length()!=0){\r\n\r\n \t\t\t\t\t\t DomainRelationship domRel = new DomainRelationship(strNewRelId);\r\n \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewRelId + \"\\n\");\r\n \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this Rel id :: \"+ mapRelAttributes +\"\\n\\n\");\r\n \t\t\t\t\t\t domRel.setAttributeValues(context, mapRelAttributes);\r\n \t\t\t\t\t\t //preparing MapList to pass to external migration\r\n \t\t\t\t\t\t Map FLInfoMap = new HashMap();\r\n \t\t\t\t\t\t FLInfoMap.put(\"objectId\",strFLId);\r\n \t\t\t\t\t\t FLInfoMap.put(\"newRelId\",strNewRelId);\r\n\r\n \t\t\t\t\t\t DomainRelationship domRel1 = new DomainRelationship(strNewRelId);\r\n \t\t\t\t\t\t domRel1.open(context);\r\n \t\t\t\t\t String connectionName = domRel1.getTypeName();\r\n \t\t\t\t\t FLInfoMap.put(\"newRelType\",connectionName);\r\n \t\t\t\t\t\t FLInfoMap.put(\"newRelName\",newReltoConnect);\r\n \t\t\t\t\t\t FLInfoMap.put(\"infoMapFLConnection\",flMap);\r\n\r\n \t\t\t\t\t\t FLInfoList.add(FLInfoMap);\r\n \t\t\t\t\t }\r\n\r\n\t\t\t\t\t\t //Add FL object to delete list\r\n\t\t\t\t\t\t sLFLToDelete.add(strFLId);\r\n\r\n\t\t\t\t\t }\r\n \t\t\t\t }else{\r\n \t\t\t\t\t\t //This is hanging FL Object ID need to b removed\r\n \t\t\t\t\t\t sLFLToDelete.add(strFLId);\r\n \t\t\t\t\t\t Map FLInfoMap = new HashMap();\r\n \t\t\t\t\t\t FLInfoMap.put(\"objectId\",strFLId);\r\n \t\t\t\t\t\t FLInfoMap.put(\"infoMapFLConnection\",flMap);\r\n \t\t\t\t\t\t FLInfoList.add(FLInfoMap);\r\n \t\t\t\t\t }\r\n \t\t\t\t }\r\n\r\n \t\t\t }catch(Exception e)\r\n \t\t\t {\r\n \t\t\t\t e.printStackTrace();\r\n \t\t\t\t throw new FrameworkException(e.getMessage());\r\n \t\t\t }\r\n \t }\r\n\r\n \t\t\t//Float the connections on FL objects to new Relationships formed\r\n \t\t\t if(strNewRelId!=null && strNewRelId.length()!=0){\r\n\r\n \t\t\t\t floatFLConnections(context,FLInfoList);\r\n \t\t\t }\r\n\r\n\r\n \t\t\t//call external migration\r\n \t\t\tMapList customResults = callInterOpMigrations(context, FLInfoList);\r\n \t\t\tIterator itrCustomResults = customResults.iterator();\r\n \t\t\twhile (itrCustomResults.hasNext()) {\r\n Map customResultsMap = (Map)itrCustomResults.next();\r\n \t\t\t\t Integer status = (Integer)customResultsMap.get(\"status\");\r\n\t\t\t\t String failureMessage = (String)customResultsMap.get(\"failureMessage\");\r\n\r\n\t\t\t\t if(status==1)\r\n\t\t\t\t {\r\n\t\t\t\t\t throw new FrameworkException(failureMessage);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\r\n\r\n\t\t//Check the \"Varies By\" and \"Effectivity Status\" values\r\n\t\t StringList sLVariesByRelId =new StringList();\r\n\t\t StringList sLEffectivityStatusValue=new StringList();\r\n\t\t StringList sLActiveCntValue=new StringList();\r\n\t\t StringList sLInActiveCntValue=new StringList();\r\n\t\t StringList sLParType=new StringList();\r\n\r\n\r\n\t\tif((StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\")!=null){\r\n\r\n\t\t\t//sLName = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t//sLVariesByRelId = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t//sLEffectivityStatusValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t//sLActiveCntValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t//sLInActiveCntValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t//sLParentId = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\r\n\t\t\t/*Not using the above statements as there is issue in sequence of ids in String list\r\n\t\t\t * coming from above getInfo\r\n\t\t\t * Doing the getInfo again on the given Feature Id\r\n\t\t\t */\r\n\r\n\t\t\tString stFeaId = (String) featObjMap.get(SELECT_ID);\r\n\t\t\tDomainObject domFd = new DomainObject(stFeaId);\r\n\t\t\tStringList objSel = new StringList();\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");//Varies By rel id if present\r\n\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");//Varies By rel id if present\r\n\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");//Varies By rel id if present\r\n\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");\r\n\r\n\r\n\t\t\t Map MFeatObj = domFd.getInfo(context, objSel);\r\n\r\n\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");\r\n\r\n\r\n\t\t\tsLVariesByRelId = (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\tsLParType= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\tsLEffectivityStatusValue= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\tsLActiveCntValue= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\tsLInActiveCntValue=(StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\r\n\t\t}\r\n\r\n\t\tHashMap mapRelAtt = null;\r\n\r\n\t\tfor(int iEffStatusCnt=0;iEffStatusCnt<sLEffectivityStatusValue.size();iEffStatusCnt++){\r\n\t\t\tmapRelAtt = new HashMap();\r\n\t\t\tString strEffectStatus = (String)sLEffectivityStatusValue.get(iEffStatusCnt);\r\n\t\t\tif(strEffectStatus!=null && strEffectStatus.equalsIgnoreCase(ConfigurationConstants.EFFECTIVITY_STATUS_INACTIVE)){\r\n\t\t\t\tDomainRelationship.setType(context, (String)sLVariesByRelId.get(iEffStatusCnt), ConfigurationConstants.RELATIONSHIP_INACTIVE_VARIES_BY);\r\n\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,ConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_INHERITED,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t}\r\n\r\n\r\n\t\t\tString strInActiveCntValue = (String)sLInActiveCntValue.get(iEffStatusCnt);\r\n\t\t\tint inactiveCount = Integer.parseInt(strInActiveCntValue);\r\n\r\n\t\t\tString strActiveCntValue = (String)sLActiveCntValue.get(iEffStatusCnt);\r\n\t\t\tint activeCount = Integer.parseInt(strActiveCntValue);\r\n\r\n\t\t\tif( inactiveCount==0 && activeCount==0 ){\r\n\t\t\t\tString strParType = (String)sLParType.get(iEffStatusCnt);\r\n\t\t\t\tif(mxType.isOfParentType(context,strParType, ConfigurationConstants.TYPE_PRODUCTS)){\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\t\t\t}\r\n\t\t\tDomainRelationship domRel = new DomainRelationship((String)sLVariesByRelId.get(iEffStatusCnt));\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+(String)sLVariesByRelId.get(iEffStatusCnt)+ \"\\n\");\r\n\t\t\tmqlLogRequiredInformationWriter(\"Attribute value Map set for this Rel id :: \"+ mapRelAtt +\"\\n\\n\");\r\n\t\t\tdomRel.setAttributeValues(context, mapRelAtt);\r\n\t\t}\r\n\r\n\r\n\t\t//Cleanup - delete related Feature List objects on successful migration of Feature\r\n\t\t deleteObjects(context,sLFLToDelete);\r\n\r\n\t\t loadMigratedOids(featureObjId);\r\n\r\n\t }else{ // for those Features which has \"Conflict\" stamp \"Yes\"\r\n\t\t String strCommand = strType + \",\" + strName + \",\" + strRevision + \",\" + strContextUsage+\"\\n\";\r\n\t\t\t writeUnconvertedOID(strCommand, featureObjId);\r\n\t }\r\n\r\n }",
"public void addFeatures(IFeature feature);",
"private void finalizeOutOfTypeSystemFeatures() {\n // remap ref features\n for (List<Pair<String, Object>> attrs : outOfTypeSystemData.extraFeatureValues.values()) {\n for (Pair<String, Object> p : attrs) {\n String sv = (p.u instanceof String) ? (String) p.u : \"\";\n if (p.t.startsWith(\"_ref_\")) {\n int val = Integer.parseInt(sv);\n if (val >= 0) // negative numbers represent null and are left unchanged\n {\n // attempt to locate target in type system\n FSInfo fsValInfo = fsTree.get(val);\n if (fsValInfo != null) {\n p.u = fsValInfo.fs;\n } else\n // out of type system - remap by prepending letter\n {\n p.u = \"a\" + val;\n }\n }\n }\n }\n }\n }",
"@Override\n public void modifyFeatures(String[] nameArray, Object[] attributeValues, Filter filter)\n throws IOException {\n SimpleFeatureBuilder fb = new SimpleFeatureBuilder(getSchema());\n for (int i = 0; i < nameArray.length; i++) {\n fb.set(nameArray[i], attributeValues[i]);\n }\n SimpleFeature sample = fb.buildFeature(null);\n\n // invert the values\n List<String> names = Arrays.asList(nameArray);\n Map<String, Object> invertedValueMap = new HashMap<String, Object>();\n for (Definition definition : transformer.getDefinitions()) {\n if(names.contains(definition.getName())) { \n List<Definition> ids = definition.inverse();\n if(ids != null) {\n for (Definition id : ids) {\n Object value = id.getExpression().evaluate(sample);\n invertedValueMap.put(id.getName(), value);\n }\n }\n }\n }\n \n // if we have any inverted value, call through\n if(!invertedValueMap.isEmpty()) {\n String[] invertedNames = new String[invertedValueMap.size()];\n Object[] invertedValues = new Object[invertedValueMap.size()];\n int i = 0;\n for (String name : invertedValueMap.keySet()) {\n invertedNames[i] = name;\n invertedValues[i] = invertedValueMap.get(name);\n i++;\n }\n Filter txFilter = transformer.transformFilter(filter);\n store.modifyFeatures(invertedNames, invertedValues, txFilter);\n }\n }",
"@Override\n\tpublic boolean addAll(Collection<? extends SimpleFeature> collection) {\n\t\tboolean ret = super.addAll(collection);\n\t\tfor (SimpleFeature f : collection) {\n\t\t\taddToIndex(f);\n\t\t}\n\t\treturn ret;\n\t}",
"void addFeature(int index, Feature feature);",
"Feature createFeature();",
"@Override\n public void setFeatures(FeatureReader<SimpleFeatureType, SimpleFeature> reader)\n throws IOException {\n TransformFeatureReaderWrapper rr = new TransformFeatureReaderWrapper(reader, invertedTransformer);\n store.setFeatures(rr);\n }",
"private void writeVocabPost(FlIndexer fi) throws IOException{\n this.docNormPow = new HashMap<>();\n \n LinkedList<Integer> tf;\n LinkedList<String> files;\n String token;\n int position=0;\n File file = new File(\"CollectionIndex/VocabularyFile.txt\");\n File Postingfile = new File(\"CollectionIndex/PostingFile.txt\");\n \n\tFileWriter fw = new FileWriter(file.getAbsoluteFile());\n FileWriter fw_posting = new FileWriter(Postingfile.getAbsolutePath());\n try (BufferedWriter bw = new BufferedWriter(fw)) {\n try (BufferedWriter bw_posting = new BufferedWriter(fw_posting)){\n for (Map.Entry<String, TermNode> entry : fi.mapTerms.entrySet()){\n double idf = ((double)this.docMap.size())/entry.getValue().getDf();\n //idf=log2(idf, 2);\n bw.write(entry.getValue().getTerm()+\" \"+entry.getValue().getDf()+\" \"+idf+\" \"+position+\"\\n\");\n \n tf=entry.getValue().getTfList();\n files=entry.getValue().getFileList();\n int i=tf.size();\n for (int j=0; j<i; j++){\n double tfidf=idf*((double)tf.get(j)/fi.getMaxTF(files.get(j)));\n double tfidfpow=Math.pow(tfidf, 2);\n\n \n if(this.docNormPow.containsKey(files.get(j))){\n //this.docNorm.put(files.get(j), this.docNorm.get(files.get(j))+tfidf);\n this.docNormPow.put(files.get(j), this.docNormPow.get(files.get(j))+tfidfpow);\n }\n else{\n //this.docNorm.put(files.get(j), tfidf);\n this.docNormPow.put(files.get(j), tfidfpow);\n }\n \n token=this.docMap.get(files.get(j))+\" \"+tf.get(j)+\" \"\n +entry.getValue().multiMap.get(files.get(j))+\" \"+tfidf+\"\\n\";\n position= position + token.length();\n \n bw_posting.write(token);\n }\n }\n }\n }\n \n System.out.println(\"Done creating VocabularyFile.txt\");\n System.out.println(\"Done creating PostingFile.txt\");\n }",
"@Override\n protected SimpleFeature buildFeature() {\n synchronized(EDGE_FEATURE_BUILDER) {\n EDGE_FEATURE_BUILDER.add(getId());\n EDGE_FEATURE_BUILDER.add(displayName);\n EDGE_FEATURE_BUILDER.add(url);\n EDGE_FEATURE_BUILDER.add(selected);\n EDGE_FEATURE_BUILDER.add(lineString);\n return EDGE_FEATURE_BUILDER.buildFeature(null);\n }\n }",
"java.lang.String getFeatures(int index);",
"private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }",
"public static void deleteFeature(Feature feature, String allFeaturesFilePath, Project project) throws IOException {\n\t\tFileReader r = new FileReader(allFeaturesFilePath);\n\t\tCSVParser parser = new CSVParser(r);\n\t\tList<CSVRecord> records = parser.getRecords();\n\t\tr.close();\n\n\t\tList<Feature> features = new ArrayList<Feature>();\n\t\tint size = records.size();\n\t\tfor(int i = 1; i < size; i++){\n\t\t\tCSVRecord rec = records.get(i);\n\t\t\tString featureName = rec.get(0).trim();\n\t\t\tif (!featureName.equals(feature.getName())) {\n\t\t\t\tString functionName = rec.get(1).trim();\n\t\t\t\tString attr1Name = rec.get(2).trim();\n\t\t\t\tString attr1Type = rec.get(3).trim();\n\t\t\t\tString attr2Name = rec.get(4).trim();\n\t\t\t\tString attr2Type = rec.get(5).trim();\n\t\t\t\t\n\t\t\t\tString projectName = project.getName();\n\t\t\t\tFunction function = project.findFunctionByName(functionName);\n\t\t\t\tAttribute attribute1 = new Attribute(attr1Name, Attribute.Type.valueOf(attr1Type));\n\t\t\t\tAttribute attribute2 = new Attribute(attr2Name, Attribute.Type.valueOf(attr2Type));\n\t\t\t\tFeature f = new Feature(featureName, function, projectName, attribute1, attribute2);\n\t\t\t\tfeatures.add(f);\n\t\t\t}\n\t\t}\n\t\t// save all the features\n\t\tsaveAllFeatures(features, allFeaturesFilePath);\n\t}",
"public static void main(String[] args){\n File testFile = new File(args[1]);\n File testFile_new = new File(args[2]);\n String all = \"\";\n // read all data\n try {\n Scanner input = null;\n input = new Scanner(testFile);\n while (input.hasNext()){\n all += input.nextLine() + \"\\r\\n\";\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n // print and replace\n System.out.println(all);\n all = all.replaceAll(args[0], \"\");\n // save to other file with replaced\n try{\n PrintWriter output = new PrintWriter(testFile_new);\n output.write(all);\n output.close();\n } catch (FileNotFoundException ex){\n ex.printStackTrace();\n }\n }",
"private void writeFeatureEntry(PrintWriter w, String id, IFeatureEntry entry) {\n \t\tw.println(\"\"); //$NON-NLS-1$\n \n \t\t// write out feature entry settings\n \t\twriteAttribute(w, id + \".\" + CFG_FEATURE_ENTRY_ID, entry.getFeatureIdentifier()); //$NON-NLS-1$\n \t\tif (entry.canBePrimary())\n \t\t\twriteAttribute(w, id + \".\" + CFG_FEATURE_ENTRY_PRIMARY, \"true\"); //$NON-NLS-1$ //$NON-NLS-2$\n \t\twriteAttribute(w, id + \".\" + CFG_FEATURE_ENTRY_VERSION, entry.getFeatureVersion()); //$NON-NLS-1$\n \t\tif (entry.getFeatureVersion() != null && !entry.getFeatureVersion().equals(entry.getFeaturePluginVersion()))\n \t\t\twriteAttribute(w, id + \".\" + CFG_FEATURE_ENTRY_PLUGIN_VERSION, entry.getFeaturePluginVersion()); //$NON-NLS-1$\n \t\tif (entry.getFeatureIdentifier() != null && !entry.getFeatureIdentifier().equals(entry.getFeaturePluginIdentifier()))\n \t\t\twriteAttribute(w, id + \".\" + CFG_FEATURE_ENTRY_PLUGIN_IDENTIFIER, entry.getFeaturePluginIdentifier()); //$NON-NLS-1$\n \t\twriteAttribute(w, id + \".\" + CFG_FEATURE_ENTRY_APPLICATION, entry.getFeatureApplication()); //$NON-NLS-1$\n \t\tURL[] roots = entry.getFeatureRootURLs();\n \t\tfor (int i = 0; i < roots.length; i++) {\n \t\t\t// write our as individual attributes (is easier for Main.java to read)\n \t\t\twriteAttribute(w, id + \".\" + CFG_FEATURE_ENTRY_ROOT + \".\" + i, roots[i].toExternalForm()); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t}\n \t}",
"Feature update(Feature feature);",
"public static void selectFeature() throws IOException {\n\t\tString trainPath = \"./corpus/trainData\";\n\t\tString stopPath = \"./corpus/english.stop\";\n\t\tString outPath = \"./corpus/features\";\n\t\tFileWriter fw = new FileWriter(outPath);\n\t\tFileReader fr = new FileReader(trainPath);\n\t\tFileReader fr2 = new FileReader(stopPath);\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\tBufferedReader br = new BufferedReader(fr);\n\t\tBufferedReader br2 = new BufferedReader(fr2);\n\t\tString oneline;\n\n\t\tArrayList<String> as = new ArrayList<String>();\n\t\twhile ((oneline = br2.readLine()) != null) {\n\t\t\tas.add(oneline);\n\t\t}\n\t\tString[] stopWords = new String[as.size()];\n\t\tas.toArray(stopWords);\n\n\t\tHashtable<String, Integer> hs = new Hashtable<String, Integer>();\n\n\t\tAnalyzer analyzer = new SnowballAnalyzer(\"English\", stopWords);\n\n\t\ttry {\n\t\t\twhile ((oneline = br.readLine()) != null) {\n\t\t\t\tint pos = oneline.indexOf(\"\\t\");\n\t\t\t\tString topic = oneline.substring(0, pos);\n\t\t\t\tString content = oneline.substring(pos + 1);\n\t\t\t\t// StringTokenizer st=new StringTokenizer(content,\" \");\n\n\t\t\t\tTokenStream stream = analyzer.tokenStream(\"contents\",\n\t\t\t\t\t\tnew StringReader(content));\n\n\t\t\t\twhile (true) {\n\t\t\t\t\tToken token = stream.next();\n\t\t\t\t\tif (token == null)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tString tmp = token.termText();\n\t\t\t\t\tif (!hs.containsKey(tmp)) {\n\t\t\t\t\t\ths.put(tmp, new Integer(1));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tInteger num = hs.get(tmp);\n\t\t\t\t\t\ths.put(tmp, num + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\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\n\t\tList<Map.Entry> list = new ArrayList<Map.Entry>(hs.entrySet());\n\t\tCollections.sort(list, new Comparator<Map.Entry>() {\n\t\t\tpublic int compare(Map.Entry e1, Map.Entry e2) {\n\t\t\t\tInteger i1 = (Integer) e1.getValue();\n\t\t\t\tInteger i2 = (Integer) e2.getValue();\n\t\t\t\treturn i2.compareTo(i1);\n\t\t\t}\n\t\t});\n\t\tint count = 0;\n\t\tSystem.out.println(\"word - freq\");\n\t\tSystem.out.println(\"-------------\");\n\t\tfor (Map.Entry e : list) {\n\t\t\tInteger num = (Integer) e.getValue();\n\t\t\tString term = (String) e.getKey();\n\t\t\tif (count++ < 2000) {\n\t\t\t\tbw.write(term);\n\t\t\t\tbw.newLine();\n\t\t\t}\n\n\t\t}\n\n\t\tbw.close();\n\n\t\tSystem.out.println(hs.keySet().size());\n\t\tSystem.out.println(count);\n\n\t}",
"private void exportTreeML()\r\n {\r\n // Create the file filter.\r\n// SimpleFileFilter[] filters = new SimpleFileFilter[] {\r\n// new SimpleFileFilter(\"xml\", \"Tree ML (*.xml)\")\r\n// };\r\n// \r\n// // Save the file.\r\n// String file = openFileChooser(false, filters);\r\n// \r\n// // Write the file.\r\n// if (file != null)\r\n// {\r\n// String extension = file.substring(file.length() - 4);\r\n// if (!extension.equals(\".xml\")) file = file + \".xml\";\r\n// Writer.writeTreeML(m_gtree, file);\r\n// }\r\n }",
"@Override\n public void setFeature(String feature) {\n this.exteriorFeature = feature;\n }",
"private void generateUniverse(Universe universe) throws SAXException{\n saver.addAttribute(\"version\", XmlSaver.CDATA, version+\"\");\n saver.startTag(\"universe\");\n saver.startTag(\"content\");\n generateBackground(universe);\n generateLimits(universe);\n generateLights(universe);\n generateComponents(universe);\n saver.closeTag(\"content\");\n saver.closeTag(\"universe\");\n }",
"private void rewriteLocationList(List<Location> newLocationList) {\n Log.d(\"debugMode\", \"writing new contents\");\n for (Location location : newLocationList) {\n String line = \"\\n\" + location.returnFull();\n byte[] bytes = line.getBytes();\n\n FileOutputStream out;\n try {\n Log.d(\"debugMode\", location.returnFull());\n out = openFileOutput(\"Locations.txt\", MODE_APPEND);\n out.write(bytes);\n out.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"@Override\n public void uri(String s) {\n\n int startOfFile = s.lastIndexOf(DIRECTORY_SEPARATOR);\n if (startOfFile == -1) {\n //not in package\n testedFeature.setFeatureMetadata(new FeatureMetadata(\"\", s, glue));\n } else {\n String module = s.substring(0, startOfFile);\n String filename = s.substring(startOfFile + 1, s.length());\n testedFeature.setFeatureMetadata(new FeatureMetadata(module, filename, glue));\n }\n }",
"public void loadFeatures() throws IOException {\n final File apiKeyFile = new File(System.getProperty(\"user.home\") + \"/.datarank-api-key\");\n final DataRank dataRank = new DataRank(new DataRankConfiguration(IOUtils.toString(new FileInputStream(apiKeyFile)).trim()));\n final List<FeatureSet> features = DataRankTopicFeatureExtractor.downloadComments(dataRank, \"tide-pods\", 1000);\n FeatureLoader.write(features, \"/tmp/tide-pods.csv\");\n }",
"public void writeFile(ArrayList<GIS_layer> a, String output) {\n\t\tArrayList<String> content = new ArrayList<String>(); // the content in long String\n\t\tString kmlstart = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\r\\n\" + \n\t\t\t\t\"<kml xmlns=\\\"http://www.opengis.net/kml/2.2\\\"><Document>\"\t\n\t\t\t\t+\"<Style id=\\\"red\\\"><IconStyle><Icon><href>http://maps.google.com/mapfiles/ms/icons/red-dot.png</href>\"\n\t\t\t\t+\"</Icon></IconStyle></Style><Style id=\\\"yellow\\\"><IconStyle>\"\n\t\t\t\t+\"<Icon><href>http://maps.google.com/mapfiles/ms/icons/yellow-dot.png</href></Icon>\"\n\t\t\t\t+\"</IconStyle></Style><Style id=\\\"green\\\"><IconStyle><Icon>\"\n\t\t\t\t+\"<href>http://maps.google.com/mapfiles/ms/icons/green-dot.png</href></Icon></IconStyle></Style>\"\n\t\t\t\t+\"<name>GeoLayers</name>\";\n\t\tcontent.add(kmlstart);\n\n\t\tString kmlend = \"</Document></kml>\";\n\t\tIterator<GIS_layer> itr = a.iterator();\n\t\ttry{\n\t\t\tFileWriter fw = new FileWriter(output); // path to the new address\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\twhile(itr.hasNext()) {\n\t\t\t\tGIS_layer currLayer = itr.next();\n\t\t\t\tArrayList<String> GPSelement = currLayer.layerString();\n\t\t\t\tString kmlStartlayer = \"<Folder><name>\"+currLayer.get_Meta_data().getName()+\"</name>\";\n\t\t\t\tcontent.add(kmlStartlayer);\n\t\t\t\tString layerColor = circColor(currLayer.get_Meta_data().getName()); // choose color based on layer ID number.\n\t\t\t\tfor (int i = 0; i < GPSelement.size(); i++) {\n\t\t\t\t\tString[] gpsData = GPSelement.get(i).split(\",\");\n\t\t\t\t\tString kmlelement =\"<Placemark>\\n\" +\n\t\t\t\t\t\t\t\"<name>\"+gpsData[3]+\"</name>\\n\" +\n\t\t\t\t\t\t\t\"<description>BSSID: <b>\"+gpsData[4]+\"</b><br/>Capabilities: <b>\"\n\t\t\t\t\t\t\t+gpsData[5]+\"</b><br/>Type: <b>\"+gpsData[7]+\"</b><br/>Timestamp: <b>\"\n\t\t\t\t\t\t\t+gpsData[6]+\"</b><br/>Date: <b>\"+gpsData[8]+\"</b></description>\\n\"\n\t\t\t\t\t\t\t+ \"<Style id=\\\"color\\\"><IconStyle><Icon><href>\"+layerColor+\"</href></Icon></IconStyle></Style>\\r\\n\" + \n\t\t\t\t\t\t\t\"<Point>\\r\\n\" + \n\t\t\t\t\t\t\t\"<coordinates>\"+gpsData[0]+\",\"+gpsData[1]+\"</coordinates>\" +\n\t\t\t\t\t\t\t\"</Point>\\n\" +\n\t\t\t\t\t\t\t\"</Placemark>\\n\";\n\t\t\t\t\tcontent.add(kmlelement);\n\t\t\t\t}\n\t\t\t\tString kmlEndlayer = \"</Folder>\\n\";\n\t\t\t\tcontent.add(kmlEndlayer);\n\t\t\t} \n\t\t\tcontent.add(kmlend);\n\t\t\tString csv = content.toString().replace(\"[\", \"\").replace(\"]\", \"\");\n\t\t\tbw.write(csv);\n\t\t\tbw.close();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private List<XmlElementNameAndContents> encodeFeatures(TOP fs, AttributesImpl attrs,\n boolean insideListNode) throws SAXException {\n List<XmlElementNameAndContents> childElements = new ArrayList<>();\n // int heapValue = cds.cas.getHeapValue(addr);\n // int[] feats = cds.tsi.ll_getAppropriateFeatures(heapValue);\n\n String attrValue;\n // boolean isSofa = false;\n // if (sofaTypeCode == heapValue)\n // {\n // // set isSofa flag to apply SofaID mapping and to store sofaNum->xmi:id mapping\n // isSofa = true;\n // }\n for (final FeatureImpl fi : fs._getTypeImpl().getFeatureImpls()) {\n\n if (cds.isFiltering) {\n // skip features that aren't in the target type system\n String fullFeatName = fi.getName();\n if (cds.filterTypeSystem_inner.getFeatureByFullName(fullFeatName) == null) {\n continue;\n }\n }\n\n final String featName = fi.getShortName();\n final int featureValueClass = fi.rangeTypeClass;\n\n switch (featureValueClass) {\n\n case LowLevelCAS.TYPE_CLASS_BYTE:\n case LowLevelCAS.TYPE_CLASS_SHORT:\n case LowLevelCAS.TYPE_CLASS_INT:\n case LowLevelCAS.TYPE_CLASS_LONG:\n case LowLevelCAS.TYPE_CLASS_FLOAT:\n case LowLevelCAS.TYPE_CLASS_DOUBLE:\n case LowLevelCAS.TYPE_CLASS_BOOLEAN:\n attrValue = fs.getFeatureValueAsString(fi);\n break;\n\n case LowLevelCAS.TYPE_CLASS_STRING:\n attrValue = fs.getFeatureValueAsString(fi);\n break;\n\n // Arrays\n case LowLevelCAS.TYPE_CLASS_INTARRAY:\n case LowLevelCAS.TYPE_CLASS_FLOATARRAY:\n case LowLevelCAS.TYPE_CLASS_BOOLEANARRAY:\n case LowLevelCAS.TYPE_CLASS_BYTEARRAY:\n case LowLevelCAS.TYPE_CLASS_SHORTARRAY:\n case LowLevelCAS.TYPE_CLASS_LONGARRAY:\n case LowLevelCAS.TYPE_CLASS_DOUBLEARRAY:\n case LowLevelCAS.TYPE_CLASS_FSARRAY:\n if (cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n } else {\n attrValue = arrayToString(fs.getFeatureValue(fi), featureValueClass);\n }\n break;\n\n // special case for StringArrays, which stored values as child elements rather\n // than attributes.\n case LowLevelCAS.TYPE_CLASS_STRINGARRAY:\n StringArray stringArray = (StringArray) fs.getFeatureValue(fi);\n if (cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(stringArray);\n } else if (stringArray != null && stringArray.size() == 0) {\n attrValue = \"\"; // https://issues.apache.org/jira/browse/UIMA-5558\n } else {\n stringArrayToElementList(featName, (StringArray) fs.getFeatureValue(fi),\n childElements);\n attrValue = null;\n }\n break;\n\n // Lists\n case CasSerializerSupport.TYPE_CLASS_INTLIST:\n case CasSerializerSupport.TYPE_CLASS_FLOATLIST:\n case CasSerializerSupport.TYPE_CLASS_FSLIST:\n TOP startNode = fs.getFeatureValue(fi);\n if (insideListNode || cds.isStaticMultiRef(fi)) {\n // If the feature has multipleReferencesAllowed = true OR if we're already\n // inside another list node (i.e. this is the \"tail\" feature), serialize as a normal\n // FS.\n // Otherwise, serialize as a multi-valued property.\n // if (cds.isStaticMultRef(feats[i]) ||\n // cds.embeddingNotAllowed.contains(featVal) ||\n // insideListNode) {\n\n attrValue = cds.getXmiId(startNode);\n } else {\n attrValue = listToString((CommonList) fs.getFeatureValue(fi));\n }\n break;\n\n // special case for StringLists, which stored values as child elements rather\n // than attributes.\n case CasSerializerSupport.TYPE_CLASS_STRINGLIST:\n if (insideListNode || cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n } else {\n // it is not safe to use a space-separated attribute, which would\n // break for strings containing spaces. So use child elements instead.\n StringList stringList = (StringList) fs.getFeatureValue(fi);\n if (stringList == null) {\n attrValue = null;\n } else {\n if (stringList instanceof EmptyStringList) {\n attrValue = \"\";\n } else {\n List<String> listOfStrings = stringList.anyListToStringList(null, cds);\n // if (array.length > 0 && !arrayAndListFSs.put(featVal, featVal)) {\n // reportWarning(\"Warning: multiple references to a ListFS. Reference identity\n // will not be preserved.\");\n // }\n for (String string : listOfStrings) {\n childElements.add(new XmlElementNameAndContents(\n new XmlElementName(\"\", featName, featName), string));\n }\n attrValue = null;\n }\n }\n }\n break;\n\n default: // Anything that's not a primitive type, array, or list.\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n break;\n\n } // end of switch\n\n if (attrValue != null && featName != null) {\n addAttribute(attrs, featName, attrValue, \"\");\n }\n } // end of for loop over all features\n\n // add out-of-typesystem features, if any\n if (cds.sharedData != null) {\n OotsElementData oed = cds.sharedData.getOutOfTypeSystemFeatures(fs);\n if (oed != null) {\n // attributes\n Iterator<XmlAttribute> attrIter = oed.attributes.iterator();\n while (attrIter.hasNext()) {\n XmlAttribute attr = attrIter.next();\n addAttribute(workAttrs, attr.name, attr.value);\n }\n // child elements\n childElements.addAll(oed.childElements);\n }\n }\n return childElements;\n }",
"private void addToIndex(SimpleFeature feature) {\n\t\t// ID Index\n\t\tif (idIndex==null) idIndex = new HashMap<String, SimpleFeature>();\n\t\tidIndex.put(feature.getID(), feature);\n\t\t\n\t\t// Type name index\n\t\tif (typeNameIndex==null) typeNameIndex = new HashMap<Name, Set<SimpleFeature>>();\n\t\tName type = feature.getType().getName();\n\t\tSet<SimpleFeature> prev = typeNameIndex.get(type);\n\t\tif (prev==null) prev = new HashSet<SimpleFeature>();\n\t\tprev.add(feature);\n\t\ttypeNameIndex.put(type, prev);\n\t\t\n\t\t// Tile Index\n\t\t// Image features are separated by - and last parts are xref-yref-zoom\n\t\tif (feature.getID().matches(\".*-[0-9]+-[0-9]+-[0-9]+\")) {\n\t\t\tOSMTile tile = new OSMTile(feature.getID());\n\t\t\tprev = tileIndex.get( tile );\n\t\t\tif (prev==null) prev = new HashSet<SimpleFeature>();\n\t\t\tprev.add(feature);\n\t\t\ttileIndex.put(tile, prev);\n\t\t\t\n\t\t} else {\n\t\t\t/* TODO Something for features..?\n\t\t\t * get geometry bounds, calculate tile and insert into relevant index positions?\n\t\t\t * This would then also work for removal...\t */\n\t\t}\n\t\t\n\t}",
"public String generateFeaturesResult()\n\t{\n\t\tthis.removeDuplicateAffixes();\n\t\tArrayList<Affix> gPrefix = reverseAffixOrder(this.prefixes);\n\t\tArrayList<Affix> gInfix = reverseAffixOrder(this.infixes);\n\t\tArrayList<Affix> gSuffix = reverseAffixOrder(this.suffixes);\n\t\tAffixBreakdown ab \t\t = new AffixBreakdown();\n\t\tString rootWithInfix;\n\t\tString result\t \t\t = \"\";\n\n\n\n\t\tif( gInfix.size() > 0 || gInfix != null)\n\t\t{\n\t\t\ttry {\n\t\t\t\trootWithInfix = this.infixedRootWord(word.getOriginalWord(),word.getRootWord(), gInfix.get(0).getAffix());\n\t\t\t} catch (Exception e) {\n\t\t\t\trootWithInfix = word.getRootWord();\n\t\t\t}\n\t\t} else {\n\t\t\trootWithInfix = word.getRootWord();\n\t\t}\n\n\n\t\tif( longestCanonicalPrefixLength() > 4 )\n\t\t{\n\t\t\tAffix longPrefix = longestCanonicalPrefix();\n\n\t\t\tresult = result + ab.convertPrefix( longPrefix.getAffix().toString() );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// cycle through all the prefixes first\n\t\t\tfor( int i = 0; i < this.prefixes.size(); i++)\n\t\t\t{\n\t\t\t\tresult = result + \"~\" + gPrefix.get(i).getAffix();\n\t\t\t}\n\t\t}\n\n\t\t// cycle through all the suffixes as the last\n\t\tfor( int i = 0; i < gSuffix.size(); i++)\n\t\t{\n\t\t\tresult = result + \"+\" + gSuffix.get(i).getAffix();\n\t\t}\n\t\treturn result;\n\t}",
"private void addFeatures(Planet planet) {\n if (planet.getTemperature() > Temperature.LeadMelts.getKelvin()) {\n logger.info(\"Surface temperature is very hot.\");\n switch (Die.d6()) {\n case 1:\n planet.addFeature(MetallicSea);\n logger.info(\"Adding metallic sea.\");\n return;\n case 2: case 3:\n planet.addFeature(MetallicLakes);\n logger.info(\"Adding metallic lakes.\");\n return;\n default:\n // Add nothing.\n }\n }\n switch (Die.d6(2)) {\n case 5:\n planet.addFeature(SouthCrater);\n break;\n case 6:\n planet.addFeature(EquatorialRidge);\n break;\n case 8:\n planet.addFeature(GreatRift);\n break;\n case 9:\n planet.addFeature(NorthCrater);\n break;\n case 10:\n planet.addFeature(BrokenRifts);\n break;\n case 11:\n planet.addFeature(ReMelted);\n break;\n default:\n // No special features.\n }\n }",
"void setFeature(int index, Feature feature);",
"private void export() {\n print(\"Outputting Instructions to file ... \");\n\n // Generate instructions right now\n List<Instruction> instructions = new ArrayList<Instruction>();\n convertToInstructions(instructions, shape);\n\n // Verify Instructions\n if (instructions == null || instructions.size() == 0) {\n println(\"failed\\nNo instructions!\");\n return;\n }\n\n // Prepare the output file\n output = createWriter(\"output/instructions.txt\");\n \n // TODO: Write configuration information to the file\n \n\n // Write all the Instructions to the file\n for (int i = 0; i < instructions.size(); i++) {\n Instruction instruction = instructions.get(i);\n output.println(instruction.toString());\n }\n\n // Finish the file\n output.flush();\n output.close();\n\n println(\"done\");\n }",
"private void writeAll(){\n try (BufferedWriter ignored = new BufferedWriter(new FileWriter(this.fileName))) {\n Iterable<E> values=entities.values();\n values.forEach(this::writeToFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void increaseFeatureCount() {\n this.featureCount++;\n }",
"private void createListingFile(boolean listingEnabled) throws IOException {\r\n if (listingEnabled) {\r\n try {\r\n // instantiate the File object and creates a new file with extension lst\r\n System.out.println(\"Currently generating the listing file.....\"); //prompts user file is being created\r\n listingFile = new File(sourceName + \".lst\");\r\n // if creating the lst file is successful, then you can start to write in the lst file\r\n listingFile.delete();\r\n if (listingFile.createNewFile()) {\r\n\r\n\r\n writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(sourceName + \".lst\"), \"utf-8\")); //create an object to write into the lst file\r\n String header = String.format(\"%-16s %-16s %-16s %-16s %-16s %-16s %-16s %-16s\", \"Line\",\"Addr\",\"Machine Inst\",\"Machine Operand\", \"Label\",\"Assembly Code\", \"Label Operand\", \"Comments\"); // s string of the categories of the column\r\n writer.write(header + \"\\n\"); // prints the header\r\n\r\n // create String objects to be reused inside the for loop below\r\n String lineAddress;\r\n String label1;\r\n String opCode;\r\n String offset;\r\n String address;\r\n String address1=\"\";\r\n String label2;\r\n String assembly;\r\n String comment;\r\n String linout;\r\n String string;\r\n //String binary;\r\n // a vector of all the line statement\r\n String operand=\"\";\r\n\r\n LineStmt myLine;\r\n // loops through the vector to get each linestatement\r\n\r\n for (int index = 0; index < lineStatements.size(); index++) {\r\n LineStmt line = lineStatements.getLine(index);\r\n lineAddress = String.format(\"%02X\", line.lineAddress.getAddress());\r\n if (line.inst != null) {\r\n operand=address=offset=\"\";\r\n opCode = (line.inst.isOpcodeNull()) ? \"\" : String.format(\"%02X\", line.inst.getOpCode());\r\n\r\n offset = (line.inst.getOffset() == null) ? \"\" : String.format(\"%02X\", line.inst.getOffset().getOffset());\r\n if(offset.length()>2)\r\n offset = offset.substring(offset.length() - 2);\r\n\r\n address = (line.inst.getAddress() == null) ? \"\" : String.format(\"%04X\", line.inst.getAddress().getAddress());\r\n if(address.length()>4)\r\n address = address.substring(address.length() - 4);\r\n if(0< line.inst.getOpCode()&&line.inst.getOpCode() < 0xB0 && address.length()>2 )\r\n address = address.substring(address.length() - 2);\r\n if(address.length() == 4)\r\n address = address.substring(0,2)+\" \"+address.substring(2,4);\r\n assembly = line.inst.getMnemonic();\r\n label2 = (line.inst.getLabel() == null) ? \"\" : line.inst.getLabel().getLabelId();\r\n if(offset.isEmpty())\r\n operand=address;\r\n else\r\n operand =offset;\r\n\r\n generate = generate + \" \" +opCode.strip()+\" \"+address.strip()+\" \"+offset.strip();\r\n if (line.inst.isOpcodeNull()) {\r\n label2 = line.inst.getDirString();\r\n\r\n opCode = generateString(label2);\r\n generate = generate + opCode;\r\n }\r\n\r\n\r\n } else\r\n opCode = offset = address = label2 = assembly = \"\";\r\n\r\n label1 = (line.label == null) ? \" \" : line.label.getLabelId();\r\n comment = (line.comment == null) ? \"\" : line.comment.getCommentString();\r\n linout =\"\";\r\n\r\n linout = String.format(\"%-16s %-16s %-16s %-16s %-16s %-16s %-16s %-16s\", Integer.toString(index + 1), lineAddress, opCode, operand,label1,assembly,label2,comment);\r\n linout += \"\\n\";\r\n System.out.print(linout);\r\n if(listingEnabled)\r\n writer.write(linout); // inserts the line into the lst file+ \"\\t\\t\\t\\t\"\r\n\r\n }\r\n generate = generate.trim().replaceAll(\"\\\\s{2,}\", \" \");\r\n System.out.print(\"Generate: \"+generate);\r\n if(listingEnabled)\r\n writer.write(\"Generate: \"+generate);\r\n writer.close();\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Error: Listing File cannot be made.\");\r\n }\r\n }\r\n }",
"private NamedFeature getUnigeneTestFeature(){\n BasicFeature testFeat = new BasicFeature(\"chr2\", 179908392, 179909870);\n testFeat.setName(\"hs.516555\");\n return testFeat;\n }",
"public void addFeature(String domain, String name) { addFeature(domain, name, 1); }",
"public void trainFeatureList(){\n File trainFolder = new File(SoundEffectDemo.s_basePath);\n File[] trainList = trainFolder.listFiles();\n\n try {\n\n FileWriter fwMs = new FileWriter(s_msFeaturePath);\n FileWriter fwEnergy = new FileWriter(s_energyFeaturePath);\n FileWriter fwZc = new FileWriter(s_zcFeaturePath);\n FileWriter fwMfcc = new FileWriter(s_mfccFeaturePath);\n\n for (int i = 0; i < trainList.length; i++) {\n WaveIO waveIO = new WaveIO();\n short[] signal = waveIO.readWave(trainList[i].getAbsolutePath());\n\n // Extract Magnitude Spectrum\n MagnitudeSpectrum ms = new MagnitudeSpectrum();\n double[] msFeature = ms.getFeature(signal);\n \n String line = trainList[i].getName() + \"\\t\";\n for (double f: msFeature){\n line += f + \"\\t\";\n }\n fwMs.append(line+\"\\n\");\n \n // Extract Energy\n Energy energy = new Energy();\n double[] energyFeature = energy.getFeature(signal);\n \n String line2 = trainList[i].getName() + \"\\t\";\n for (double f: energyFeature){\n line2 += f + \"\\t\";\n }\n fwEnergy.append(line2+\"\\n\");\n \n // Extract Zero Crossing\n ZeroCrossing zc = new ZeroCrossing();\n double[] zcFeature = zc.getFeature(signal);\n \n String line3 = trainList[i].getName() + \"\\t\";\n for (double f: zcFeature){\n line3 += f + \"\\t\";\n }\n fwZc.append(line3+\"\\n\");\n \n // Extract mfcc\n MFCC mfcc = new MFCC(Frames.frameLength);\n mfcc.process(signal);\n double[] mfccFeature = mfcc.getMeanFeature();\n \n String line4 = trainList[i].getName() + \"\\t\";\n for (double f: mfccFeature){\n line4 += f + \"\\t\";\n }\n fwMfcc.append(line4+\"\\n\");\n \n System.out.println(\"@=========@\" + i);\n }\n fwMs.close();\n fwEnergy.close();\n fwZc.close();\n fwMfcc.close();\n }catch (Exception e){\n e.printStackTrace();\n }\n }",
"org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature insertNewPlanFeature(int i);",
"public void weightRowFeatures(String fname, String outName) {\n\t\ttry {\n\t\t\tBufferedWriter matrixWriter = new BufferedWriter(new FileWriter(outName));\n\t\t\t\n\t\t\tBufferedReader matrixReader = new BufferedReader(new FileReader(fname));\n\t\t\tString first = matrixReader.readLine(); // get first line\n\t\t\tmatrixWriter.write(first + \"\\n\");\n\t\t\t\n\t\t\tfor ( ; ; ) {\n\t\t\t\tString line = matrixReader.readLine();\n\t\n\t\t\t\tif (line == null) {\n\t\t\t\t\tmatrixReader.close();\n\t\t\t\t\tmatrixWriter.close();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\n\t\t\t\telse {\n\t\t\t\t\tString[] parts = line.split(\" \");\n\t\t\t\t\tfor(int i = 0; i < parts.length; i+=2){\n\t\t\t\t\t\tdouble value = Double.parseDouble(parts[i+1]) * weights[Integer.parseInt(parts[i])];\n\t\t\t\t\t\tif(value > 0.00000000001){ // do not print extremely small values\n\t\t\t\t\t\t\tmatrixWriter.write(parts[i] + \" \" + value + \" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tmatrixWriter.write(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//bw.close();\n\t\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.warning(e.getMessage());\n\t\t}\n\t}",
"com.google.protobuf.ByteString getFeaturesBytes(int index);",
"List<String> getFeatures();",
"public void save(File f) {\n\t\tif (f.exists()) {\r\n\t\t\tString filename = f.getName();\r\n\t\t\tString backName;\r\n\t\t\tif (filename.contains(\".\")) {\r\n\t\t\t\tbackName = filename.substring(0,filename.lastIndexOf('.'));\r\n\t\t\t\tbackName += \"_backup\";\r\n\t\t\t\tbackName += filename.substring(filename.lastIndexOf('.'));\r\n\t\t\t} else {\r\n\t\t\t\tbackName = filename + \"_backup\";\r\n\t\t\t}\r\n\t\t\tFile back = new File(f.getParent(),backName);\r\n\t\t\tSystem.out.println(\"Writing backup to: \"+back.getAbsolutePath());\r\n\t\t\tif (back.exists()) back.delete();\r\n\t\t\tFile newF = f;\r\n\t\t\tf.renameTo(back);\r\n\t\t\tf = newF;\r\n\t\t}\r\n\r\n\t\tFileOutputStream outputStream = null;\r\n\t\ttry {\r\n\t\t\tDocument doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();\r\n//\t\t\tb.append(\"<Map xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xsi:noNamespaceSchemaLocation=\\\"map.xsd\\\">\");\r\n//\t\t\tProcessingInstruction pi = doc.createProcessingInstruction(\"xml-stylesheet\", \"type=\\\"text/xsl\\\" href=\\\"/assistantdm/static/CharacterSheetTemplate.xsl\\\"\");\r\n//\t\t\tdoc.appendChild(pi);\r\n\t\t\tXMLMapExporter processor = new XMLMapExporter(doc);\r\n\t\t\tmapPanel.executeProcess(processor);\r\n\t\t\tdoc.setXmlStandalone(true);\r\n\r\n\t\t\tTransformer trans = TransformerFactory.newInstance().newTransformer();\r\n\t\t\ttrans.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\ttrans.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\r\n\t\t\ttrans.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\r\n\t\t\toutputStream = new FileOutputStream(f);\r\n\t\t\ttrans.transform(new DOMSource(doc), new StreamResult(outputStream));\r\n\t\t\tmapPanel.modified = false;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (outputStream != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\toutputStream.close();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void rewrite(){\n\t\t//SROEL2DatalogRewriter rewriter = new SROEL2DatalogRewriter();\n\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\t//Rewriting for global context.\n\t\tRLGlobal2DatalogRewriter globalrewriter = new RLGlobal2DatalogRewriter();\n\t\tdatalogGlobal = globalrewriter.rewrite(inputCKR.getGlobalOntology());\n\t\t//System.out.println(\"Rewriting program for global context complete.\");\n\t\t\n\t\t//Computation of set of contexts and associations to modules\n\t\tcomputeSets(datalogGlobal);\n\t\t//System.out.println(\"Set of contexts and modules associations computed.\");\n\t\t\n\t\t//Computation of local contexts knowledge bases.\n\t\tcomputeLocalKB();\n\t\t\n\t\t//Rewriting for local contexts knowledge bases.\n\t\tRLLocal2DatalogRewriter localrewriter = new RLLocal2DatalogRewriter();\n\t\t\n\t\tdatalogLocal = new LinkedList<DLProgram>();\n\t\tfor (String c : contextsSet) {\n\t\t\t//System.out.println(\"Rewriting program for \" + c.replaceAll(\"\\\"\", \"\"));\n\t\t\tlocalrewriter.setContextID(c.replaceAll(\"\\\"\", \"\"));\n\t\t\tdatalogLocal.add(localrewriter.rewrite(contextsOntologies.get(c)));\n\t\t}\n\t\t\n\t\t//for (OWLOntology o : inputCKR.getLocalOntology()) {\n\t\t//\tlocalrewriter.setLocalID(\"c\");\n\t\t//\t//o.getOWLOntologyManager().addAxioms(o, inputCKR.getGlobalOntology().getAxioms());\n\t\t//\t\n\t\t//\tdatalogLocal.add(localrewriter.rewrite(o));\n\t\t//\t//System.out.println(datalogLocal.getLast().getStatements().size());\n\t\t//}\n\t\t\t\t\n\t\tlong endTime = System.currentTimeMillis();\n\t\trewritingTime = endTime - startTime;\n\n\t\t//System.out.println(\"Rewriting completed in \" + rewritingTime + \" ms.\");\n\t\t//System.out.println(datalogGlobal.getStatements().size());\n\t\t\n\t\t//Compute CKR Program.\n\t\tdatalogCKR = new DLProgram();\n\t\n\t\tdatalogCKR.addAll(datalogGlobal.getStatements());\n\t\tfor (DLProgram dlProgram : datalogLocal) {\n\t\t\tdatalogCKR.addAll(dlProgram.getStatements());\t\n\t\t}\n\t\t//Add local inference rules.\n\t\tdatalogCKR.addAll(DeductionRuleset.getPloc());\n\t\t//Add local propagation rules.\n\t\tdatalogCKR.addAll(DeductionRuleset.getPd());\n\t\t\n\t\t//StringReader reader = new StringReader(\"hasModule(X,Y) :- triple(X, \\\"hasModule\\\", Y, \\\"g\\\").\");\n\t\t//DLProgramParser dlProgramParser = new DLProgramParser(reader);\n\t\t//try {\n\t\t//\tdatalogCKR.addAll(dlProgramParser.program().getStatements());\n\t\t//} catch (ParseException e) {\n\t\t//\te.printStackTrace();\n\t\t//}\n\t}",
"public ListOfOnixElement<ResourceFileFeatureDescription, String> resourceFileFeatureDescriptions() {\n _initialize();\n return resourceFileFeatureDescriptions;\n }",
"private void generalFeatureExtraction () {\n Logger.log(\"Counting how many calls each method does\");\n Chain<SootClass> classes = Scene.v().getApplicationClasses();\n try {\n for (SootClass sclass : classes) {\n if (!isLibraryClass(sclass)) {\n System.out.println(ConsoleColors.RED_UNDERLINED + \"\\n\\n 🔍🔍 Checking invocations in \" +\n sclass.getName() + \" 🔍🔍 \" + ConsoleColors.RESET);\n List<SootMethod> methods = sclass.getMethods();\n for (SootMethod method : methods) {\n featuresMap.put(method, new Features(method));\n }\n }\n }\n } catch (Exception e) { \n }\n System.out.println(\"\\n\");\n }",
"public interface RootFeature extends AbstractFeature {\n}",
"@Override\n\tpublic void show() {\n\t\tif (featureList != null && featureList.getName() != null && featureList.getName().contains(\"eclipse\")) {\n\n\t\t\t// TODO improve getting this resource\n\t\t\tIResource res = EMFUtils\n\t\t\t\t\t.getIResource(adaptedModel.getOwnedAdaptedArtefacts().get(0).getArtefact().eResource());\n\t\t\tFile artefactModelFile = WorkbenchUtils.getFileFromIResource(res);\n\n\t\t\t// create folder\n\t\t\tFile results = new File(artefactModelFile.getParentFile(), \"benchmark_results\");\n\t\t\tresults.mkdir();\n\n\t\t\tIFeatureLocation algoUsed = FeatureLocationHelper.getSelectedFeatureLocation();\n\t\t\tFile currentResults = new File(results,\n\t\t\t\t\talgoUsed.getClass().getSimpleName() + \"_\" + System.currentTimeMillis());\n\t\t\tcurrentResults.mkdir();\n\n\t\t\tFile flocationsFolder = new File(currentResults, \"retrievedFeatureLocations\");\n\t\t\tflocationsFolder.mkdir();\n\n\t\t\t// put the calculated feature locations in one file per feature\n\t\t\tfor (Feature feature : featureList.getOwnedFeatures()) {\n\t\t\t\tStringBuilder text = new StringBuilder();\n\t\t\t\tFile file = new File(flocationsFolder, feature.getId() + \".txt\");\n\n\t\t\t\tList<LocatedFeature> locatedFeatures = LocatedFeaturesManager.getLocatedFeatures();\n\n\t\t\t\t// Add plugins of whole blocks\n\t\t\t\tList<Block> blocks = LocatedFeaturesUtils.getBlocksOfFeature(locatedFeatures, feature);\n\t\t\t\tfor (Block b : blocks) {\n\t\t\t\t\tfor (BlockElement be : b.getOwnedBlockElements()) {\n\t\t\t\t\t\tObject o = be.getElementWrappers().get(0).getElement();\n\t\t\t\t\t\tif (o instanceof PluginElement) {\n\t\t\t\t\t\t\ttext.append(((PluginElement) o).getSymbName() + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Add plugins\n\t\t\t\tList<IElement> plugins = LocatedFeaturesUtils.getElementsOfFeature(locatedFeatures, feature);\n\t\t\t\tfor (IElement element : plugins) {\n\t\t\t\t\tif (element instanceof PluginElement) {\n\t\t\t\t\t\ttext.append(((PluginElement) element).getSymbName() + \"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// remove last \\n\n\t\t\t\tif (text.length() > 0) {\n\t\t\t\t\ttext.setLength(text.length() - 1);\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tFileUtils.writeFile(file, text.toString());\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\n\t\t\t// Create precision and recall file\n\t\t\tFile actualFeatures = new File(artefactModelFile.getParentFile(), \"benchmark/actualFeatures\");\n\t\t\tif (actualFeatures.exists()) {\n\t\t\t\tString content = PrecisionRecall.createResultsFile(actualFeatures, flocationsFolder);\n\t\t\t\ttry {\n\t\t\t\t\tFileUtils.writeFile(new File(currentResults, \"metrics.csv\"), content);\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\n\t\t\t// Create time measures file\n\t\t\tStringBuilder text = new StringBuilder();\n\t\t\tfor (Entry<String, Long> entry : AdaptedModelManager.getElapsedTimeRegistry().entrySet()) {\n\t\t\t\ttext.append(entry.getKey() + \";\" + entry.getValue() + \"\\n\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tFileUtils.writeFile(new File(currentResults, \"timeMeasures.csv\"), text.toString());\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\t// Refresh\n\t\t\tWorkbenchUtils.refreshIResource(res.getParent());\n\t\t}\n\t}",
"public void createFile(){\r\n JFileChooser chooser = new JFileChooser();\r\n chooser.setAcceptAllFileFilterUsed(false);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Only XML Files\", \"xml\");\r\n chooser.addChoosableFileFilter(filter);\r\n chooser.showSaveDialog(null);\r\n File f = chooser.getSelectedFile();\r\n if (!f.getName().endsWith(\".xml\")){\r\n f = new File(f.getAbsolutePath().concat(\".xml\"));\r\n }\r\n try {\r\n BufferedWriter bw = new BufferedWriter(new FileWriter(f));\r\n try (PrintWriter pw = new PrintWriter(bw)) {\r\n pw.println(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\r\n pw.println(\"<osm>\");\r\n for (Node node : this.getListNodes()) {\r\n if(node.getType() == TypeNode.INCENDIE){\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" intensity=\\\"\"+node.getFire()+\"\\\" />\");\r\n } else {\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" />\");\r\n }\r\n }\r\n for (Edge edge : this.getListEdges()) {\r\n pw.println(\" <edge nd1=\\\"\"+edge.getNode1().getId()+\"\\\" nd2=\\\"\"+edge.getNode2().getId()+\"\\\" type=\\\"\"+edge.getType()+\"\\\" />\");\r\n }\r\n pw.println(\"</osm>\");\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Writing Error : \" + e.getMessage());\r\n }\r\n }",
"public static HashSet<org.cidarlab.raven.datastructures.Part> phoenixFeaturesToRavenParts(List<Feature> features) {\n \n HashSet<org.cidarlab.raven.datastructures.Part> ravenParts = new HashSet();\n \n //For each module, make a Raven blank basic part\n for (Feature f : features) { \n if (!f.getRole().equals(Feature.FeatureRole.VECTOR)) {\n \n String name = f.getName().replaceAll(\".ref\", \"\");\n String type = f.getRole().toString().toLowerCase();\n if (type.contains(\"cds\")) {\n if (type.contains(\"fluorescent\")) {\n type = \"reporter\";\n } else {\n type = \"gene\";\n }\n } else if (type.contains(\"promoter\")) {\n type = \"promoter\";\n }\n String sequence = f.getSequence().getSequence();\n \n ArrayList<String> dirF = new ArrayList();\n dirF.add(\"+\");\n ArrayList<String> dirR = new ArrayList();\n dirR.add(\"-\");\n ArrayList<String> typeL = new ArrayList();\n typeL.add(type);\n \n //Forward version\n org.cidarlab.raven.datastructures.Part newBasicPart = org.cidarlab.raven.datastructures.Part.generateBasic(name, sequence, null, typeL, dirF, \"\", \"\");\n newBasicPart.setTransientStatus(false);\n\n //Reverse version\n org.cidarlab.raven.datastructures.Part newReverseBasicPart = org.cidarlab.raven.datastructures.Part.generateBasic(name, PrimerDesign.reverseComplement(sequence), null, typeL, dirR, \"\", \"\");\n newReverseBasicPart.setTransientStatus(false);\n \n ravenParts.add(newBasicPart);\n ravenParts.add(newReverseBasicPart);\n }\n }\n \n return ravenParts;\n }",
"public void writeFavorites() {\n ArrayList<String> favorites = new ArrayList<>();\n for(Landmark landmark : landmarks.getFavorites()) {\n favorites.add(landmark.toStringForOutput());\n }\n FileManager.writeLines(favoritesPath, favorites);\n }",
"public void genTestSeq(String path){\n\t\tFeature documents = new Feature();\r\n\t\tdocuments.setName(\"Documents\");\r\n\t\tdocuments.setFeatureType(FeatureType.Mandatory);\r\n\t\t\r\n\t\tFeature video = new Feature();\r\n\t\tvideo.setName(\"Video\");\r\n\t\tvideo.setFeatureType(FeatureType.Optional);\r\n\t\tvideo.setFatherFeature(documents);\r\n\t\t\r\n\t\tFeature image = new Feature();\r\n\t\timage.setName(\"Image\");\r\n\t\timage.setFeatureType(FeatureType.Optional);\r\n\t\timage.setFatherFeature(documents);\r\n\t\t\r\n\t\tFeature text = new Feature();\r\n\t\ttext.setName(\"Text\");\r\n\t\ttext.setFeatureType(FeatureType.Mandatory);\r\n\t\ttext.setFatherFeature(documents);\r\n\t\r\n\t\tFeature showEvents = new Feature();\r\n\t\tshowEvents.setName(\"ShowEvents\");\r\n\t\tshowEvents.setFeatureType(FeatureType.Mandatory);\t\t\r\n\t\t\r\n\t\tFeature allEvents = new Feature();\r\n\t\tallEvents.setName(\"allEvents\");\r\n\t\tallEvents.setFeatureType(FeatureType.Group);\r\n\t\tallEvents.setFatherFeature(showEvents);\r\n\t\t\r\n\t\tFeature current = new Feature();\r\n\t\tcurrent.setName(\"current\");\r\n\t\tcurrent.setFeatureType(FeatureType.Group);\r\n\t\tcurrent.setFatherFeature(showEvents);\r\n\t\t\r\n\t\tFeatureGroup eventsGroup = new FeatureGroup();\r\n\t\teventsGroup.append(allEvents);\r\n\t\teventsGroup.append(current);\r\n\t\teventsGroup.setGroupType(FeatureGroupType.OR_Group);\r\n\t\t\r\n\t\t//DSPL\r\n\t\tDSPL mobilineDspl = new DSPL();\r\n\t\t\t//DSPL features\r\n\t\tmobilineDspl.getFeatures().add(text);\r\n\t\tmobilineDspl.getFeatures().add(video);\r\n\t\tmobilineDspl.getFeatures().add(image);\r\n\t\tmobilineDspl.getFeatures().add(documents);\r\n\t\tmobilineDspl.getFeatures().add(showEvents);\r\n\t\tmobilineDspl.getFeatures().add(current);\r\n\t\tmobilineDspl.getFeatures().add(allEvents);\r\n\t\t\t\r\n\t\t\t//DSPL Initial Configuration - mandatory features and from group features\r\n\t\tmobilineDspl.getInitialConfiguration().add(documents);\r\n\t\tmobilineDspl.getInitialConfiguration().add(text);\r\n\t\tmobilineDspl.getInitialConfiguration().add(image);\r\n\t\tmobilineDspl.getInitialConfiguration().add(video);\r\n\t\tmobilineDspl.getInitialConfiguration().add(showEvents);\r\n\t\tmobilineDspl.getInitialConfiguration().add(allEvents);\r\n\t\t\t//DSPL Feature Groups\r\n\t\tmobilineDspl.getFeatureGroups().add(eventsGroup);\t\t\r\n\t\t\r\n\t\t\r\n\t\t//--------------------------> CONTEXT MODEL <-------------------/\r\n\t\t//GETS FROM FIXTURE\r\n\t\t\r\n\t\t//Context Root\r\n\t\tContextFeature root = new ContextFeature(\"Root Context\");\r\n\t\t\r\n\t\t// Context Propositions\r\n\t\tContextFeature isBtFull = new ContextFeature(\"BtFull\");\r\n\t\tisBtFull.setContextType(ContextType.Group);\r\n\t\tContextFeature isBtNormal = new ContextFeature(\"BtNormal\");\r\n\t\tisBtNormal.setContextType(ContextType.Group);\r\n\t\tContextFeature isBtLow = new ContextFeature(\"BtLow\");\r\n\t\tisBtLow.setContextType(ContextType.Group);\r\n\t\tContextFeature slowNetwork = new ContextFeature(\"slowNetwork\");\r\n\t\tslowNetwork.setContextType(ContextType.Optional);\t\t\r\n\t\t\r\n\t\t//Context Groups\r\n\t\tContextGroup battery = new ContextGroup(\"Baterry\");\r\n\t\tbattery.setType(ContextGroupType.XOR);\r\n\t\tbattery.append(isBtFull);\r\n\t\tbattery.append(isBtNormal);\r\n\t\tbattery.append(isBtLow);\t\t\r\n\t\t\r\n\t\tContextGroup network = new ContextGroup(\"Network\"); // To the interleaving testing\r\n\t\tnetwork.setType(ContextGroupType.NONE);\r\n\t\tnetwork.append(slowNetwork);\t\t\r\n\t\t\r\n\t\t// Adaptation Rules\r\n\t\t\r\n\t\t//Adaptation Rule isBtLow => Video off, Image off\r\n\t\tAdaptationRuleWithCtxFeature rule1 = new AdaptationRuleWithCtxFeature();\r\n\t\tLinkedList<ContextFeature> contextTrigger1 = new LinkedList<ContextFeature>();\r\n\t\tcontextTrigger1.add(isBtLow);\r\n\t\trule1.setContextRequired(contextTrigger1);\r\n\t\t\r\n\t\tLinkedList<Feature> toDeactiveFeatures1 = new LinkedList<Feature>();\r\n\t\ttoDeactiveFeatures1.add(image);\r\n\t\ttoDeactiveFeatures1.add(video);\r\n\t\trule1.setToDeactiveFeatureList(toDeactiveFeatures1);\r\n\t\t\t\r\n\t\t//Adaptation Rule isBtNormal => Video off, Image on\r\n\t\tAdaptationRuleWithCtxFeature rule3 = new AdaptationRuleWithCtxFeature();\r\n\t\tLinkedList<ContextFeature> contextTrigger3 = new LinkedList<ContextFeature>();\r\n\t\tcontextTrigger3.add(isBtNormal);\t\t\r\n\t\trule3.setContextRequired(contextTrigger3);\r\n\t\t\r\n\t\tLinkedList<Feature> toActiveFeature3 = new LinkedList<Feature>();\r\n\t\ttoActiveFeature3.add(image);\r\n\t\trule3.setToActiveFeatureList(toActiveFeature3);\r\n\t\t\r\n\t\tLinkedList<Feature> toDeactiveFeatures3 = new LinkedList<Feature>();\r\n\t\ttoDeactiveFeatures3.add(video);\r\n\t\trule3.setToDeactiveFeatureList(toDeactiveFeatures3);\r\n\t\t\r\n\t\t//Adaptation Rule isBtFull => Video on, Image on\r\n\t\tAdaptationRuleWithCtxFeature rule5 = new AdaptationRuleWithCtxFeature();\r\n\t\tLinkedList<ContextFeature> contextTrigger5 = new LinkedList<ContextFeature>();\r\n\t\tcontextTrigger5.add(isBtFull);\t\t\r\n\t\trule5.setContextRequired(contextTrigger5);\r\n\t\t\r\n\t\tLinkedList<Feature> toActiveFeature5 = new LinkedList<Feature>();\r\n\t\ttoActiveFeature5.add(image);\r\n\t\ttoActiveFeature5.add(video);\r\n\t\trule5.setToActiveFeatureList(toActiveFeature5);\r\n\t\t\r\n\t\t//Adaptation Rule SlowNetwork => allEvents off\r\n\t\tAdaptationRuleWithCtxFeature rule6 = new AdaptationRuleWithCtxFeature();\r\n\t\tLinkedList<ContextFeature> contextTrigger6 = new LinkedList<ContextFeature>();\r\n\t\tcontextTrigger6.add(slowNetwork);\t\t\r\n\t\trule6.setContextRequired(contextTrigger6);\r\n\t\t\r\n\t\tLinkedList<Feature> toDeactiveFeature6 = new LinkedList<Feature>();\r\n\t\ttoDeactiveFeature6.add(allEvents);\t\t\r\n\t\trule6.setToDeactiveFeatureList(toDeactiveFeature6);\r\n\t\t\r\n\t\t// COMO é um OR, se ele desativou o outro, automaticamente ele ativa esse\r\n\t\tLinkedList<Feature> toActiveFeature6 = new LinkedList<Feature>();\r\n\t\ttoActiveFeature6.add(current);\t\t\r\n\t\trule6.setToActiveFeatureList(toActiveFeature6);\r\n\t\t\r\n\t\t//Context Model\r\n\t\tCFM ctxModel = new CFM();\r\n\t\tctxModel.setContextRoot(root);\r\n\t\tctxModel.getContextGroups().add(battery);\r\n\t\tctxModel.getContextGroups().add(network);\r\n\t\tctxModel.getAdaptationRules().add(rule1);\r\n\t\tctxModel.getAdaptationRules().add(rule3);\r\n\t\tctxModel.getAdaptationRules().add(rule5);\r\n\t\tctxModel.getAdaptationRules().add(rule6);\r\n\t\r\n\t\t\r\n\t\t//--------------------------> CKS <-------------------/\r\n\t\t//GETS FROM EXCEL\r\n\t\t \r\n\t\t//Context Propositions\r\n\t\tContextProposition isBtFullProp = new ContextProposition(\"BtFull\");\r\n\t\tContextProposition isBtNormalProp = new ContextProposition(\"BtNormal\");\r\n\t\tContextProposition isBtLowProp = new ContextProposition(\"BtLow\");\r\n\t\tContextProposition slowNetWork = new ContextProposition(\"slowNetwork\");\r\n\t\t\r\n\t\t//Context Constraint\r\n\t\tContextConstraint batteryLevel = new ContextConstraint();\r\n\t\tbatteryLevel.getContextPropositionsList().add(isBtFullProp);\r\n\t\tbatteryLevel.getContextPropositionsList().add(isBtNormalProp);\r\n\t\tbatteryLevel.getContextPropositionsList().add(isBtLowProp);\r\n\t\t\r\n\t\t//Context States\r\n\t\t// S0\r\n\t\tNode_CKS ctxSt0 = new Node_CKS();\r\n\t\tctxSt0.getAtiveContextPropositions().add(isBtFullProp);\r\n\t\tctxSt0.setId(0);\r\n\t\t\r\n\t\t// S1\r\n\t\tNode_CKS ctxSt1 = new Node_CKS();\r\n\t\tctxSt1.getAtiveContextPropositions().add(isBtFullProp);\r\n\t\tctxSt1.getAtiveContextPropositions().add(slowNetWork);\r\n\t\tctxSt1.setId(1);\r\n\t\t\r\n\t\t// S2\r\n\t\tNode_CKS ctxSt2 = new Node_CKS();\r\n\t\tctxSt2.getAtiveContextPropositions().add(isBtNormalProp);\r\n\t\t\r\n\t\tctxSt2.setId(2);\r\n\t\t\r\n\t\t// S3\r\n\t\tNode_CKS ctxSt3 = new Node_CKS();\r\n\t\tctxSt3.getAtiveContextPropositions().add(isBtNormalProp);\r\n\t\tctxSt3.getAtiveContextPropositions().add(slowNetWork);\r\n\t\tctxSt3.setId(3);\r\n\t\t\r\n\t\t// S4\r\n\t\tNode_CKS ctxSt4 = new Node_CKS();\r\n\t\tctxSt4.getAtiveContextPropositions().add(isBtLowProp);\r\n\t\tctxSt4.setId(4);\r\n\t\t\r\n\t\t//S5\r\n\t\tNode_CKS ctxSt5 = new Node_CKS();\r\n\t\tctxSt5.getAtiveContextPropositions().add(isBtLowProp);\r\n\t\tctxSt5.getAtiveContextPropositions().add(slowNetWork);\t\t\t\t\r\n\t\tctxSt5.setId(5);\r\n\r\n\t\t// Transition Relation R (CKS)\r\n\t\tctxSt0.addNextState(ctxSt1); //F -> F + S \r\n\t\tctxSt0.addNextState(ctxSt2); //F -> N\r\n\t\tctxSt1.addNextState(ctxSt0); //F + S -> F\r\n\t\tctxSt1.addNextState(ctxSt3); //F + S -> N + S\r\n\t\tctxSt2.addNextState(ctxSt3); //N -> N + S\r\n\t\tctxSt2.addNextState(ctxSt4); //N -> L\r\n\t\tctxSt3.addNextState(ctxSt2); //N + S -> N\r\n\t\tctxSt3.addNextState(ctxSt5); //N + S -> L + S\r\n\t\tctxSt4.addNextState(ctxSt5); //L -> Ls + S \r\n\t\tctxSt5.addNextState(ctxSt4); //L + S -> L\r\n\t\t\t\r\n\t\tGraph_CKS cksGraph = new Graph_CKS();\r\n\t\tcksGraph.getNodes().add(ctxSt0);\r\n\t\tcksGraph.getNodes().add(ctxSt1);\r\n\t\tcksGraph.getNodes().add(ctxSt2);\r\n\t\tcksGraph.getNodes().add(ctxSt3);\r\n\t\tcksGraph.getNodes().add(ctxSt4);\r\n\t\tcksGraph.getNodes().add(ctxSt5);\r\n\t\t\r\n\t\t\r\n\t\t/////// CODE PARA FIX!!!\r\n\t\t\t\t\t//GenerateDFTSGFromCKSG gen = new GenerateDFTSGFromCKSG(mobilineDspl, ctxModel, cksGraph);\r\n\t\t\t\t\t//it start analze by the first context state of CKS\r\n\t\t\t\t\t//gen.dephtFirstSearchGeneratingDFTSTrasitions(cksGraph.getNodes().get(0));\r\n\t\t\t\t\t//gen.printGraphDFTS();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Graph_DFTS dfts = gen.getGraph_DFTS(); //dfts\r\n\r\n\t\t//////--- To the EXP\r\n\t\tDFTS_For_Exp dftsGen = new DFTS_For_Exp();\r\n\t\tGraph_DFTS dfts = dftsGen.getMobilineExpGraph();\r\n\t\t/////-----\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C1 ]<-------------------/\r\n\t\t\r\n\t\t\r\n\t\t//[C1]: it generate the testSequence to cover ALL DFTS States\r\n\t\t TSForConfigurationCorrectness tsForCC = new TSForConfigurationCorrectness();\r\n\t\t//1.0d= 100%\r\n\t\t// from scratch \r\n\t\t //TestSequenceList testSeqList = new TestSequenceList();\r\n\t\t //TestSequence testSequence = tsForCC.generateTestSequence(dfts,0.2d);\r\n\t\t //testSeqList.add(testSequence);\r\n\t\t //printTestSequence(testSequence);\r\n\t\t //System.out.println(\"###########\");\r\n\t\t//Based on a previous one\r\n\t\t //testSequence = tsForCC.identifyMissingCases(dfts, testSequence, 1.0d);\r\n\t\t\t//printTestSequence(testSequence);\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C2 ]<-------------------/\r\n\t\t\tTSForFeatureLiveness tsFtLiv = new TSForFeatureLiveness(mobilineDspl);\r\n\t\t//1.0d= 100%\r\n\t\t// from scratch \r\n\t\t// Tem 5 features (A,B,C, Video,Image)... 0.5d > 2 (Image e Video)... 0.2d = 1 feature\r\n\t\t\t//ArrayList<TestSequence> testSeqList = tsFtLiv.generateTestSequence(dfts, 1.0d, new ArrayList<TestSequence>());\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t\t//System.out.println(\"\\n########################\\nCompleting the Test Sequence \\n ########################\");\r\n\t\t//Based on a previous one\r\n\t\t\t//testSeqList = tsFtLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C1 AND C2]<-------------------/\r\n\t\t//[C1]: it generate the testSequence to cover ALL DFTS States\r\n\t\t //TSForConfigurationCorrectness tsForCC = new TSForConfigurationCorrectness();\r\n\t\t //TestSequence testSequence = tsForCC.generateTestSequence(dfts,0.2d);\r\n\t\t // printTestSequence(testSequence);\r\n\t\t \r\n\t\t //System.out.println(\"\\n########################\\nCompleting the Test Sequence \\n ########################\");\r\n\t\t //TSForFeatureLiveness tsFtLiv = new TSForFeatureLiveness(mobilineDspl);\r\n\t\t\t// ArrayList<TestSequence> initialTestSeq = new ArrayList<TestSequence>();\r\n\t\t\t// initialTestSeq.add(testSequence);\r\n\t\t\t// ArrayList<TestSequence> testSeqList = tsFtLiv.generateTestSequence(dfts, 1.0d,initialTestSeq );\r\n\t\t\t// printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C3]<-------------------/\r\n\t\t\tTSForInterleavingCorrectness tsIntCor = new TSForInterleavingCorrectness(ctxModel);\r\n\t\t\t//1.0d= 100%\r\n\t\t\t// from scratch \r\n\t\t\t// Tem 5 features (A,B,C, Video,Image)... 0.5d > 2 (Image e Video)... 0.2d = 1 feature\r\n\t\t\t\t//ArrayList<TestSequence> testSeqList = tsIntCor.generateTestSequence(dfts, 0.0d, new ArrayList<TestSequence>());\r\n\t\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t\t//System.out.println(\"\\n########################\\nCompleting the Test Sequence \\n ########################\");\r\n\t\t\t//Based on a previous one\r\n\t\t\t\t//testSeqList = tsIntCor.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C4]<-------------------/\r\n\t\t\tTSForRuleLiveness tsRlLiv = new TSForRuleLiveness(ctxModel);\r\n\t\t//1.0d= 100%\r\n\t\t// from scratch \r\n\t\t// Tem 5 features (A,B,C, Video,Image)... 0.5d > 2 (Image e Video)... 0.2d = 1 feature\r\n\t\t\t//TestSequenceList testSeqList = tsRlLiv.generateTestSequence(dfts, 1.0d, new TestSequenceList());\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\t\r\n\t\t\t//saveTestSequenceToJson(testSeqList, \"D:/testSeq1.json\");\r\n\t\t\t\r\n\t\t//System.out.println(\"\\n########################\\nCompleting the Test Sequence \\n ########################\");\r\n\t\t//Based on a previous one\r\n\t\t\t//testSeqList = tsRlLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\t\r\n\t\t\r\n\t\t//--------------------------> TEST SEQUENCES [C5]<-------------------/\r\n\t\t\tTSForVariationLiveness tsVtLiv = new TSForVariationLiveness(mobilineDspl);\r\n\t\t//1.0d= 100%\r\n\t\t// from scratch \r\n\t\t// Tem 5 features (A,B,C, Video,Image)... 0.5d > 2 (Image e Video)... 0.2d = 1 feature\r\n\t\t\t//ArrayList<TestSequence> testSeqList = tsVtLiv.generateTestSequence(dfts, 1.0d, new ArrayList<TestSequence>());\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\t\t\r\n\t\t\t//System.out.println(\"\\n########################\\nCompleting the Test Sequence \\n ########################\");\r\n\t\t//Based on a previous one\r\n\t\t\t//testSeqList = tsVtLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\t//printTestSequenceList(testSeqList);\r\n\r\n\t\t//--------------------------> TEST SEQUENCES [ALL]<-------------------/\r\n\t\t\tTestSequenceList testSeqList = new TestSequenceList();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"########### C1 ############ \");\r\n\t\t\tTestSequence testSequence = tsForCC.generateTestSequence(dfts,1.0d);\r\n\t\t\tprintTestSequence(testSequence);\r\n\t\t\ttestSeqList.add(testSequence);\r\n\t\t \r\n\t\t System.out.println(\"########### C2 ############ \");\r\n\t\t testSeqList = tsFtLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t printTestSequenceList(testSeqList);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"########### C3 ############ \");\r\n\t\t\ttestSeqList = tsIntCor.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\tprintTestSequenceList(testSeqList);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"########### C4 ############ \");\r\n\t\t\ttestSeqList = tsRlLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\tprintTestSequenceList(testSeqList);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"########### C5 ############ \");\r\n\t\t\ttestSeqList = tsVtLiv.identifyMissingCases(dfts, testSeqList, 1.0d);\r\n\t\t\tprintTestSequenceList(testSeqList);\r\n\t\t\t\r\n\t\t\tsaveTestSequenceToJson(testSeqList, path);\t\r\n\t}",
"private String[] detectFeatures() {\n \t\t\tchangeStampIsValid = false;\n \t\t\tfeaturesChangeStampIsValid = false;\n \t\t\tparent.changeStampIsValid = false;\n \t\t\tparent.featuresChangeStampIsValid = false;\n \n \t\t\tfeatures = new ArrayList();\n \n \t\t\tif (!supportsDetection(resolvedURL))\n \t\t\t\treturn new String[0];\n \n \t\t\t// locate feature entries on site\n \t\t\tFile siteRoot = new File(resolvedURL.getFile().replace('/', File.separatorChar));\n \t\t\tFile root = new File(siteRoot, FEATURES);\n \n \t\t\tString[] list = root.list();\n \t\t\tString path;\n \t\t\tFile plugin;\n \t\t\tfor (int i = 0; list != null && i < list.length; i++) {\n \t\t\t\tpath = list[i] + File.separator + FEATURE_XML;\n \t\t\t\tplugin = new File(root, path);\n \t\t\t\tif (!plugin.exists()) {\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\tfeatures.add(FEATURES + \"/\" + path.replace(File.separatorChar, '/')); //$NON-NLS-1$\n \t\t\t}\n \t\t\tif (DEBUG) {\n \t\t\t\tdebug(resolvedURL.toString() + \" located \" + features.size() + \" feature(s)\"); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t\t}\n \n \t\t\treturn (String[]) features.toArray(new String[0]);\n \t\t}",
"@Action( ACTION_MODIFY_FEATURE )\r\n public String doModifyFeature( HttpServletRequest request )\r\n {\r\n populate( _feature, request );\r\n\r\n // Check constraints\r\n if ( !validateBean( _feature, VALIDATION_ATTRIBUTES_PREFIX ) )\r\n {\r\n return redirect( request, VIEW_MODIFY_FEATURE, PARAMETER_ID_FEATURE, _feature.getId( ) );\r\n }\r\n\r\n FeatureHome.update( _feature );\r\n addInfo( INFO_FEATURE_UPDATED, getLocale( ) );\r\n\r\n return redirectView( request, VIEW_MANAGE_FEATURES );\r\n }",
"@InputFiles\n @Incremental\n @PathSensitive(PathSensitivity.RELATIVE)\n public abstract ConfigurableFileCollection getFeatureDexFolder();",
"public void createFeatures(List<String> features, String[] tokens, int index, String[] previousOutcomes) {\n if (currentSentence != tokens) {\n currentSentence = tokens;\n if (isBilou) {\n currentEntities = dictionary.getBilouDictionaryMatch(tokens);\n } else {\n currentEntities = dictionary.getBioDictionaryMatch(tokens);\n }\n }\n \n String currentEntity = currentEntities.get(index);\n \n features.add(attributes.get(\"dict\") + \"=\" + currentEntity);\n features.add(attributes.get(\"dict\") + \",\" + \"w=\" + currentEntity + \",\" + tokens[index]);\n features.add(attributes.get(\"dict\") + \",w=dict\");\n if (Flags.DEBUG) {\n System.err.println(\"-> \" + tokens[index] + \": \" + attributes.get(\"dict\") + \",\" + \"w=\" + currentEntity + \",\" + tokens[index]);\n }\n }",
"@Override\n\tpublic void genLevel(File f) {\n\t\t\n\t}",
"public static void modifytext (String name) throws IOException {\n // Copy the contents of the input file and put it into the new file\n File inputF = new File(\"src/main/java/ex45/\"+ name +\".txt\");\n Path dest = inputF.toPath();\n Path src = Paths.get(\"src/main/java/ex45/exercise45_input.txt\");\n Files.copy(src, dest);\n\n // This process will replace the word 'utilize' with the word 'use'\n String utilize = new String(Files.readAllBytes(dest));\n Charset charset = StandardCharsets.UTF_8;\n utilize = utilize.replaceAll(\"utilize\", \"use\");\n Files.write(dest, utilize.getBytes(charset));\n\n System.out.print(\"Your file has been created.\");\n }",
"void downloadFeature(File file, int id) throws IOException, SQLException;",
"public static void fileManipulation(String path) {\r\n\t\t// Take all the info that found in the multiCSV function and put it in one CSVfolder\r\n\t\tMultiCSV CSVfolder=new MultiCSV();\r\n\t\tmultiCSV(path, CSVfolder) ;\r\n\t\t// Create one KML file\r\n\t\tfinalKML(CSVfolder.toKML);\r\n\t\t\r\n\t}",
"public void open(){\n try {\n output = new BufferedWriter(new FileWriter(training_path, true));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"void writeCandidatePatches(String fileIdentifier) {\n\t\tFile newfile = new File(\"dataset/patch/\"+fileIdentifier.replace(\"/\", \"_\")+\"semantic token.csv\");\n\t\ttry {\n\t\t\tFileWriter fileWrite = new FileWriter(newfile.getAbsolutePath());\n\t\t\tfor(int i=0; i<this.candidatePatchesList.size(); i++) {\n\t\t\t\tfileWrite.write(this.candidatePatchesList.get(i).toString()+\"\\n\");\n\t\t\t}\n\n\t\t\tfileWrite.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"@Classpath\n @Incremental\n public abstract ConfigurableFileCollection getFeatureJavaResourceFiles();",
"public ExteriorFeature() {\n this.exteriorFeature = \"Generic\";\n }",
"public void newDemo() {\r\n \t\t\r\n \t\tString date = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\").format(new Date());\r\n \t\tthis.fileName = this.demoFolder + this.map.replace(\".xml\", \"\") + \"_\" + date + \".r2d\";\r\n \t\ttry {\r\n \t\t\tthis.fos = (FileOutputStream)this.fileIO.writeFile(this.fileName);\r\n \t\t} catch (IOException e) {\r\n \t\t}\r\n \t\t\r\n \t\ttry {\r\n \t\t\tthis.demoParts.put(this.map + \"/\");\r\n \t\t} catch (InterruptedException e) {\r\n \t\t}\r\n \t}",
"public void generateVariants(Map<Feature, Integer> configuration,File src, File target) {\n PreprocessorAPI pp = new PreprocessorAPI();\n\n pp.setInlineIncludes(false);\n pp.setKeepIncludes(true);\n pp.setKeepDefines(true);\n\n for (Map.Entry<Feature, Integer> entry : configuration.entrySet()) {\n //TODO: one of them migth be removable since we extract the solution form the clean version\n pp.addMacro(entry.getKey().getName(),entry.getValue().toString());\n //pp.addMacro(\"SWITCH_ENABLED_\"+entry.getKey().getName(),entry.getValue().toString());\n }\n\n pp.preprocess(src, target);\n\n }",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tFile file = new File(\"demo.txt\");\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tString content = br.readLine();\n\t\t\tfr.close();\n\t\t\tString regex = \"\\\\b(\\\\w+)(?:\\\\W+\\\\1\\\\b)+\";\n\t\t\tPattern p = Pattern.compile(regex, Pattern.CASE_INSENSITIVE);\n\t\t\tMatcher m = p.matcher(content);\n\t\t\twhile(m.find())\t{\n\t\t\t\tcontent = content.replaceAll(m.group(), m.group(1));\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(file, false);\n\t\t\tfw.write(content);\n\t\t\tfw.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't open file\");\n\t\t}\n\t}",
"private static void saveToFile(ArrayList<Favourite> allFav) {\n\t\t\n\t\tBufferedWriter writer=null;\n\t\t\n\t\ttry {\n\t\t\twriter=new BufferedWriter(new FileWriter(Constants.KEY_FAV_FILE));\n\t\t\tString save=\"\";\n\t\t\tfor(Favourite f:allFav) {\n\t\t\t\tsave+=fileFormat(f);\n\t\t\t}\n\t\t\twriter.write(save);\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\n\t\t}finally{\n\t\tif(writer!=null){\n\t\t\ttry{\n\t\t\t\twriter.close();\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\n\t\n}\n\n\t\t\n\t}",
"public void setFeatureIndex(int i) {\n featureIndex = i;\n }",
"private Map<String, Feature> initializeFeatures(GameState state) {\n // initializes the features (values will be set within getFeatures)\n Map<String, Feature> features = new HashMap<>();\n\n // adds the 'global' features\n features.put(FeatureNames.RESOURCES_OWN, new Feature(FeatureNames.RESOURCES_OWN, 0, 0, 20));\n features.put(FeatureNames.RESOURCES_OPP, new Feature(FeatureNames.RESOURCES_OPP, 0, 0, 20));\n features.put(FeatureNames.GAME_TIME, new Feature(FeatureNames.GAME_TIME, 0, 0, 12000));\n features.put(FeatureNames.BIAS, new Feature(FeatureNames.BIAS, 1, 0, 1));\n\n // adds the 'per-quadrant' features\n int horizQuadLength = state.getPhysicalGameState().getWidth() / numQuadrants;\n int vertQuadLength = state.getPhysicalGameState().getHeight() / numQuadrants;\n\n int tilesPerQuadrant = horizQuadLength * vertQuadLength;\n\n // FIXME hardcoded to the HP of the base (which is the highest in microRTS)\n int maxHitPoints = 10;\n\n // the first two for traverse the quadrants\n for (int horizQuad = 0; horizQuad < numQuadrants; horizQuad++) {\n for (int vertQuad = 0; vertQuad < numQuadrants; vertQuad++) {\n\n // the third for traverses the players\n for (int player = 0; player < 2; player++) {\n String healthFeatName = FeatureNames.avgHealthPerQuad(horizQuad, vertQuad, player);\n\n features.put(healthFeatName, new Feature(healthFeatName, 0, 0, tilesPerQuadrant * maxHitPoints));\n\n // the fourth for traverses the unit types\n for (UnitType type : state.getUnitTypeTable().getUnitTypes()) {\n if (type.isResource)\n continue; // ignores resources\n String countFeatName = FeatureNames.unitsOfTypePerQuad(horizQuad, vertQuad, player, type);\n features.put(countFeatName, new Feature(countFeatName, 0, 0, tilesPerQuadrant));\n }\n }\n }\n }\n\n return features;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn fileName + \" \" + features + \" -> \" + lemma + \", \" + classification;\n\t}",
"public void setFeatureFactory(FeatureFactory featureFactory) {\n factory = featureFactory;\n }",
"private void _generate(int versions) {\n\t \n\t \n\t \n\t _generate(); //V0\n\t \n\t File[] files = new File(System.getProperty(\"user.dir\")).listFiles();\n\t Model model = ModelFactory.createDefaultModel();\n\t //model.set\n\t\tfor(File file : files){\n\t\t\tif(!file.getName().contains(\"owl\")) continue;\n\t\t\ttry{\n\t\t\t\t\n\t\t\t\tFileInputStream in = new FileInputStream(file);\n\t\t\t\tmodel.read(in, \"http://example.com\", \"RDF/XML\");\t\t\t\n\t\t\t\tin.close();\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tlong startingSize = model.size();\n\t\tmodel.close();\n\t double desSize = startingSize*(1+evoChange);\n\t int schemaEvol = (int)(strict*10);\n\t int schemaEvol2 = schemaEvol / (evoVersions-1);\n\t System.out.println(\"schema evol param: \" + schemaEvol2);\n\t int howManyDepts = (int) Math.floor(totalDeptsV0*evoChange);\n\t HashMap<Integer, String> newClasses = new HashMap<Integer, String>();\n\t for(int i = 0; i < schemaEvol; i++)\n\t\t newClasses.put(i,\"\");\n\n\t double evoChangeOriginal = evoChange;\n\t boolean pub = false, conf = false, journ = false, tech = false, \n\t\t\t book = false, thes = false, proj = false, even = false;\n\t HashMap<String, HashMap<Integer, Double>> initialWeightsMap = new HashMap<String, HashMap<Integer,Double>>();\n\t for(String key : fileWeightsMap.keySet()){\n\t\t HashMap<Integer, Double> innerClone = new HashMap<Integer, Double>();\n\t\t for(Integer innerKey : fileWeightsMap.get(key).keySet()){\n\t\t\t innerClone.put(innerKey, fileWeightsMap.get(key).get(innerKey));\n\t\t }\n\t\t initialWeightsMap.put(key, innerClone);\n\t }\n\t for(int vi = 0 ; vi < evoVersions-1; vi++){\n\t \t\n\t\t globalVersionTrigger = true;\n\t\t File dir = new File(System.getProperty(\"user.dir\")+\"/v\"+vi);\n dir.mkdirs();\n\t\t //assignFilters(classFilters);\n\t\t //System.out.println(\"current filters: \" + currentFilters.toString());\n\t \tint classForChange ;\n\t \n\t \t//the number of depts (files) to evolve, based on the defined evoChange parameter\t \n\t \n\t List<String> asList = new ArrayList<String>(fileWeightsMap.keySet());\n\t \n\t writer_log = new OwlWriter(this);\t \n writer_log.startLogFile(dir.getAbsolutePath()+\"/changes.rdf\");\n writer_log.start();\n\t for(int d = 0 ; d < howManyDepts ; d++){\n\t \t\n\t \t//System.out.println(\"aslist: \" + asList.size());\n\t \tif(asList.size() == 0) break;\n\t String randomFile = asList.get(random_.nextInt(asList.size()));\n\t instances_ = fileInstanceMap.get(randomFile);\n\t \n\t asList.remove(randomFile);\n\t \t\n\t //System.out.println(\"Selected file: \" + randomFile);\n\t writer_ = new OwlWriter(this);\n\t \n\t writer_.startFile(dir.getAbsolutePath()+\"/\"+randomFile);\n\t writer_.start();\n\t for(Integer nextClass : fileWeightsMap.get(randomFile).keySet()){\n\t \t\n\t \tclassForChange = nextClass;\n\t \t\n\t \tif(classForChange < 2) {\n\t \t\t\tcontinue;\n\t \t}\n\t \t\n\t \tif(classForChange == 4) continue;\n\t \tint totalIter = (int) Math.floor(2*initialWeightsMap.get(randomFile).get(classForChange))/howManyDepts;\n\t \t\n\t for(int i = 0; i < totalIter ; i++){\n\t \t\n\t \t_generateASection(classForChange, \n\t \t\t\tinstances_[classForChange].count ); \t \t\t\t\n\t }\n\t \n\t if(nextClass == 21 ){\n\t \twriter_log.addTypeClass(ontology+\"WebCourse\");\n\t \twriter_log.addSuperClass(ontology+\"WebCourse\", ontology+\"Course\");\n\t }\n\t else if(nextClass == 20 ){\n\t \twriter_log.addTypeClass(ontology+\"VisitingStudent\");\n\t \twriter_log.addSuperClass(ontology+\"VisitingStudent\", ontology+\"Student\");\n\t }\n\t else if(nextClass == 19 ){\n\t \twriter_log.addTypeClass(ontology+\"VisitingProfessor\");\n\t \twriter_log.addSuperClass(ontology+\"VisitingProfessor\", ontology+\"Professor\");\n\t }\n\t \n\t }\n\t \n\t for(int k = 0; k < schemaEvol2+1; k++){\n\t \t\n\t \tif(newClasses.isEmpty()) break;\n\t \tint newClass = _getRandomFromRange(0, newClasses.keySet().size()+1);\n\t \tint index = 0;\n\t \tfor(Integer s : newClasses.keySet()){\n\t \t\tif(index == newClass){\n\t \t\t\tnewClass = s;\n\t \t\t\tbreak;\n\t \t\t}\n\t \t\tindex++;\n\t \t}\n\t \t/*if(newClass == 1){\n\t \t_generatePublications();\n\t \tnewClasses.remove(newClass);\n\t }*/\n\t if(newClass == 2){\n\t \t_generateConferencePublications();\n\t \tnewClasses.remove(newClass);\n\t \twriter_log.addTypeClass(ontology+\"ConferencePublication\");\n\t \twriter_log.addSuperClass(ontology+\"ConferencePublication\", ontology+\"Publication\");\n\t }\n\t if(newClass == 3){\n\t \t_generateJournalPublications();\n\t \tnewClasses.remove(newClass);\n\t \twriter_log.addTypeClass(ontology+\"JournalArticle\");\n\t \twriter_log.addSuperClass(ontology+\"JournalArticle\", ontology+\"Publication\");\n\t }\n\t if(newClass == 4 ){\n\t \t_generateTechnicalReports();\n\t \tnewClasses.remove(newClass);\n\t \twriter_log.addTypeClass(ontology+\"TechnicalReport\");\n\t \twriter_log.addSuperClass(ontology+\"TechnicalReport\", ontology+\"Publication\");\n\t }\n\t if(newClass == 5 ){\n\t \t_generateBooks();\n\t \tnewClasses.remove(newClass);\n\t \twriter_log.addTypeClass(ontology+\"Book\");\n\t \twriter_log.addSuperClass(ontology+\"Book\", ontology+\"Publication\");\n\t }\n\t if(newClass == 6 ){\n\t \t_generateThesis();\n\t \tnewClasses.remove(newClass);\n\t \twriter_log.addTypeClass(ontology+\"Thesis\");\n\t \twriter_log.addSuperClass(ontology+\"Thesis\", ontology+\"Publication\");\n\t }\n\t if(newClass == 7 ){\n\t \t_generateProjects();\n\t \tnewClasses.remove(newClass);\n\t \twriter_log.addTypeClass(ontology+\"Project\");\n\t }\n\t if(newClass == 8){\n\t \t_generateEvents();\n\t \tnewClasses.remove(newClass);\n\t \twriter_log.addTypeClass(ontology+\"Event\");\n\t }\n\t }\n\t \n\t writer_.end();\n\t writer_.endFile();\n\t //correction\n\t //remainingUnderCourses_.\n\t remainingUnderCourses_.clear();\n\t \n\t for (int i = 0; i < UNDER_COURSE_NUM + (int) (UNDER_COURSE_NUM*evoChange); i++) {\n\t remainingUnderCourses_.add(new Integer(i));\n\t }\n\t remainingGradCourses_.clear();\n\t for (int i = 0; i < GRAD_COURSE_NUM + (int) (GRAD_COURSE_NUM*evoChange); i++) {\n\t remainingGradCourses_.add(new Integer(i));\n\t }\n\t remainingWebCourses_.clear();\n\t for (int i = 0; i < WEB_COURSE_NUM + (int) (WEB_COURSE_NUM*evoChange); i++) {\n\t remainingWebCourses_.add(new Integer(i));\n\t }\n\t \n\t assignWeights(randomFile);\t \t \n\t \n\t }\t\n\t evoChange = evoChange + evoVersions*evoChangeOriginal*evoChangeOriginal;\n\t \n\t writer_log.end();\n\t writer_log.endLogFile();\n\t \n\t \t\n\t }\n\t \n\t \n }",
"public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }",
"public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }"
] |
[
"0.5890244",
"0.5755947",
"0.57041776",
"0.5682587",
"0.5536273",
"0.5534995",
"0.5534995",
"0.54235005",
"0.5299511",
"0.52634543",
"0.52352995",
"0.5228332",
"0.5209525",
"0.5208198",
"0.51768476",
"0.5163388",
"0.5163388",
"0.51522946",
"0.5131296",
"0.51238096",
"0.5078779",
"0.5076766",
"0.50681216",
"0.50675637",
"0.5037951",
"0.50266355",
"0.5022611",
"0.50219476",
"0.49819583",
"0.49642047",
"0.49626908",
"0.49582273",
"0.49419686",
"0.49335232",
"0.49271917",
"0.49070922",
"0.49037707",
"0.490362",
"0.48928872",
"0.48906314",
"0.48896164",
"0.48820817",
"0.48634014",
"0.48575813",
"0.48437044",
"0.48407593",
"0.48350367",
"0.4826724",
"0.48260373",
"0.48226282",
"0.48076883",
"0.4782184",
"0.47775295",
"0.47758487",
"0.47757614",
"0.47617555",
"0.47553203",
"0.47484368",
"0.47447854",
"0.47412398",
"0.47353065",
"0.4718446",
"0.4711817",
"0.47097626",
"0.46836522",
"0.4677029",
"0.46611008",
"0.46536613",
"0.4652027",
"0.46461663",
"0.4645442",
"0.4641826",
"0.46379915",
"0.46369523",
"0.4629318",
"0.4625299",
"0.46222377",
"0.461692",
"0.4607972",
"0.4607367",
"0.46071494",
"0.46065262",
"0.46060273",
"0.4599973",
"0.45948303",
"0.4585306",
"0.4581517",
"0.4574737",
"0.45715266",
"0.4568413",
"0.4567918",
"0.4565585",
"0.4563835",
"0.45604587",
"0.45596945",
"0.45559114",
"0.45376498",
"0.4534662",
"0.45341605",
"0.45341605"
] |
0.63335246
|
0
|
delete the feature in place if it exists
|
public static void deleteFeature(Feature feature, String allFeaturesFilePath, Project project) throws IOException {
FileReader r = new FileReader(allFeaturesFilePath);
CSVParser parser = new CSVParser(r);
List<CSVRecord> records = parser.getRecords();
r.close();
List<Feature> features = new ArrayList<Feature>();
int size = records.size();
for(int i = 1; i < size; i++){
CSVRecord rec = records.get(i);
String featureName = rec.get(0).trim();
if (!featureName.equals(feature.getName())) {
String functionName = rec.get(1).trim();
String attr1Name = rec.get(2).trim();
String attr1Type = rec.get(3).trim();
String attr2Name = rec.get(4).trim();
String attr2Type = rec.get(5).trim();
String projectName = project.getName();
Function function = project.findFunctionByName(functionName);
Attribute attribute1 = new Attribute(attr1Name, Attribute.Type.valueOf(attr1Type));
Attribute attribute2 = new Attribute(attr2Name, Attribute.Type.valueOf(attr2Type));
Feature f = new Feature(featureName, function, projectName, attribute1, attribute2);
features.add(f);
}
}
// save all the features
saveAllFeatures(features, allFeaturesFilePath);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean removeFeature(Feature feature);",
"void deleteFeature(Integer id);",
"Feature removeFeature(int index);",
"Feature delete(Long featureId);",
"private void deleteFeature(final SimpleFeature feature ) {\n\n\n try {\n //Deletes only if the target is equal to the layer to clip\n if(this.layerToClip.equals(this.targetLayer)){\n FidFilter filter = FILTER_FACTORY.createFidFilter(feature.getID());\n FeatureStore<SimpleFeatureType, SimpleFeature> store = getTargetStore();\n store.removeFeatures(filter);\n }\n\n } catch (IOException e) {\n final String msg = Messages.ClipProcess_failed_deleting;\n LOGGER.severe(msg);\n throw (RuntimeException) new RuntimeException(msg).initCause( e );\n }\n\n }",
"void removeFeature(int i);",
"void removeFeature(int i);",
"public void removeFeature(Feature f)\n throws ChangeVetoException, BioException;",
"public void removeFeature(Feature feature) {\n rows.removeElement(feature);\n }",
"protected void removeFromIndex(SimpleFeature feature) {\n\t\tif (feature==null) return;\n\t\t\n\t\t// ID Index\n\t\tidIndex.remove( feature.getID() );\n\t\t\n\t\t// Type name index\n\t\tName type = feature.getType().getName();\n\t\tSet<SimpleFeature> prev = typeNameIndex.get(type);\n\t\tif ( prev.remove( feature ) ) {\n\t\t\tif (prev.size()>0) {\n\t\t\t\ttypeNameIndex.put(type,prev);\n\t\t\t} else {\n\t\t\t\ttypeNameIndex.remove(type);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Tile Index\n\t\tif (feature.getID().matches(\".*-[0-9]+-[0-9]+-[0-9]+\")) {\n\t\t\tOSMTile tile = new OSMTile(feature.getID());\n\t\t\tprev = tileIndex.get( tile );\n\t\t\tif ( prev.remove( feature ) ) {\n\t\t\t\tif (prev.size()>0) {\n\t\t\t\t\ttileIndex.put(tile, prev);\n\t\t\t\t} else {\n\t\t\t\t\ttileIndex.remove(type);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// Whatever for features\n\t\t}\n\t}",
"@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}",
"void clearFeatures();",
"public static void delete(int id) {\r\n\t\tString IdColumnName = \"feature_id\";\r\n\t\toperation.removeRow(\"FEATURE\", IdColumnName, id);\r\n\t}",
"public void remove(Feature f){\n if (debug) logger.info(\"feature removed\");\n int row = fc.indexOf(f);\n fc.remove(f);\n fcLastEdits.clear();\n fcLastEdits.add(f);\n lastEditType = EDIT_REMOVE;\n fireTableRowsDeleted(row,row);\n }",
"public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$6, i);\r\n }\r\n }",
"public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$6, i);\r\n }\r\n }",
"public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FEATURE$14, i);\r\n }\r\n }",
"public void removeFeatures(Feature[] features) {\n //TODO: remove the features\n }",
"@Action( ACTION_REMOVE_FEATURE )\r\n public String doRemoveFeature( HttpServletRequest request )\r\n {\r\n int nId = Integer.parseInt( request.getParameter( PARAMETER_ID_FEATURE ) );\r\n FeatureHome.remove( nId );\r\n addInfo( INFO_FEATURE_REMOVED, getLocale( ) );\r\n\r\n return redirectView( request, VIEW_MANAGE_FEATURES );\r\n }",
"@Test\n public void deleteFeatureFlagTest() throws ApiException {\n String projectKey = null;\n String featureFlagKey = null;\n api.deleteFeatureFlag(projectKey, featureFlagKey);\n\n // TODO: test validations\n }",
"public void undoAction() {\n classifier.removeFeature(operation);\n }",
"public void removeFromfeatures (org.unitime.timetable.model.RoomFeature roomFeature) {\n \t\tif (null == getFeatures()) \n \t\t\tsetFeatures(new java.util.HashSet());\n \t\tgetFeatures().remove(roomFeature);\n \t}",
"public void removeFeatures(Extent ex) {\n //TODO: remove the features\n }",
"boolean removeTypedFeature(StructuralFeature typedFeature);",
"void removePlanFeature(int i);",
"@RequestLine(\"DELETE /v1/courses/{courseId}/features/flags/{feature}\")\n @Headers({\n \"Content-Type: application/json\",\n \"Accept: application/json\",\n })\n FeatureFlag removeFeatureFlagCourses(@Param(\"courseId\") String courseId, @Param(\"feature\") String feature);",
"@RequestLine(\"DELETE /v1/accounts/{accountId}/features/flags/{feature}\")\n @Headers({\n \"Content-Type: application/json\",\n \"Accept: application/json\",\n })\n FeatureFlag removeFeatureFlagAccounts(@Param(\"accountId\") String accountId, @Param(\"feature\") String feature);",
"void removeFeature(FriendPresence friendPresence);",
"public void clearFeatures() {\n localFeatureVector.clear();\n }",
"@RequestLine(\"DELETE /v1/users/{userId}/features/flags/{feature}\")\n @Headers({\n \"Content-Type: application/json\",\n \"Accept: application/json\",\n })\n FeatureFlag removeFeatureFlagUsers(@Param(\"userId\") String userId, @Param(\"feature\") String feature);",
"@RequestMapping(value = {\"/deleteFeature/fromContract-{featureId}\"}, method = RequestMethod.GET)\n public String deleteFeatureFromContract(@PathVariable Integer featureId,\n ModelMap model, HttpSession session) {\n Contract contract = (Contract) session.getAttribute(\"contract\");\n Feature featureToDelete = featureService.findById(featureId);\n List<Feature> features = featureService.findFeatureByContract(contract.getContractId());\n List<Contract> featureContracts = featureToDelete.getFeatureContracts();\n int index = features.indexOf(featureToDelete);\n features.remove(index);\n featureContracts.remove(contract);\n featureService.update(featureToDelete);\n contractService.update(contract);\n model.addAttribute(\"features\", features);\n model.addAttribute(\"loggedinuser\", getPrincipal());\n return \"contractFeatures\";\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic void onDeleteFeatures(ControllerEvent event) {\n\n\t\tList<String> ids = (List<String>) event.getParams().get(\"featureIds\");\n\t\tif (ids.size() > 0) {\n\t\t\t((AnderProbleem) object.getProbleem()).setGeom(null);\n\t\t}\n\t}",
"public void removeUsedFeature(final String name) {\n \t final List<Element> elementsToRemove = new LinkedList<Element>();\n for (final Element child : manifestElement.getChildren(ELEMENT_USES_FEATURE)) {\n if (name.equals(child.getAttributeValue(ATTRIBUTE_NAME))) {\n elementsToRemove.add(child);\n }\n }\n\n for (final Element element : elementsToRemove) {\n removeElementAndPrefix(element);\n }\n }",
"void clearTypedFeatures();",
"abstract public void deleteAfterBetaReduction();",
"@Override\n\tpublic void delete(Facture y) {\n\t\t\n\t}",
"private void delete() {\n\n\t}",
"int deleteByExample(RepStuLearningExample example);",
"public int deleteByPrimaryKey(Integer id) throws SQLException {\r\n\t\tElemFeature key = new ElemFeature();\r\n\t\tkey.setId(id);\r\n\t\tint rows = getSqlMapClientTemplate().delete(\r\n\t\t\t\t\"cementerio_elem_feature.ibatorgenerated_deleteByPrimaryKey\",\r\n\t\t\t\tkey);\r\n\t\treturn rows;\r\n\t}",
"void removeHasCFD(CFD oldHasCFD);",
"public static Instances removeFeatures(Instances input_data, double[] features, int nbrFea) {\n\n\t\tInstances new_data = new Instances(input_data);\n\n\t\tint num_del_fea = 0;\n\t\t//Remove features from new_data\n\t\tfor(int i=0; i< features.length; i++){\n\t\t\tif(features[i] == 0) {\n\t\t\t\tnew_data.deleteAttributeAt(i - num_del_fea);\n\t\t\t\tnum_del_fea++;\n\t\t\t}\n\t\t}\n\t\treturn new_data;\n\t}",
"@Override\n\t\tpublic void delete() {\n\n\t\t}",
"public void resetFeatureState()\r\n {\r\n myMetaDataHandler.reset();\r\n myTimeHandler.reset();\r\n myFeatureId = 0;\r\n myFeatureColor = Color.WHITE;\r\n }",
"public void delete(){\n if (shx!=null) shx.delete();\n if (shp!=null) shp.delete();\n if (dbf!=null) dbf.delete();\n if (prj!=null) prj.delete();\n }",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove () {}",
"int deleteByExample(WfCfgModuleCatalogExample example);",
"public int deleteByExample(ElemFeatureExample example) throws SQLException {\r\n\t\tint rows = getSqlMapClientTemplate().delete(\r\n\t\t\t\t\"cementerio_elem_feature.ibatorgenerated_deleteByExample\",\r\n\t\t\t\texample);\r\n\t\treturn rows;\r\n\t}",
"private void deleteResource() {\n }",
"public ITemplateStep removeStep(ITemplateStep stepToRemove);",
"public void onDelete(Statement delete, Connection cx, SimpleFeatureType featureType) throws SQLException {\r\n }",
"void deleteTelegraf(@Nonnull final Telegraf telegraf);",
"public boolean delete();",
"Feature update(Feature feature);",
"@HTTP(\n method = \"DELETE\",\n path = \"/apis/config.openshift.io/v1/featuregates\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Status> deleteCollectionFeatureGate();",
"public void remove() {\n\n }",
"void removeHas_action(Action oldHas_action);",
"public void deleteLUC() {\r\n/* 135 */ this._has_LUC = false;\r\n/* */ }",
"public void removeFightsystem( Fightsystem fightsystem )\r\n {\n\r\n }",
"public void removeFlag()\r\n\t{\r\n\t\thasFlag = false;\r\n\t\tflag = null;\r\n\t}",
"public void remove() {\r\n //\r\n }",
"@Override\r\n \t\tprotected Object removeListItem(EObject object, EStructuralFeature feature, int index) {\n \t\t\tEList<EObject> list = (EList<EObject>)object.eGet(feature);\r\n \t\t\tEObject item = list.get(index);\r\n \t\t\tOutputSet outputSet = catchEvent.getOutputSet();\r\n \t\t\tif (outputSet.getDataOutputRefs().contains(item))\r\n \t\t\t\toutputSet.getDataOutputRefs().remove(item);\r\n \t\t\t\r\n \t\t\t// remove Input or Output DataAssociations\r\n \t\t\tList<DataOutputAssociation> dataOutputAssociations = catchEvent.getDataOutputAssociation();\r\n \t\t\tList<DataOutputAssociation> removed = new ArrayList<DataOutputAssociation>();\r\n \t\t\tfor (DataOutputAssociation doa : dataOutputAssociations) {\r\n \t\t\t\tif (doa.getTargetRef().equals(item))\r\n \t\t\t\t\tremoved.add(doa);\r\n \t\t\t}\r\n \t\t\tdataOutputAssociations.removeAll(removed);\r\n \r\n \t\t\treturn super.removeListItem(object, feature, index);\r\n \t\t}",
"@Override\n\tpublic void del() {\n\t\ttarget.del();\n\t}",
"void addFeature(Feature feature);",
"@Override\n\tpublic boolean delete(Eleve o) {\n\t\tmap.remove(o.getId(), o);\n\t\treturn true;\n\t}",
"public synchronized void delete() {\n if (this.swigCPtr != 0) {\n if (this.swigCMemOwn) {\n this.swigCMemOwn = false;\n libVisioMoveJNI.delete_VgIRouteGeometryDescriptor(this.swigCPtr);\n }\n this.swigCPtr = 0;\n }\n }",
"public void removeDefense(){\n\t\tcurrentConstruct = null;\n\t\thasDefenseObject = false;\n\t}",
"Feature createFeature();",
"@Override\n\tpublic void delete(FxzfLane entity) {\n\t\t\n\t}",
"public void delete() {\n\n\t}",
"public void remove() {\n\t }",
"public void remove() {\n\t }",
"public void remove() {\n\t }",
"public void delete() {\n mapping.getFieldOrFieldExclude().remove(field);\n }",
"public void removeThing(){\n thing = null;\n }",
"@Action( ACTION_CONFIRM_REMOVE_FEATURE )\r\n public String getConfirmRemoveFeature( HttpServletRequest request )\r\n {\r\n int nId = Integer.parseInt( request.getParameter( PARAMETER_ID_FEATURE ) );\r\n UrlItem url = new UrlItem( getActionUrl( ACTION_REMOVE_FEATURE ) );\r\n url.addParameter( PARAMETER_ID_FEATURE, nId );\r\n\r\n String strMessageUrl = AdminMessageService.getMessageUrl( request, MESSAGE_CONFIRM_REMOVE_FEATURE, url.getUrl( ), AdminMessage.TYPE_CONFIRMATION );\r\n\r\n return redirect( request, strMessageUrl );\r\n }",
"@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}",
"@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"no goin\");\n\t\t\n\t}",
"public void deleteSelectedWord()\r\n {\n ArrayList al = crossword.getWords();\r\n al.remove(selectedWord);\r\n repopulateWords();\r\n }",
"void removeHasSCF(SCF oldHasSCF);",
"protected void unsetContribution(ComponentFactory factory) {\n\t\tComponentInstance ci;\n\t\tComponent c;\n\t\tsynchronized (this) {\n\t\t\tci = mapping.remove(factory);\n\t\t\tc = (Component) ci.getInstance();\n\t\t\ttabs.removeComponent(c);\n\t\t}\n\t\tc.detach();\n\t\tci.dispose();\n\t}",
"boolean delete();",
"Object remove();",
"public void remove() {\n\t}",
"public void remove() {\n\t}",
"void removeFlight(Flight flight);",
"public abstract boolean remove(KitComponent component);",
"public void deleteInterest(TXSemanticTag i);",
"@Override\r\n \t\tprotected Object removeListItem(EObject object, EStructuralFeature feature, int index) {\n \t\t\tEList<EObject> list = (EList<EObject>)object.eGet(feature);\r\n \t\t\tEObject item = list.get(index);\r\n \t\t\tInputSet inputSet = throwEvent.getInputSet();\r\n \t\t\tif (inputSet.getDataInputRefs().contains(item))\r\n \t\t\t\tinputSet.getDataInputRefs().remove(item);\r\n \t\t\t\r\n \t\t\t// remove Input or Output DataAssociations\r\n \t\t\tList<DataInputAssociation> dataInputAssociations = throwEvent.getDataInputAssociation();\r\n \t\t\tList<DataInputAssociation> removed = new ArrayList<DataInputAssociation>();\r\n \t\t\tfor (DataInputAssociation dia : dataInputAssociations) {\r\n \t\t\t\tif (dia.getTargetRef().equals(item))\r\n \t\t\t\t\tremoved.add(dia);\r\n \t\t\t}\r\n \t\t\tdataInputAssociations.removeAll(removed);\r\n \r\n \t\t\treturn super.removeListItem(object, feature, index);\r\n \t\t}",
"@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}",
"@Override\n public void delete()\n {\n }",
"void deleteExam(Module module, Exam target);",
"public void remove(){\n }"
] |
[
"0.7876776",
"0.78114146",
"0.7749287",
"0.7726436",
"0.7306555",
"0.7269479",
"0.7269479",
"0.71656156",
"0.7126635",
"0.6926209",
"0.6880787",
"0.6833733",
"0.6827211",
"0.68047154",
"0.67506224",
"0.67506224",
"0.67180943",
"0.6718042",
"0.6718016",
"0.6703842",
"0.6699182",
"0.6522677",
"0.65189093",
"0.6477728",
"0.646272",
"0.64323974",
"0.641198",
"0.6398019",
"0.62001413",
"0.6176586",
"0.6154244",
"0.6132386",
"0.61087537",
"0.6051967",
"0.6049248",
"0.6002432",
"0.584275",
"0.58215994",
"0.5756168",
"0.57227415",
"0.5718837",
"0.5710872",
"0.5705815",
"0.5682475",
"0.5680182",
"0.5680182",
"0.5680182",
"0.5680182",
"0.5680182",
"0.56633735",
"0.56367725",
"0.5631675",
"0.56301767",
"0.56189555",
"0.56114244",
"0.55968624",
"0.558944",
"0.5580934",
"0.5566203",
"0.5542167",
"0.55408",
"0.5534366",
"0.55316806",
"0.5530073",
"0.55281496",
"0.55277485",
"0.55136335",
"0.5512833",
"0.55020577",
"0.5500208",
"0.5499172",
"0.54954606",
"0.54896075",
"0.5488287",
"0.54878193",
"0.54878193",
"0.54878193",
"0.54874265",
"0.5483733",
"0.5478237",
"0.547676",
"0.547676",
"0.54762",
"0.54730844",
"0.54611576",
"0.54604185",
"0.5448528",
"0.5446284",
"0.5444084",
"0.54320526",
"0.54320526",
"0.5425398",
"0.5422554",
"0.54217744",
"0.54216325",
"0.5415239",
"0.5415239",
"0.54122204",
"0.5410491",
"0.5408699"
] |
0.6498674
|
23
|
Even if there are more than one segment only get the first as there should only ever be one
|
private void triggerContain(Event event, List<OdiSegment> leftSegments, List<OdiSegment> rightSegments, OdiSegment operatorSegment)
{
OdiSegment rightSegment = rightSegments.get(0);
Entity rightEntity = null;
List<String> rightScopes = rightSegment.getScopes();
String rightFirstScope = rightScopes.get(1);
if(rightFirstScope.equals(OdiSegment.eventScope))
{
if(rightScopes.get(2).equals(OdiSegment.target)) rightEntity = event.getTarget();
else if(rightScopes.get(2).equals(OdiSegment.secondaryTarget)) rightEntity = event.getSecondaryTarget();
}
else if(rightFirstScope.equals(OdiSegment.entitiesScope))
{
rightEntity = entityRepository.getEntity(rightScopes.get(2), rightSegment.getValue());
}
if(rightEntity != null)
{
// Same as the right segment above
OdiSegment leftSegment = leftSegments.get(0);
List<String> leftScopes = leftSegment.getScopes();
String firstLeftScope = leftScopes.get(0);
String operator = operatorSegment.getValue();
if(firstLeftScope.equals(OdiSegment.worldScope))
{
String sectionName = leftScopes.get(2);
Section section = null;
if(sectionName.equals("current")) section = event.getSection();
else if(worldRepository.getSections().containsKey(sectionName)) section = worldRepository.getSection(sectionName);
if(section != null)
{
if(operator.equals("++")) section.addEntity(rightEntity);
else if(operator.equals("--")) section.removeEntity(rightEntity.getName());
}
}
else if(firstLeftScope.equals(OdiSegment.playerScope))
{
if(operator.equals("++")) playerRepository.addToInventory(rightEntity);
else if(operator.equals("--")) playerRepository.removeFromInventory(rightEntity.getName());
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Segment GetFirstSegment() { return cs1; }",
"int getSegment();",
"public Segment getSegment(int index) {\n return null;\n }",
"int getStartSegment();",
"private Segment getSegment(int addr, boolean get) throws ProgramException {\n Set<Segment> found = memory.get(addr);\n if (found.isEmpty()) {\n throw new ProgramException(get ? ErrorType.ADDRL : ErrorType.ADDRS);\n }\n return found.iterator().next();\n }",
"public GJPoint2D firstPoint() {\n\t\tif (this.segments.isEmpty()) \n\t\t\treturn null;\n\t\treturn this.segments.get(0).controlPoints()[0];\n\t}",
"public Segment getNextSegment() throws CursorIndexOutOfBoundsException {\n\t\tif (mCurrentSegment+1 >= mSegmentList.size()) {\n\t\t\tthrow new CursorIndexOutOfBoundsException(mCurrentSegment+1, mSegmentList.size());\n\t\t}\n\t\treturn mSegmentList.get(mCurrentSegment+1);\n\t}",
"@Override\n\tpublic int findSegment(int x, int y) {\n\t\treturn -1;\n\t}",
"public Segment setNextSegment() throws CursorIndexOutOfBoundsException {\n\t\tSegment segment = getNextSegment();\n\t\tmCurrentSegment++;\n\t\treturn segment;\n\t}",
"public Segment getCurrentSegment(){\n\t\treturn mSegmentList.get(mCurrentSegment);\n\t}",
"public Object getSegment(K node);",
"public String getSegment()\n {\n return m_strSegment;\n }",
"public XRISegment getLastSegment(\n\t) {\n \treturn this.base; \n }",
"int getEndSegment();",
"protected abstract int getFirstFrag();",
"public Segment getSegment(int index) {\n\t\treturn mSegmentList.get(index);\n\t}",
"public Segment SegmentShared(CongruentSegments thatCC)\n\t{\n\t\tif(SharesNumClauses(thatCC) != 1)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn cs1.equals(thatCC.cs1) || cs1.equals(thatCC.cs2) ? cs1 : cs2;\n\t}",
"public XRISegment getSegment(\n \tint index\n\t) {\n \tvalidatePosition(index);\n \treturn getPrefix(index + 1).getLastSegment(); \n }",
"public Segment getLastSegment() throws CursorIndexOutOfBoundsException {\n\t\tif (mSegmentList.size() == 0) {\n\t\t\tthrow new CursorIndexOutOfBoundsException(-1, 0);\n\t\t}\n\t\treturn mSegmentList.get(mSegmentList.size()-1);\n\t}",
"private DataSegment findMatchingSegment(ArrayList<DataSegment> segments, int[] cachePos) {\n for (DataSegment segment:segments) {\n boolean match=((segment.getSegmentStart()>=cachePos[0] && segment.getSegmentEnd()<=cachePos[1]) || (segment.getSegmentEnd()==cachePos[1] && segment.getSegmentStart()>=cachePos[0]));\n if (match) return segment;\n }\n return null;\n }",
"AssignmentPathSegment getSegment(int index);",
"private static String getLatestSegment(NutchFileSystem nfs, String segmentsDir) throws IOException {\n File bestSegment = null;\n File[] allSegmentFiles = nfs.listFiles(new File(segmentsDir));\n for (int i = 0; i < allSegmentFiles.length; i++) {\n String name = allSegmentFiles[i].getName();\n if (bestSegment == null || bestSegment.getName().compareTo(name) < 0) {\n bestSegment = allSegmentFiles[i];\n }\n }\n return bestSegment.getPath();\n }",
"public int getSegmentReference() {\n return segmentReference;\n }",
"public com.eviware.soapui.coverage.SegmentType getSegmentArray(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.eviware.soapui.coverage.SegmentType target = null;\n target = (com.eviware.soapui.coverage.SegmentType)get_store().find_element_user(SEGMENT$2, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n return target;\n }\n }",
"boolean getSegmented();",
"String getSegmentName();",
"speech_formatting.SegmentedTextOuterClass.SentenceSegment getSentenceSegment(int index);",
"public GraphNode firstEndpoint(){\r\n return first;\r\n }",
"boolean hasSegment();",
"GraphNode firstEndpoint() \n\t{\n\t\treturn this.firstEndpoint;\n\t\t\n\t}",
"public Segment OtherSegment(Segment cs)\n\t{\n\t\tif(cs.equals(cs1))\n\t\t{\n\t\t\treturn cs2;\n\t\t}\n\t\telse if(cs.equals(cs2))\n\t\t{\n\t\t\treturn cs1;\n\t\t}\n\t\treturn null;\n\t}",
"Segment createSegment();",
"public LinkedList<Point> segmentsToDraw() {\n LinkedList<Point> segmentCoordinates = new LinkedList<Point>();\n for (int segment = 1; segment <= snakeSize; segment++) {\n //search array for each segment number\n for (int x = 0; x < maxX; x++) {\n for (int y = 0; y < maxY; y++) {\n if (snakeSquares[x][y] == segment) {\n //make a Point for this segment's coordinates and add to list\n Point p = new Point(x * SnakeGame.getSquareSize(), y * SnakeGame.getSquareSize());\n segmentCoordinates.add(p);\n }\n }\n }\n }\n return segmentCoordinates;\n\n }",
"Set<S> getSegments();",
"public static Segment findSegment( QueryService queryService, PageParameters parameters ) {\n if ( parameters.containsKey( SEGMENT_PARM ) )\n try {\n return queryService.find( Segment.class, parameters.getLong( SEGMENT_PARM ) );\n } catch ( StringValueConversionException ignored ) {\n LOG.warn( \"Invalid segment specified in parameters. Using default.\" );\n } catch ( NotFoundException ignored ) {\n LOG.warn( \"Unknown segment specified in parameters. Using default.\" );\n } catch ( ClassCastException ignored ) {\n LOG.warn( \"Other object specified as segment in parameters. Using default.\" );\n }\n return null;\n }",
"int getNumSegments();",
"public static RoadSegment getRoadSegmentAtKey(String key)\n\t{\n\t\tfor(int i = 0; i < N101.getNumRoadSeg(); i++)\n\t\t{\n\t\t\tif(N101.getRoadSegAt(i).getKey().equalsIgnoreCase(key))\n\t\t\t{\n\t\t\t\treturn N101.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < E10.getNumRoadSeg(); i++)\n\t\t{\n\t\t\tif(E10.getRoadSegAt(i).getKey().equalsIgnoreCase(key))\n\t\t\t{\n\t\t\t\treturn E10.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < N405.getNumRoadSeg(); i++)\n\t\t{\n\t\t\tif(N405.getRoadSegAt(i).getKey().equalsIgnoreCase(key))\n\t\t\t{\n\t\t\t\treturn N405.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < E105.getNumRoadSeg(); i++)\n\t\t{\n\t\t\tif(E105.getRoadSegAt(i).getKey().equalsIgnoreCase(key))\n\t\t\t{\n\t\t\t\treturn E105.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public SegmentRefOrGroup get(Set<SegmentRefOrGroup> structure, String id){\n \treturn structure.stream().filter(x -> x.getId().equals(id)).findFirst().orElse(null);\n }",
"public String getSegmentId() {\n return segmentId;\n }",
"com.google.ads.googleads.v6.common.Segments getSegments();",
"public int getCurrentIndex() {\n\t\treturn mCurrentSegment;\n\t}",
"public Segment setNextSegment(int nextSegment) throws CursorIndexOutOfBoundsException {\n if(nextSegment < mSegmentList.size()) {\n mCurrentSegment = nextSegment;\n return getCurrentSegment();\n }\n throw new CursorIndexOutOfBoundsException(nextSegment, mSegmentList.size());\n\t}",
"public static Segment getSegment(double id) {\n\n String idAsString = String.valueOf(id);\n String sql = \"SELECT id, fileID, fileName, thai, english, committed, removed, rank FROM corpus1 WHERE id =\" + idAsString + \";\";\n\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n // loop through the result set\n while (rs.next()) {\n // Segment ret = new Segment(rs.getInt(\"id\"), rs.getInt(\"fileID\"), rs.getString(\"fileName\"));\n return rebuildSegment(rs);\n }\n return null;\n } catch (SQLException e) {\n System.out.println(\"getSegment: \" + e.getMessage());\n }\n return null;\n }",
"@Override\n public long getStreamSegmentId() {\n return this.streamSegmentId;\n }",
"private TrackSegment readSegment(XmlPullParser parser) throws IOException, XmlPullParserException {\n List<TrackPoint> points = new ArrayList<>();\n parser.require(XmlPullParser.START_TAG, ns, TAG_SEGMENT);\n while (loopMustContinue(parser.next())) {\n if (parser.getEventType() != XmlPullParser.START_TAG) {\n continue;\n }\n String name = parser.getName();\n switch (name) {\n case TAG_TRACK_POINT:\n points.add(readTrackPoint(parser));\n break;\n default:\n skip(parser);\n break;\n }\n }\n parser.require(XmlPullParser.END_TAG, ns, TAG_SEGMENT);\n return new TrackSegment.Builder()\n .setTrackPoints(points)\n .build();\n }",
"String getMatchingSegments(Integer pointId);",
"public speech_formatting.SegmentedTextOuterClass.SentenceSegment getSentenceSegment(int index) {\n if (sentenceSegmentBuilder_ == null) {\n return sentenceSegment_.get(index);\n } else {\n return sentenceSegmentBuilder_.getMessage(index);\n }\n }",
"public static Point GetClosestPointOnSegment(Point ss, Point se, Point p)\n {\n return GetClosestPointOnSegment(ss.x, ss.y, se.x, se.y, p.x, p.y);\n }",
"public abstract long getStreamSegmentOffset();",
"@Test\n public void mergeWithStopAfterFirstSegment() throws IOException, MkvElementVisitException {\n final CountVisitor countVisitor = runMergerToStopAtFirstNonMatchingSegment(\"output_get_media.mkv\");\n\n //Validate that there is only one EBML header and segment and tracks\n //but there are 32 clusters and tracks as expected.\n assertCountsAfterMerge(countVisitor);\n }",
"private void addSegment(Point p0, Point p1) {\n resize(nOfSegs + 1);\n segments[nOfSegs++] = new LineSegment(p0, p1);\n }",
"public static int findMinPositionSegment (int[] elts, int first, int size) {\r\n\t\tint min = elts[first];\r\n\t\tint minPosition = first;\r\n\t\tfor (int i = first+1; i < first+size; i++) {\r\n\t\t\tif (elts[i] < min) {\r\n\t\t\t\tmin = elts[i];\r\n\t\t\t\tminPosition = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn minPosition;\r\n\t}",
"public static int findMinPositionSegment (int[] elts, int first, int size) {\r\n\t\tint min = elts[first];\r\n\t\tint minPosition = first;\r\n\t\tfor (int i = first+1; i < first+size; i++) {\r\n\t\t\tif (elts[i] < min) {\r\n\t\t\t\tmin = elts[i];\r\n\t\t\t\tminPosition = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn minPosition;\r\n\t}",
"public Object getFirst(){\n return pattern[0];\n }",
"public GraphNode firstEndpoint() {\n\t\t\treturn start;\n\t\t}",
"public int numberOfSegments() {\n return p;\n }",
"private LineSegment[] findSegments() {\n List<LineSegment> segmentList = new ArrayList<>();\n int N = points.length;\n for (int i = 0; i < N; i++) {\n for (int j = i+1; j < N; j++) {\n Double slopePQ = points[i].slopeTo(points[j]);\n for (int k = j+1; k < N; k++) {\n Double slopePR = points[i].slopeTo(points[k]);\n if (slopePQ.equals(slopePR)) {\n for (int l = k + 1; l < N; l++) {\n Double slopePS = points[i].slopeTo(points[l]);\n if (slopePQ.equals(slopePS)) {\n LineSegment lineSegment = new LineSegment(points[i], points[l]);\n segmentList.add(lineSegment);\n }\n }\n }\n }\n }\n }\n return segmentList.toArray(new LineSegment[segmentList.size()]);\n }",
"public int numberOfSegments() {\n return 0;\n }",
"ArrayList<TTC> generateSegments() {\n if ((START_STATION instanceof Station) && (endStation instanceof Station)) {\n ArrayList<TTC> route = TTC.SUBWAY_LIST.get(NUMBER);\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n } else {\n ArrayList<TTC> route = TTC.BUS_MAP.get((START_STATION).getNUMBER());\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n }\n }",
"public Integer getSegment_id() {\n return segment_id;\n }",
"public static GenomeSegment instance(int index) {\n return segmentList.get(index);\n }",
"protected SingleSegmentBase parseSegmentBase(\n XmlPullParser xpp, @Nullable SingleSegmentBase parent)\n throws XmlPullParserException, IOException {\n\n long timescale = parseLong(xpp, \"timescale\", parent != null ? parent.timescale : 1);\n long presentationTimeOffset =\n parseLong(\n xpp, \"presentationTimeOffset\", parent != null ? parent.presentationTimeOffset : 0);\n\n long indexStart = parent != null ? parent.indexStart : 0;\n long indexLength = parent != null ? parent.indexLength : 0;\n String indexRangeText = xpp.getAttributeValue(null, \"indexRange\");\n if (indexRangeText != null) {\n String[] indexRange = indexRangeText.split(\"-\");\n indexStart = Long.parseLong(indexRange[0]);\n indexLength = Long.parseLong(indexRange[1]) - indexStart + 1;\n }\n\n @Nullable RangedUri initialization = parent != null ? parent.initialization : null;\n do {\n xpp.next();\n if (XmlPullParserUtil.isStartTag(xpp, \"Initialization\")) {\n initialization = parseInitialization(xpp);\n } else {\n maybeSkipTag(xpp);\n }\n } while (!XmlPullParserUtil.isEndTag(xpp, \"SegmentBase\"));\n\n return buildSingleSegmentBase(\n initialization, timescale, presentationTimeOffset, indexStart, indexLength);\n }",
"public Segment getFollowingTextSegment() {\r\n\t\tint endData=source.getParseTextLowerCase().indexOf('<',end);\r\n\t\tif (endData==-1) endData=source.length();\r\n\t\treturn new Segment(source,end,endData);\r\n\t}",
"public int getOriginRoadSegmentId() {\r\n return originRoadSegmentId;\r\n }",
"public ArrayList<TessSeg> splitAtIsect(TessSeg s1)\r\n {\r\n if (!isLineHit(s1))\r\n {\r\n return null;\r\n }\r\n \r\n //Check for point-line hits\r\n double t00 = -1, t01 = -1, t10 = -1, t11 = -1;\r\n boolean pointMidlineHit = false;\r\n \r\n if (isPointOnLine(s1.c0))\r\n {\r\n double t = pointOnLineT(s1.c0);\r\n if (t > 0 && t < 1)\r\n {\r\n t00 = t;\r\n pointMidlineHit = true;\r\n }\r\n }\r\n \r\n if (isPointOnLine(s1.c1))\r\n {\r\n double t = pointOnLineT(s1.c1);\r\n if (t > 0 && t < 1)\r\n {\r\n t01 = t;\r\n pointMidlineHit = true;\r\n }\r\n }\r\n \r\n if (s1.isPointOnLine(c0))\r\n {\r\n double t = s1.pointOnLineT(c0);\r\n if (t > 0 && t < 1)\r\n {\r\n t10 = t;\r\n pointMidlineHit = true;\r\n }\r\n }\r\n \r\n if (s1.isPointOnLine(c1))\r\n {\r\n double t = s1.pointOnLineT(c1);\r\n if (t > 0 && t < 1)\r\n {\r\n t11 = t;\r\n pointMidlineHit = true;\r\n }\r\n }\r\n\r\n if (pointMidlineHit)\r\n {\r\n ArrayList<TessSeg> list = new ArrayList<TessSeg>();\r\n if (t00 > 0 && t01 > 0)\r\n {\r\n if (t00 < t01)\r\n {\r\n list.add(new TessSeg(c0, s1.c0));\r\n list.add(new TessSeg(s1.c0, s1.c1));\r\n list.add(new TessSeg(s1.c1, c1));\r\n }\r\n else\r\n {\r\n list.add(new TessSeg(c0, s1.c1));\r\n list.add(new TessSeg(s1.c1, s1.c0));\r\n list.add(new TessSeg(s1.c0, c1));\r\n }\r\n }\r\n else if (t00 > 0)\r\n {\r\n list.add(new TessSeg(c0, s1.c0));\r\n list.add(new TessSeg(s1.c0, c1));\r\n }\r\n else if (t01 > 0)\r\n {\r\n list.add(new TessSeg(c0, s1.c1));\r\n list.add(new TessSeg(s1.c1, c1));\r\n }\r\n else\r\n {\r\n list.add(this);\r\n }\r\n \r\n if (t10 > 0 && t11 > 0)\r\n {\r\n if (t10 < t11)\r\n {\r\n list.add(new TessSeg(s1.c0, c0));\r\n list.add(new TessSeg(c0, c1));\r\n list.add(new TessSeg(c1, s1.c1));\r\n }\r\n else\r\n {\r\n list.add(new TessSeg(s1.c0, c1));\r\n list.add(new TessSeg(c1, c0));\r\n list.add(new TessSeg(c0, s1.c1));\r\n }\r\n }\r\n else if (t10 > 0)\r\n {\r\n list.add(new TessSeg(s1.c0, c0));\r\n list.add(new TessSeg(c0, s1.c1));\r\n }\r\n else if (t11 > 0)\r\n {\r\n list.add(new TessSeg(s1.c0, c1));\r\n list.add(new TessSeg(c1, s1.c1));\r\n }\r\n else\r\n {\r\n list.add(s1);\r\n }\r\n \r\n return list;\r\n }\r\n \r\n if (c0.equals(s1.c0) \r\n || c0.equals(s1.c1)\r\n || c1.equals(s1.c0)\r\n || c1.equals(s1.c1))\r\n {\r\n //No point-midline hits. If we only meet at verts,\r\n // do not split.\r\n return null;\r\n }\r\n \r\n// if (!isParallelTo(s1))\r\n {\r\n //Midpoint crossing for both segments.\r\n // Solve system of linear eqns\r\n double s0x0 = c0.x;\r\n double s0y0 = c0.y;\r\n double s0x1 = c1.x;\r\n double s0y1 = c1.y;\r\n double s1x0 = s1.c0.x;\r\n double s1y0 = s1.c0.y;\r\n double s1x1 = s1.c1.x;\r\n double s1y1 = s1.c1.y;\r\n\r\n double[] t = Math2DUtil.lineIsectFractions(\r\n s0x0, s0y0, s0x1 - s0x0, s0y1 - s0y0,\r\n s1x0, s1y0, s1x1 - s1x0, s1y1 - s1y0,\r\n null);\r\n\r\n if (t == null || t[0] < 0 || t[0] > 1 || t[1] < 0 || t[1] > 1)\r\n {\r\n Logger.getLogger(TessSeg.class.getName()).log(Level.WARNING, \r\n \"Line segments do not overlap\");\r\n }\r\n// assert (t[0] > 0 && t[0] < 1 && t[1] > 0 && t[1] < 1)\r\n// : \"Line segments do not overlap\";\r\n \r\n {\r\n ArrayList<TessSeg> list = new ArrayList<TessSeg>();\r\n \r\n Coord c = new Coord(\r\n (int)Math2DUtil.lerp(s1x0, s1x1, t[1]),\r\n (int)Math2DUtil.lerp(s1y0, s1y1, t[1]));\r\n\r\n list.add(new TessSeg(c0, c));\r\n list.add(new TessSeg(c, c1));\r\n list.add(new TessSeg(s1.c0, c));\r\n list.add(new TessSeg(c, s1.c1));\r\n \r\n return list;\r\n }\r\n }\r\n \r\n// return null;\r\n }",
"public NurbsPoint get_control_point(int segment, int point) {\n return points[segment][point];\n }",
"private Vector getSpeedSeg(Stroke theStroke)\n\t{\n\t\tdouble[] speedData = theStroke.getSpeedData();\n\t\tm_speedSeg = new SpeedBasedDetection(speedData);\n\t\tVector segPt_speed = m_speedSeg.detectSegmentPoints();\n\t\treturn segPt_speed;\n\t}",
"int getMinUtil(int ss, int se, int qs, int qe, int si)\n {\n if (qs <= ss && qe >= se)\n return st[si];\n\n // If segment of this node is outside the given range\n if (se < qs || ss > qe)\n return Integer.MAX_VALUE;\n\n // If a part of this segment overlaps with the given range\n int mid = getMid(ss, se);\n return Math.min(getMinUtil(ss, mid, qs, qe, 2 * si + 1) ,\n \t\t getMinUtil(mid + 1, se, qs, qe, 2 * si + 2));\n }",
"public static int sameSegment(Point2D pa0, Point2D pa1, Point2D pb0, Point2D pb1) {\r\n return (pa0.equals(pb0) && pa1.equals(pb1)) ? EQUALSEGMENT : (pa0.equals(pb1) && pa1.equals(pb0) ? OPPOSITESEGMENT : DIFFERENTSEGMENT);\r\n }",
"public LineSegment[] segments(){\n\t\tPoint[] ptArr = new Point[numpoints];\n\t\tfor(int i =0; i < numpoints; i++){\n\t\t\tfor(int j =0; j < numpoints;j++) ptArr[j] = mypoints[j];\n\t\t\tPoint origin = mypoints[i];\t\t\n\t\t\t//Sort the points using mergeSort for doubles\n\t\t\tArrays.sort(ptArr,origin.slopeOrder());\t\n\t\t\tfindAllCollinearPts(ptArr,origin);\n\t\t}\n\t\treturn getSegments();\n\t}",
"public String getNextSegment() throws IOException {\n String retVal = null;\n String tag;\n boolean foundSegment = false;\n\n if( this.mState != State.DONE )\n {\n this.mCurrentOutput = new StringBuffer();\n\n while ((tag = this.getNextTag()) != null) {\n if( this.mState == State.SEEK )\n {\n if (tag.startsWith( \"<\" + this.mTagName ) && this.mStartTagPattern.matcher(tag).matches()) {\n this.mCurrentOutput.append(tag);\n\n if (tag.endsWith(\"/>\")) {\n this.mState = State.SEEK;\n foundSegment = true;\n break;\n } else {\n this.mState = State.WRITE;\n }\n }\n }\n else if( this.mState == State.WRITE)\n {\n this.mCurrentOutput.append(tag);\n\n if (this.mEndTagPattern.matcher(tag).matches()) {\n this.mState = State.SEEK;\n foundSegment = true;\n break;\n }\n }\n }\n\n if( foundSegment )\n {\n retVal = this.mCurrentOutput.toString();\n }\n else\n {\n this.mState = State.DONE;\n this.mReader.close();\n retVal = null;\n }\n }\n\n return retVal;\n }",
"synchronized protected int findClosestSegment(final int x_p, final int y_p, final long layer_id, final double mag) {\n\t\tif (1 == n_points) return -1;\n \t\tif (0 == n_points) return -1;\n \t\tint index = -1;\n \t\tdouble d = (10.0D / mag);\n \t\tif (d < 2) d = 2;\n \t\tdouble sq_d = d*d;\n \t\tdouble min_sq_dist = Double.MAX_VALUE;\n \t\tfinal Calibration cal = layer_set.getCalibration();\n \t\tfinal double z = layer_set.getLayer(layer_id).getZ() * cal.pixelWidth;\n \n \t\tdouble x2 = p[0][0] * cal.pixelWidth;\n \t\tdouble y2 = p[1][0] * cal.pixelHeight;\n \t\tdouble z2 = layer_set.getLayer(p_layer[0]).getZ() * cal.pixelWidth;\n \t\tdouble x1, y1, z1;\n \n \t\tfor (int i=1; i<n_points; i++) {\n \t\t\tx1 = x2;\n \t\t\ty1 = y2;\n \t\t\tz1 = z2;\n \t\t\tx2 = p[0][i] * cal.pixelWidth;\n \t\t\ty2 = p[1][i] * cal.pixelHeight;\n \t\t\tz2 = layer_set.getLayer(p_layer[i]).getZ() * cal.pixelWidth;\n \n \t\t\tdouble sq_dist = M.distancePointToSegmentSq(x_p * cal.pixelWidth, y_p * cal.pixelHeight, z,\n \t\t\t\t\t x1, y1, z1,\n \t\t\t\t\t\t\t\t x2, y2, z2);\n \n \t\t\tif (sq_dist < sq_d && sq_dist < min_sq_dist) {\n \t\t\t\tmin_sq_dist = sq_dist;\n \t\t\t\tindex = i-1; // previous\n \t\t\t}\n \t\t}\n \t\treturn index;\n \t}",
"private int getLine ( String toSearch , int elsegmento )\r\n\t{\r\n\t\tfor ( int i = 0 ; i < cont[elsegmento] ; i++ )\r\n\t\t{\r\n\t\t\tStringTokenizer st = new StringTokenizer ( segmento[elsegmento][i],\":\" );\r\n\t\t\tif ( st.countTokens() > 1 )\r\n\t\t\t{\r\n\t\t\t\tString label = st.nextToken().trim();\r\n\t\t\t\tif ( label.equalsIgnoreCase(toSearch) ) return i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"public static int sameSegment(Line2D line,Point2D pb0, Point2D pb1) {\r\n return sameSegment(line.getP1(), line.getP2(), pb0, pb1);\r\n }",
"private Point findStartPoint(){\n Point min = points.get(0);\n for (int i = 1; i < points.size(); i++) {\n min = getMinValue(min, points.get(i));\n }\n return min;\n }",
"public Vector performSegmentation(Stroke theStroke)\n\t{\n\t\tsetPixelInfo(theStroke);\n\t\t// this vector stores vectors of segment points detected through various methods\n\t\tVector segVectorList = new Vector();\n\t\tint segScheme=0;\n\t\tswitch (segScheme = Prefs.getSegScheme())\n\t\t{\n\t\t//PRATEEK: Is this the place where ALL the segmentation decisions are made??\n\t\tcase GConstants.SEG_SCHEME_ALL:\n\t\t\tsegVectorList.add(getSpeedSeg(theStroke));\n\t\t\tsegVectorList.add(getCurvatureSeg(theStroke));\n\t\t\tsegVectorList.add(getTimeSeg(theStroke));\n\t\t\tbreak;\n\t\t\n\t\tcase GConstants.SEG_SCHEME_SPEED:\n\t\t\tsegVectorList.add(getSpeedSeg(theStroke));\n\t\t\tbreak;\n\t\t\n\t\tcase GConstants.SEG_SCHEME_CURVATURE:\n\t\t\tsegVectorList.add(getCurvatureSeg(theStroke));\n\t\t\tbreak;\n\n\t\tcase GConstants.SEG_SCHEME_TIME:\n\t\t\tsegVectorList.add(getTimeSeg(theStroke));\n\t\t\tbreak;\n\n\t\tcase GConstants.SEG_SCHEME_SPEED_CURVATURE:\n\t\t\tsegVectorList.add(getSpeedSeg(theStroke));\n\t\t\tsegVectorList.add(getCurvatureSeg(theStroke));\n\t\t\tbreak;\n\t\t\n\t\tdefault:\n\t\t\tsegVectorList.add(getSpeedSeg(theStroke));\n\t\t\tsegVectorList.add(getCurvatureSeg(theStroke));\n\t\t\tbreak;\n\t\t}\n/*We now have a list of segment-points to work with*/\n\t\t// get the common segment points\n\t\tSystem.out.println(\"Modified Hybrid fits\");\n\t\tVector selectedSegPos;\n\t/*\n\t\tselectedSegPos = returnRelevantVector(segVectorList);\n\t\t\n\t\tVector ptList = theStroke.getM_ptList();\n\t\tCollections.sort(selectedSegPos);\n\t\tIterator iter = selectedSegPos.iterator();\n\t\twhile (iter.hasNext())\n\t\t{\n\t\t\t Integer index = (Integer) iter.next();\n\t\t\t PixelInfo pixel = (PixelInfo)ptList.get(index.intValue());\n\t\t\t System.out.println(\"Index: \"+index+\", \"+pixel);\n\t\t}*/\n\t\t/*if(segScheme == 1 || segScheme == 3){\n\t\t\t\n\t\t}\n\t\telse{*/\n\t\tselectedSegPos = detectCommonSegPt(segVectorList, theStroke);\n\t\t//selectedSegPos = combinationAlgorithm(theStroke);\n\t\t//}\n//\t\tVector selectedSegPos = detectCommonSegPt(segVectorList, theStroke);\n\n\t\t// TODO: DONE: remove this code, This is just to print the common segments points\n\t/*\tSystem.out.println(\"Combination algorithm\");\n\t\tVector ptList = theStroke.getM_ptList();\n\t\tCollections.sort(selectedSegPos);\n\t\tIterator iter = selectedSegPos.iterator();\n\t\twhile (iter.hasNext())\n\t\t{\n\t\t\t Integer index = (Integer) iter.next();\n\t\t\t PixelInfo pixel = (PixelInfo)ptList.get(index.intValue());\n\t\t\t System.out.println(\"Index: \"+index+\", \"+pixel);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\n\\n\");\n\t\t*/\n\t\t\n\t\treturn selectedSegPos;\n\t}",
"@Override\n protected List<Segment> getSegments() {\n return Arrays.asList(\n new Segment(55.2, 55.8, Color.rgb(238, 23, 104)),\n new Segment(56.2, 56.6, Color.rgb(238, 23, 104)),\n new Segment(58.4, 59.9, Color.rgb(184, 92, 184)));\n }",
"default SegmentStats[] segmentStats() {\n throw new UnsupportedOperationException(\"todo\");\n }",
"@java.lang.Override\n public speech_formatting.SegmentedTextOuterClass.SentenceSegment getSentenceSegment(int index) {\n return sentenceSegment_.get(index);\n }",
"speech_formatting.SegmentedTextOuterClass.TokenSegment getTokenSegment(int index);",
"public Partition getFirstPartition()\n\t{\n\t\treturn firstPartition;\n\t}",
"public Position.PositionList buildSegment() {\n List<Position> positions = new ArrayList<>(3);\n\n // determine the middle point of the descending segment\n Position middlePos;\n if (startPoint.getElevation() > endPoint.getElevation()) {\n middlePos = new Position(\n Position.interpolateGreatCircle(1 - PATH_INTERPOLATE_AMOUNT, startPoint, endPoint), startPoint.getElevation());\n } else {\n middlePos = new Position(\n Position.interpolateGreatCircle(PATH_INTERPOLATE_AMOUNT, startPoint, endPoint), endPoint.getElevation());\n }\n\n // add the last points\n positions.add(middlePos);\n positions.add(endPoint);\n\n return new Position.PositionList(positions);\n }",
"private int getRegion(Point p) {\n // divide top segment equally\n Segment topSegment = Segment.fromStartAndWidth(this.topLeft.getX(), getWidth());\n EqualSegmentDivision partsOfPaddle = new EqualSegmentDivision(topSegment, REGIONS);\n\n // get index on the line division\n int index = partsOfPaddle.getIndexForPosition(p.getX());\n\n // do validity checks\n if (index < 0) {\n return 0;\n } else if (index >= REGIONS) {\n return REGIONS - 1;\n } else {\n return index;\n }\n }",
"public void updateSegment() {\n\t\tint i = curSeg * 2;\n\t\tint iChange = 2;\n\t\tint seg = i;\n\t\toldSeg = curSeg;\n\t\t\n\t\t// This variable is needed to keep looking even though a segment change\n\t\t// has been found. This is needed since the car could possibly pass\n\t\t// through multiple segments in one frame.\n\t\tboolean intersectionFound = false;\n\t\t// The algorithm needs to look at the start segment and the one before it.\n\t\tboolean startDone = false;\n\t\t\n\t\twhile (true) {\n\t\t\tif (i < 0) i = segments.size() + i;\n\t\t\telse if (i >= segments.size()) i = 0;\n\t\t\t\n\t\t\tif (Intersector.intersectSegments(oldPos, pos,\n\t\t\t\t\t segments.get(i), segments.get(i+1), null)) {\n\t\t\t\tintersectionFound = true;\n\t\t\t\tseg = i;\n\t\t\t} else {\n\t\t\t\t// Even though this segment didn't intersect, the previous one did.\n\t\t\t\tif (intersectionFound) break;\n\t\t\t\t// Change direction and check the segment before this one next iteration.\n\t\t\t\telse if (!startDone){\n\t\t\t\t\tstartDone = true;\n\t\t\t\t\tiChange = -2;\n\t\t\t\t} \n\t\t\t\t// No new segment was found.\n\t\t\t\telse break;\n\t\t\t}\n\t\t\ti += iChange;\n\t\t}\n\t\t\n\t\tif (intersectionFound && !startDone) {\n\t\t\tseg +=2;\n\t\t\tif (seg >= segments.size()) seg = 0;\n\t\t}\n\t\tcurSeg = seg/2;\n\t\t\n\t\t// Update the distance to segment.\n\t\tdistToSeg = Intersector.distanceSegmentPoint(segments.get(seg), segments.get(seg+1), pos);\n\t\t\n\t\tif (oldSeg != curSeg || longestDist == 0) {\n\t\t\tlongestDist = distToSeg;\n\t\t}\n\t}",
"String getFirstIndex();",
"private ArrayList<DataSegment> splitSegment(DataSegment segment, ArrayList<int[]> overlapping) {\n int start=segment.getSegmentStart();\n int end=segment.getSegmentEnd();\n ArrayList<DataSegment> newlist=new ArrayList<DataSegment>();\n for (int[] sub:overlapping) {\n DataSegment subsegment=segment.getEmptySubSegmentGenomicPositions(sub[0], sub[1]);\n if (subsegment!=null) newlist.add(subsegment); else return null;\n// engine.logMessage(\"Segment (\"+segment.getLocationAsString()+\") overlaps with [\"+sub[0]+\",\"+sub[1]+\"]. Creating new subsegment => \"+subsegment.toString());\n Collections.sort(newlist); \n }\n // now fill in missing bits\n fillInMissingSegments(newlist, start, end, segment.getDatatrackName(), segment.getOrganism(), segment.getGenomeBuild(), segment.getChromosome());\n // one last check...\n String error=checkSegments(newlist, start, end);\n if (error!=null) engine.logMessage(\"SYSTEM WARNING: Detected problems while processing cached data (error code:\"+error+\".2)\"); \n return newlist;\n }",
"@Test\n public void testSegmentSelection() {\n assertMetrics(\"segments:2 absoluteProximity:0.1 proximity:1 segmentStarts:19,41\",\n \"a b c d e\",\"x a b x c x x x x x x x x x x x x x x a b c x x x x x x x x x e x d x c d x x x c d e\");\n // 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2\n // 0 1 2 3 4\n // Should choose - - - - -\n\n // Same as above but best matching segment have too low exactness\n assertMetrics(\"segments:2 absoluteProximity:0.0903 proximity:0.9033 segmentStarts:1,41\",\n \"a b c d e\",\"x a b x c x x x x x x x x x x x x x x a:0.2 b:0.3 c:0.4 x x x x x x x x x e x d x c d x x x c d e\");\n // 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2\n // 0 1 2 3 4\n // Should choose - - - - -\n\n assertMetrics(\"segments:1 absoluteProximity:0.0778 proximity:0.778\",\"a b c d e f\",\"x x a b b b c f e d a b c d x e x x x x x f d e f a b c a a b b c c d d e e f f\");\n\n // Prefer one segment with ok proximity over two segments with great proximity\n assertMetrics(\"segments:1 segmentStarts:0\",\"a b c d\",\"a b x c d x x x x x x x x x x x a b x x x x x x x x x x x c d\");\n assertMetrics(\"segments:1 segmentStarts:0\",\"a b c d\",\"a b x x x x x x x x c d x x x x x x x x x x x a b x x x x x x x x x x x c d\");\n }",
"private List<Point> getPath(int index) {\n\t\t \n\t \n\t\t Node fromNode = oEdge.fromNode;\n\t\t Node toNode = oEdge.toNode;\n\t\t float x1 = fromNode.longitude;\n\t\t float x2 = toNode.longitude;\n\t\t float y1 = fromNode.latitude;\n\t\t float y2 = toNode.latitude;\n\t\t double slope, angle;\n\t\t if(x1!=x2) {\n\t\t\t slope = (y2-y1)/(x2-x1);\n\t\t\t \tangle = Math.atan(slope);\n\t\t\t \t} else {\n\t\t\t \t\tangle = Math.PI/2;\n\t\t\t \t}\n\t\t Double L = Math.sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));\n\t\t float offsetPixels=0;\n\t\t if(Math.toDegrees(angle)>Math.toDegrees(90)) {\n\t\t\t if (index==0){\n\t\t\t\t offsetPixels=roadWidth*6/10;\n\t\t\t }\n\t\t\t else if(index==1){\n\t\t\t\t offsetPixels=roadWidth*11/10;\n\t\t\t }\n\t\t\t else if(index==-1){\n\t\t\t\t offsetPixels=roadWidth*1/10;\n\t\t\t }\n\t\t\t \n\t\t } else {\n\t\t\t \n\t\t\t if (index==0){\n\t\t\t\t offsetPixels=-roadWidth*6/10;\n\t\t\t }\n\t\t\t else if(index==1){\n\t\t\t\t offsetPixels=-roadWidth*11/10;\n\t\t\t }\n\t\t\t else if(index==-1){\n\t\t\t\t offsetPixels=-roadWidth*1/10;\n\t\t\t }\n\t\t }\n\t\t \n\t\t // This is the first parallel line\n\t\t float x1p1 = x1 + offsetPixels * (y2-y1) / L.floatValue();\n\t\t float x2p1 = x2 + offsetPixels * (y2-y1) / L.floatValue();\n\t\t float y1p1 = y1 + offsetPixels * (x1-x2) / L.floatValue();\n\t\t float y2p1 = y2 + offsetPixels * (x1-x2) / L.floatValue();\n//\t\t if(oEdge.edgeID==16) {\n//\t\t\t System.out.println(\"testing\");\n//\t\t }\n\t\t \n\t\t Point P1 = new Point(x1p1,y1p1);\n\t\t Point P2 = new Point(x2p1,y2p1);\n\t\t List<Point> gP = GetPoints(P1, P2);\n\t\t return gP;\n\t \n\t}",
"private String checkSegments(ArrayList<DataSegment> list, int start, int end) {\n if (list.isEmpty()) return \"38020\";\n if (list.get(0).getSegmentStart()!=start) return \"38021\";\n if (list.get(list.size()-1).getSegmentEnd()!=end) return \"38022\";\n int lastend=start-1; \n for (int i=0;i<list.size();i++) {\n DataSegment segment=list.get(i);\n if (segment.getSegmentStart()!=lastend+1) return \"38023[\"+(i+1)+\"/\"+(list.size())+\"]\";\n lastend=segment.getSegmentEnd();\n if (lastend>end) return \"38024[\"+(i+1)+\"/\"+(list.size())+\"]\";\n }\n return null;\n }",
"public speech_formatting.SegmentedTextOuterClass.TokenSegment getTokenSegment(int index) {\n if (tokenSegmentBuilder_ == null) {\n return tokenSegment_.get(index);\n } else {\n return tokenSegmentBuilder_.getMessage(index);\n }\n }",
"@java.lang.Override\n public speech_formatting.SegmentedTextOuterClass.TokenSegment getTokenSegment(int index) {\n return tokenSegment_.get(index);\n }",
"public com.eviware.soapui.coverage.SegmentType[] getSegmentArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List<com.eviware.soapui.coverage.SegmentType> targetList = new java.util.ArrayList<com.eviware.soapui.coverage.SegmentType>();\n get_store().find_all_element_users(SEGMENT$2, targetList);\n com.eviware.soapui.coverage.SegmentType[] result = new com.eviware.soapui.coverage.SegmentType[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"@Override\r\n\t\tpublic T getFirst() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.getFirst();\r\n\t\t\t}\r\n\t\t}",
"public int numberOfSegments() {\n return segments.size();\n }",
"void setStartSegment(int startSegment);",
"private TreeSet<BisectDistInfo> findAllSegments( Coordinate[] poly ) {\n\t\t\n\t\tTreeSet<BisectDistInfo> distInfo = new TreeSet<BisectDistInfo>();\n\t\t\t\t\t\t\n\t Coordinate[] seg = new Coordinate[2];\n\t boolean qualify;\n\t \n\t\tfor ( int ii = 0; ii < (poly.length - 2); ii++ ) {\n\t\t\tfor ( int jj = ii + 2; jj < (poly.length); jj ++ ) {\n\t\t seg[0] = poly[ii];\n\t\t seg[1] = poly[jj]; \n\t\t \n\t\t\t qualify = polysegIntPoly( seg, poly );\n\t\t\t if ( qualify ) {\n\t\t\t\t double dist = GfaSnap.getInstance().distance( seg[0], seg[1] ) / PgenUtil.NM2M;\n\t\t\t\t if ( dist > GfaSnap.CLUSTER_DIST ) {\n\t\t\t\t\t distInfo.add( new BisectDistInfo( dist, ii, jj ) );\n\t\t\t\t }\n\t\t\t }\n\t\t\t}\t\t\t\n }\n\n\t\treturn distInfo;\n\t\t\n\t}",
"public List<IntrogressionLine> getIntrogressionLineBySegment(Segment s) {\n\t\tList<IntrogressionLine> lstIntrogressionLine = new ArrayList<IntrogressionLine>();\n\t\tGermplasmSegmentManagerImpl gsManagerImpl = new GermplasmSegmentManagerImpl();\n\t\tList<GermplasmSegment> lstGermplasmSegment = gsManagerImpl.getGermplasmSegmentBySegmentId(s.getSegmentId());\n\t\tfor(GermplasmSegment gs : lstGermplasmSegment)\n\t\t{\n\t\t\tIntrogressionLine il = this.getIntrogressionLineById(gs.getGermplasmId());\n\t\t\tlstIntrogressionLine.add(il);\n\t\t}\n\t\treturn lstIntrogressionLine;\n\t}",
"private SearchNode findFirstNode(HashSet<SearchNode> set){\n\t\t\tSearchNode min = null;\n\t\t\tfor (SearchNode cur : set){\n\t\t\t\tif (min == null || cur.fScore < min.fScore)\n\t\t\t\t\tmin = cur;\n\t\t\t}\n\t\t\treturn min;\n\t\t}",
"public process get_first() {\n\t\treturn queue.getFirst();\n\t}",
"private final List<PLineSegment> getLineSegmentsForSplitLine(SplitLine splitLine) {\n int lineIndex = splitLine.getLineIndex();\n List<PLineSegment> segments = getLineSegments(lineIndex);\n int index = 0;\n ArrayList<PLineSegment> result = new ArrayList<PLineSegment>();\n int start = splitLine.getOffset();\n int end = start + splitLine.getLength();\n \n for (int i = 0; index < end && i < segments.size(); ++i) {\n PLineSegment segment = segments.get(i);\n if (start >= index + segment.getModelTextLength()) {\n index += segment.getModelTextLength();\n continue;\n }\n if (start > index) {\n int skip = start - index;\n segment = segment.subSegment(skip);\n index += skip;\n }\n if (end < index + segment.getModelTextLength()) {\n segment = segment.subSegment(0, end - index);\n }\n result.add(segment);\n index += segment.getModelTextLength();\n }\n return result;\n }",
"public double t1() {\n\t\treturn segments.size() - 1;\n\t}"
] |
[
"0.7882112",
"0.68175983",
"0.6527817",
"0.6513267",
"0.6308855",
"0.62560034",
"0.62433064",
"0.6164662",
"0.6095967",
"0.60936135",
"0.6008991",
"0.59585446",
"0.5902357",
"0.5837793",
"0.57969606",
"0.57791907",
"0.577033",
"0.5766653",
"0.5656905",
"0.56439835",
"0.56368124",
"0.5616252",
"0.5605518",
"0.5597602",
"0.55748826",
"0.5562507",
"0.5541713",
"0.55304885",
"0.55209255",
"0.55157375",
"0.5496325",
"0.5468567",
"0.5451914",
"0.5451235",
"0.5428041",
"0.54142",
"0.53996485",
"0.53946435",
"0.53901786",
"0.53804326",
"0.5376396",
"0.5373258",
"0.53708214",
"0.534345",
"0.5341277",
"0.5316025",
"0.5314069",
"0.5313916",
"0.5313689",
"0.53093433",
"0.530273",
"0.52932125",
"0.52932125",
"0.5254745",
"0.5247405",
"0.5236524",
"0.52124196",
"0.5203256",
"0.51801294",
"0.51540345",
"0.5139665",
"0.5139282",
"0.5129782",
"0.51267767",
"0.5117927",
"0.5117879",
"0.5111956",
"0.51043975",
"0.51006067",
"0.51006037",
"0.5093779",
"0.5086504",
"0.5085502",
"0.50726974",
"0.5069221",
"0.5067023",
"0.5062816",
"0.5061008",
"0.5059655",
"0.50530046",
"0.5043282",
"0.5036254",
"0.5035807",
"0.50324124",
"0.5028494",
"0.50218195",
"0.5016453",
"0.5011515",
"0.49995556",
"0.49874413",
"0.4985729",
"0.4981058",
"0.49760875",
"0.4969354",
"0.49664798",
"0.49627697",
"0.49551085",
"0.49502274",
"0.4943328",
"0.49420303",
"0.49391982"
] |
0.0
|
-1
|
Creates an instance of LogProfileProperties class.
|
public LogProfileProperties() {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract Properties getProfileProperties();",
"public TestProperties() {\n\t\tthis.testProperties = new Properties();\n\t}",
"public static ParkingProfile init(String pathToParkingProfilePropertiesFile) throws Exception {\n if(\"Check for multiprofile enabled in propetties file\") {\n // Create singleton and set values\n return parkingProfile;\n } else {\n // Allow to create nultiple and set values\n return new ParkingProfile();\n }\n }",
"public PSBeanProperties()\n {\n loadProperties();\n }",
"ProfileStatusManager create( ProfileConfiguration profileConfiguration ) throws ProfileCreationException;",
"public static LoggerType init(Properties properties) {\n\n var loggerProperties = getLoggerProperties(properties);\n\n // fetch and verify definitions of some properties\n try {\n setOverrideLogbackLevels(loggerProperties);\n\n setLoggerLevel(loggerProperties, \"debugLogger.level\", \"INFO\", PolicyLogger::setDebugLevel);\n\n // Only check if it is to turn on or off\n setLoggerOnOff(loggerProperties, \"metricsLogger.level\", PolicyLogger::setMetricsLevel);\n setLoggerOnOff(loggerProperties, \"audit.level\", PolicyLogger::setAuditLevel);\n setLoggerOnOff(loggerProperties, \"error.level\", PolicyLogger::setErrorLevel);\n\n isEventTrackerRunning = false;\n\n timerDelayTime = getIntProp(loggerProperties, \"timer.delay.time\", timerDelayTime);\n checkInterval = getIntProp(loggerProperties, \"check.interval\", checkInterval);\n expiredTime = getIntProp(loggerProperties, \"event.expired.time\", expiredTime);\n concurrentHashMapLimit = getIntProp(loggerProperties, \"concurrentHashMap.limit\", concurrentHashMapLimit);\n stopCheckPoint = getIntProp(loggerProperties, \"stop.check.point\", stopCheckPoint);\n\n component = loggerProperties.getProperty(\"policy.component\", \"DROOLS\");\n debugLogger.info(\"component: {}\", component);\n\n return detmLoggerType(loggerProperties);\n\n } catch (Exception e) {\n MDC.put(ERROR_CATEGORY, ERROR_CATEGORY_VALUE);\n\n if (ErrorCodeMap.getErrorCodeInfo(MessageCodes.GENERAL_ERROR) != null) {\n MDC.put(ERROR_CODE, ErrorCodeMap.getErrorCodeInfo(MessageCodes.GENERAL_ERROR).getErrorCode());\n MDC.put(ERROR_DESCRIPTION, ErrorCodeMap.getErrorCodeInfo(MessageCodes.GENERAL_ERROR).getErrorDesc());\n\n }\n errorLogger.error(\"failed to get the policyLogger.properties, so use their default values\", e);\n\n return LoggerType.EELF;\n }\n\n }",
"private ConfigProperties() {\n\n }",
"public Profile() {}",
"private PropertiesUtils() {}",
"public LogProfileProperties withRetentionPolicy(RetentionPolicy retentionPolicy) {\n this.retentionPolicy = retentionPolicy;\n return this;\n }",
"public void setProfileProperties(Map<String, Object> profileProperties) {\n this.profileProperties = profileProperties;\n }",
"public CustomerPolicyProperties() {\n }",
"public\n YutilProperties()\n {\n super(new Properties());\n }",
"public ProfileContextInitializer(final String appName,\r\n\t\t\tfinal String appVersion, final String profileProperty) {\r\n\t\tthis.appName = appName;\r\n\t\tthis.appVersion = appVersion;\r\n\t\tthis.profileProperty = profileProperty;\r\n\t}",
"public static PropertiesUtil getInstance(){\n if (instance == null) {\n synchronized (PropertiesUtil.class){\n instance = new PropertiesUtil();\n instance.loadProperties();\n }\n }\n return instance;\n }",
"private static Map<String, String> createPropertiesAttrib() {\r\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"Property1\", \"Value1SA\");\r\n map.put(\"Property3\", \"Value3SA\");\r\n return map;\r\n }",
"private TerminalProperties() {\n this(new TerminalPropertiesBuilder());\n }",
"protected Properties newTestProperties() throws IOException\n {\n Properties props = new Properties();\n storeTestConf(props); \n return props;\n }",
"public PropertiesWriter() {\r\n }",
"private SpringProfile() {}",
"public ETLLogDAOImpl(Properties properties) {\r\n this(new Configuration().addProperties(properties));\r\n }",
"public FileServicePropertiesProperties() {\n }",
"private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<String, PropertyInfo> map = New.map();\r\n PropertyInfo samplingTime = new PropertyInfo(\"http://www.opengis.net/def/property/OGC/0/SamplingTime\", Date.class,\r\n TimeKey.DEFAULT);\r\n PropertyInfo lat = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Latitude\", Float.class, LatitudeKey.DEFAULT);\r\n PropertyInfo lon = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Longitude\", Float.class, LongitudeKey.DEFAULT);\r\n PropertyInfo alt = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Altitude\", Float.class, AltitudeKey.DEFAULT);\r\n map.put(samplingTime.getProperty(), samplingTime);\r\n map.put(lat.getProperty(), lat);\r\n map.put(lon.getProperty(), lon);\r\n map.put(alt.getProperty(), alt);\r\n map.put(\"lat\", lat);\r\n map.put(\"lon\", lon);\r\n map.put(\"alt\", alt);\r\n return Collections.unmodifiableMap(map);\r\n }",
"public Properties(){\n\n }",
"public static void setHash_profiles() {\n\t\t\r\n\t\tProfilePojo pf1 = new ProfilePojo(1, \"Sonal\");\r\n\t\tProfilePojo pf2 = new ProfilePojo(2, \"Komal\");\r\n\t\tProfilePojo pf3 = new ProfilePojo(3, \"Sanidh\");\r\n\t\tProfilePojo pf4 = new ProfilePojo(4, \"Vanshika\");\r\n\t\thash_profiles.put((long) 1, pf1);\r\n\t\thash_profiles.put((long) 2, pf2);\r\n\t\thash_profiles.put((long) 3, pf3);\r\n\t\thash_profiles.put((long) 4, pf4);\r\n\t\t\r\n\t}",
"public LoadTestProperties() {\n }",
"static AuditYamlConfigurationLoader withProperties(Properties properties)\n {\n return new AuditYamlConfigurationLoader(properties);\n }",
"private AuditYamlConfigurationLoader(Properties properties)\n {\n this.properties = new Properties(properties);\n }",
"public DiskRestorePointProperties() {\n }",
"public MaintenanceWindowsProperties() {\n }",
"public MapsAccountProperties() {\n }",
"public Map<String, Object> getProfileProperties() {\n return profileProperties;\n }",
"public static Properties getProperties() {\n \tif (!propertiesLoaded)\n \t\tSystem.err.println(\"Warning: Default properties loaded\");\n \t\n \t\n \tif (properties == null)\n \t\tproperties = new Properties();\n \t\n \t\n \treturn properties;\n }",
"private void createPropertiesFile(final File configFile) throws IOException {\n if (configFile.createNewFile()) {\n FileWriter writer = new FileWriter(configFile);\n writer.append(\"ch.hslu.vsk.server.port=1337\\n\");\n writer.append(\"ch.hslu.vsk.server.logfile=\");\n writer.flush();\n writer.close();\n }\n }",
"public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }",
"public static TimeTakenLogEntry create() {\n return builder().build();\n }",
"public Properties getProperties() {\n \tProperties p = new Properties(); \n if (charSet != null) {\n \t p.put(\"charSet\",charSet);\n } \n\t\n\tif (user != null) {\n \t p.put(\"user\", user);\n }\n\t\n\tif (password != null) {\n \t p.put(\"password\", password);\n }\n\t\n\tif (url != null){\n\t p.put(\"url\",url);\t\n\t}\t\n\tp.put(\"loginTimeout\",\"\"+loginTimeout);\n \treturn p; \n }",
"private static Properties createLoaderProperties(String inPrefix) {\r\n Properties props = new Properties();\r\n props.setProperty(inPrefix + \"Property1\", \"Value1Prop\");\r\n props.setProperty(inPrefix + \"Property2\", \"Value2Prop\");\r\n return props;\r\n }",
"void writeProperties(java.util.Properties p) {\n }",
"private PropertyUtil(){\n\t\ttry{\n\t\t\tloadURL();\n\t\t\tRuntime.getRuntime().addShutdownHook(new UtilShutdownHook());\n\t\t}catch(IOException ioe){\n\t\t\tLOGGER.error(\"Unable to load Property File\\n\"+ioe);\n\t\t}\n\t\tLOGGER.debug(\"INSTANTIATED\");\n\t}",
"public void getProperties() throws IllegalArgumentException, IllegalAccessException {\r\n\t\t Class<?> aClass = this.getClass();\r\n\t\t Field[] declaredFields = aClass.getDeclaredFields();\r\n\t\t Map<String, String> logEntries = new HashMap<>();\r\n\r\n\t\t for (Field field : declaredFields) {\r\n\t\t field.setAccessible(true);\r\n\r\n\t\t Object[] arguments = new Object[]{\r\n\t\t field.getName(),\r\n\t\t field.getType().getSimpleName(),\r\n\t\t String.valueOf(field.get(this))\r\n\t\t };\r\n\r\n\t\t String template = \"- Property: {0} (Type: {1}, Value: {2})\";\r\n\t\t String logMessage = System.getProperty(\"line.separator\")\r\n\t\t + MessageFormat.format(template, arguments);\r\n\r\n\t\t logEntries.put(field.getName(), logMessage);\r\n\t\t }\r\n\r\n\t\t SortedSet<String> sortedLog = new TreeSet<>(logEntries.keySet());\r\n\r\n\t\t StringBuilder sb = new StringBuilder(\"Class properties:\");\r\n\r\n\t\t Iterator<String> it = sortedLog.iterator();\r\n\t\t while (it.hasNext()) {\r\n\t\t String key = it.next();\r\n\t\t sb.append(logEntries.get(key));\r\n\t\t }\r\n\r\n\t\t System.out.println(sb.toString());\r\n\t\t}",
"void initializeLogging(String loggingProperties);",
"public PropertiesPlus(Properties properties)\n\t{\n\t\tsuper(properties);\n\t\tdateFormatGMT.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t\tdateFormatGMT_MS.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t}",
"public LogProfileProperties withCategories(List<String> categories) {\n this.categories = categories;\n return this;\n }",
"public\n YutilProperties(YutilProperties argprops)\n {\n super(new Properties());\n setPropertiesDefaults(argprops);\n }",
"protected BaseTestObject()\n {\n\n fProp = new Properties(); // empty properties object\n fLog = TestLogger.getInstance(); // default level is DEBUG\n\n }",
"public static ConfigProperties getInstance() {\r\n\r\n if (instance==null) {\r\n instance=new ConfigProperties();\r\n }\r\n return instance;\r\n }",
"private static Properties getProperties() {\n var properties = new Properties();\n properties.setProperty(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, \"127.0.0.1:9092\");\n properties.setProperty(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, StringSerializer.class.getName());\n properties.setProperty(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, GsonSerializer.class.getName());\n return properties;\n }",
"public static void addProperty(String [] propertyValues){\r\n Property oneProperty = new Property();\r\n oneProperty = setPropertyAttributes(oneProperty, propertyValues);\r\n propertyLogImpl.add(oneProperty);\r\n }",
"@Override\n\t\tpublic ProfileImpl build() {\n\t\t\treturn new ProfileImpl(\n\t\t\t\tsecurity,\n\t\t\t\t(ProfileInfo)map.get(PROFILE_INFO),\n\t\t\t\t(Address)map.get(ADDRESS),\n\t\t\t\t(Address)map.get(SHIPPING_ADDRESS),\n\t\t\t\t(Social)map.get(SOCIAL),\n\t\t\t\t(Attributes)map.get(ATTRIBUTES)\n\t\t\t);\n\t\t}",
"public KeyVaultProperties() {\n }",
"@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }",
"public Properties initProperties() {\r\n\t\tprop = new Properties();\r\n\t\ttry {\r\n\t\t\tFileInputStream fis = new FileInputStream(\"./src/main/java/com/automation/qe/config/config.properties\");\r\n\t\t\tprop.load(fis);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn prop;\r\n\t}",
"public PropertiesUtil() {\n\t\t// Read properties file.\n\n\t\tproperties = new Properties();\n\t\ttry {\n\t\t\tproperties.load(PropertiesUtil.class.getClassLoader().getResourceAsStream(\"variables.properties\"));\n\t\t\tlog.info(\"variables.properties file loaded successfully\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"variables.properties file not found: \", e);\n\t\t}\n\t}",
"private static synchronized Properties getLoggingProperties() {\n if (_hasLoggingProperties && (_loggingProperties == null)) {\n String fileName = System.getProperty(\n \"java.util.logging.config.file\"); // NOI18N\n\n if (fileName == null) {\n fileName = System.getProperty(\"java.home\");\t// NOI18N\n\n if (fileName != null) {\n File file = new File(fileName, \"lib\");\t// NOI18N\n\n file = new File(file, \"logging.properties\");\t// NOI18N\n\n try {\n fileName = file.getCanonicalPath();\n } catch (IOException ioe) {\n fileName = null;\n }\n }\n }\n\n if (fileName != null) {\n InputStream inputStream = null;\n File file = null;\n\n try {\n Properties properties = new Properties();\n BufferedInputStream bufferedInputStream = null;\n\n inputStream = new FileInputStream(fileName);\n bufferedInputStream = new BufferedInputStream(inputStream);\n properties.load(bufferedInputStream);\n _loggingProperties = properties;\n } catch (Exception e) {\n _hasLoggingProperties = false;\n } finally {\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException ioe) {\n // couldn't close it for some reason\n }\n }\n }\n } else {\n _hasLoggingProperties = false;\n }\n }\n\n return _loggingProperties;\n }",
"public static Properties getInstance() throws IOException {\n if (instance == null) {\n instance = new Properties();\n FileReader in = new FileReader(PROPERTIES_DIR + PROPERTIES_FILE);\n instance.load(in);\n }\n return instance;\n }",
"public interface PropertiesFactory {\n\n\t/**\n\t * Creates properties list.\n\t * @param app properties for app\n\t * @param localization localization for properties\n\t * @param onLanguageSetCallback callback when language is set\n\t * @return a list of properties\n\t */\n\tList<PropertiesArray> createProperties(App app, Localization localization,\n\t\t\tLanguageProperty.OnLanguageSetCallback onLanguageSetCallback);\n}",
"public DefaultProperties() {\n\t\t// Festlegung der Werte für Admin-Zugang\n\t\tthis.setProperty(\"admin.username\", \"admin\");\n\t\tthis.setProperty(\"admin.password\", \"password\");\n\t\tthis.setProperty(\"management.port\", \"8443\");\n\n\t\t// Festlegung der Werte für CouchDB-Verbindung\n\t\tthis.setProperty(\"couchdb.adress\", \"http://localhost\");\n\t\tthis.setProperty(\"couchdb.port\", \"5984\");\n\t\tthis.setProperty(\"couchdb.databaseName\", \"profiles\");\n\n\t\t// Festlegung der Werte für Zeitvergleiche\n\t\tthis.setProperty(\"server.minTimeDifference\", \"5\");\n\t\tthis.setProperty(\"server.monthsBeforeDeletion\", \"18\");\n\t}",
"public void init(java.util.Properties props) {\r\n }",
"protected Map createPropertiesMap() {\n return new HashMap();\n }",
"private static Properties init(){\n // Get a Properties object\n Properties props = System.getProperties();\n props.setProperty(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.setProperty(\"mail.smtp.socketFactory.class\", SSL_FACTORY);\n props.setProperty(\"mail.smtp.socketFactory.fallback\", \"false\");\n props.setProperty(\"mail.smtp.port\", \"465\");\n props.setProperty(\"mail.smtp.socketFactory.port\", \"465\");\n props.put(\"mail.smtp.auth\", \"true\");\n //props.put(\"mail.debug\", \"true\");\n props.put(\"mail.store.protocol\", \"pop3\");\n props.put(\"mail.transport.protocol\", \"smtp\");\n\n return props;\n }",
"private static void loadPropertiesFile() {\n checkNotNull(propertyFileName, \"propertyFileName cannot be null\");\n String currentDir = new File(\"\").getAbsolutePath();\n propertyFile = currentDir + \"/\" + propertyFileName;\n File propFile = new File(propertyFile);\n try {\n propFile.createNewFile();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n\n props = new Properties();\n try {\n FileInputStream fis = new FileInputStream(propertyFile);\n props.load(fis);\n fis.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }",
"public Property createProperty() {\n if (newProject == null) {\n reinit();\n }\n Property p = new Property(true, getProject());\n p.setProject(newProject);\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }",
"public static PropertyUtil getInstance(){\t\t\n\t\tif(resource==null){\n\t\t\tresource = new PropertyUtil();\n\t\t}\n\t\treturn resource;\n\t}",
"@Override\n public ICMakeBuildElement createBuildProperties(Path path) {\n return CMakeBuildProperties.make(path);\n }",
"private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}",
"public Properties init_prop() {\n\t\tprop = new Properties();\n\t\tString path = null;\n\t\tString env = null;\n\n\t\ttry {\n\n\t\t\tenv = System.getProperty(\"env\");\n\t\t\tSystem.out.println(\"Running on Envirnment: \" + env);\n\n\t\t\tif (env == null) {\n\t\t\t\tSystem.out.println(\"Default Envirnment: \" + \"PROD\");\n\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\n\t\t\t} else {\n\t\t\t\tswitch (env) {\n\t\t\t\tcase \"qa\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.qa.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"dev\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.dev.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"stage\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.stage.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"prod\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Please Pass the Correct Env Value...\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tFileInputStream finput = new FileInputStream(path);\n\t\t\tprop.load(finput);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn prop;\n\t}",
"public ProfileManager() {\r\n this.profileDAO = DAOFactory.getProfileDAOInstance();\r\n }",
"public ConfigProfile buildProfileOne() {\n this.topics = \"kafka-data\";\n this.token = \"mytoken\";\n this.uri = \"https://dummy:8088\";\n this.raw = true;\n this.ack = false;\n this.indexes = \"index-1\";\n this.sourcetypes = \"kafka-data\";\n this.sources = \"kafka-connect\";\n this.httpKeepAlive = true;\n this.validateCertificates = true;\n this.hasTrustStorePath = true;\n this.trustStorePath = \"./src/test/resources/keystoretest.p12\";\n this.trustStoreType = \"PKCS12\";\n this.trustStorePassword = \"Notchangeme\";\n this.eventBatchTimeout = 1;\n this.ackPollInterval = 1;\n this.ackPollThreads = 1;\n this.maxHttpConnPerChannel = 1;\n this.totalHecChannels = 1;\n this.socketTimeout = 1;\n this.enrichements = \"hello=world\";\n this.enrichementMap = new HashMap<>();\n this.trackData = false;\n this.maxBatchSize = 1;\n this.numOfThreads = 1;\n return this;\n }",
"public ServerProperties() {\n try {\n initializeProperties();\n }\n catch (Exception e) {\n System.out.println(\"Error initializing server properties.\");\n }\n }",
"public Properties() {\n\n\t\tconfig = new java.util.Properties();\n\n\t\ttry {\n\t\t\tInputStream input = new FileInputStream(new File(\n\t\t\t\t\t\"ConfigurationFile.txt\"));\n\t\t\tconfig.load(input);\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public static Properties getProperties() {\n\t\tProperties properties = new Properties();\n\t\tproperties.setProperty(\"user\", \"root\");\n\t\tproperties.setProperty(\"password\", \"password1\");\n\t\tproperties.setProperty(\"useSSL\", \"false\");\n\n\t\treturn properties;\n\t}",
"public DimensionProperties() {\n }",
"public static mxPropertiesManager getInstance()\n\t{\n\t\tif (propertiesManager == null)\n\t\t{\n\t\t\tpropertiesManager = new mxPropertiesManager();\n\t\t}\n\t\treturn propertiesManager;\n\t}",
"public BaseClass() {\n\t\t \n\t try {\n\t\t\t \n\t\t\t prop=new Properties();\n\t\t\t \n\t\t\tString path=System.getProperty(\"user.dir\");\n\t\t\t \n\t\t\t // FileInputStream is the pre-defined class\n\t\t\tFileInputStream ip=new FileInputStream(path+\"\\\\src\\\\main\\\\java\\\\com\\\\demoQA\\\\config\\\\Config.Properties\");\n\t\t\t prop.load(ip);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t \n\t\t \n\t }",
"AccountProperties properties();",
"private void createApplicationProperties()\n {\n _applicationPropertiesMap = new HashMap<String,Object>();\n _message.setApplicationProperties(new ApplicationProperties(_applicationPropertiesMap));\n }",
"public synchronized static PropertiesUtil getInstance() {\n if(INSTANCE == null) {\n INSTANCE = new PropertiesUtil();\n }\n return INSTANCE;\n }",
"public void init(Properties props) ;",
"public PropertiesPlus()\n\t{\n\t\tsuper();\n\t\tdateFormatGMT.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t\tdateFormatGMT_MS.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t}",
"public ApplicationDefinitionProperties() {\n }",
"public ProfileProjectBean() {\n }",
"@Override\n\tpublic long createProfile(Profile profile) {\n\t\treturn 0;\n\t}",
"private mxPropertiesManager()\n\t{\n\t}",
"public static void traceProperties(final Logger log,\n\t\t\tfinal Map<String, ?> properties) {\n\t\tif (log.isTraceEnabled()) {\n\t\t\tfinal SortedSet<String> keys = new TreeSet<String>(\n\t\t\t\t\tproperties.keySet());\n\t\t\tlog.trace(\" Component Properties :\");\n\t\t\tfor (final String key : keys) {\n\t\t\t\tlog.trace(\" \" + key + \" = \" + properties.get(key));\n\t\t\t}\n\t\t}\n\t}",
"public void testCtor1() throws Exception {\n assertNotNull(\"Failed to create PropertiesPanel instance.\", new PropertiesPanel(NAMESPACE, manager));\n }",
"@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }",
"public PropertyManager() {\n propFileName = System.getProperty(\"user.home\") + File.separator +\n defPropFile;\n\n recentResult = loadPropertyFile(propFileName);\n }",
"private WebSSOProfileConsumer getWebSSOprofileConsumer() {\n\t\tlong maxAuthAge = 24;\n\t\tif (samlProps != null) {\n\t\t\tString maxAuthAgeStr = samlProps.getOrDefault(\"maxAuthAge\", \"24\");\n\n\t\t\ttry {\n\t\t\t\tmaxAuthAge = Long.parseLong(maxAuthAgeStr);\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.error(\"Invalid max. authentication age: \" + maxAuthAgeStr + \". Defaulting to 24 hours\", e);\n\t\t\t}\n\t\t}\n\n\t\tWebSSOProfileConsumerImpl consumer = new WebSSOProfileConsumerImpl();\n\t\tconsumer.setMaxAuthenticationAge(maxAuthAge * 60 * 60);\n\t\treturn consumer;\n\t}",
"public DetectionProperties() throws Exception {\n super(DetectionProperties.class.getResourceAsStream(PROPERTIES_FILE_NAME));\n }",
"public Config(Properties props) {\n entries = (Properties)props.clone();\n }",
"Property createProperty();",
"public UserProfile() {}",
"private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }",
"public ProfileService() {\n \t\tthis(DEFAULT_ENDPOINT_NAME, DEFAULT_CACHE_SIZE);\n \t\tinitializeCache(DEFAULT_CACHE_SIZE);\n \t}",
"public static synchronized void initProjectProperties() {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.initProjectProperties\");\n try {\n String projectPropertiesFilename = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_PROPERTIES_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_SERVED_PROJECTNAME_PREFIX + getTestProjectName() + \".properties\";\n File projectPropertiesFile = new File(projectPropertiesFilename);\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.initProjectProperties project properties file name: [\" + projectPropertiesFilename + \"]\");\n\n if (projectPropertiesFile.exists()) {\n // If the properties file exists, delete it, so we can create a fresh one.\n projectPropertiesFile.delete();\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.initProjectProperties deleting existing property file.\");\n }\n // Make sure the properties directory exists...\n if (!projectPropertiesFile.getParentFile().exists()) {\n projectPropertiesFile.getParentFile().mkdirs();\n }\n\n // Make sure the property file exists. (This should create it.)\n if (projectPropertiesFile.createNewFile()) {\n AbstractProjectProperties projectProperties = ProjectPropertiesFactory.getProjectPropertiesFactory().buildProjectProperties(getTestProjectName(), QVCSConstants.QVCS_SERVED_PROJECT_TYPE);\n\n // This is where the archives go...\n String projectLocation = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_PROJECTS_DIRECTORY\n + File.separator\n + getTestProjectName();\n\n File archiveLocation = new File (projectLocation);\n String canonicalArchiveLocation = archiveLocation.getCanonicalPath();\n\n // This the root directory for the archives for this project.\n projectProperties.setArchiveLocation(canonicalArchiveLocation);\n\n // Make sure the directory exists.\n File projectDirectory = new File(projectLocation);\n projectDirectory.mkdirs();\n\n // Set the project info for the reference copies\n projectProperties.setCreateReferenceCopyFlag(false);\n\n // Set the ignore case flag.\n projectProperties.setIgnoreCaseFlag(true);\n\n projectProperties.setDirectoryContentsInitializedFlag(true);\n\n projectProperties.saveProperties();\n }\n } catch (IOException e) {\n Logger.getLogger(TestHelper.class.getName()).log(Level.SEVERE, null, e);\n }\n }",
"public BaseTest() {\n\t\t\n\t\tprop= new Properties();\n\t\t\n\t\ttry {\n\t\t\tFileInputStream fle= new FileInputStream(\"C:\\\\Users\\\\19175\\\\eclipse-workspace\\\\com.toyota\\\\src\\\\test\\\\java\\\\Config\\\\config.properties\"); // Path of the Properties file\n\t\t\tprop.load(fle);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public ManagedHsmProperties() {\n }",
"WithCreate withProperties(AccountProperties properties);",
"public ConfigProfile buildProfileFour() {\n this.topicsRegex = \"^kafka-data[0-9]$\";\n this.token = \"mytoken\";\n this.uri = \"https://dummy:8088\";\n this.raw = true;\n this.ack = false;\n this.indexes = \"index-1\";\n this.sourcetypes = \"kafka-data\";\n this.sources = \"kafka-connect\";\n this.httpKeepAlive = true;\n this.validateCertificates = false;\n this.eventBatchTimeout = 1;\n this.ackPollInterval = 1;\n this.ackPollThreads = 1;\n this.maxHttpConnPerChannel = 1;\n this.totalHecChannels = 1;\n this.socketTimeout = 1;\n this.enrichements = \"hello=world\";\n this.enrichementMap = new HashMap<>();\n this.trackData = false;\n this.maxBatchSize = 1;\n this.numOfThreads = 1;\n this.headerSupport = true;\n this.headerIndex = \"splunk.header.index\";\n this.headerSource = \"splunk.header.source\";\n this.headerSourcetype = \"splunk.header.sourcetype\";\n this.headerHost = \"splunk.header.host\";\n\n return this;\n }"
] |
[
"0.5780971",
"0.57276565",
"0.5585642",
"0.5561661",
"0.5547458",
"0.54911786",
"0.5421242",
"0.54167753",
"0.53930384",
"0.53857213",
"0.53270596",
"0.5325961",
"0.5307093",
"0.5282313",
"0.52171934",
"0.5189046",
"0.5153249",
"0.5107754",
"0.50962716",
"0.5087976",
"0.5073984",
"0.5059371",
"0.5058705",
"0.5052994",
"0.5047417",
"0.49950114",
"0.49649277",
"0.49574137",
"0.49513003",
"0.49305847",
"0.49232197",
"0.49191153",
"0.48977703",
"0.48929507",
"0.48846954",
"0.4880006",
"0.4878429",
"0.48772413",
"0.48682907",
"0.48666182",
"0.48618394",
"0.48605984",
"0.48531026",
"0.48512703",
"0.48473853",
"0.48394108",
"0.4817669",
"0.48135817",
"0.48073906",
"0.48068395",
"0.48064193",
"0.48058552",
"0.47983742",
"0.47771254",
"0.47723857",
"0.4766962",
"0.47582301",
"0.47533768",
"0.47523767",
"0.4739661",
"0.47327247",
"0.47236934",
"0.47197014",
"0.47189477",
"0.46977764",
"0.46817756",
"0.46804094",
"0.46768656",
"0.46744758",
"0.46737742",
"0.46720207",
"0.46690038",
"0.46646953",
"0.46510613",
"0.46501833",
"0.46479824",
"0.46383536",
"0.4636361",
"0.46341932",
"0.46273452",
"0.46272662",
"0.46220553",
"0.4619053",
"0.46166337",
"0.46096244",
"0.4597101",
"0.458809",
"0.45798567",
"0.45758146",
"0.45733616",
"0.45691043",
"0.4564159",
"0.4561773",
"0.45606995",
"0.45586282",
"0.4552616",
"0.45508814",
"0.45508197",
"0.4540556",
"0.45360443"
] |
0.8080258
|
0
|
Get the storageAccountId property: the resource id of the storage account to which you would like to send the Activity Log.
|
public String storageAccountId() {
return this.storageAccountId;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String targetBootDiagnosticsStorageAccountId() {\n return this.targetBootDiagnosticsStorageAccountId;\n }",
"public String storageAccount() {\n return this.storageAccount;\n }",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"public String getAccountId() {\n return mAccountId;\n }",
"public long getAccountId() {\n return accountId;\n }",
"public String getAccountId() {\n return accountId;\n }",
"public String getAccountId() {\n return accountId;\n }",
"public String getAccountId() {\r\n return (String) getAttributeInternal(ACCOUNTID);\r\n }",
"public Long getAccountId() {\n return accountId;\n }",
"public long getAccountId() {\n\t\treturn accountId;\n\t}",
"public StorageAccount storageAccount() {\n return this.storageAccount;\n }",
"public StorageAccount storageAccount() {\n return this.storageAccount;\n }",
"public String getAccountId() {\n return this.accountId;\n }",
"public String getAccountId() {\n\t\treturn accountId;\n\t}",
"public String getAccountId() {\n\t\treturn accountId;\n\t}",
"public Integer getAccountId() {\n return accountId;\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"public Long getAccountId() {\n\t\treturn accountId;\n\t}",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int getAccountId() {\n return accountId;\n }",
"public Integer getAccountId() {\n return this.accountId;\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\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 accountId_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\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 accountId_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\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 accountId_ = s;\n }\n return s;\n }\n }",
"Long getAccountId();",
"public Long getUserAccountId() {\r\n return userAccountId;\r\n }",
"public FileStorageAccount getAccount() {\n return account;\n }",
"public String getAccountLogId() {\n return accountLogId;\n }",
"public String getAccountId() {\n return (String)(userItem.getId());\n }",
"com.google.protobuf.ByteString\n getAccountIdBytes();",
"com.google.protobuf.ByteString\n getAccountIdBytes();",
"com.google.protobuf.ByteString\n getAccountIdBytes();",
"public Long getTargetAccountId() {\n return targetAccountId;\n }",
"public Long getStorageRecordId() {\n return storageRecordId;\n }",
"public Long getSourceAccountId() {\n return sourceAccountId;\n }",
"public String getCampaignAccount() {\n return (tozAdCampaignAccount);\n }",
"public io.lightcone.data.types.AccountID getAccountId() {\n if (accountIdBuilder_ == null) {\n return accountId_ == null ? io.lightcone.data.types.AccountID.getDefaultInstance() : accountId_;\n } else {\n return accountIdBuilder_.getMessage();\n }\n }",
"public String snapshotRunAsAccountId() {\n return this.snapshotRunAsAccountId;\n }",
"public io.lightcone.data.types.AccountIDOrBuilder getAccountIdOrBuilder() {\n return getAccountId();\n }",
"public io.lightcone.data.types.AccountID getAccountId() {\n return accountId_ == null ? io.lightcone.data.types.AccountID.getDefaultInstance() : accountId_;\n }",
"public String getMyAccountId()\n\t{\n\t\treturn (String) session.getAttribute(\"accountId\");\n\t}",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\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 accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\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 accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\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 accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getAccountIdType() {\n return accountIdType;\n }",
"public String dataMoverRunAsAccountId() {\n return this.dataMoverRunAsAccountId;\n }",
"public LogProfileProperties withStorageAccountId(String storageAccountId) {\n this.storageAccountId = storageAccountId;\n return this;\n }",
"public java.lang.String getAccount_Id() {\n return account_Id;\n }",
"public String getAccountAuthId() {\n return accountAuthId;\n }",
"public String getAccountID() {\n return (tozAdAccountID);\n }",
"public String getAccountAuthId() {\n return accountAuthId;\n }",
"String getAccountID();",
"String getAccountID();",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"ID of the account that created this participant.\")\n\n public String getAccountId() {\n return accountId;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public io.lightcone.data.types.AccountIDOrBuilder getAccountIdOrBuilder() {\n if (accountIdBuilder_ != null) {\n return accountIdBuilder_.getMessageOrBuilder();\n } else {\n return accountId_ == null ?\n io.lightcone.data.types.AccountID.getDefaultInstance() : accountId_;\n }\n }",
"public long getAccountId()\r\n/* 115: */ {\r\n/* 116:121 */ return this.accountId;\r\n/* 117: */ }",
"@Override\n\tpublic String toString() {\n\t\treturn accountID;\n\t}",
"public String getAccount() {\r\n return account;\r\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getActivityId() {\n return activityId;\n }",
"public Integer getActivityId() {\n return activityId;\n }",
"public String getID(){\n return this.getKey().getTenantId(this.getTenantName());\n }",
"public int getAccountID() {\n return accountID;\n }",
"public java.lang.Object getAccountID() {\n return accountID;\n }",
"public long getAuditLogId() {\n return auditLogId;\n }",
"public Integer getOutAccountId() {\r\n return outAccountId;\r\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\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 account_ = s;\n return s;\n }\n }",
"public String getAccount() {\r\n\t\treturn account;\r\n\t}",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public ExoSocialActivity getActivity(String activityId) throws ActivityStorageException;",
"public String getCredentialId() {\n return this.CredentialId;\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\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 account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setAccountId(UUID accountId) {\n this.accountId = accountId;\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\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 account_ = s;\n }\n return s;\n }\n }",
"@JsonProperty(\"accountId\")\n public String getAccountId() {\n return accountId;\n }",
"public DiagnosticsStorageAccountConfig diagnosticsStorageAccountConfig() {\n return this.diagnosticsStorageAccountConfig;\n }",
"public void setAccountId(String accountId) {\n this.accountId = accountId;\n }",
"public Integer getAccountSrcId() {\n return accountSrcId;\n }",
"@ApiModelProperty(value = \"The Xero identifier for an account\")\n /**\n * The Xero identifier for an account\n *\n * @return accountId UUID\n */\n public UUID getAccountId() {\n return accountId;\n }",
"public Integer getAcctId() {\n return acctId;\n }"
] |
[
"0.6704123",
"0.65981984",
"0.65092003",
"0.65092003",
"0.65092003",
"0.6487785",
"0.64840376",
"0.6385436",
"0.6385436",
"0.6348962",
"0.63446206",
"0.6340071",
"0.63275605",
"0.63275605",
"0.6326916",
"0.62635535",
"0.62635535",
"0.62508106",
"0.62508106",
"0.6238067",
"0.6208929",
"0.6208929",
"0.6208929",
"0.61979777",
"0.6192329",
"0.618893",
"0.618893",
"0.618893",
"0.6187097",
"0.6096173",
"0.60915345",
"0.60515267",
"0.6045488",
"0.60277677",
"0.60277677",
"0.60277677",
"0.6010571",
"0.5877759",
"0.57774603",
"0.5760615",
"0.5735566",
"0.57261056",
"0.5712093",
"0.5707542",
"0.56344527",
"0.5631825",
"0.5631825",
"0.5631825",
"0.5613893",
"0.5613893",
"0.5613893",
"0.55815953",
"0.5556992",
"0.5530401",
"0.5476797",
"0.5460558",
"0.54504967",
"0.5411842",
"0.53830373",
"0.53830373",
"0.53728783",
"0.53728783",
"0.5365545",
"0.5363367",
"0.5363367",
"0.53089774",
"0.53084517",
"0.5266797",
"0.52347416",
"0.52307075",
"0.52307075",
"0.52307075",
"0.52307075",
"0.52307075",
"0.52307075",
"0.52307075",
"0.52307075",
"0.52307075",
"0.52307075",
"0.52191925",
"0.5208679",
"0.51747304",
"0.5168808",
"0.51609683",
"0.5151248",
"0.5144026",
"0.5130269",
"0.51270634",
"0.5115102",
"0.51121736",
"0.510074",
"0.50994056",
"0.50982183",
"0.5090052",
"0.50792104",
"0.5072383",
"0.50574523",
"0.5045808",
"0.50405794",
"0.5039436"
] |
0.78185225
|
0
|
Set the storageAccountId property: the resource id of the storage account to which you would like to send the Activity Log.
|
public LogProfileProperties withStorageAccountId(String storageAccountId) {
this.storageAccountId = storageAccountId;
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setAccountId(UUID accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(String accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(int accountId) {\n this.accountId = accountId;\n }",
"public String storageAccountId() {\n return this.storageAccountId;\n }",
"public void setAccountId(String accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(String accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(String value) {\r\n setAttributeInternal(ACCOUNTID, value);\r\n }",
"public void setAccountId(Integer accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(String s) { accountId = s;}",
"public void setAccountId(long value) {\n this.accountId = value;\n }",
"public void setAccountId(Long accountId) {\n this.accountId = accountId;\n }",
"public void setUserAccountId(Long userAccountId) {\r\n this.userAccountId = userAccountId;\r\n }",
"void setAccountId(Long accountId);",
"public void setAccountId(Integer value) {\n this.accountId = value;\n }",
"public void setAccountId(Long accountId) {\n\t\tthis.accountId = accountId;\n\t}",
"public void setAccountId(String accountId) {\n this.accountId = accountId == null ? null : accountId.trim();\n }",
"public void setAccountId(String accountId) {\n\t\tthis.accountId = accountId == null ? null : accountId.trim();\n\t}",
"public void setAccountId(String accountId) {\n\t\tthis.accountId = accountId == null ? null : accountId.trim();\n\t}",
"public void setActivityId(String activityId) {\n this.activityId = activityId;\n }",
"public void setTargetAccountId(Long targetAccountId) {\n this.targetAccountId = targetAccountId;\n }",
"public External withStorageAccount(StorageAccount storageAccount) {\n this.storageAccount = storageAccount;\n return this;\n }",
"public Builder setAccountId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n accountId_ = value;\n onChanged();\n return this;\n }",
"public Builder setAccountId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n accountId_ = value;\n onChanged();\n return this;\n }",
"public Builder setAccountId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n accountId_ = value;\n onChanged();\n return this;\n }",
"public void setActivityId(Integer activityId) {\n this.activityId = activityId;\n }",
"public String targetBootDiagnosticsStorageAccountId() {\n return this.targetBootDiagnosticsStorageAccountId;\n }",
"public void setStorageRecordId(Long storageRecordId) {\n this.storageRecordId = storageRecordId;\n }",
"public void setCallLogsFriend(String account, String device);",
"public void setActivityId(Integer activityId) {\n\t\tthis.activityId = activityId;\n\t}",
"public String storageAccount() {\n return this.storageAccount;\n }",
"public Builder setAccountIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n accountId_ = value;\n onChanged();\n return this;\n }",
"public Builder setAccountIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n accountId_ = value;\n onChanged();\n return this;\n }",
"public Builder setAccountIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n accountId_ = value;\n onChanged();\n return this;\n }",
"public void setAccount(String accountID) {\n this.account = accountID;\n }",
"public String getAccountId() {\n return mAccountId;\n }",
"public void setAccount(Account account) {\n this.account = account;\n }",
"public String getAccountId() {\n return this.accountId;\n }",
"public ExoSocialActivity getActivity(String activityId) throws ActivityStorageException;",
"public String getAccountId() {\n return accountId;\n }",
"public String getAccountId() {\n return accountId;\n }",
"public void setAccountIdType(String accountIdType) {\n this.accountIdType = accountIdType;\n }",
"private void setAccount(SessionData sessionData, Account account) {\n \ttry {\n\t sessionData.set(\"account\", account);\n \t} catch (Exception e) {\n \t throw new RuntimeException(e.toString());\n \t}\n }",
"public Long getTargetAccountId() {\n return targetAccountId;\n }",
"public long getAccountId() {\n return accountId;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setCampaignAccount(String campaignAccount) {\n if ((campaignAccount != null) && !campaignAccount.isEmpty()) {\n tozAdCampaignAccount = campaignAccount;\n }\n else tozAdCampaignAccount = \"default\";\n }",
"public String getAccountId() {\n\t\treturn accountId;\n\t}",
"public String getAccountId() {\n\t\treturn accountId;\n\t}",
"public void setAccount_Id(java.lang.String account_Id) {\n this.account_Id = account_Id;\n }",
"public void setAccountService(AccountService accountService){\n this.accountService = accountService;\n }",
"void setAccount(final Account account);",
"@ZAttr(id=831)\n public void setGalAccountId(String[] zimbraGalAccountId) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalAccountId, zimbraGalAccountId);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public\n void\n setAccount(Account account)\n {\n itsAccount = account;\n }",
"public Long getAccountId() {\n return accountId;\n }",
"public void setTenantStorageRole(String tenantStorageRole) {\n this.tenantStorageRole = tenantStorageRole;\n }",
"public long getAccountId() {\n\t\treturn accountId;\n\t}",
"public void updateActivity(ExoSocialActivity existingActivity) throws ActivityStorageException;",
"protected void setAccountName(final String account) {\n this.account = account;\n }",
"public void setAccount(Account associatedAccount){\r\n\t\tthis.associatedAccount = associatedAccount;\r\n\t}",
"public Long getAccountId() {\n\t\treturn accountId;\n\t}",
"public StorageAccount storageAccount() {\n return this.storageAccount;\n }",
"public StorageAccount storageAccount() {\n return this.storageAccount;\n }",
"public void setAccount(String account) {\r\n\t\tthis.account = account;\r\n\t}",
"public String getAccountLogId() {\n return accountLogId;\n }",
"void setActivityStore(ActivityStore activityStore) {\n this.activityStore = activityStore;\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"public final void setTest_Activity(com.mendix.systemwideinterfaces.core.IContext context, ugs.proxies.Test test_activity)\n\t{\n\t\tif (test_activity == null)\n\t\t\tgetMendixObject().setValue(context, MemberNames.Test_Activity.toString(), null);\n\t\telse\n\t\t\tgetMendixObject().setValue(context, MemberNames.Test_Activity.toString(), test_activity.getMendixObject().getId());\n\t}",
"public int getAccountId() {\n return accountId;\n }",
"public void setAccountAuthId(String value) {\n this.accountAuthId = value;\n }",
"public Integer getAccountId() {\n return this.accountId;\n }",
"public void setCredential(final Object credential)\n {\n checkImmutable();\n if (this.logger.isTraceEnabled()) {\n if (this.getLogCredentials()) {\n this.logger.trace(\"setting credential: \" + credential);\n } else {\n this.logger.trace(\"setting credential: <suppressed>\");\n }\n }\n this.credential = credential;\n }",
"public void setCredential(final Object credential)\n {\n checkImmutable();\n if (this.logger.isTraceEnabled()) {\n if (this.getLogCredentials()) {\n this.logger.trace(\"setting credential: \" + credential);\n } else {\n this.logger.trace(\"setting credential: <suppressed>\");\n }\n }\n this.credential = credential;\n }",
"public Long getUserAccountId() {\r\n return userAccountId;\r\n }",
"public void deleteActivity(String activityId) throws ActivityStorageException;",
"public void setCurrentUserAccount(String currentUserAccount);",
"public void setAccountSrcId(Integer accountSrcId) {\n this.accountSrcId = accountSrcId;\n }",
"public void setC_Activity_ID (int C_Activity_ID);",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"public void setAcctId(Integer acctId) {\n this.acctId = acctId;\n }",
"public void setSourceAccountId(Long sourceAccountId) {\n this.sourceAccountId = sourceAccountId;\n }",
"void setDeploymentTenantId(String deploymentId, String newTenantId);",
"default void setContext(String tenantId) {\n // defaults to no-op\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"ID of the account that created this participant.\")\n\n public String getAccountId() {\n return accountId;\n }",
"@Override\n\tpublic void setActivity(Activity pAcitivity) {\n\n\t}",
"public void setAccountName(String accountName){\n if(checkAccountClosed()){\n System.out.println(\"This transaction could not be processed. Please check your account status.\");\n }\n this.accountName = accountName;\n }",
"public void setAccountLogId(String accountLogId) {\n this.accountLogId = accountLogId == null ? null : accountLogId.trim();\n }",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"public StorageInsightInner withStorageAccount(StorageAccount storageAccount) {\n this.storageAccount = storageAccount;\n return this;\n }",
"public ExecuteLocalActivityParameters withActivityId(String activityId) {\n this.activityId = activityId;\n return this;\n }",
"public static void setCurrentAccount(Account currentAccount) {\r\n\t\tAccount.currentAccount = currentAccount;\r\n\t}",
"public Builder setAccountId(io.lightcone.data.types.AccountID value) {\n if (accountIdBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n accountId_ = value;\n onChanged();\n } else {\n accountIdBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public VMwareCbtEnableMigrationInput withTargetBootDiagnosticsStorageAccountId(String targetBootDiagnosticsStorageAccountId) {\n this.targetBootDiagnosticsStorageAccountId = targetBootDiagnosticsStorageAccountId;\n return this;\n }",
"public FileStorageAccount getAccount() {\n return account;\n }"
] |
[
"0.61251193",
"0.5856865",
"0.58336395",
"0.5827094",
"0.57419616",
"0.57419616",
"0.5740892",
"0.57292163",
"0.56533635",
"0.5631635",
"0.5610325",
"0.55875045",
"0.5577747",
"0.55236447",
"0.53455645",
"0.53360736",
"0.5299672",
"0.5299672",
"0.5296646",
"0.51825434",
"0.51233613",
"0.5115646",
"0.51078117",
"0.51078117",
"0.5088774",
"0.504946",
"0.50460386",
"0.5026983",
"0.4865553",
"0.48276234",
"0.4823398",
"0.4811276",
"0.4811276",
"0.48031345",
"0.47838008",
"0.47538143",
"0.4750594",
"0.47441098",
"0.47158414",
"0.47158414",
"0.4712049",
"0.47006577",
"0.46549472",
"0.46496385",
"0.46493995",
"0.46493995",
"0.46493995",
"0.46493995",
"0.46385723",
"0.4612154",
"0.4612154",
"0.46081167",
"0.46036413",
"0.45917484",
"0.4588089",
"0.4587104",
"0.4586867",
"0.45820993",
"0.4565643",
"0.4547576",
"0.4519842",
"0.45144773",
"0.44990152",
"0.44954157",
"0.44954157",
"0.4489621",
"0.44840732",
"0.44608963",
"0.44437113",
"0.44437113",
"0.44419387",
"0.44393557",
"0.44359717",
"0.44239694",
"0.44109383",
"0.44109383",
"0.44071528",
"0.44066873",
"0.4402105",
"0.44010365",
"0.43977568",
"0.43880415",
"0.43880415",
"0.43880415",
"0.43861496",
"0.4380849",
"0.43668494",
"0.43638435",
"0.43617392",
"0.4351004",
"0.43450475",
"0.4338308",
"0.43370956",
"0.43370956",
"0.4336106",
"0.43317488",
"0.43299294",
"0.43281868",
"0.43229243",
"0.4300033"
] |
0.56844264
|
8
|
Get the locations property: List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location.
|
public List<String> locations() {
return this.locations;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String[] getAllLocations() {\n // STUB: Return the list of source names\n return null;\n }",
"public java.util.List<phaseI.Hdfs.DataNodeLocation> getLocationsList() {\n if (locationsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(locations_);\n } else {\n return locationsBuilder_.getMessageList();\n }\n }",
"@Override\n\tpublic List<SourceLocation> getLocations() {\n\t\treturn null;\n\t}",
"List<String> locations();",
"public List<Location> getLocations() {\n\t\treturn locations;\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<String> getRegion() {\n\t\treturn getSqlMapClientTemplate().queryForList(\"R_ALARM_LOG.getRegion\");\r\n\t}",
"public java.util.List<? extends phaseI.Hdfs.DataNodeLocationOrBuilder> \n getLocationsOrBuilderList() {\n if (locationsBuilder_ != null) {\n return locationsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(locations_);\n }\n }",
"public java.util.List<EncounterLocation> location() {\n return getList(EncounterLocation.class, FhirPropertyNames.PROPERTY_LOCATION);\n }",
"public ArrayList getLocations()\r\n\t\t{\r\n\t\t\treturn locations;\r\n\t\t}",
"public List<GeoRegionInner> locations() {\n return this.locations;\n }",
"public Location[] getLocation() {\r\n return locations;\r\n }",
"public java.util.List<phaseI.Hdfs.DataNodeLocation> getLocationsList() {\n return locations_;\n }",
"public String getLocators() {\n return agentConfig.getLocators();\n }",
"public java.util.List<? extends phaseI.Hdfs.DataNodeLocationOrBuilder> \n getLocationsOrBuilderList() {\n return locations_;\n }",
"public ArrayList<Location> getLocations() {\n return locations;\n }",
"@ApiModelProperty(required = true, value = \"Location information for this schema file.\")\n @JsonProperty(\"Location\")\n public List<MessageRegistryFile100Location> getLocation() {\n return location;\n }",
"public static LocationId getLocationIds()\n {\n LocationId locnIds = new LocationId();\n IoTGateway.getGlobalStates().forEach(\n (locn,sv)->{\n locnIds.addId(locn);\n }\n );\n return locnIds;\n }",
"public java.util.List<? extends phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockLocationsOrBuilderList() {\n if (blockLocationsBuilder_ != null) {\n return blockLocationsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(blockLocations_);\n }\n }",
"public List<String> regions() {\n return this.regions;\n }",
"java.util.List<phaseI.Hdfs.DataNodeLocation> \n getLocationsList();",
"@Override\n public Iterable<Location> listLocations() {\n return ImmutableSet.<Location>of();\n }",
"LocationsClient getLocations();",
"public String[] locationNames(){\n\t\tString[] s = new String[locations.length];\n\t\tfor(int i=0; i<locations.length; i++){\n\t\t\ts[i] = locations[i].toString();\n\t\t}\n\t\treturn s;\n\t\t//return Arrays.copyOf(locations, locations.length, String[].class);\n\t}",
"public List<LocationInfo> getAllLocation() {\n return allLocation;\n }",
"public java.util.List<phaseI.Hdfs.BlockLocations> getBlockLocationsList() {\n if (blockLocationsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(blockLocations_);\n } else {\n return blockLocationsBuilder_.getMessageList();\n }\n }",
"public ViewObjectImpl getLocations() {\n return (ViewObjectImpl)findViewObject(\"Locations\");\n }",
"public java.util.List<phaseI.Hdfs.DataNodeLocation.Builder> \n getLocationsBuilderList() {\n return getLocationsFieldBuilder().getBuilderList();\n }",
"public java.util.List<? extends phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockLocationsOrBuilderList() {\n return blockLocations_;\n }",
"public Cursor getAllLocationsLoc(){\n if (mDB != null)\n return mDB.query(LOCNODE_TABLE, new String[] { FIELD_ROW_ID, FIELD_NAME, FIELD_ADDY, FIELD_LAT , FIELD_LNG, FIELD_TIMESVISITED }, null, null, null, null, null);\n Cursor c = null;\n return c;\n }",
"public java.util.List<phaseI.Hdfs.BlockLocations> getBlockLocationsList() {\n return blockLocations_;\n }",
"Map<UUID, Optional<Location>> getAllCurrentLocations();",
"@RequestMapping(value=\"/locations\", method=RequestMethod.GET)\n\t@ResponseBody\n\tpublic Iterable<Location> getLocations(){\n\t\treturn lr.findAll();\n\t}",
"java.util.List<? extends phaseI.Hdfs.DataNodeLocationOrBuilder> \n getLocationsOrBuilderList();",
"public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetQSLocationsResponse getQSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetQSLocationsRequest getQSLocationsRequest\n )\n ;",
"@Override\n public Map<String,Map<String,Object>> getLocatedLocations() {\n Map<String,Map<String,Object>> result = new LinkedHashMap<String,Map<String,Object>>();\n Map<Location, Integer> counts = new EntityLocationUtils(mgmt()).countLeafEntitiesByLocatedLocations();\n for (Map.Entry<Location,Integer> count: counts.entrySet()) {\n Location l = count.getKey();\n Map<String,Object> m = MutableMap.<String,Object>of(\n \"id\", l.getId(),\n \"name\", l.getDisplayName(),\n \"leafEntityCount\", count.getValue(),\n \"latitude\", l.getConfig(LocationConfigKeys.LATITUDE),\n \"longitude\", l.getConfig(LocationConfigKeys.LONGITUDE)\n );\n result.put(l.getId(), m);\n }\n return result;\n }",
"public ArrayList<LocationDetail> getLocations() throws LocationException;",
"public File getLocalRegions() {\n return this.localRegions;\n }",
"public java.util.List<edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation> getChunksLocationList() {\n if (chunksLocationBuilder_ == null) {\n return java.util.Collections.unmodifiableList(chunksLocation_);\n } else {\n return chunksLocationBuilder_.getMessageList();\n }\n }",
"public LogProfileProperties withLocations(List<String> locations) {\n this.locations = locations;\n return this;\n }",
"public ArrayList<Location> getLocations() {\n return this.imageLocs; \n }",
"public List<LocationGroup> getStopLocationList() {\n return stopLocationList;\n }",
"@java.lang.Override\n public com.clarifai.grpc.api.utils.Matrix.MatrixUint64OrBuilder getRegionLocationMatrixOrBuilder() {\n return getRegionLocationMatrix();\n }",
"@Override\n public List<String> getCmsLocations() {\n return Collections.emptyList();\n }",
"public java.util.List<? extends edu.usfca.cs.dfs.StorageMessages.StoreChunkLocationOrBuilder> \n getChunksLocationOrBuilderList() {\n if (chunksLocationBuilder_ != null) {\n return chunksLocationBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(chunksLocation_);\n }\n }",
"public void setLocations(Resource[] locations) {\n\t\tthis.locations = locations;\n\t}",
"public List<String> getLocationAndCity(){\n\t\treturn jtemp.queryForList(\"SELECT location_id||city FROM locations\", String.class);\n\t}",
"public void setLocations(Resource[] locations) {\n this._locations = locations;\n }",
"@java.lang.Override\n public com.clarifai.grpc.api.utils.Matrix.MatrixUint64 getRegionLocationMatrix() {\n return regionLocationMatrix_ == null ? com.clarifai.grpc.api.utils.Matrix.MatrixUint64.getDefaultInstance() : regionLocationMatrix_;\n }",
"public Collection<RegionLocations> getAll() {\n return Collections.unmodifiableCollection(cache.values());\n }",
"public static GlobalStates getStatesFromAllLocations()\n {\n GlobalStates globalStates = new GlobalStates();\n try {\n\n List<LocalStates> compileRes = new ArrayList<>();\n getLocationIds().getLocationIds().forEach(\n (locn) -> {\n LocalStates ls = new LocalStates();\n StateVariables sv = IoTGateway.getGlobalStates().get(locn);\n ls.setLocation(locn);\n ls.setStateVariable(sv);\n ls.setFire(IoTGateway.getIsFireLocn().get(locn));\n ls.setSmokeAlert(IoTGateway.getSmokeWarn().get(locn));\n compileRes.add(ls);\n\n }\n );\n globalStates.setLocalStates(compileRes);\n }\n catch (NullPointerException npe)\n {\n LOGGER.error(\"Null Pointer Exception at Horizon.Restart project and open browser after atleast one timestep\");\n }\n return globalStates;\n }",
"public java.util.List<String> getRegionNames() {\n if (regionNames == null) {\n regionNames = new com.amazonaws.internal.SdkInternalList<String>();\n }\n return regionNames;\n }",
"public int getLocationsCount() {\n return locations_.size();\n }",
"public Regions getRegions () {\n return this.regions;\n }",
"public java.util.List<phaseI.Hdfs.BlockLocations.Builder> \n getBlockLocationsBuilderList() {\n return getBlockLocationsFieldBuilder().getBuilderList();\n }",
"java.util.List<phaseI.Hdfs.BlockLocations> \n getBlockLocationsList();",
"@Override\n public Set<Taglet.Location> getAllowedLocations() {\n final EnumSet<Location> locations = EnumSet.allOf(Taglet.Location.class);\n locations.remove(Taglet.Location.OVERVIEW);\n return locations;\n }",
"public java.util.List<edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation> getChunksLocationList() {\n return chunksLocation_;\n }",
"Collection<L> getLocations ();",
"public WorldRegions getWorldRegions()\n {\n return regions;\n }",
"public String pathList()\n {\n StringBuilder pathString = new StringBuilder();\n for (Location accessibleLocation : accessibleLocations) {\n pathString.append(accessibleLocation.getName()).append(\"\\n\");\n }\n return pathString.toString();\n }",
"public abstract java.util.Set getLocations();",
"public String[] provides() { return new String[] { Location.TYPE }; }",
"List<Location> getLocations(String coverageType);",
"public Object[] getRegionalGISList() {\n return this.getList(AbstractGIS.INQUIRY_REGIONAL_GIS);\n }",
"public List<DataLocation> getOutputDataLocations(){\n\treturn defaultDataLocations();\n }",
"com.google.ads.googleads.v14.services.SuggestGeoTargetConstantsRequest.LocationNames getLocationNames();",
"public ArrayList<StartLocation> getAvailableStartLocs() {\r\n\t\treturn availableStartLocs;\r\n\t}",
"public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetESLocationsResponse getESLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetESLocationRequest getESLocationsRequest\n )\n ;",
"public ArrayList<Integer[]> getMineLocations()\n {\n return mineLocations;\n }",
"public java.util.List<? extends edu.usfca.cs.dfs.StorageMessages.StoreChunkLocationOrBuilder> \n getChunksLocationOrBuilderList() {\n return chunksLocation_;\n }",
"@Override\n\tpublic List<Location> getVertices() {\n\t\treturn locations;\n\t}",
"java.util.List<? extends phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockLocationsOrBuilderList();",
"public ArrayList<String> LocationInputStream() {\n ArrayList<String> locations = new ArrayList<String>();\n AssetManager assetManager = getAssets();\n\n try {\n// InputStream inputStream = getAssets().open(\"au_locations.txt\");\n InputStream inputStream = openFileInput(\"Locations.txt\");\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n\n String location;\n\n while ((location = bufferedReader.readLine()) != null) {\n locations.add(location.toString());\n }\n bufferedReader.close();\n inputStreamReader.close();\n inputStream.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } return locations;\n }",
"public phaseI.Hdfs.DataNodeLocation getLocations(int index) {\n if (locationsBuilder_ == null) {\n return locations_.get(index);\n } else {\n return locationsBuilder_.getMessage(index);\n }\n }",
"public Object[] getGlobalResourceARList() {\n return this.getList(AbstractGIS.INQUIRY_GLOBAL_RESOURCE_AR_LIST);\n }",
"public double[] getLocation()\n\t{\n\t\treturn location;\n\t}",
"public synchronized final Map<String, PermissionRegion> getRegions() {\n return memoryState.getRegions();\n }",
"public phaseI.Hdfs.DataNodeLocation getLocations(int index) {\n return locations_.get(index);\n }",
"public String[] getRegisters() {\r\n return scope != null? scope.getRegisters() : null;\r\n }",
"public com.clarifai.grpc.api.utils.Matrix.MatrixUint64 getRegionLocationMatrix() {\n if (regionLocationMatrixBuilder_ == null) {\n return regionLocationMatrix_ == null ? com.clarifai.grpc.api.utils.Matrix.MatrixUint64.getDefaultInstance() : regionLocationMatrix_;\n } else {\n return regionLocationMatrixBuilder_.getMessage();\n }\n }",
"public Cursor getAllLocations()\n\t{\n\t\treturn db.query(DATABASE_TABLE, new String[] {\n\t\t\t\tKEY_DATE,KEY_LAT,KEY_LNG},\n\t\t\t\tnull,null,null,null,null);\n\t}",
"public String getEventLocation() {\n\t\treturn location;\n\t}",
"public String[] getLocations() throws CustomException {\n try {\n if (super.getUserInput().trim().length() == 0) {\n logger.warning(\"User input is empty.\");\n throw new CustomException(ExceptionType.NO_LOCATIONS);\n } else if (super.getUserInput().contains(DELIMITER)) {\n String[] components = super.splitCommands(2, DELIMITER);\n checkTooManyDelimiters(components);\n return new String[]{components[0], components[1]};\n } else {\n logger.warning(\"Delimiter /to is missing.\");\n throw new CustomException(ExceptionType.NO_DELIMITER_ROUTE);\n }\n } catch (StringIndexOutOfBoundsException error) {\n logger.warning(\"Either of the locations is missing\");\n throw new CustomException(ExceptionType.NO_LOCATIONS);\n }\n }",
"public phaseI.Hdfs.DataNodeLocationOrBuilder getLocationsOrBuilder(\n int index) {\n return locations_.get(index);\n }",
"ImmutableList<SchemaOrgType> getLocationCreatedList();",
"public Cursor getAllLocations(){\n if (mDB != null)\n return mDB.query(DATABASE_TABLE, new String[] { FIELD_ROW_ID, FIELD_LAT , FIELD_LNG, FIELD_ACC, FIELD_TIME } , null, null, null, null, null);\n Cursor c = null;\n return c;\n }",
"java.util.List<edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation> \n getChunksLocationList();",
"@NotNull\n\tjava.util.List<@NotNull Location> getSpawnLocations();",
"public Set<SourceLocation> getObjectSourceLocations() {\n Set<SourceLocation> res = newSet();\n if (object_labels != null)\n for (ObjectLabel objlabel : object_labels)\n res.add(objlabel.getSourceLocation());\n if (getters != null)\n for (ObjectLabel objlabel : getters)\n res.add(objlabel.getSourceLocation());\n if (setters != null)\n for (ObjectLabel objlabel : setters)\n res.add(objlabel.getSourceLocation());\n return res;\n }",
"public String getEventLocation() {\n\t\treturn eventLocation;\n\t}",
"public int getLocationsCount() {\n if (locationsBuilder_ == null) {\n return locations_.size();\n } else {\n return locationsBuilder_.getCount();\n }\n }",
"public List<MhsmGeoReplicatedRegionInner> regions() {\n return this.regions;\n }",
"public List<Region> gets() {\r\n return rdao.getAllRegion();\r\n }",
"public Object[] getGlobalResourceList() {\n return this.getList(AbstractGIS.INQUIRY_GLOBAL_RESOURCE_LIST);\n }",
"public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSLocationsResponse getBSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSLocationsRequest getBSLocationsRequest\n )\n ;",
"synchronized String getLocString() {\n String MSG_TERMINATOR = \";\";\n String DATA_SEPARATOR = \",\";\n\n if (loc == null) {\n return System.currentTimeMillis() + DATA_SEPARATOR + \"No Location!\" + MSG_TERMINATOR;\n }\n\n return String.valueOf(System.currentTimeMillis()) +\n DATA_SEPARATOR +\n loc.getLongitude() +\n DATA_SEPARATOR +\n loc.getLatitude() +\n DATA_SEPARATOR +\n loc.getAltitude() +\n DATA_SEPARATOR +\n loc.getSpeed() +\n DATA_SEPARATOR +\n loc.getBearing() +\n DATA_SEPARATOR +\n loc.getAccuracy() +\n DATA_SEPARATOR +\n loc.getTime() +\n DATA_SEPARATOR +\n providerEnabled.toString() +\n DATA_SEPARATOR +\n lastTemp +\n DATA_SEPARATOR +\n lastGravity +\n DATA_SEPARATOR +\n lastPressure +\n MSG_TERMINATOR;\n }",
"public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsResponse getOPSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsRequest getOPSLocationsRequest\n )\n ;",
"Set<Location> extractLocations() {\n try {\n Set<Location> extracted = CharStreams.readLines(\n gazetteer,\n new ExtractLocations(populationThreshold)\n );\n\n // Raw population stats doesn't work great in the internet as-is. Calibrate for online activity\n calibrateWeight(extracted);\n\n return extracted;\n\n } catch (IOException e) {\n throw Throwables.propagate(e);\n }\n }",
"@GetMapping(\"/locations\")\n public List<Location> getLocations(){\n return service.getAll();\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn getLocation();\r\n\t}"
] |
[
"0.70500785",
"0.69925493",
"0.68413323",
"0.6766834",
"0.6760878",
"0.6754115",
"0.67414963",
"0.6686978",
"0.6657955",
"0.6631398",
"0.6614895",
"0.66123384",
"0.6579819",
"0.65188193",
"0.63446665",
"0.6290389",
"0.627132",
"0.62674844",
"0.626738",
"0.62449205",
"0.6207153",
"0.61988515",
"0.618196",
"0.61518586",
"0.6150507",
"0.6133702",
"0.61268336",
"0.61228216",
"0.60199934",
"0.60158134",
"0.60035753",
"0.596559",
"0.5933565",
"0.5874061",
"0.58647954",
"0.5859875",
"0.58395964",
"0.5834182",
"0.5820793",
"0.5806036",
"0.5773122",
"0.57538664",
"0.57527083",
"0.57524586",
"0.5747181",
"0.5740881",
"0.57346976",
"0.57211965",
"0.5704409",
"0.57014126",
"0.5685266",
"0.5669437",
"0.5665813",
"0.5655869",
"0.5634999",
"0.5630892",
"0.5630707",
"0.5627333",
"0.5624291",
"0.56074816",
"0.5604406",
"0.55904555",
"0.55593246",
"0.55508727",
"0.5540997",
"0.5530468",
"0.5530022",
"0.552822",
"0.5524391",
"0.5523642",
"0.55102223",
"0.5509969",
"0.5499282",
"0.54962474",
"0.54958457",
"0.5495739",
"0.5493897",
"0.5484315",
"0.54681337",
"0.5465902",
"0.5465404",
"0.5464058",
"0.54449594",
"0.54446614",
"0.5430125",
"0.5429574",
"0.5422189",
"0.53944707",
"0.5378552",
"0.53741556",
"0.5369812",
"0.53593075",
"0.53579026",
"0.535217",
"0.5345289",
"0.53427815",
"0.53411084",
"0.53407615",
"0.5309212",
"0.5307986"
] |
0.7240482
|
0
|
Set the locations property: List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location.
|
public LogProfileProperties withLocations(List<String> locations) {
this.locations = locations;
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setLocations(Resource[] locations) {\n\t\tthis.locations = locations;\n\t}",
"public void setLocations(Resource[] locations) {\n this._locations = locations;\n }",
"@Experimental\n void setRemoteLocations(@ParamName(\"locations\") List<RemoteLocation> locations);",
"public abstract void setLocations(java.util.Set locations);",
"public List<String> locations() {\n return this.locations;\n }",
"public DeploymentLocationsInner withLocations(List<GeoRegionInner> locations) {\n this.locations = locations;\n return this;\n }",
"@Override\n\tpublic List<SourceLocation> getLocations() {\n\t\treturn null;\n\t}",
"public void setLocation(Resource location) {\n\t\tthis.locations = new Resource[] {location};\n\t}",
"public void setLocators(String locators) {\n agentConfig.setLocators(locators);\n }",
"public java.util.List<phaseI.Hdfs.DataNodeLocation> getLocationsList() {\n if (locationsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(locations_);\n } else {\n return locationsBuilder_.getMessageList();\n }\n }",
"public List<Location> getLocations() {\n\t\treturn locations;\n\t}",
"public java.util.List<? extends phaseI.Hdfs.DataNodeLocationOrBuilder> \n getLocationsOrBuilderList() {\n if (locationsBuilder_ != null) {\n return locationsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(locations_);\n }\n }",
"public ArrayList getLocations()\r\n\t\t{\r\n\t\t\treturn locations;\r\n\t\t}",
"public void setScriptLocations(String scriptLocations) {\r\n this.scriptLocations = scriptLocations;\r\n }",
"public String[] getAllLocations() {\n // STUB: Return the list of source names\n return null;\n }",
"public void initializeLocations() {\n dataGraphLocation.setItems(FXCollections.observableArrayList(_locationData.getAll()));\n }",
"public void addLocations(List<Location> listOfLocation)\n {\n this.locationLst.addAll(listOfLocation);\n }",
"@Override\n public Iterable<Location> listLocations() {\n return ImmutableSet.<Location>of();\n }",
"public java.util.List<? extends phaseI.Hdfs.DataNodeLocationOrBuilder> \n getLocationsOrBuilderList() {\n return locations_;\n }",
"@Override\n void start(Collection<? extends Location> locations);",
"@ApiModelProperty(required = true, value = \"Location information for this schema file.\")\n @JsonProperty(\"Location\")\n public List<MessageRegistryFile100Location> getLocation() {\n return location;\n }",
"public Builder clearLocations() {\n if (locationsBuilder_ == null) {\n locations_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n locationsBuilder_.clear();\n }\n return this;\n }",
"public java.util.List<phaseI.Hdfs.DataNodeLocation> getLocationsList() {\n return locations_;\n }",
"public Builder addAllLocations(\n java.lang.Iterable<? extends phaseI.Hdfs.DataNodeLocation> values) {\n if (locationsBuilder_ == null) {\n ensureLocationsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, locations_);\n onChanged();\n } else {\n locationsBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public void setLocations(JSONArray locations) throws JSONException {\n\n for(int a = 0; a < locations.length(); a++){\n\n if(locations.getJSONObject(a).getInt(\"locationCategoryId\") == TYPE_TABLE){\n setTables(locations.getJSONObject(a).getJSONArray(\"locations\"));\n }\n else if(locations.getJSONObject(a).getInt(\"locationCategoryId\") == TYPE_BAR){\n setBars(locations.getJSONObject(a).getJSONArray(\"locations\"));\n }\n else if(locations.getJSONObject(a).getInt(\"locationCategoryId\") == TYPE_TAKEOUT){\n setTakeouts(locations.getJSONObject(a).getJSONArray(\"locations\"));\n }\n }\n\t}",
"public Location[] getLocation() {\r\n return locations;\r\n }",
"public void setLocation(Location loc) {\n this.location = loc;\n }",
"List<String> locations();",
"public ArrayList<Location> getLocations() {\n return locations;\n }",
"void setLocationCells(ArrayList<String> loc){\r\n locationCells = loc;\r\n }",
"public void setStopLocationList(List<LocationGroup> list) {\n stopLocationList = list;\n }",
"LocationsClient getLocations();",
"public void setLocalRegions(final File localRegions) {\n this.localRegions = localRegions;\n }",
"public void setLocation(String location) {\n inputParameters.Location = location;\n\n }",
"public void setEventLocation(String eventLocation) {\n\t\tthis.eventLocation = eventLocation;\n\t}",
"public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetQSLocationsResponse getQSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetQSLocationsRequest getQSLocationsRequest\n )\n ;",
"public void setLocation(String location) {\r\n this.location = location;\r\n }",
"public void setLocation(String location)\n {\n this.location = location;\n }",
"public Builder addLocations(phaseI.Hdfs.DataNodeLocation value) {\n if (locationsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureLocationsIsMutable();\n locations_.add(value);\n onChanged();\n } else {\n locationsBuilder_.addMessage(value);\n }\n return this;\n }",
"public static LocationId getLocationIds()\n {\n LocationId locnIds = new LocationId();\n IoTGateway.getGlobalStates().forEach(\n (locn,sv)->{\n locnIds.addId(locn);\n }\n );\n return locnIds;\n }",
"public void setLocation(String location){\n this.location = location;\n }",
"public void setLocation(String location){\n this.location = location;\n }",
"public void setLocation(String location) {\n this.location = location;\n }",
"public void setLocation(String location) {\r\n this.location = location;\r\n }",
"public LocationBuilder() {\n super(\"locations\");\n }",
"public void setLocation(String location) {\n this.location = location;\n }",
"@Override\n public void setLocation(String location) {\n this.location = location;\n }",
"public void setLocs(String newValue);",
"protected void setLocation(String location){\r\n this.location = location;\r\n }",
"public void setLocation(String location) {\n this.location = location;\n }",
"public void setLocation(String location) {\n this.location = location;\n }",
"public void setLocation(String location) {\n this.location = location;\n }",
"public void setLocation(String location) {\n this.location = location;\n }",
"@Override\n public void onLocationsLoaded(ArrayList<Location> listLocations) {\n L.m(\"FragmentLocations: onLocationsLoaded Fragment\");\n //update the Adapter to contain the new movies downloaded from the web\n if (mSwipeRefreshLayout.isRefreshing()) {\n mSwipeRefreshLayout.setRefreshing(false);\n }\n mListLocations = listLocations; // diese Zeile habe ich zusätzlich eingefügt, um auch die direkt geladenen Locations sortierbar zu machen\n mAdapter.setLocations(listLocations);\n\n mSpinnerView.setSelection(0);\n }",
"public java.util.List<? extends phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockLocationsOrBuilderList() {\n if (blockLocationsBuilder_ != null) {\n return blockLocationsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(blockLocations_);\n }\n }",
"public List<GeoRegionInner> locations() {\n return this.locations;\n }",
"void setDestination(Locations destination);",
"public String getLocators() {\n return agentConfig.getLocators();\n }",
"public void setLocation(String location) {\r\n\t\tthis.location = location;\r\n\t}",
"public void setLocation(String location);",
"public Builder addBlockLocations(phaseI.Hdfs.BlockLocations value) {\n if (blockLocationsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureBlockLocationsIsMutable();\n blockLocations_.add(value);\n onChanged();\n } else {\n blockLocationsBuilder_.addMessage(value);\n }\n return this;\n }",
"@Override\n\tpublic void setLocation(String l) {\n\t\tlocation = l;\n\t\t\n\t}",
"public void setColumnLocations( Vector<String> columnLocations ) {\r\n\t\tthis.columnLocations = columnLocations;\r\n\t}",
"public void setLocation(Location location) {\n this.location = location;\n }",
"public void setLocation(Location location) {\n this.location = location;\n }",
"public void setLocation(Location location) {\n this.location = location;\n }",
"public void setLocation(String location) {\n\t\tthis.location = location;\n\t}",
"public void setLocation(String location) {\n\t\tthis.location = location;\n\t}",
"public void setLocation(String location) {\n\t\tthis.location = location;\n\t}",
"public String[] locationNames(){\n\t\tString[] s = new String[locations.length];\n\t\tfor(int i=0; i<locations.length; i++){\n\t\t\ts[i] = locations[i].toString();\n\t\t}\n\t\treturn s;\n\t\t//return Arrays.copyOf(locations, locations.length, String[].class);\n\t}",
"public java.util.List<? extends phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockLocationsOrBuilderList() {\n return blockLocations_;\n }",
"public static GlobalStates getStatesFromAllLocations()\n {\n GlobalStates globalStates = new GlobalStates();\n try {\n\n List<LocalStates> compileRes = new ArrayList<>();\n getLocationIds().getLocationIds().forEach(\n (locn) -> {\n LocalStates ls = new LocalStates();\n StateVariables sv = IoTGateway.getGlobalStates().get(locn);\n ls.setLocation(locn);\n ls.setStateVariable(sv);\n ls.setFire(IoTGateway.getIsFireLocn().get(locn));\n ls.setSmokeAlert(IoTGateway.getSmokeWarn().get(locn));\n compileRes.add(ls);\n\n }\n );\n globalStates.setLocalStates(compileRes);\n }\n catch (NullPointerException npe)\n {\n LOGGER.error(\"Null Pointer Exception at Horizon.Restart project and open browser after atleast one timestep\");\n }\n return globalStates;\n }",
"public java.util.List<EncounterLocation> location() {\n return getList(EncounterLocation.class, FhirPropertyNames.PROPERTY_LOCATION);\n }",
"public static void setConfigLocation(String location) {\n\t\tconfigLocatiton = location;\n\t\tinitConfig();\n\t}",
"public void setEventLocation(String newLoc) {\n\t\tthis.location = newLoc;\n\t}",
"public Builder addAllBlockLocations(\n java.lang.Iterable<? extends phaseI.Hdfs.BlockLocations> values) {\n if (blockLocationsBuilder_ == null) {\n ensureBlockLocationsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, blockLocations_);\n onChanged();\n } else {\n blockLocationsBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public ContainerRegistryBlobsCompleteUploadHeaders setLocation(String location) {\n this.location = location;\n return this;\n }",
"public void setLocation(final String location) {\n this.location = location;\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<String> getRegion() {\n\t\treturn getSqlMapClientTemplate().queryForList(\"R_ALARM_LOG.getRegion\");\r\n\t}",
"public List<LocationInfo> getAllLocation() {\n return allLocation;\n }",
"public void setLocation( final double[] location )\n\t{\n\t\tthis.location = location;\n\t}",
"public ArrayList<LocationDetail> getLocations() throws LocationException;",
"public phaseI.Hdfs.DataNodeLocation.Builder addLocationsBuilder() {\n return getLocationsFieldBuilder().addBuilder(\n phaseI.Hdfs.DataNodeLocation.getDefaultInstance());\n }",
"public void setLocation(Location location) \n\t{\n\t\tthis.location = location;\n\t}",
"void setOrigination(Locations origination);",
"@RequestMapping(value=\"/locations\", method=RequestMethod.GET)\n\t@ResponseBody\n\tpublic Iterable<Location> getLocations(){\n\t\treturn lr.findAll();\n\t}",
"public void setLocation(Location location) {\r\n\t\tthis.location = location;\r\n\t}",
"public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetESLocationsResponse getESLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetESLocationRequest getESLocationsRequest\n )\n ;",
"private void createLocations(ArrayList<String> locations) {\n for (String line : locations) {\n String[] entry = line.split(\",\");\n for(int i = 0; i < entry.length; i++) {\n Log.i(\"ec\", entry[i]);\n Log.d(\"debugExtra\", entry[i]);\n }\n //Log.i(\"entry length\", Integer.toString(entry.length));\n if (entry.length == 5) {\n locationList.add(new Location(entry[0], Double.parseDouble(entry[1]), Double.parseDouble(entry[2]), entry[3], entry[4]));\n }\n }\n }",
"public void setLocationId(String locationId);",
"public void setLocationId(String value) { _locationId = value; }",
"public Cursor getAllLocationsLoc(){\n if (mDB != null)\n return mDB.query(LOCNODE_TABLE, new String[] { FIELD_ROW_ID, FIELD_NAME, FIELD_ADDY, FIELD_LAT , FIELD_LNG, FIELD_TIMESVISITED }, null, null, null, null, null);\n Cursor c = null;\n return c;\n }",
"public void setLOC(java.lang.String LOC) {\r\n this.LOC = LOC;\r\n }",
"public void addLocation(Location location)\n {\n locationLst.add(location);\n }",
"public void addLocation(LocationLocal location) {\n java.util.Set locationsCol = getLocations();\n locationsCol.add(location);\n }",
"java.util.List<phaseI.Hdfs.DataNodeLocation> \n getLocationsList();",
"private static void setupLocations() {\n\t\tcatanWorld = Bukkit.createWorld(new WorldCreator(\"catan\"));\n\t\tspawnWorld = Bukkit.createWorld(new WorldCreator(\"world\"));\n\t\tgameLobby = new Location(catanWorld, -84, 239, -647);\n\t\tgameSpawn = new Location(catanWorld, -83, 192, -643);\n\t\thubSpawn = new Location(spawnWorld, 8, 20, 8);\n\t\twaitingRoom = new Location(catanWorld, -159, 160, -344);\n\t}",
"public phaseI.Hdfs.BlockLocations.Builder addBlockLocationsBuilder() {\n return getBlockLocationsFieldBuilder().addBuilder(\n phaseI.Hdfs.BlockLocations.getDefaultInstance());\n }",
"public void setLookupLocators( LookupLocator[] locs ) throws RemoteException {\n\t\tlog.config(\"set lookup locators\");\n\t\ttry {\n\t\t\tPersistentData data = io.readState();\n\t\t\tdisco.setLocators( locs );\n\t\t\tdata.locators = locs;\n\t\t\tio.writeState( data );\n\t\t} catch( ClassNotFoundException ex ) {\n\t\t\tlog.throwing( getClass().getName(), \"setLookupLocators\", ex);\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t} catch( IOException ex ) {\n\t\t\tlog.throwing( getClass().getName(), \"setLookupLocators\", ex);\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t}\n\t}",
"public final void setLocation(String value) {\n location = value;\n }"
] |
[
"0.72531277",
"0.7218498",
"0.64849645",
"0.60547256",
"0.59631824",
"0.5926869",
"0.5880436",
"0.58798605",
"0.570888",
"0.56948686",
"0.56527954",
"0.56115687",
"0.55851114",
"0.55835927",
"0.5532554",
"0.5529674",
"0.5496004",
"0.5492789",
"0.5486306",
"0.54855365",
"0.54651207",
"0.5459828",
"0.5443843",
"0.5433859",
"0.542039",
"0.54198664",
"0.53791475",
"0.53705525",
"0.5341781",
"0.5312642",
"0.52990466",
"0.52913755",
"0.52910185",
"0.5274483",
"0.5262064",
"0.5258782",
"0.52197427",
"0.5219539",
"0.5218158",
"0.5213481",
"0.5212839",
"0.5212839",
"0.52079684",
"0.5202633",
"0.5199019",
"0.51952213",
"0.5193735",
"0.517181",
"0.51708806",
"0.51450354",
"0.51450354",
"0.51450354",
"0.51450354",
"0.51402193",
"0.51379395",
"0.5132306",
"0.5126323",
"0.5105014",
"0.5103637",
"0.51030487",
"0.5095271",
"0.5092644",
"0.50748944",
"0.5072408",
"0.5072408",
"0.5072408",
"0.50557905",
"0.50557905",
"0.50557905",
"0.5053503",
"0.50466806",
"0.5036887",
"0.50261515",
"0.5021159",
"0.5015711",
"0.5006438",
"0.5002322",
"0.5000329",
"0.4998766",
"0.49886873",
"0.49681917",
"0.4967839",
"0.49674708",
"0.4966925",
"0.49613267",
"0.49590006",
"0.49503344",
"0.4943358",
"0.49410862",
"0.49265376",
"0.491682",
"0.49132589",
"0.49021697",
"0.48766637",
"0.4876168",
"0.4875174",
"0.48562187",
"0.4836442",
"0.48332784",
"0.4833088"
] |
0.6570663
|
2
|
Get the categories property: the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'.
|
public List<String> categories() {
return this.categories;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getCategories() {\n return getProperty(Property.CATEGORIES);\n }",
"public LinkedHashMap<String, String> getCategories() {\r\n\t\treturn this.categories;\r\n\t}",
"@NonNull\n public static List<Category> getCategories() {\n if (CATEGORY == null) {\n CATEGORY = new ArrayList<>();\n CATEGORY.add(new Category(\"Bollywood\", R.drawable.bollywood, 1));\n CATEGORY.add(new Category(\"Hollywood\", R.drawable.hollywood3, 2));\n CATEGORY.add(new Category(\"Cricket\", R.drawable.cricket4, 3));\n CATEGORY.add(new Category(\"Science\", R.drawable.science1, 4));\n CATEGORY.add(new Category(\"Geography\", R.drawable.geography, 5));\n CATEGORY.add(new Category(\"History\", R.drawable.history, 6));\n }\n return CATEGORY;\n }",
"public java.util.List<String> getEventCategories() {\n if (eventCategories == null) {\n eventCategories = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();\n eventCategories.setAutoConstruct(true);\n }\n return eventCategories;\n }",
"public ArrayList<EventCategory> getCategories() {\n return mCategories;\n }",
"public String[] getCategoryList(){\n return new String[]{\n \"Macros\",\n \"Instrument Type\",\n \"TOF_NSCD\",\n \"NEW_SNS\"\n };\n }",
"public Categories getCategories() {\n return this.categories;\n }",
"public List<String> getCategories();",
"public String getCategory() {\t//TODO - change to array list of categories\n\t\treturn category;\n\t}",
"public List<Category> getCategories() {\n CategoryRecords cr = company.getCategoryRecords();\n List<Category> catList = cr.getCategories();\n return catList;\n }",
"public List<StadiumCategoryDTO> getCategories() {\n\t\treturn categories;\n\t}",
"public List<CategoryMappingValue> getCategories() {\r\n\t\treturn categories;\r\n\t}",
"public Set<CategoryRefPathDTO> getCategories() {\n\t\tif (categories == null) {\n\t\t\tcategories = new HashSet<CategoryRefPathDTO>();\n\t\t}\n\t\treturn categories;\n\t}",
"public void getCategorory(){\n\t\tDynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(AssetCategory.class, \"category\", PortalClassLoaderUtil.getClassLoader());\n\t\ttry {\n\t\t\tList<AssetCategory> assetCategories = AssetCategoryLocalServiceUtil.dynamicQuery(dynamicQuery);\n\t\t\tfor(AssetCategory category : assetCategories){\n\t\t\t\tlog.info(category.getName());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}",
"@RequestMapping(value = \"/categories\", method = RequestMethod.GET, produces = \"application/json\")\n public Collection<String> getCategories() {\n return this.datasetService.getCategories();\n }",
"public Flowable<List<Category>> getCategories() {\n return findAllData(Category.class);\n }",
"public List<Category> getCategories() {\n this.catr = m_oCompany.getCategoryRecords();\n return catr.getCategories();\n }",
"public LogCategory getLog() {\n\t\treturn log;\n\t}",
"@Override\n public Collection<String> getMenuCategories() {\n return emptyCollection;\n }",
"@Override\n\tpublic List<EventCategory> getAllCategories() {\n\t\treturn categoriesRepository.findAll();\n\t}",
"public List<Category> getCategoriesList() {\n\t\treturn categoriesList;\n\t}",
"private String getCategoriesForDebugging() {\n StringBuilder sb = new StringBuilder();\n String sep = \"\";\n for (SuggestionsSection section : mSections.values()) {\n sb.append(sep);\n sb.append(section.getCategory());\n sep = \", \";\n }\n\n return sb.toString();\n }",
"public final List<String> getCategories() {\n return new ArrayList<>(questionGeneratorStrategyFactory.createPracticeQuestionStrategy().generateQuestions().keySet());\n }",
"public ObservableList<String> getCategories()\n {\n ArrayList<Category> categoryList = rentalModel.getCategoryList();\n ArrayList<String> categoryListString = new ArrayList<>();\n for (int i = 0; i < categoryList.size(); i++)\n {\n categoryListString.add(categoryList.get(i).toString());\n }\n categoriesList = FXCollections.observableArrayList(categoryListString);\n return categoriesList;\n }",
"@Override\n\tpublic List<Category> getCategories(){\n\t\treturn null;\n\t}",
"@Transactional\r\n\tpublic List<CmVocabularyCategory> getCmVocabularyCategorys() {\r\n\t\treturn dao.findAllWithOrder(CmVocabularyCategory.class, \"modifyTimestamp\", false);\r\n\t}",
"@ModelAttribute(\"categories\")\r\n\tpublic List<Category> getCategoryList() {\r\n\t\treturn categoryDAO.list();\r\n\t}",
"@Override\n\tpublic List<Categories> getListCat() {\n\t\treturn categoriesDAO.getListCat();\n\t}",
"public AppsCategoriesCounter getAppsCategoriesCounter(){\n AppsCategoriesCounter categoriesCounter = new AppsCategoriesCounter();\n\n categoriesCounter.setEducationalCount(getEducationalCount());\n categoriesCounter.setForFunCount(getForFunCount());\n categoriesCounter.setBlockedCount(getBlockedCount());\n\n return categoriesCounter;\n }",
"@Override\r\n\tpublic List<Category> list() {\n\t\treturn categories;\r\n\t}",
"public List<Categorie> getAllCategories();",
"public static ArrayList<String> getCategories() {\n String query;\n ArrayList<String> categories = new ArrayList<String>();\n\n try {\n Connection con = Database.createDBconnection();\n Statement stmt = con.createStatement();\n query = \"SELECT category FROM category;\";\n ResultSet rs = stmt.executeQuery(query);\n\n while(rs.next()) {\n categories.add(rs.getString(\"category\"));\n }\n\n Database.closeDBconnection(con);\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n return categories;\n }",
"public java.lang.String getCategory() {\n return category;\n }",
"public PollCategory getCategory() {\n return pollcategories;\n }",
"public static List<Category> getAllCategory() {\n\n List<Category> categoryList = new ArrayList<>();\n try {\n categoryList = Category.listAll(Category.class);\n } catch (Exception e) {\n\n }\n return categoryList;\n\n }",
"public String toString() {\n\t\treturn category;\n\t}",
"public java.lang.String getCatas() {\n return catas;\n }",
"public String getCategory() {\n return mCategory;\n }",
"public List<Category> getAllCategories() {\n\t\t\tSession session = sessionFactory.getCurrentSession();\n\t\t\tQuery q = session.createQuery(\"from Category\");\n\t\t\tList<Category> catlist = q.list();\n\t\t\t\n\t\t\treturn catlist;\n\t\t}",
"public String getCategory();",
"public String[][] getMetaCategories();",
"public List<Category> getCategoriesDetails(){\r\n\t\tList<Category> res = new ArrayList<Category>();\r\n\t\tString req = \"select c.label, sum(f.amount) as total, sum(f.amount)/tmp.totmonth as percent, c.color \"\r\n\t\t\t\t\t+ \"from fee f, category c, (select sum(amount) as totmonth \"\r\n\t\t\t\t\t+ \"from fee \"\r\n\t\t\t\t\t+ \"where strftime('%m%Y', date) = strftime('%m%Y', date('now'))) as tmp \"\r\n\t\t\t\t\t+ \"where c.id = f.categoryid \"\r\n\t\t\t\t\t+ \"and strftime('%m%Y', f.date) = strftime('%m%Y', date('now')) \"\r\n\t\t\t\t\t+ \"group by c.id \"\r\n\t\t\t\t\t+ \"order by total desc;\";\r\n\t\t\r\n\t\tCursor cursor = database.rawQuery(req, null);\t\t\t\t\r\n\t\tif (cursor.moveToFirst()) {\r\n\t\t\tdo {\r\n\t\t\t\tCategory cat = new Category();\r\n\t\t\t\tcat.setLabel(cursor.getString(0));\r\n\t\t\t\tcat.setTotal(cursor.getString(1));\r\n\t\t\t\tcat.setPercent(cursor.getString(2));\r\n\t\t\t\tcat.setColor(cursor.getString(3));\r\n\t\t\t\tres.add(cat);\r\n\t\t\t} while (cursor.moveToNext());\r\n\t\t}\r\n\t\tif (cursor != null && !cursor.isClosed()) {\r\n\t\t\tcursor.close();\r\n\t\t}\r\n\t\t\r\n\t\treturn res;\r\n\t}",
"List<Category> getAllCategories();",
"List<Category> getCategories() throws DAOExceptionHandler;",
"public String getCategory() {\r\n return category;\r\n }",
"public String getCategory() {\n\t\treturn category;\n\t}",
"public String getCategory() {\n\t\treturn category;\n\t}",
"public String getCategory()\n\t{\n\t\treturn category;\n\t}",
"public List<String> findAllCategories() {\r\n\t\tList<String> result = new ArrayList<>();\r\n\r\n\t\t// 1) get a Connection from the DataSource\r\n\t\tConnection con = DB.gInstance().getConnection();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// 2) create a PreparedStatement from a SQL string\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GET_CATEGORIES_SQL);\r\n\r\n\t\t\t// 3) execute the SQL\r\n\t\t\tResultSet resultSet = ps.executeQuery();\r\n\t\t\twhile (resultSet.next()) {\r\n\r\n\t\t\t\tString cat = resultSet.getString(1);\r\n\t\t\t\tresult.add(cat);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException se) {\r\n\t\t\tse.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tDB.gInstance().returnConnection(con);\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}",
"public String category() {\n return this.category;\n }",
"public String category() {\n return this.category;\n }",
"public String getCategory(){\r\n\t\treturn this.category;\r\n\t}",
"@JSProperty(\"categories\")\n @Nullable\n String[] getCategories();",
"public List<DocCategory> getAllDocCategories() {\n return docCategoryRepository.findAll();\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"String getCategory();",
"String getCategory();",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory()\n {\n return (String) getProperty(PropertyIDMap.PID_CATEGORY);\n }",
"public List<Category> getAllCategories() {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tQuery query = (Query) session.createQuery(\"from Category\");\r\n\t\tList<Category> categories = query.list();\r\n\r\n\t\treturn categories;\r\n\t}",
"public synchronized ActionCategories loadMedicalActionCategories()\n\t{\n\t\t// if action categories is null\n\t\tif (medicalActionCategories == null)\n\t\t{\n\t\t\t// create an xml serializator\n\t\t\tSimpleXMLSerializator serializator = new SimpleXMLSerializator();\n\t\t\t// Open categories file\n\t\t\tFile categoriesFile = new File(StorageModule.getInstance().getBasePath() + \"/\" + CATEGORIES_RELATIVE_PATH);\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// load medicalactions categories\n\t\t\t\tmedicalActionCategories = (ActionCategories) serializator.deserialize(categoriesFile, ActionCategories.class);\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\tlog.error(\"An error ocurred while reading categories file.\", e);\n\t\t\t\tmedicalActionCategories = new ActionCategories();\n\t\t\t}\n\t\t}\n\t\treturn medicalActionCategories;\n\t}",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return this.category;\n }",
"public static List<Category> getCategories(Context context) {\r\n DbManager dbManager = new DbManager(context);\r\n SQLiteDatabase db = dbManager.getReadableDatabase();\r\n\r\n Cursor cursor = db.query(\r\n CategoryTable.TABLE_NAME,\r\n new String[]{CategoryTable._ID, CategoryTable.COLUMN_NAME_CATEGORY_NAME},\r\n CategoryTable.COLUMN_NAME_IS_DELETED + \" = 0\",\r\n null,\r\n null,\r\n null,\r\n CategoryTable.COLUMN_NAME_CATEGORY_NAME + \" ASC\"\r\n );\r\n\r\n List<Category> categories = new ArrayList<>();\r\n while(cursor.moveToNext()) {\r\n Category category = new Category();\r\n category._id = cursor.getInt(cursor.getColumnIndexOrThrow(CategoryTable._ID));\r\n category.category = cursor.getString(cursor.getColumnIndexOrThrow(CategoryTable.COLUMN_NAME_CATEGORY_NAME));\r\n categories.add(category);\r\n }\r\n cursor.close();\r\n db.close();\r\n\r\n return categories;\r\n }",
"public String[] getAllCategories() throws NotesException {\n\t\tDatabase db = ExtLibUtil.getCurrentDatabase();\n\t\tView v = db.getView(\"AllSnippets\");\n\t\tViewNavigator nav = v.createViewNav();\n\t\ttry {\n\t\t\tnav.setMaxLevel(0);\n\t\t\t//nav.setCacheSize(128);\n\t\t\tList<String> categories = new ArrayList<String>();\n\t\t\tfor(ViewEntry ve=nav.getFirst(); ve!=null; ve=nav.getNext(ve)) {\n\t\t\t\tcategories.add((String)ve.getColumnValues().get(0));\n\t\t\t}\n\t\t\treturn categories.toArray(new String[categories.size()]);\n\t\t} finally {\n\t\t\tnav.recycle();\n\t\t}\n\t}",
"public List<Category> findAllCategoryt_id() {\n\t\treturn null;\n\t\t\n\t}",
"public List<Category> getAllCategories() {\n\t dbUtil = new DBUtil();\n\t StringBuffer sbQuery = dbUtil.getQueryBuffer();\n\t ArrayList<String> args = dbUtil.getArgs();\n\t ResultSet rs = null;\n\t List<Category> listCategory = null;\n\t \n\t /*** Get the details of a particular Category ***/\n\t /*** QUERY ***/\n\t sbQuery.setLength(0);\n\t sbQuery.append(\" SELECT \");\n\t sbQuery.append(\" id, \");\n\t sbQuery.append(\" name, \");\n\t sbQuery.append(\" userid \");\n\t sbQuery.append(\" FROM lookup.category \");\n\t \n\t /*** Prepare parameters for query ***/\n\t args.clear();\n\t \n\t \n\t /*** Pass the appropriate arguments to DBUtil class ***/\n\t rs = dbUtil.executeSelect(sbQuery.toString(), args);\n\t \n\t /*** Convert the result set into a User object ***/\n\t if(rs!=null)\n\t listCategory = TransformUtil.convertToListCategory(rs);\n\t \n\t dbUtil.closeConnection();\n\t dbUtil = null;\n\t \n\t return listCategory;\n\t}",
"public BwCategory getCategory() {\n if (category == null) {\n category = BwCategory.makeCategory();\n }\n\n return category;\n }",
"public String getCategoryString(){\r\n\t\tMarketplaceConfig.Category c = MarketplaceConfig.Category.get(this.category);\r\n\t\tif(c == null || c.name() == null || \"\".equals(c.name())) return \"NONE\";\r\n\t\treturn c.name();\r\n\t}",
"@Override\n\tpublic ArrayList<Categoria> getCategorie() {\n\t\tDB db = getDB();\n\t\tArrayList<Categoria> categorie = new ArrayList<Categoria>();\n\t\tMap<Long, Categoria> list = db.getTreeMap(\"categorie\");\n\t\tfor(Map.Entry<Long, Categoria> categoria : list.entrySet())\n\t\t\tif(categoria.getValue() instanceof Categoria)\n\t\t\t\tcategorie.add((Categoria)categoria.getValue());\n\t\treturn categorie;\n\t}",
"public List<String> getCategories(Boolean internationalSelected){\n\t\tif (internationalSelected) {\n\t\t\treturn _intCategories;\n\t\t}\n\t\telse {\n\t\t\treturn _nzCategories;\n\t\t}\n\t}",
"@Override\n @IcalProperty(pindex = PropertyInfoIndex.CATEGORIES,\n adderName = \"category\",\n jname = \"categories\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setCategories(final Set<BwCategory> val) {\n categories = val;\n }",
"public String getCategory()\r\n {\r\n return (m_category);\r\n }",
"@Override\r\n\tpublic List<Categorie> getAllCategorie() {\n\t\treturn cateDao.getAllCategorie();\r\n\t}",
"@Override\r\n\tpublic String getCategoria() {\n\t\treturn this.categoria;\r\n\t}",
"List getCategoriesOfType(String typeConstant);",
"List<Category> lisCat() {\n return dao.getAll(Category.class);\n }",
"@GetMapping(\"category\")\n\t\tpublic List<String> getCategory(){\n\t\t\tList<String> list = repo.findByCat();\n\t\t\treturn list;\n\t\t\t\n\t\t\t\n\t\t}",
"public int getCategory(){\n\t\treturn this.cat;\n\t}",
"public String getStrCategoryName() {\n return strCategoryName;\n }",
"private static String getCategories(JSONObject volumeInfo) throws JSONException {\n JSONArray categories = volumeInfo.optJSONArray(\"categories\");\n if (categories == null) {\n Log.e(LOG_TAG, \"No categories for this book\");\n return null;\n }\n StringBuilder categoriesString = new StringBuilder();\n for (int i = 0; i < categories.length(); i++) {\n categoriesString.append(categories.getString(i));\n if (i + 1 < categories.length()) {\n categoriesString.append(\", \");\n }\n }\n return categoriesString.toString();\n }",
"public List<String> getAllCategories(String[] err) {\n GetCategoriesJSONResponse getCategoriesJSONResponse = null;\n try {\n getCategoriesJSONResponse = apiInterface.getAllCategories().execute().body();\n if (getCategoriesJSONResponse != null && getCategoriesJSONResponse.getStatus() == -1) {\n err[0] = getCategoriesJSONResponse.getMessage();\n }\n } catch (Exception e) {\n Log.e(TAG, \"Ex: \", e);\n }\n\n return getCategoriesJSONResponse != null ? getCategoriesJSONResponse.getCategories() : null;\n }",
"public static List<String> getAllCategoryName() {\n List<String> list = new ArrayList<>();\n List<Category> catList=getAllCategory();\n if(catList!=null && catList.size()>0) {\n for (Category category : catList)\n {\n list.add(category.getCategoryName());\n }\n }\n\n return list;\n\n }",
"public Set<String> getCategory(){return category;}",
"public String getCategory() {\n return this.category;\n }",
"public String getCategory()\n {\n return category;\n }",
"public List<CategoriesTypePojo> getCategoriesType() {\n\t\t Session session = sessionFactory.getCurrentSession();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<CategoriesTypePojo> list= session.createCriteria(CategoriesTypePojo.class).list();\n\t\treturn list;\n\t}",
"@Override\n\tpublic List<Category> getAllCategory() {\n\t\treturn category.selectAllCategory();\n\t}",
"public int getCategory() {\r\n\t\treturn category;\r\n\t}",
"public io.reactivesw.catalog.grpc.CategoryList getCategories(io.reactivesw.catalog.grpc.Empty request) {\n return blockingUnaryCall(\n getChannel(), METHOD_GET_CATEGORIES, getCallOptions(), request);\n }",
"public Set<String> getAllBooksCategories() {\n List<Book> books = bookRepository.findAll();\n Set<String> categories = new HashSet<>();\n for (Book book : books) {\n if (book.getCategories() != null) {\n categories.addAll(Arrays.asList(book.getCategories()));\n }\n }\n return categories;\n }",
"default List<String> getCategory(String category) {\n return new ArrayList<>(getCategories().get(category.toLowerCase()).values());\n }",
"public ArrayList<Category> getCategories() {\n ArrayList<Category> categories = new ArrayList<>();\n Cursor cursor = database.rawQuery(\"SELECT * FROM tbl_categories\", null);\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n Category category = new Category();\n category.setCategory_id(cursor.getInt(cursor.getColumnIndex(\"category_id\")));\n category.setCategory_name(cursor.getString(cursor.getColumnIndex(\"category_name\")));\n\n\n categories.add(category);\n cursor.moveToNext();\n }\n cursor.close();\n return categories;\n }"
] |
[
"0.71884006",
"0.67184085",
"0.6704692",
"0.665573",
"0.6651228",
"0.6637834",
"0.6548605",
"0.6489846",
"0.64344525",
"0.63842416",
"0.63751185",
"0.63300896",
"0.62517715",
"0.61937994",
"0.61890984",
"0.61468285",
"0.6123174",
"0.605166",
"0.6042604",
"0.60396487",
"0.6039104",
"0.60032445",
"0.59980536",
"0.5994658",
"0.58774793",
"0.5877325",
"0.5857257",
"0.58409375",
"0.58314335",
"0.58104503",
"0.57911927",
"0.578032",
"0.57770556",
"0.5761414",
"0.57551175",
"0.5748743",
"0.57390225",
"0.5721199",
"0.5708379",
"0.5702034",
"0.5700137",
"0.5693063",
"0.5692893",
"0.5679053",
"0.5675824",
"0.56676334",
"0.56676334",
"0.56540084",
"0.5649288",
"0.56484425",
"0.56484425",
"0.5646844",
"0.5646265",
"0.5644833",
"0.5637338",
"0.5637338",
"0.56244963",
"0.56244963",
"0.5621488",
"0.5621488",
"0.5621488",
"0.5621488",
"0.5621488",
"0.5621488",
"0.5621488",
"0.56162757",
"0.5606172",
"0.55990326",
"0.5595726",
"0.55937755",
"0.55839425",
"0.55833054",
"0.55722797",
"0.5572116",
"0.55710363",
"0.5570065",
"0.55697423",
"0.55645347",
"0.55540913",
"0.55538017",
"0.5550523",
"0.5548009",
"0.55442256",
"0.5535247",
"0.5523325",
"0.552171",
"0.5515683",
"0.551206",
"0.5508754",
"0.5505802",
"0.5502802",
"0.5493927",
"0.5490915",
"0.5488359",
"0.5487573",
"0.5487263",
"0.5487086",
"0.5485009",
"0.54808503",
"0.54688865"
] |
0.6912813
|
1
|
Set the categories property: the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'.
|
public LogProfileProperties withCategories(List<String> categories) {
this.categories = categories;
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n @IcalProperty(pindex = PropertyInfoIndex.CATEGORIES,\n adderName = \"category\",\n jname = \"categories\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setCategories(final Set<BwCategory> val) {\n categories = val;\n }",
"public void setCategories(Categories categories) {\n this.categories = categories;\n }",
"public void setCategories(List<CategoryMappingValue> categories) {\r\n\t\tthis.categories = categories;\r\n\t}",
"public void setCategories(List<Category> categories) {\n LayoutInflater inflater = LayoutInflater.from(context);\n\n for (Category category : categories) {\n View categoryView = inflater.inflate(R.layout.bottom_sheet_dialog_category, null);\n\n TextView categoryText = (TextView) categoryView.findViewById(R.id.item_header);\n\n categoryText.setText(category.getName());\n\n rootView.addView(categoryView);\n\n for (Option option : category.getOptions()) {\n View optionView = inflater.inflate(R.layout.bottom_sheet_dialog_item, null);\n ImageView icon = (ImageView) optionView.findViewById(R.id.item_icon);\n\n icon.setImageDrawable(option.getIcon());\n\n TextView text = (TextView) optionView.findViewById(R.id.item_text);\n\n text.setText(option.getName());\n\n optionView.setOnClickListener(option.getListener());\n\n rootView.addView(optionView);\n }\n }\n }",
"public void setCategories(Set<CategoryRefPathDTO> categories) {\n\t\tthis.categories = categories;\n\t}",
"public void setEventCategories(java.util.Collection<String> eventCategories) {\n if (eventCategories == null) {\n this.eventCategories = null;\n return;\n }\n com.amazonaws.internal.ListWithAutoConstructFlag<String> eventCategoriesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(eventCategories.size());\n eventCategoriesCopy.addAll(eventCategories);\n this.eventCategories = eventCategoriesCopy;\n }",
"@NoProxy\n @NoWrap\n @NoDump\n @Override\n public void setCategoryHrefs(final Set<String> val) {\n categoryUids = val;\n }",
"public void setCategory(String cat) {\t//TODO\n\t\tcategory = cat;\n\t}",
"public void setAttributeCategory(String value)\n {\n setAttributeInternal(ATTRIBUTECATEGORY, value);\n }",
"public void setCategory(String cat)\n\t{\n\t\tif(cat!=null)\n\t\t\tthis.category = cat;\n\t}",
"public void setCategory(String category);",
"public List<String> categories() {\n return this.categories;\n }",
"public void setCategory(String newCategory) {\n category = newCategory;\n }",
"public void setCategory(Category cat) {\n this.category = cat;\n }",
"public void setCategory(String category)\r\n {\r\n m_category = category;\r\n }",
"public void setCategory(Category c) {\n this.category = c;\n }",
"public String[] getCategoryList(){\n return new String[]{\n \"Macros\",\n \"Instrument Type\",\n \"TOF_NSCD\",\n \"NEW_SNS\"\n };\n }",
"public String getCategories() {\n return getProperty(Property.CATEGORIES);\n }",
"public void setCatLevel(int value) {\n this.catLevel = value;\n }",
"public Categories getCategories() {\n return this.categories;\n }",
"@Override\n public void setCategory(String category) {\n this.category = category;\n }",
"@JSProperty(\"categories\")\n void setCategories(String[] value);",
"public ArrayList<EventCategory> getCategories() {\n return mCategories;\n }",
"public void setCategory(String category) {\n this.category = category;\n changeState(CHANGE);\n }",
"public void SetCategory(String text) {\n\t\t\n\t\t\n\t\tCategory_label.setText(text);\n\t}",
"private void initialiseCategories() {\n\t\t_nzCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/nz\");\n\t\t_intCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/international\");\n\t}",
"private void buildCategories() {\n List<Category> categories = categoryService.getCategories();\n if (categories == null || categories.size() == 0) {\n throw new UnrecoverableApplicationException(\n \"no item types found in database\");\n }\n\n Map<Category, List<Category>> categoriesMap = new HashMap<Category, List<Category>>();\n for (Category subCategory : categories) {\n Category parent = subCategory.getParentCategory();\n if (categoriesMap.get(parent) == null) {\n categoriesMap.put(parent, new ArrayList<Category>());\n categoriesMap.get(parent).add(subCategory);\n } else {\n categoriesMap.get(parent).add(subCategory);\n }\n }\n\n this.allCategories = categories;\n this.sortedCategories = categoriesMap;\n }",
"public void setCategory (String category) {\n switch (category.toLowerCase()) {\n default -> this.category = Category.YOUTH;\n case \"novel\" -> this.category = Category.NOVEL;\n case \"theater\" -> this.category = Category.THEATER;\n case \"documentary\" -> this.category = Category.DOCUMENTARY;\n case \"speech\" -> this.category = Category.SPEECH;\n }\n }",
"public void setCat(Categories cats) {\n if (tmpCat == null || tmpCat.isEmpty())\n return;\n\n conCat = cats.getCategory(tmpCat);\n if (conCat == null) {\n throw new Error(\"constraint category \" + tmpCat + \" does not exist in markedup\");\n }\n\n if (conRel != 0)\n conRel = cats.dependencyRelations.getRelID(cats.getString(tmpCat), conRel);\n }",
"@Override\n public void gotCategories(ArrayList<String> categories) {\n ArrayAdapter<String> categoryAdapter = new ArrayAdapter<>(this,\n android.R.layout.simple_list_item_1 , categories);\n categoriesListView.setAdapter(categoryAdapter);\n }",
"public void setCategoryName(final String categoryName);",
"@JsonIgnore\n public void setGeneralCategoryNames(final String... generalCategoryNames);",
"public void setGeneralCategoryNames(final List<String> generalCategoryNames);",
"public Flowable<List<Category>> addCategories(List<Category> categories) {\n return executeTransaction((bgRealm, subscriber) -> {\n bgRealm.copyToRealmOrUpdate(categories);\n });\n }",
"public void setLoggingActions(boolean logActions) {\r\n\t\t\tthis.loggingActions = logActions;\r\n\t\t}",
"public void setCategory(String category){\n this.category = category;\n }",
"public void newCategory() {\n btNewCategory().push();\n }",
"public static void afficherCategories(HttpServletRequest request){\n\t\trequest.setAttribute(\"categories\", ManagerProduit.getCategories());\n\t}",
"void setLogLevelsFromSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n // Set root log level\n String logLevelRoot =\n sharedPreferences.getString(getString(R.string.preferences_key_log_level),\n getString(R.string.preferences_default_log_level));\n Logs.setRootLogLevel(logLevelRoot);\n\n // Set log level for file appender\n String logLevelFile =\n sharedPreferences.getString(getString(R.string.preferences_key_log_level_file),\n getString(R.string.preferences_default_log_level_file));\n Logs.setThresholdFilterLevel(logLevelFile, Constants.FILE_APPENDER_NAME, this);\n\n // Set log level for logcat appender\n String logLevelLogCat =\n sharedPreferences.getString(getString(R.string.preferences_key_log_level_logcat),\n getString(R.string.preferences_default_log_level_logcat));\n Logs.setLogCatLevel(logLevelLogCat, this);\n }",
"@Override\n\tpublic void defineTargetCategories(List<String> values) {\n\t\tPreconditions.checkArgument(\n\t\t\t\tvalues.size() <= maxTargetValue,\n\t\t\t\t\"Must have less than or equal to \" + maxTargetValue + \" categories for target variable, but found \"\n\t\t\t\t\t\t+ values.size());\n\t\tif (maxTargetValue == Integer.MAX_VALUE) {\n\t\t\tmaxTargetValue = values.size();\n\t\t}\n\n\t\tfor (String value : values) {\n\t\t\ttargetDictionary.intern(value);\n\t\t}\n\t}",
"public void setCategory(String category) {\r\n this.category = category;\r\n }",
"public void setStrCategoryName(final String strCategoryName) {\n this.strCategoryName = strCategoryName;\n }",
"@Override\n public void updateCategories(List<String> categories) {\n //Update the Category Spinner with the new data\n mCategorySpinnerAdapter.clear();\n //Add the Prompt as the first item\n categories.add(0, mSpinnerProductCategory.getPrompt().toString());\n mCategorySpinnerAdapter.addAll(categories);\n //Trigger data change event\n mCategorySpinnerAdapter.notifyDataSetChanged();\n\n if (!TextUtils.isEmpty(mCategoryLastSelected)) {\n //Validate and Update the Category selection if previously selected\n mPresenter.updateCategorySelection(mCategoryLastSelected, mCategoryOtherText);\n }\n }",
"public void setCategory(String newCategory) {\n\t\t_pcs.firePropertyChange(\"category\", this.category, newCategory); //$NON-NLS-1$\n\t\tthis.category = newCategory;\n\t}",
"public void setCategory(java.lang.String category) {\n this.category = category;\n }",
"private void setCategoriesArraySize(int i) {\r\n\t\tp_category_name = new String[i];\r\n\t}",
"public LinkedHashMap<String, String> getCategories() {\r\n\t\treturn this.categories;\r\n\t}",
"@Override\r\n\tpublic boolean addCategory(List<Category> categories) throws CategoryCreationException {\n\t\tboolean stat=false;\r\n\t\ttry {\r\n\t\t\tstat=categoryDao.addCategory(categories);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tthrow new CategoryCreationException(\"Error in creating object check your inputs\");\r\n\t\t}\r\n\t\treturn stat;\r\n\t}",
"@Override\n\tpublic List<EventCategory> getAllCategories() {\n\t\treturn categoriesRepository.findAll();\n\t}",
"public void setEngineCat(Category engineCat) {\n\t\tthis.engineCat = engineCat;\n\t}",
"public void setCategory(String category) {\n this.category = category;\n }",
"public void setCategory(String category) {\n this.category = category;\n }",
"public void setCategory(String category) {\n this.category = category;\n }",
"public void setCategory(String category) {\n this.category = category;\n }",
"public void setCategory(String category) {\n this.category = category;\n }",
"public java.util.List<String> getEventCategories() {\n if (eventCategories == null) {\n eventCategories = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();\n eventCategories.setAutoConstruct(true);\n }\n return eventCategories;\n }",
"@Test\n public void typeCategoriesTest() {\n final Category cardio = Category.CARDIO;\n final Category core = Category.CORE;\n final Category fullBody = Category.FULL_BODY;\n final Type endurance = Type.ENDURANCE;\n\n final List<Category> myCategories = new ArrayList<>();\n\n myCategories.add(cardio);\n myCategories.add(core);\n assertEquals(\"Categories of Endurance Type\", myCategories, endurance.getCategories());\n\n myCategories.add(fullBody);\n assertNotEquals(\"Not all the Categories are of Endurance Type\", myCategories, endurance.getCategories());\n\n }",
"public List<StadiumCategoryDTO> getCategories() {\n\t\treturn categories;\n\t}",
"public void setCategory(Category category) {\r\n this.category = category;\r\n }",
"public void setCategory(Integer category) {\n this.category = category;\n }",
"public List<CategoryMappingValue> getCategories() {\r\n\t\treturn categories;\r\n\t}",
"void setStatCategory (String statistic);",
"@Override\n\tpublic void saveCollapsedCategories(String userName, String categoryId,\n\t\t\tboolean isAdd) throws Exception {\n\n\t}",
"private void listadoCategorias() {\r\n sessionProyecto.getCategorias().clear();\r\n sessionProyecto.setCategorias(itemService.buscarPorCatalogo(CatalogoEnum.CATALOGOPROYECTO.getTipo()));\r\n }",
"@NonNull\n public static List<Category> getCategories() {\n if (CATEGORY == null) {\n CATEGORY = new ArrayList<>();\n CATEGORY.add(new Category(\"Bollywood\", R.drawable.bollywood, 1));\n CATEGORY.add(new Category(\"Hollywood\", R.drawable.hollywood3, 2));\n CATEGORY.add(new Category(\"Cricket\", R.drawable.cricket4, 3));\n CATEGORY.add(new Category(\"Science\", R.drawable.science1, 4));\n CATEGORY.add(new Category(\"Geography\", R.drawable.geography, 5));\n CATEGORY.add(new Category(\"History\", R.drawable.history, 6));\n }\n return CATEGORY;\n }",
"public RealtimeContactAnalysisSegment withCategories(Categories categories) {\n setCategories(categories);\n return this;\n }",
"ListCategoryResponse listCategories(ListCategoryRequest request);",
"public void setCategory(final String categoryValue) {\n this.category = categoryValue;\n }",
"public String getCategory() {\t//TODO - change to array list of categories\n\t\treturn category;\n\t}",
"static public void set_category_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"category name:\"};\n\t\tEdit_row_window.attr_vals = new String[]{Edit_row_window.selected[0].getText(1)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct m.id, m.name, m.num_links, m.year_made \" +\n\t\t\t\t\" from curr_cinema_movies m, \" +\n\t\t\t\t\" curr_cinema_movie_tag mt\" +\n\t\t\t\t\" where mt.movie_id=m.id and mt.tag_id=\"+Edit_row_window.id+\n\t\t\t\t\" order by num_links desc \";\n\n\t\tEdit_row_window.not_linked_query = \" select distinct m.id, m.name, m.num_links, m.year_made \" +\n\t\t\t\t\" from curr_cinema_movies m \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"movie name\", \"rating\", \"release year\"};\n\t\tEdit_row_window.label_min_parameter=\"min. release year:\";\n\t\tEdit_row_window.linked_category_name = \"MOVIES\";\n\t}",
"public void setCategory(Category category) {\n this.category = category;\n }",
"public void setCategory(Category category) {\n this.category = category;\n }",
"public void setCategory(Category category) {\n this.category = category;\n }",
"public void setCategory(Category category) {\n this.category = category;\n }",
"public void setDocumentCategory(java.lang.String documentCategory)\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(DOCUMENTCATEGORY$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DOCUMENTCATEGORY$0);\r\n }\r\n target.setStringValue(documentCategory);\r\n }\r\n }",
"@Override\n public Collection<String> getMenuCategories() {\n return emptyCollection;\n }",
"public void setCldCat(CloudCategory cldCat) {\n cloudCategory = cldCat;\n }",
"public void setCategory (String mode) { category = mode; }",
"public Set<String> getCategory(){return category;}",
"public void setCategory(String category) {\n this.category = category;\n this.updated = new Date();\n }",
"public List<String> getCategories();",
"public void setCatas(java.lang.String catas) {\n this.catas = catas;\n }",
"public void setTermcat(String value) {\r\n setAttributeInternal(TERMCAT, value);\r\n }",
"public Set<CategoryRefPathDTO> getCategories() {\n\t\tif (categories == null) {\n\t\t\tcategories = new HashSet<CategoryRefPathDTO>();\n\t\t}\n\t\treturn categories;\n\t}",
"public void setCategory(final Category value)\r\n\t{\r\n\t\tsetCategory( getSession().getSessionContext(), value );\r\n\t}",
"Collection</* IInstallableUnit */?> publishCategories( File categoryDefinition )\n throws FacadeException, IllegalStateException;",
"private void loadCategories() {\n\t\tcategoryService.getAllCategories(new CustomResponseListener<Category[]>() {\n\t\t\t@Override\n\t\t\tpublic void onHeadersResponse(Map<String, String> headers) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onErrorResponse(VolleyError error) {\n\t\t\t\tLog.e(\"EditTeamProfileActivity\", \"Error while loading categories\", error);\n\t\t\t\tToast.makeText(EditTeamProfileActivity.this, \"Error while loading categories \" + error.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onResponse(Category[] response) {\n\t\t\t\tCollections.addAll(categories, response);\n\n\t\t\t\tif (null != categoryRecyclerAdapter) {\n\t\t\t\t\tcategoryRecyclerAdapter.setSelected(0);\n\t\t\t\t\tcategoryRecyclerAdapter.notifyDataSetChanged();\n\t\t\t\t}\n\n\t\t\t\tupdateSelectedCategory();\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\tpublic void verifyCategories() {\n\t\t\n\t\tBy loc_catNames=MobileBy.xpath(\"//android.widget.TextView[@resource-id='com.ionicframework.SaleshuddleApp:id/category_name_tv']\");\n\t\tPojo.getObjSeleniumFunctions().waitForElementDisplayed(loc_catNames, 15);\n\t\tList<AndroidElement> catNames=Pojo.getObjSeleniumFunctions().getWebElementListAndroidApp(loc_catNames);\n\t\tList<String> catNamesStr=new ArrayList<String>();\n\t\t\n\t\t\n\t\tfor(AndroidElement catName:catNames)\n\t\t{\n\t\t\tcatNamesStr.add(catName.getText().trim());\n\t\t}\n\t\t\n\t\tif(catNamesStr.size()==0)\n\t\t{\n\t\tPojo.getObjUtilitiesFunctions().logTestCaseStatus(\"Verify that catgory names are correct\", false);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tPojo.getObjUtilitiesFunctions().logTestCaseStatus(\"Verify that catgory names are correct\", BuildSpGamePage.expectedData.get(\"Categories\").containsAll(catNamesStr));\n\n\t\t}\n\t\t}",
"public synchronized ActionCategories loadMedicalActionCategories()\n\t{\n\t\t// if action categories is null\n\t\tif (medicalActionCategories == null)\n\t\t{\n\t\t\t// create an xml serializator\n\t\t\tSimpleXMLSerializator serializator = new SimpleXMLSerializator();\n\t\t\t// Open categories file\n\t\t\tFile categoriesFile = new File(StorageModule.getInstance().getBasePath() + \"/\" + CATEGORIES_RELATIVE_PATH);\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// load medicalactions categories\n\t\t\t\tmedicalActionCategories = (ActionCategories) serializator.deserialize(categoriesFile, ActionCategories.class);\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\tlog.error(\"An error ocurred while reading categories file.\", e);\n\t\t\t\tmedicalActionCategories = new ActionCategories();\n\t\t\t}\n\t\t}\n\t\treturn medicalActionCategories;\n\t}",
"public void setCategoryId(long catId) {\n\t\tthis.categoryId = catId;\n\t}",
"public void setCategory(String category) {\n\t\tthis.category = category;\n\t}",
"public void setCategory(String category) {\n\t\tthis.category = category;\n\t}",
"public void setName(String name)\n\t{\n\t\tcategoryName= name;\n\t}",
"public GiftCardProductQuery categories(CategoryInterfaceQueryDefinition queryDef) {\n startField(\"categories\");\n\n _queryBuilder.append('{');\n queryDef.define(new CategoryInterfaceQuery(_queryBuilder));\n _queryBuilder.append('}');\n\n return this;\n }",
"public void setCategoryName(String catName) {\n\t\tthis.categoryName = catName;\n\t}",
"public void setNotiCategory(String value) {\r\n setAttributeInternal(NOTICATEGORY, value);\r\n }",
"public String getCategory() {\r\n return category;\r\n }",
"public void changeCategory(Category newCategory) {\n this.category = newCategory;\n }",
"public String getCategory(){\r\n\t\treturn this.category;\r\n\t}",
"@Override\n public void setCategoryLabel(String categoryLabel) {\n this.categoryLabel = categoryLabel;\n }"
] |
[
"0.69448704",
"0.6811609",
"0.6276309",
"0.5789858",
"0.57636297",
"0.5697111",
"0.55978286",
"0.55073607",
"0.5495604",
"0.5487818",
"0.5464826",
"0.544557",
"0.54358196",
"0.5419448",
"0.5367885",
"0.53442705",
"0.5335981",
"0.53146845",
"0.5285302",
"0.52852297",
"0.52810174",
"0.5258821",
"0.5257482",
"0.5235789",
"0.5220653",
"0.51793134",
"0.51718336",
"0.5167408",
"0.5166127",
"0.5164163",
"0.5134945",
"0.5130405",
"0.5099239",
"0.5094704",
"0.50938",
"0.50786024",
"0.5074053",
"0.50669056",
"0.5058576",
"0.50578564",
"0.50569916",
"0.50466335",
"0.50441295",
"0.5040773",
"0.5033085",
"0.50314516",
"0.5030399",
"0.50300056",
"0.50080687",
"0.49923298",
"0.49876973",
"0.49876973",
"0.49876973",
"0.49876973",
"0.49876973",
"0.4983726",
"0.49814776",
"0.49680045",
"0.496383",
"0.49609154",
"0.49355194",
"0.4933654",
"0.49250913",
"0.49156135",
"0.4898746",
"0.48967528",
"0.4893279",
"0.48914772",
"0.4887995",
"0.48865744",
"0.48834455",
"0.48834455",
"0.48834455",
"0.48834455",
"0.48761794",
"0.48672023",
"0.4861661",
"0.48484337",
"0.4838356",
"0.48356834",
"0.4828645",
"0.48262784",
"0.48191482",
"0.48184726",
"0.4809727",
"0.4806735",
"0.48021093",
"0.47948876",
"0.47877598",
"0.47858503",
"0.47852424",
"0.47852424",
"0.47790343",
"0.47721538",
"0.47622055",
"0.47549063",
"0.47495115",
"0.47487253",
"0.47457376",
"0.47302052"
] |
0.5778086
|
4
|
Get the retentionPolicy property: the retention policy for the events in the log.
|
public RetentionPolicy retentionPolicy() {
return this.retentionPolicy;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setRetentionPolicy(String retentionPolicy) {\n this.retentionPolicy = retentionPolicy;\n }",
"public Logging withRetentionPolicy(RetentionPolicy retentionPolicy) {\n this.retentionPolicy = retentionPolicy;\n return this;\n }",
"public Integer getRetentionPeriod()\n {\n return retentionPeriod;\n }",
"public TRetentionPolicyInfo getTRetentionPolicyInfo() {\n\n\t\treturn this.retentionPolicyInfo;\n\t}",
"public LogProfileProperties withRetentionPolicy(RetentionPolicy retentionPolicy) {\n this.retentionPolicy = retentionPolicy;\n return this;\n }",
"com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy getRetentionPolicy();",
"public Retention getRetention() {\n return retention;\n }",
"public com.vmware.converter.DVSPolicy getPolicy() {\r\n return policy;\r\n }",
"public EvictionPolicy getEvictionPolicy()\n {\n return m_policy;\n }",
"public PolicyPermission getPolicyPermission()\n {\n return this.perm;\n }",
"public MergePolicy getMergePolicy() { \n\t\tif (mMergePolicy == null) throw new NullPointerException();\n\t\treturn mMergePolicy;\n\t}",
"public String getPolicyArn() {\n return this.policyArn;\n }",
"public String getPolicy() {\r\n String policy = \"\";\r\n if (!policyRules.isEmpty()) {\r\n policy += policyRules.get(0).getRule().trim();\r\n for (int i = 1; i < policyRules.size(); i++) {\r\n policy += \",\" + policyRules.get(i).getRule().trim();\r\n }\r\n }\r\n\r\n return policy.trim();\r\n }",
"com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyOrBuilder getRetentionPolicyOrBuilder();",
"public java.lang.String getPolicyURL() {\n return policyURL;\n }",
"public final String getRedirectCookiePolicy() {\n return properties.get(REDIRECT_COOKIE_POLICY_PROPERTY);\n }",
"public YangUInt32 getFileRetentionPeriodValue() throws JNCException {\n return (YangUInt32)getValue(\"file-retention-period\");\n }",
"public Integer softDeleteRetentionInDays() {\n return this.softDeleteRetentionInDays;\n }",
"public DeleteRetentionPolicy shareDeleteRetentionPolicy() {\n return this.shareDeleteRetentionPolicy;\n }",
"public String getAbyssPolicy()\n {\n return m_AbyssPolicy;\n }",
"@XmlElement(name = \"source_policy\")\r\n public ProtectionSourcePolicy getSourcePolicy() {\r\n return sourcePolicy;\r\n }",
"public java.lang.String getPolicyNo() {\n return policyNo;\n }",
"public java.lang.String getPolicyNo() {\n return policyNo;\n }",
"protected Permissions getExcludedPolicy(){\n\treturn stateIs(INSERVICE_STATE) ? this.excludedPermissions : null;\n }",
"@Deprecated\n Policy getEvictionPolicy();",
"public DeleteScheduler propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public DeleteOAuth propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public String getRetentionFlag() {\n return (String) getAttributeInternal(RETENTIONFLAG);\n }",
"private MetadataCheckpointPolicy getNoOpCheckpointPolicy() {\n DurableLogConfig dlConfig = DurableLogConfig\n .builder()\n .with(DurableLogConfig.CHECKPOINT_COMMIT_COUNT, Integer.MAX_VALUE)\n .with(DurableLogConfig.CHECKPOINT_TOTAL_COMMIT_LENGTH, Long.MAX_VALUE)\n .build();\n\n return new MetadataCheckpointPolicy(dlConfig, Runnables.doNothing(), executorService());\n }",
"public DeleteProxy propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public DeleteNamespacedSubscription propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"protected java.security.Policy getPolicy(){\n\tif (stateIs(INSERVICE_STATE)) {\n\t return this.policy;\n\t} \n\tif (logger.isLoggable(Level.FINEST)) {\n\t logger.finest(\"JACC Policy Provider: getPolicy (\"+CONTEXT_ID+\") is NOT in service\");\n\t}\n\treturn null;\n }",
"public DeleteOperatorHub propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public DeleteFeatureGate propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public DeleteImage propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public String getDnsPolicy() {\n return dnsPolicy;\n }",
"public Long getReturnpolicyId() {\r\n return returnpolicyId;\r\n }",
"public long getNotificationDelay() {\n\t\treturn notificationDelay;\n\t}",
"public DeleteDNS propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public java.lang.String getPolicyEffectiveDate() {\n return policyEffectiveDate;\n }",
"public Integer getManualSnapshotRetentionPeriod() {\n return this.manualSnapshotRetentionPeriod;\n }",
"public DeleteConsole propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"String getLbPolicy() {\n return lbPolicy;\n }",
"boolean hasRetentionPolicy();",
"public DeleteAuthentication propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPolicyLine();",
"private AbstractDataLogger getDataLoggerForPolicy(int transferPolicy) {\n try {\n // check for transfer policy to store-only mode\n if (transferPolicy == DataTransferConfig.STORE_ONLY) {\n // create new data storeage logger\n return new DataStoreLogger(this);\n }\n } catch (ESException e) {\n return null;\n } catch (DataHandlerException e) {\n return null;\n }\n\n return null;\n }",
"public DeleteBuild propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public String getDeliverLogsPermissionArn() {\n return this.deliverLogsPermissionArn;\n }",
"@Override\r\n\tpublic RetentionManager getRetentionManager()\r\n\t\t\tthrows UnsupportedRepositoryOperationException, RepositoryException {\n\t\treturn null;\r\n\t}",
"public DeleteProject propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public DeleteNamespacedConfiguration propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public String burstThrottlePolicy() {\n return this.burstThrottlePolicy;\n }",
"public java.lang.String getPolicyNbr() {\n return policyNbr;\n }",
"public AdjustmentPeriodTypeId getPeriod() {\n return this.period;\n }",
"StoragePolicyDecisionPoint getStoragePolicyDecisionPoint();",
"public DeleteAPIServer propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"@Override\r\n\tpublic List<Policy> getPolicies() {\n\t\tList<Policy> policy=dao.getPolicies();\r\n\t\treturn policy;\r\n\t}",
"public final long getRetentionExpiryDateTime() {\n\t return m_retainUntil;\n\t}",
"String privacyPolicy();",
"public String getRetentionMFlag() {\n return (String) getAttributeInternal(RETENTIONMFLAG);\n }",
"public Map<String, ServiceTypeDeltaHealthPolicy> serviceTypeDeltaHealthPolicies() {\n return this.serviceTypeDeltaHealthPolicies;\n }",
"public DeleteIngress propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public Policy _get_policy(int policy_type) {\n throw new NO_IMPLEMENT(reason);\n }",
"private RoutingPolicy getExportPolicy() {\n\t String exportPolicyName = null;\n switch(this.getType()) {\n case BGP:\n // String constant from\n // org.batfish.representation.cisco.CiscoConfiguration.toBgpProcess\n exportPolicyName = \"~BGP_COMMON_EXPORT_POLICY:\" \n + this.getVrf().getName() + \"~\";\n break;\n case OSPF:\n exportPolicyName = this.ospfConfig.getExportPolicy();\n break;\n default:\n return null;\n }\n\n return this.getDevice().getRoutingPolicy(exportPolicyName);\n\t}",
"public String getPolicyName() {\n \t\treturn policyName;\n \t}",
"Policy _get_policy(int policy_type);",
"public NetworkAccessPolicy networkAccessPolicy() {\n return this.networkAccessPolicy;\n }",
"public DeleteNetwork propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public DeleteClusterVersion propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public String getPolicyGroupName() \n {\n return policyGroupName;\n }",
"public DeleteClusterOperator propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public DeleteInfrastructure propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public BaseWindowedBolt<T> withWatermarkTriggerPolicy(WatermarkTriggerPolicy triggerPolicy) {\n this.watermarkTriggerPolicy = triggerPolicy;\n return this;\n }",
"public void trackRetention() {\n track(\"_retention\");\n }",
"public static String getPolicyString(short policy) {\n\t\treturn POLICY_STRINGS[policy];\n\t}",
"public int getEdgePolicy() {\n if (edgePolicy.equals(\"KLEINBOTTLE\")) {\n return 2;\n }\n if (edgePolicy.equals(\"TOROIDAL\")) {\n return 1;\n }\n if (edgePolicy.equals(\"BOUNDED\")) {\n return 0;\n }\n else {\n throw new IllegalArgumentException(\"Edge policy given is invalid\");\n }\n }",
"public SigningPolicy[] getSigningPolicies() {\n\n if (this.policyDNMap == null) {\n return null;\n }\n\n Collection values = this.policyDNMap.values();\n SigningPolicy[] policies = new SigningPolicy[values.size()];\n Iterator iterator = values.iterator();\n int i = 0;\n while (iterator.hasNext()) {\n policies[i++] = (SigningPolicy)iterator.next();\n }\n return policies;\n }",
"@Schema(description = \"Indicates the granularity at which the indicator is evaluated for threshold crossing\")\n\n\tpublic String getGranularity() {\n\t\treturn granularity;\n\t}",
"public List<ServiceAccessPolicyEntry> accessPolicies() {\n return this.accessPolicies;\n }",
"public String getRuntimePolicyFile(IPath configPath);",
"public interface LoggingProvider {\n\n /**\n * Policy will append {@code .wspolicy} to the returned string.\n *\n * @return a logging subsystem name to use by loggers\n */\n String getLoggingSubsystemName();\n}",
"public Long getPeriod() {\n return this.Period;\n }",
"public Object getPropagationId()\n {\n return propagationId;\n }",
"PolicyStatsManager getStats();",
"public Integer getFailureRetentionPeriodInDays() {\n return this.failureRetentionPeriodInDays;\n }",
"public DeleteNamespacedComponent propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public ContainerPolicy getContainerPolicy() {\n return containerPolicy;\n }",
"public PolicyMap getPolicyMap();",
"@Override\n\tpublic java.lang.String getNoticePeriod() {\n\t\treturn _candidate.getNoticePeriod();\n\t}",
"public String getSecurityPolicyFile()\n\t{\n\t\treturn securityPolicyFile;\n\t}",
"public Number getPeriodId() {\n return (Number) getAttributeInternal(PERIODID);\n }",
"public com.google.api.ads.adwords.axis.v201809.cm.PolicyTopicEntry[] getPolicyTopicEntries() {\n return policyTopicEntries;\n }",
"public UnknownRetentionPolicyException(String retentionPolicyName, String databaseName) {\n super(\"Unknown retention policy \" + retentionPolicyName + \" on database \" + databaseName);\n }",
"public Integer getPeriodId() {\n\t\treturn periodId;\n\t}",
"public ScalePolicy getScalePolicy() {\n\t\treturn null;\n\t}",
"public long getPeriodId() {\n return periodId;\n }",
"public RegistryKeyProperty getPolicyKey();",
"PolicyDetail findPolicyDetail(int policyId, Lender lender);"
] |
[
"0.6784265",
"0.64095503",
"0.62494063",
"0.6103169",
"0.5976599",
"0.57846457",
"0.5747327",
"0.5705041",
"0.5264008",
"0.5237239",
"0.5230135",
"0.5179732",
"0.5133536",
"0.513353",
"0.5109219",
"0.506292",
"0.50101656",
"0.50101054",
"0.4964306",
"0.49605566",
"0.49448016",
"0.4904184",
"0.4904184",
"0.48974863",
"0.48953065",
"0.4876",
"0.48638815",
"0.485863",
"0.48307106",
"0.481834",
"0.47916257",
"0.4778206",
"0.47233883",
"0.47224522",
"0.4699765",
"0.469876",
"0.4662731",
"0.4646475",
"0.46441597",
"0.46435994",
"0.4631609",
"0.45874128",
"0.45762074",
"0.45647836",
"0.4547915",
"0.44994134",
"0.44987145",
"0.44974458",
"0.44868177",
"0.44864494",
"0.44851303",
"0.4483177",
"0.4475513",
"0.44732",
"0.44544944",
"0.44495565",
"0.44493136",
"0.4448788",
"0.44465175",
"0.44411987",
"0.44335088",
"0.4420696",
"0.44142535",
"0.4410302",
"0.4391098",
"0.4388037",
"0.43820864",
"0.4377238",
"0.43738058",
"0.43450782",
"0.43439507",
"0.4342688",
"0.43396538",
"0.4339409",
"0.4337624",
"0.4337254",
"0.43332648",
"0.43180978",
"0.43043444",
"0.4284944",
"0.42656267",
"0.4260264",
"0.4245823",
"0.42359644",
"0.42280954",
"0.4220897",
"0.42192498",
"0.42142525",
"0.4203266",
"0.420104",
"0.4191168",
"0.41676274",
"0.41437146",
"0.41413432",
"0.41365376",
"0.41305134",
"0.41292158",
"0.41272703",
"0.41138524"
] |
0.7488449
|
1
|
Set the retentionPolicy property: the retention policy for the events in the log.
|
public LogProfileProperties withRetentionPolicy(RetentionPolicy retentionPolicy) {
this.retentionPolicy = retentionPolicy;
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setRetentionPolicy(String retentionPolicy) {\n this.retentionPolicy = retentionPolicy;\n }",
"public Logging withRetentionPolicy(RetentionPolicy retentionPolicy) {\n this.retentionPolicy = retentionPolicy;\n return this;\n }",
"public void setRetentionPeriod(int value)\n {\n // per https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutRetentionPolicy.html\n // as-of 2019-05-04\n switch (value)\n {\n case 1 :\n case 3 :\n case 5 :\n case 7 :\n case 14 :\n case 30 :\n case 60 :\n case 90 :\n case 120 :\n case 150 :\n case 180 :\n case 365 :\n case 400 :\n case 545 :\n case 731 :\n case 1827 :\n case 3653 :\n retentionPeriod = Integer.valueOf(value);\n break;\n default :\n throw new IllegalArgumentException(\"invalid retention period; see AWS API for allowed values\");\n }\n }",
"public RetentionPolicy retentionPolicy() {\n return this.retentionPolicy;\n }",
"public RetentionPolicy retentionPolicy() {\n return this.retentionPolicy;\n }",
"public void setTRetentionPolicyInfo(TRetentionPolicyInfo info) {\n\n\t\tthis.retentionPolicyInfo = info;\n\t}",
"public void setFileRetentionPeriodValue(String fileRetentionPeriodValue)\n throws JNCException {\n setFileRetentionPeriodValue(new YangUInt32(fileRetentionPeriodValue));\n }",
"public void setFileRetentionPeriodValue(YangUInt32 fileRetentionPeriodValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"file-retention-period\",\n fileRetentionPeriodValue,\n childrenNames());\n }",
"@Deprecated\n void setEvictionPolicy(Policy policy);",
"public void setPolicy(short policy) {\n\t\t_policy = policy;\n\t}",
"public void setFileRetentionPeriodValue(long fileRetentionPeriodValue)\n throws JNCException {\n setFileRetentionPeriodValue(new YangUInt32(fileRetentionPeriodValue));\n }",
"public void setPolicy(String policy) {\r\n if (policy != null && !policy.equals(\"\")) {\r\n String[] rules = policy.trim().split(\",\");\r\n if (rules != null && rules.length > 0) {\r\n emptyPolicy();\r\n \r\n for (String s : rules) {\r\n addRule(new AccessRule(s));\r\n }\r\n }\r\n }\r\n }",
"public void setPolicy(com.vmware.converter.DVSPolicy policy) {\r\n this.policy = policy;\r\n }",
"public void unsetFileRetentionPeriodValue() throws JNCException {\n delete(\"file-retention-period\");\n }",
"public void addFileRetentionPeriod() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"file-retention-period\",\n null,\n childrenNames());\n }",
"public Integer getRetentionPeriod()\n {\n return retentionPeriod;\n }",
"public void setRetentionFlag(String value) {\n setAttributeInternal(RETENTIONFLAG, value);\n }",
"public BaseWindowedBolt<T> withWatermarkTriggerPolicy(WatermarkTriggerPolicy triggerPolicy) {\n this.watermarkTriggerPolicy = triggerPolicy;\n return this;\n }",
"public synchronized void setEvictionPolicy(EvictionPolicy policy)\n {\n int nType = (policy == null ? EVICTION_POLICY_HYBRID\n : EVICTION_POLICY_EXTERNAL);\n configureEviction(nType, policy);\n }",
"public DeleteProxy propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public DeleteOAuth propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public DeleteScheduler propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public void trackRetention() {\n track(\"_retention\");\n }",
"protected void setPolicy(LinkedHashMap<String, Vector<String>> policy) {\r\n\r\n\t\t// get all the parameters from config file\r\n\t\tVector<String> policyFrom = parameters.get(\"/Domains/POLICY/@from\");\r\n\t\tVector<String> policyTo = parameters.get(\"/Domains/POLICY/@to\");\r\n\t\tVector<String> policyBy = parameters.get(\"/Domains/POLICY/@by\");\r\n\r\n\t\tfor (int i = 0; i < policyFrom.size(); i++) {\r\n\t\t\tVector<String> temp = new Vector<String>();\r\n\t\t\t// if the policy entry has a comma (,), there`s a multiple possible\r\n\t\t\t// transit domain\r\n\t\t\tif (policyBy.get(i).contains(\",\")) {\r\n\t\t\t\tString[] policyHop = policyBy.get(i).split(\",\");\r\n\t\t\t\tfor (int p = 0; p < policyHop.length; p++) {\r\n\t\t\t\t\ttemp.add(policyHop[p]);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t// otherwise, just add the hop in the config file\r\n\t\t\t\t// All the policies with only one path, will apply this\r\n\t\t\t\ttemp.add(policyBy.get(i));\r\n\t\t\t}\r\n\t\t\tpolicy.put(policyFrom.get(i) + \"-\" + policyTo.get(i), temp);\r\n\t\t}\r\n\r\n\t}",
"public DeleteClusterVersion propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public DeleteNamespacedSubscription propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public DeleteOperatorHub propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public DeleteFeatureGate propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public DeleteDNS propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public DeleteNamespacedConfiguration propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public void markFileRetentionPeriodDelete() throws JNCException {\n markLeafDelete(\"fileRetentionPeriod\");\n }",
"public void setExplorationPolicy(ExplorationPolicy explorationPolicy) {\n this.explorationPolicy = explorationPolicy;\n }",
"@Override\r\n\tpublic void savePolicy(Policy policy) {\n\t\tdao.savePolicy(policy);\r\n\t}",
"public DeleteConsole propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public DeleteAPIServer propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public void markFileRetentionPeriodReplace() throws JNCException {\n markLeafReplace(\"fileRetentionPeriod\");\n }",
"public DeleteImage propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"@Generated\n @Selector(\"setRollingPeriod:\")\n public native void setRollingPeriod(int value);",
"public void setPolicyURL(java.lang.String policyURL) {\n this.policyURL = policyURL;\n }",
"public DeleteBuild propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"org.omg.CORBA.Object _set_policy_override(Policy[] policies,\n SetOverrideType set_add);",
"public DeleteClusterOperator propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public DeleteIngress propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public void setDataRetentionPeriodLength(short dataRetentionPeriodLength)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DATARETENTIONPERIODLENGTH$26, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DATARETENTIONPERIODLENGTH$26);\n }\n target.setShortValue(dataRetentionPeriodLength);\n }\n }",
"public void setRetentionExpiryDateTime(long expires) {\n\t\t\n\t\t// Check if the retention date/time has changed\n\t\t\n\t\tif ( getRetentionExpiryDateTime() != expires) {\n\t\t\t\n\t\t\t// Update the retention date/time\n\t\t\t\n\t\t\tsuper.setRetentionExpiryDateTime(expires);\n\t\t\t\n\t\t\t// Queue a low priority state update\n\t\t\t\n\t\t\tqueueLowPriorityUpdate( UpdateRetentionExpire);\n\t\t}\n\t}",
"@KafkaHandler\n @Transactional\n public void consumeMonitorPolicyEvents(MonitorPolicyEvent policyEvent) {\n log.debug(\"Processing monitor policy event: {}\", policyEvent);\n\n monitorManagement.handleMonitorPolicyEvent(policyEvent);\n }",
"public DeleteAuthentication propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"@Override\r\n\tpublic void updatePolicy(Policy policy) {\n\t\tdao.updatePolicy(policy);\r\n\t\t\r\n\t}",
"public void xsetDataRetentionPeriodLength(org.apache.xmlbeans.XmlShort dataRetentionPeriodLength)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlShort target = null;\n target = (org.apache.xmlbeans.XmlShort)get_store().find_element_user(DATARETENTIONPERIODLENGTH$26, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlShort)get_store().add_element_user(DATARETENTIONPERIODLENGTH$26);\n }\n target.set(dataRetentionPeriodLength);\n }\n }",
"public void setPolicyEffectiveDate(java.lang.String policyEffectiveDate) {\n this.policyEffectiveDate = policyEffectiveDate;\n }",
"public void markFileRetentionPeriodCreate() throws JNCException {\n markLeafCreate(\"fileRetentionPeriod\");\n }",
"public void setPolicyArn(String policyArn) {\n this.policyArn = policyArn;\n }",
"public FractalTrace setAbyssPolicy(String value)\n {\n\t\n m_AbyssPolicy = value;\n setProperty(\"abyss-policy\", value);\n return this;\n }",
"public TimeBasedRollingPolicy(String fileNamePattern) {\r\n super(fileNamePattern);\r\n }",
"public void setPolicyLine(java.lang.String value);",
"public DeleteNetwork propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public Object\n _set_policy_override(Policy[] policies,\n SetOverrideType set_add) {\n throw new NO_IMPLEMENT(reason);\n }",
"public DeleteInfrastructure propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public void setRetentionMFlag(String value) {\n setAttributeInternal(RETENTIONMFLAG, value);\n }",
"public void setLoadBalancerPolicy(String loadBalancerPolicy) {\n this.loadBalancerPolicy = loadBalancerPolicy;\n }",
"public UnknownRetentionPolicyException(String retentionPolicyName, String databaseName) {\n super(\"Unknown retention policy \" + retentionPolicyName + \" on database \" + databaseName);\n }",
"@Override\n\tpublic void setNoticePeriod(java.lang.String noticePeriod) {\n\t\t_candidate.setNoticePeriod(noticePeriod);\n\t}",
"public DeleteProject propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public final void setRetentionExpiryDateTime(long expires) {\n\t m_retainUntil = expires;\n\t}",
"public void setPolicyGroupName(String policyGroupName)\n {\n \tthis.policyGroupName = policyGroupName;\n }",
"public TimeBasedRollingPolicy() {\r\n super();\r\n }",
"public void setAccessPolicyConfig(boolean value) {\n\t\tthis.accessPolicyConfig = value;\n\t}",
"public void setNatPolicy(NatPolicy policy);",
"public void markFileRetentionPeriodMerge() throws JNCException {\n markLeafMerge(\"fileRetentionPeriod\");\n }",
"public void setContainerPolicy(ContainerPolicy containerPolicy) {\n this.containerPolicy = containerPolicy;\n }",
"public void setTransferFrequency(final PeriodDuration newValue) {\n checkWritePermission(transferFrequency);\n transferFrequency = newValue;\n }",
"public void setPeriod(AdjustmentPeriodTypeId value) {\n this.period = value;\n }",
"@Nonnull\n public Builder setMergePolicy(@Nonnull String mergePolicy) {\n this.mergePolicy = mergePolicy;\n return this;\n }",
"public void setNotificationDelay(long notificationDelay) {\n\t\tthis.notificationDelay = notificationDelay;\n\t}",
"public Retention getRetention() {\n return retention;\n }",
"public void setPolicyTopicEntries(com.google.api.ads.adwords.axis.v201809.cm.PolicyTopicEntry[] policyTopicEntries) {\n this.policyTopicEntries = policyTopicEntries;\n }",
"protected void setAccessPolicies(Map<String, PolicyDocument> policies)\n {\n policies.put(\"GlueAthenaS3AccessPolicy\", getGlueAthenaS3AccessPolicy());\n policies.put(\"S3SpillBucketAccessPolicy\", getS3SpillBucketAccessPolicy());\n connectorAccessPolicy.ifPresent(policyDocument -> policies.put(\"ConnectorAccessPolicy\", policyDocument));\n }",
"public void setPolicyNo(java.lang.String policyNo) {\n this.policyNo = policyNo;\n }",
"public void setPolicyNo(java.lang.String policyNo) {\n this.policyNo = policyNo;\n }",
"public DeleteNamespacedComponent propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public void setDefaultPolicy(Policy defaultPolicy) {\n\t\tif (defaultPolicy == null)\n\t\t\tthrow new NullPointerException();\n\t\tthis.defaultPolicy = defaultPolicy;\n\t}",
"public void setDatabasePolicyFinder(final DatabasePolicyFinderModule databasePolicyFinder) {\r\n this.databasePolicyFinder = databasePolicyFinder;\r\n }",
"public Resender(RetryPolicy retryPolicy) {\n this.retryPolicy = retryPolicy;\n }",
"public void setScalePolicy(ScalePolicy policy) {\n\n\t}",
"public void setPermissions(gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Permissions permissions) {\r\n this.permissions = permissions;\r\n }",
"protected void checkSetPolicyPermission() {\n\tSecurityManager sm = System.getSecurityManager();\n\tif (sm != null) {\n\t if (setPolicyPermission == null) {\n\t\tsetPolicyPermission = new java.security.SecurityPermission(\"setPolicy\");\n\t }\n\t sm.checkPermission(setPolicyPermission);\n\t}\n }",
"public void setRestrictionNotice(String restrictionNotice) {\n this.restrictionNotice = restrictionNotice == null ? null : new StringWithCustomFacts(restrictionNotice);\n }",
"public void setManualSnapshotRetentionPeriod(Integer manualSnapshotRetentionPeriod) {\n this.manualSnapshotRetentionPeriod = manualSnapshotRetentionPeriod;\n }",
"public void setStatLogFrequency(int frequency) {\n\t\tif ( frequency < 1 ) {\n\t\t\tfrequency = 1;\n\t\t}\n\t\tstats.setLogFrequency(frequency);\n\t}",
"public final GetHTTP setRedirectCookiePolicy(final String redirectCookiePolicy) {\n properties.put(REDIRECT_COOKIE_POLICY_PROPERTY, redirectCookiePolicy);\n return this;\n }",
"public SetExtensionPolicyCommand(ESequenceValue value, EExtensionPolicy policy) {\r\n\t\tthis.policy = policy;\r\n\t\tthis.value = value;\r\n\t}",
"public void setFailureRetentionPeriodInDays(Integer failureRetentionPeriodInDays) {\n this.failureRetentionPeriodInDays = failureRetentionPeriodInDays;\n }",
"public void addPolicy(Policy policy) throws APIManagementException {\n\n if (policy instanceof APIPolicy) {\n APIPolicy apiPolicy = (APIPolicy) policy;\n //Check if there's a policy exists before adding the new policy\n Policy existingPolicy = getAPIPolicy(userNameWithoutChange, apiPolicy.getPolicyName());\n if (existingPolicy != null) {\n handleException(\"Advanced Policy with name \" + apiPolicy.getPolicyName() + \" already exists\");\n }\n apiPolicy.setUserLevel(PolicyConstants.ACROSS_ALL);\n apiPolicy = apiMgtDAO.addAPIPolicy(apiPolicy);\n List<Integer> addedConditionGroupIds = new ArrayList<>();\n for (Pipeline pipeline : apiPolicy.getPipelines()) {\n addedConditionGroupIds.add(pipeline.getId());\n }\n APIPolicyEvent apiPolicyEvent = new APIPolicyEvent(UUID.randomUUID().toString(),\n System.currentTimeMillis(), APIConstants.EventType.POLICY_CREATE.name(), tenantId,\n apiPolicy.getTenantDomain(), apiPolicy.getPolicyId(), apiPolicy.getPolicyName(),\n apiPolicy.getDefaultQuotaPolicy().getType(), addedConditionGroupIds, null);\n APIUtil.sendNotification(apiPolicyEvent, APIConstants.NotifierType.POLICY.name());\n } else if (policy instanceof ApplicationPolicy) {\n ApplicationPolicy appPolicy = (ApplicationPolicy) policy;\n //Check if there's a policy exists before adding the new policy\n Policy existingPolicy = getApplicationPolicy(userNameWithoutChange, appPolicy.getPolicyName());\n if (existingPolicy != null) {\n handleException(\"Application Policy with name \" + appPolicy.getPolicyName() + \" already exists\");\n }\n apiMgtDAO.addApplicationPolicy(appPolicy);\n //policy id is not set. retrieving policy to get the id.\n ApplicationPolicy retrievedPolicy = apiMgtDAO.getApplicationPolicy(appPolicy.getPolicyName(), tenantId);\n ApplicationPolicyEvent applicationPolicyEvent = new ApplicationPolicyEvent(UUID.randomUUID().toString(),\n System.currentTimeMillis(), APIConstants.EventType.POLICY_CREATE.name(), tenantId,\n appPolicy.getTenantDomain(), retrievedPolicy.getPolicyId(), appPolicy.getPolicyName(),\n appPolicy.getDefaultQuotaPolicy().getType());\n APIUtil.sendNotification(applicationPolicyEvent, APIConstants.NotifierType.POLICY.name());\n } else if (policy instanceof SubscriptionPolicy) {\n SubscriptionPolicy subPolicy = (SubscriptionPolicy) policy;\n //Check if there's a policy exists before adding the new policy\n Policy existingPolicy = getSubscriptionPolicy(userNameWithoutChange, subPolicy.getPolicyName());\n if (existingPolicy != null) {\n handleException(\"Subscription Policy with name \" + subPolicy.getPolicyName() + \" already exists\");\n }\n apiMgtDAO.addSubscriptionPolicy(subPolicy);\n String monetizationPlan = subPolicy.getMonetizationPlan();\n Map<String, String> monetizationPlanProperties = subPolicy.getMonetizationPlanProperties();\n if (StringUtils.isNotBlank(monetizationPlan) && MapUtils.isNotEmpty(monetizationPlanProperties)) {\n createMonetizationPlan(subPolicy);\n }\n //policy id is not set. retrieving policy to get the id.\n SubscriptionPolicy retrievedPolicy = apiMgtDAO.getSubscriptionPolicy(subPolicy.getPolicyName(), tenantId);\n SubscriptionPolicyEvent subscriptionPolicyEvent = new SubscriptionPolicyEvent(UUID.randomUUID().toString(),\n System.currentTimeMillis(), APIConstants.EventType.POLICY_CREATE.name(), tenantId, subPolicy.getTenantDomain(), retrievedPolicy.getPolicyId(),\n subPolicy.getPolicyName(), subPolicy.getDefaultQuotaPolicy().getType(),\n subPolicy.getRateLimitCount(),subPolicy.getRateLimitTimeUnit(), subPolicy.isStopOnQuotaReach(),\n subPolicy.getGraphQLMaxDepth(),subPolicy.getGraphQLMaxComplexity(),subPolicy.getSubscriberCount());\n APIUtil.sendNotification(subscriptionPolicyEvent, APIConstants.NotifierType.POLICY.name());\n } else if (policy instanceof GlobalPolicy) {\n GlobalPolicy globalPolicy = (GlobalPolicy) policy;\n\n // checking if policy already exist\n Policy existingPolicy = getGlobalPolicy(globalPolicy.getPolicyName());\n if (existingPolicy != null) {\n throw new APIManagementException(\"Policy name already exists\");\n }\n\n apiMgtDAO.addGlobalPolicy(globalPolicy);\n\n KeyTemplateEvent keyTemplateEvent = new KeyTemplateEvent(UUID.randomUUID().toString(), System.currentTimeMillis(),\n APIConstants.EventType.CUSTOM_POLICY_ADD.name(), tenantId, tenantDomain,\n \"add\", globalPolicy.getKeyTemplate());\n APIUtil.sendNotification(keyTemplateEvent, APIConstants.NotifierType.KEY_TEMPLATE.name());\n\n GlobalPolicy retrievedPolicy = apiMgtDAO.getGlobalPolicy(globalPolicy.getPolicyName());\n GlobalPolicyEvent globalPolicyEvent = new GlobalPolicyEvent(UUID.randomUUID().toString(),\n System.currentTimeMillis(), APIConstants.EventType.POLICY_CREATE.name(), tenantId,\n globalPolicy.getTenantDomain(), retrievedPolicy.getPolicyId(),\n globalPolicy.getPolicyName());\n APIUtil.sendNotification(globalPolicyEvent, APIConstants.NotifierType.POLICY.name());\n } else {\n String msg = \"Policy type \" + policy.getClass().getName() + \" is not supported\";\n log.error(msg);\n throw new UnsupportedPolicyTypeException(msg);\n }\n }",
"public void unsetDataRetentionPeriodLength()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATARETENTIONPERIODLENGTH$26, 0);\n }\n }",
"public CreateAuditPolicyRequest(CreateAuditPolicyRequest source) {\n if (source.Name != null) {\n this.Name = new String(source.Name);\n }\n if (source.RuleId != null) {\n this.RuleId = new String(source.RuleId);\n }\n if (source.InstanceId != null) {\n this.InstanceId = new String(source.InstanceId);\n }\n if (source.LogExpireDay != null) {\n this.LogExpireDay = new Long(source.LogExpireDay);\n }\n }",
"public void setPermanentNotification(boolean value) {\n permanentNotification.set(value);\n }",
"public void setLimitTimestamp (long timestamp);",
"public void setStoragePolicySupported(java.lang.Boolean storagePolicySupported) {\r\n this.storagePolicySupported = storagePolicySupported;\r\n }",
"public final void setadvisory_count(Integer advisory_count)\n\t{\n\t\tsetadvisory_count(getContext(), advisory_count);\n\t}",
"public com.amazon.s3.SetBucketAccessControlPolicyResponse setBucketAccessControlPolicy(com.amazon.s3.SetBucketAccessControlPolicy setBucketAccessControlPolicy);"
] |
[
"0.7868706",
"0.7018165",
"0.60169995",
"0.5585916",
"0.5585916",
"0.5216442",
"0.5094447",
"0.5024421",
"0.50122005",
"0.49854094",
"0.49819547",
"0.49547166",
"0.49491844",
"0.49335817",
"0.4922947",
"0.48910743",
"0.4807187",
"0.47596776",
"0.47508082",
"0.46918163",
"0.4672774",
"0.46272343",
"0.46210802",
"0.46195763",
"0.4573964",
"0.45418146",
"0.45399946",
"0.45277452",
"0.4521178",
"0.4515735",
"0.45034775",
"0.449609",
"0.44943157",
"0.44720045",
"0.44407722",
"0.44332856",
"0.44325233",
"0.44110656",
"0.44046623",
"0.43920633",
"0.43596956",
"0.43567568",
"0.43459374",
"0.4335848",
"0.4332814",
"0.43106738",
"0.43101883",
"0.42843246",
"0.42711627",
"0.42707404",
"0.42687118",
"0.4266818",
"0.42576224",
"0.4232975",
"0.42176628",
"0.42127463",
"0.42107242",
"0.4210057",
"0.42097428",
"0.4209214",
"0.41866586",
"0.4173321",
"0.41545317",
"0.4143354",
"0.41093916",
"0.41089243",
"0.4108878",
"0.41065574",
"0.4090577",
"0.40862024",
"0.40836403",
"0.40404594",
"0.40384483",
"0.40183723",
"0.40038067",
"0.39863127",
"0.39781502",
"0.39688808",
"0.39688808",
"0.39679155",
"0.3958123",
"0.39539188",
"0.3940312",
"0.38802278",
"0.3865522",
"0.3862465",
"0.38384202",
"0.38373098",
"0.38318336",
"0.38259917",
"0.38008645",
"0.37874356",
"0.3779249",
"0.37712964",
"0.37581423",
"0.3754884",
"0.3754282",
"0.37487414",
"0.3746344",
"0.3744967"
] |
0.60312784
|
2
|
Parse the Expressions with the RuntimeEnvironement
|
public void setup(RunTimeEnvironment rt)throws ScriptMsgException{
if(this.hasAttributeValue(ATTR_TIMING))
timingIsAbsolute = (getAttributeValue(ATTR_TIMING).equals("abs"))? true: false;
else
timingIsAbsolute = true;
parse(super.content);
if(debugMode)
Debug.verbose("QueScript - NodeFactory", "que("+parentNode.getQueName()+") "+new String(new char[getLevel()]).replace('\0', '_')+" created keys Comnd");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ExpressionVisitor(RuntimeEnv environment) {\r\n this.environment = environment;\r\n }",
"public void parseExpression() {\n String regex = \"[ ]\";\n //\"?<=[-+*/()ep])|(?=[-+*/()ei]\";\n String[] splitString = infix.split(regex);\n infixList.addAll(Arrays.asList(splitString));\n }",
"public ExpressionPart parseExpressions (String[] exp, QBParser parser) {\n\t\texp = fixArray(exp);\n\t//\tSystem.out.println(\"EXPS: \" + Arrays.toString(exp));\n\t\tif(exp[0].startsWith(\"if\")){\n\t\t\tif( (exp[0].length() > 2 && !Character.isLetterOrDigit( exp[0].charAt(2) )) || exp[0].length() == 2){\n\t\t\t\tString name = ExpressionPuller.pullIfThenElse(exp, parser.getCurrentCompilingNamespace());\n\t\t\t\texp = new String[]{name};\n\t\t\t}\n\t\t}\n\t\t\n//\t\tif(exp[0].equals(\"if\")){\n//\t\t\tint thenIdx = MArrays.indexOf(exp, \"then\");\n//\t\t\tString ifPart = MArrays.concat(exp, 1, thenIdx-1);\n//\t\t\t\n//\t\t\tint elseIdx = MArrays.indexOf(exp, \"else\");\n//\t\t\tString thenPart = MArrays.concat(exp, thenIdx+1, elseIdx-thenIdx-1);\n//\t\t\t\n//\t\t\tString elsePart = MArrays.concat(exp, elseIdx+1);\n//\t\t\t\n//\t\t\tExpressionPart ifExpPart = parseExpressions(ifPart);\n//\t\t\tExpressionPart thenExpPart = parseExpressions(thenPart);\n//\t\t\tExpressionPart elseExpPart = parseExpressions(elsePart);\n//\t\t\t\n//\t\t\tExpressionPart totalIf = ExpressionPart.makePrimaryExpressionPart(null, \"if\", new ExpressionPart[]{ifExpPart});\n//\t\t\tExpressionPart totalThen = ExpressionPart.makePrimaryExpressionPart(totalIf, \"then\", new ExpressionPart[]{thenExpPart});\n//\t\t\tExpressionPart total = ExpressionPart.makePrimaryExpressionPart(totalThen, \"else\", new ExpressionPart[]{elseExpPart});\n//\t\t\n//\t\t\treturn total;\n//\t\t}\n\t\t\n\n\t\t// Go though all of the operators in order from their respective order of operations.\n\t\tfor( String[] ops : operators() ){\n\t\t\t\n\t\t\tint idx = -1;\n\t\t\t// Some operators have the same precedence, so we need to deal with that\n\t\t\tfor( String op : ops ) {\n\t\t\t\tidx = Math.max(idx, MArrays.lastIndexOf(exp, op));\n\t\t\t}\n\t\t\t\n\t\t\t// if we found one of these opeartors, then we\n\t\t\t// need to deal with it.\n\t\t\tif( idx != -1 ){\n\t\t\t\t// get the function (thats easy, it is what we just found)\n\t\t\t\tString function = exp[idx];\n\t\t\t\t\n\t\t\t\t// get all stuff before and after this point\n\t\t\t\t// the first is the caller and the second is the\n\t\t\t\t// argument believe me it works because\n\t\t\t\t// 3 * 4 / 6 + 1 * 2 - 3 ^ 2 * 2 = (3 * 4 / 6 + 1 * 2) - (3 ^ 2 * 2)\n\t\t\t\tString[] before = Arrays.copyOfRange(exp, 0, idx);\n\t\t\t\tString[] after = Arrays.copyOfRange(exp, idx + 1, exp.length);\n\t\t\t\t\n\t\t\t\t// now, using recursion we make the expression parts out of them\n\t\t\t\tExpressionPart part1 = parseExpressions( before, parser );\n\t\t\t\tExpressionPart part2 = parseExpressions( after, parser );\n\t\t\t\t\n\t\t\t\tif(function.equals(\"->\")){\n\t\t\t\t\tExpressionPart tmp = part1;\n\t\t\t\t\tpart1 = part2;\n\t\t\t\t\tpart2 = tmp;\n\t\t\t\t}\n\t\t\t\t// now put the whole thing together, and you now have a mess\n\t\t\t\treturn ExpressionPart.makePrimaryExpressionPart(part1, function, new ExpressionPart[]{part2} );\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t// If there are no more \"Binary Functions\"\n\t\t// what is left must be grouped or it must be a function\n\t\tif( exp.length == 1 ){\n\t\t\tString str = exp[0];\n\t\t\tif( completelySurrounded(str) ){\n\t\t\t\tString middle = str.substring(1, str.length() - 1);\n\t\t\t\treturn parseExpressions(middle);\n\t\t\t}\n\t\t\t// This must then be a function\n\t\t\telse if(str.endsWith(\")\")){\n\t\t\t\t\n\t\t\t\t// this function will get the last index of a dot ('.') that is outside parenthesis\n\t\t\t\t// the dot is used to determine if the function is being called by an object\n\t\t\t\tint dotIdx = lastDotIndex(str);\n\t\t\t\t\n\t\t\t\t// now we find the index that the arguments start on\n\t\t\t\tint idx = str.indexOf('(',dotIdx);\n\t\t\t\t\n\t\t\t\t// check to make sure there is one.\n\t\t\t\tif( idx < 0 ){\n\t\t\t\t\tthrow new RuntimeException(\"Expected '('\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// from here it is pretty straight forward to get the function,\n\t\t\t\t// caller and parameters.\n\t\t\t\tString function = str.substring(0, idx);\n\t\t\t\tString args = str.substring(idx + 1, str.length() - 1);\n\t\t\t\tString caller = null;\n\t\t\t\t\n\t\t\t\t// if there is not dot, then there is no caller and the function is global\n\t\t\t\tif( dotIdx >= 0 ){\n\t\t\t\t\tcaller = function.substring( 0, dotIdx );\n\t\t\t\t\tfunction = function.substring( dotIdx + 1 );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// now use recursion to build the parts and make a new part.\n\t\t\t\tExpressionPart part1 = caller !=null ? parseExpressions(caller) : null;\n\t\t\t\tExpressionPart[] parts = parseParams(args);\n\t\t\t\t\n\t\t\t\treturn ExpressionPart.makePrimaryExpressionPart(part1, function, parts);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t// This is the base case, the very bottom of the ladder, this is where all\n\t\t\t\t// that is left is some entity that has no function.\n\t\t\t\treturn ExpressionPart.makeExpressionPart(exp[0]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new RuntimeException(\"Syntax Error\");\n\t}",
"public static RuntimeVariablesExpression runtimeVariables(Iterable<ParameterExpression> expressions) { throw Extensions.todo(); }",
"private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }",
"@Override\n public void execute() {\n\n String value=\"\";\n ////System.out.println(expCtx.printBlock().printExtra().arrayCall().getText());\n boolean chh = false;\n try {\n chh = expCtx.printBlock().printExtra().expression().assignmentExpression().assignment().additiveExpression().multiplicativeExpression().unaryExpression().unaryExpressionNotPlusMinus().postfixExpression().primary().arrayCall()!=null;\n }catch (NullPointerException e){\n\n }\n if (expCtx.printBlock().printExtra().arrayCall()!=null\n ||chh){\n //System.out.println(\"FOUND ARRAY\");\n List<Integer> matchList = new ArrayList<Integer>();\n Pattern regex = Pattern.compile(\"\\\\[(.*?)\\\\]\");\n //System.out.println(expCtx.printBlock().getText());\n Matcher regexMatcher = regex.matcher(expCtx.printBlock().getText());\n List<Integer> dummy = null;\n while (regexMatcher.find()) {//Finds Matching Pattern in String\n //System.out.println(\"IN MATCHER\");\n //System.out.println(ClypsCustomVisitor.testingExpression(regexMatcher.group(1).trim(), dummy, expCtx.start.getLine()));\n matchList.add(Integer.parseInt(ClypsCustomVisitor.testingExpression(regexMatcher.group(1).trim(), dummy, expCtx.start.getLine())));//Fetching Group from String\n }\n value = ClypsCustomVisitor.testingExpression(expCtx.printBlock().getText(), matchList, expCtx.start.getLine());\n //System.out.println(value);\n }else {\n //System.out.println(\"NOT ARRAY\");\n List<Integer> dummy = null;\n value = ClypsCustomVisitor.testingExpression(expCtx.printBlock().getText(), dummy, expCtx.start.getLine());\n //System.out.println(value);\n }\n\n if (value.contains(\"\\\"\")&&value.matches(\".*[a-zA-Z]+.*\")&&value.matches(\".*[0-9]+.*\")){\n //System.out.println(\"WE IN\");\n String[] temp = value.split(\"\\\\+\");\n ArrayList<String> store = new ArrayList<>();\n for (int i = 0;i<temp.length;i++){\n try {\n store.add(new Expression(temp[i]).eval().toPlainString());\n }catch (NullPointerException e){\n store.add(temp[i]);\n }\n }\n String send=\"\";\n for (String i:store){\n //System.out.println(i);\n send=send.concat(i);\n }\n //System.out.println(\"WE OUT\");\n //System.out.println(send);\n\n send=send.replaceAll(\"\\\"\",\"\").replaceAll(\"\\\\+\",\"\");\n ////System.out.println(\"ACTUAL PRINT\");\n if (expCtx.printHead().getText().contains(\"ln\"))\n System.out.println(send);\n else\n System.out.print(send);\n }else {\n //System.out.println(\"YEP\");\n //CAUTION: REPLACES ALL + SIGNS\n value=value.replaceAll(\"\\\"\",\"\").replaceAll(\"\\\\+\",\"\");\n ////System.out.println(\"ACTUAL PRINT\");\n if (expCtx.printHead().getText().contains(\"ln\"))\n System.out.println(value);\n else\n System.out.print(value);\n }\n\n\n\n\n\n }",
"public interface Expression {\n \n enum ExpressivoGrammar {ROOT, SUM, PRODUCT, TOKEN, PRIMITIVE_1, PRIMITIVE_2, \n NUMBER, INT, DECIMAL, WHITESPACE, VARIABLE};\n \n public static Expression buildAST(ParseTree<ExpressivoGrammar> concreteSymbolTree) {\n \n if (concreteSymbolTree.getName() == ExpressivoGrammar.DECIMAL) {\n /* reached a double terminal */\n return new Num(Double.parseDouble(concreteSymbolTree.getContents())); \n }\n\n else if (concreteSymbolTree.getName() == ExpressivoGrammar.INT) {\n /* reached an int terminal */\n return new Num(Integer.parseInt(concreteSymbolTree.getContents()));\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.VARIABLE) {\n /* reached a terminal */\n return new Var(concreteSymbolTree.getContents());\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.ROOT || \n concreteSymbolTree.getName() == ExpressivoGrammar.TOKEN || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_1 || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_2 || \n concreteSymbolTree.getName() == ExpressivoGrammar.NUMBER) {\n \n /* non-terminals with only one child */\n for (ParseTree<ExpressivoGrammar> child: concreteSymbolTree.children()) {\n if (child.getName() != ExpressivoGrammar.WHITESPACE) \n return buildAST(child);\n }\n \n // should never reach here\n throw new IllegalArgumentException(\"error in parsing\");\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.SUM || concreteSymbolTree.getName() == ExpressivoGrammar.PRODUCT) {\n /* a sum or product node can have one or more children that need to be accumulated together */\n return accumulator(concreteSymbolTree, concreteSymbolTree.getName()); \n }\n \n else {\n throw new IllegalArgumentException(\"error in input: should never reach here\");\n }\n \n }\n \n /**\n * (1) Create parser using lib6005.parser from grammar file\n * (2) Parse string input into CST\n * (3) Build AST from this CST using buildAST()\n * @param input\n * @return Expression (AST)\n */\n public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }\n \n // helper methods\n public static Expression accumulator(ParseTree<ExpressivoGrammar> tree, ExpressivoGrammar grammarObj) {\n Expression expr = null;\n boolean first = true;\n List<ParseTree<ExpressivoGrammar>> children = tree.children();\n int len = children.size();\n for (int i = len-1; i >= 0; i--) {\n /* the first child */\n ParseTree<ExpressivoGrammar> child = children.get(i);\n if (first) {\n expr = buildAST(child);\n first = false;\n }\n \n /* accumulate this by creating a new binaryOp object with\n * expr as the leftOp and the result as rightOp\n **/\n \n else if (child.getName() == ExpressivoGrammar.WHITESPACE) continue;\n else {\n if (grammarObj == ExpressivoGrammar.SUM)\n expr = new Sum(buildAST(child), expr);\n else\n expr = new Product(buildAST(child), expr);\n }\n }\n \n return expr;\n \n }\n \n // ----------------- problems 3-4 -----------------\n \n public static Expression create(Expression leftExpr, Expression rightExpr, char op) {\n if (op == '+')\n return Sum.createSum(leftExpr, rightExpr);\n else\n return Product.createProduct(leftExpr, rightExpr);\n }\n\n public Expression differentiate(Var x);\n \n public Expression simplify(Map<String, Double> env);\n\n}",
"public static RuntimeVariablesExpression runtimeVariables(ParameterExpression[] arguments) { throw Extensions.todo(); }",
"public abstract void interpret(EvaluationContext context);",
"public int eval(Environment env)\n {\n Environment hangingenvironment = new Environment();\n hangingenvironment.setParent(env);\n Environment temp = env;\n while (temp.getParent() != null)\n {\n temp = temp.getParent();\n }\n ProcedureDeclaration dec = temp.getProcedure(name);\n hangingenvironment.setVariable(name, 0);\n ArrayList<String> params = (ArrayList <String>) dec.getParams();\n for (int i = 0; i < params.size(); i++)\n {\n hangingenvironment.setVariable(params.get(i),\n express.get(i).eval(env));\n }\n hangingenvironment.getProcedure(name).getStatement()\n .exec(hangingenvironment);\n return hangingenvironment.getVariable(name);\n }",
"public Engine build() {\n this.extensions.add(new CoreExtension());\n \n // load extensions\n this.extensions.forEach(extension -> {\n this.renderers.putAll(extension.getRenderers());\n this.directives.putAll(extension.getDirectives());\n this.nodeParsers.putAll(extension.getNodeParsers());\n this.filters.putAll(extension.getFilters());\n this.tests.putAll(extension.getTests());\n this.unaryOperators.putAll(extension.getUnaryOperators());\n this.binaryOperators.putAll(extension.getBinaryOperators());\n this.factories.addAll(extension.getNodeVisitorFactories());\n this.safeNodes.addAll(extension.getSafeNodes());\n });\n \n // create an operator token parser\n TokenParser unaryOperatorParser = TokenParser.in(TokenType.OPERATOR, this.unaryOperators.keySet().toArray(new String[]{}));\n TokenParser binaryOperatorParser = TokenParser.in(TokenType.OPERATOR, this.binaryOperators.keySet().toArray(new String[]{}));\n TokenParser operatorParser = unaryOperatorParser.or(binaryOperatorParser);\n \n // create a execute token parser\n TokenParser executeOpenParser = TokenParser.from(TokenType.EXECUTE_OPEN, compile(quote(this.executeOpen)), false);\n TokenParser executeCloseParser = TokenParser.from(TokenType.EXECUTE_CLOSE, compile(quote(this.executeClose)), false);\n TokenParser executeParser = executeOpenParser.then(NAME).then(operatorParser.or(EXPRESSION).until(executeCloseParser));\n this.starts.add(this.executeOpen);\n \n // create a print token parser\n TokenParser printOpenParser = TokenParser.from(TokenType.PRINT_OPEN, compile(quote(this.printOpen)), false);\n TokenParser printCloseParser = TokenParser.from(TokenType.PRINT_CLOSE, compile(quote(this.printClose)), false);\n TokenParser printParser = printOpenParser.then(operatorParser.or(EXPRESSION).until(printCloseParser));\n this.starts.add(this.printOpen);\n \n // create a comment token parser\n TokenParser commentOpenParser = TokenParser.from(TokenType.COMMENT_OPEN, compile(quote(this.commentOpen)), false);\n TokenParser commentCloseParser = TokenParser.from(TokenType.COMMENT_CLOSE, compile(quote(this.commentClose)), false);\n TokenParser commentInner = TokenParser.until(TokenType.TEXT, this.commentClose);\n TokenParser commentParser = commentOpenParser.then(commentInner.optional()).then(commentCloseParser);\n this.starts.add(this.commentOpen);\n \n // create a text token parser\n TokenParser leadingText = TokenParser.until(TokenType.TEXT, this.starts);\n TokenParser text = TokenParser.from(TokenType.TEXT, Pattern.compile(\"^.*\", Pattern.DOTALL | Pattern.MULTILINE), false);\n \n TokenParser principal = commentParser.or(executeParser).or(printParser).or(leadingText).zeroOrMore().then(text.optional()).then(EOF);\n this.tokenizerBuilder.parser(principal);\n Tokenizer tokenizer = this.tokenizerBuilder.build();\n \n ExpressionParser expressionParser = new ExpressionParser(this.unaryOperators, this.binaryOperators);\n \n Engine engine = new Engine(this.environment, expressionParser,\n renderers, directives, nodeParsers, \n filters, tests, factories, safeNodes,\n tokenizer);\n return engine;\n }",
"public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }",
"Hojas eval();",
"public Object eval(String expression) throws Exception;",
"public void buildSymbols() \n {\n scalars = new ArrayList <ScalarSymbol>();\n arrays = new ArrayList <ArraySymbol>();\n Stack <String> symbols = new Stack <String>();\n StringTokenizer st = new StringTokenizer(expr, delims, true); \n String token = \"\";\n \n while (st.hasMoreTokens())\n {\n token = st.nextToken();\n if ((token.charAt(0) >= 'a' && token.charAt(0) <= 'z') || (token.charAt(0) >= 'A' && token.charAt(0) <= 'Z' || token.equals(\"[\")))\n symbols.push(token); \n }\n while(!symbols.isEmpty())\n {\n token = symbols.pop();\n if (token.equals(\"[\"))\n {\n token = symbols.pop();\n ArraySymbol aSymbol = new ArraySymbol(token);\n if(arrays.indexOf(aSymbol) == -1)\n arrays.add(aSymbol);\n }\n else \n {\n ScalarSymbol sSymbol = new ScalarSymbol(token);\n if (scalars.indexOf(sSymbol) == -1)\n scalars.add(sSymbol);\n }\n }\n System.out.println(arrays);\n System.out.println(scalars);\n }",
"public static String evaluate( String expr )\n {\n\n\tString[] arr = expr.split(\"//s+\");\n\tString ret = \"\";\n\tALStack<String> stack = new ALStack<String>();\n\tfor( String s: arr)\n\t stack.push(s);\n\n\tif( stack.peek().equals(\"(\")){\n\t stack.pop();\n\t int operator = findOp(stack.pop());\n\t ret = unload(operator, stack);\n\t return ret;\n\t}\n\treturn \"\";\n }",
"public static void main(String[] args) {\n\n System.out.println(\"119.1+(28.2+37.3*(46.4-55.5)-4.6+(3/2)+1) = \" + evaluateExpression(\"119.1 + ( 28.2 + 37.3 * ( 46.4 - 55.5 ) - 4.6 + ( 3 / 2 ) + 1 )\"));\n\n}",
"public void prog() {\r\n \t\r\n // First parse declarations\r\n decls();\r\n // Next parse expression\r\n ArrayList<Integer> values = new ArrayList<Integer>(); \r\n values = exprs(values);\r\n for(int i = 0; i < values.size(); i++) {\r\n \tSystem.out.print(values.get(i) + \" \");\r\n }\r\n System.out.println();\r\n \r\n \r\n //int value = expr();\r\n // Finally parse the end of file character\r\n match(TokenType.END_OF_FILE);\r\n //System.out.println(\"Value of expression is: \" + value);\r\n }",
"@Test\n\tpublic void testExpression() throws ParseException {\n\t\tExpression expression = langParser(\"a\").expression();\n\t\tassertEquals(expression.getClass(), Identifier.class);\n\t\texpression = langParser(\"a()\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\texpression = langParser(\"a.b\").expression();\n\t\tassertEquals(expression.getClass(), MemberAccess.class);\n\t\texpression = langParser(\"1\").expression();\n\t\tassertEquals(expression.getClass(), LongLiteral.class);\n\t\texpression = langParser(\"1.1\").expression();\n\t\tassertEquals(expression.getClass(), DoubleLiteral.class);\n\t\texpression = langParser(\"if(a,b,c)\").expression();\n\t\tassertEquals(expression.getClass(), TernaryIf.class);\n\t}",
"public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t// Scanner scanner = new Scanner(System.in);\r\n\t\t\t//Grammar grammar = new Grammar(\"(i * i) * (i + i) - i\");\r\n\t\t\tGrammar grammar = new Grammar(\"i + i * i\");\r\n\t\t\tgrammar.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tgrammar.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tgrammar.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tgrammar.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tgrammar.addTerminal(\"DIVIDE\", TokenType.OPERATOR,\r\n\t\t\t\t\tOperatorType.DIVIDE);\r\n\t\t\tgrammar.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tgrammar.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tgrammar.setEpsilonName(\"epsilon\");\r\n\t\t\tString[] nons = new String[] {\r\n\t\t\t\t\t\"E\", \"E1\", \"T\", \"T1\", \"F\", \"A\", \"M\"\r\n\t\t\t};\r\n\t\t\tfor (String non : nons){\r\n\t\t\t\tgrammar.addNonTerminal(non);\r\n\t\t\t}\r\n\t\t\tgrammar.infer(\"E -> T E1\");\r\n\t\t\tgrammar.infer(\"E1 -> A T E1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"T -> F T1\");\r\n\t\t\tgrammar.infer(\"T1 -> M F T1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"F -> @LPA E @RPA | @SYMBOL\");\r\n\t\t\tgrammar.infer(\"A -> @PLUS | @MINUS\");\r\n\t\t\tgrammar.infer(\"M -> @TIMES | @DIVIDE\");\r\n\t\t\tgrammar.initialize(\"E\");\r\n\t\t\tSystem.out.println(grammar.toString());\r\n\t\t\tSystem.out.println(grammar.getPredictionString());\r\n\t\t\tgrammar.run();\r\n\t\t\tSystem.out.println(grammar.getTokenString());\r\n\t\t\t// scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (GrammarException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public Object eval(Environment e) \n {\n return val;\n }",
"private static Expression retrieveParseExpression(String expression) {\n return StaticJavaParser.parseExpression(expression);\n }",
"private void expression(){\n\t\twhile (in.token != Token.exit){\n\t\t\tdouble value = terms();\n\t\t\tif(in.buffer.variableDetected && initialization == true){\n\t\t\t\tvariables.put(in.buffer.variable, new BigDecimal(value));\n\t\t\t\tin.buffer.variableDetected = false;\n\t\t\t}\n\t\t\telse\n\t\t\t\tif(initialization && !in.buffer.empty)\n\t\t\t\t\tSystem.out.println(\"= \" + value);\n\t\t\tinitialization = true;\n\t\t\tin.getToken(); \t\t\t//This command flushes the end of input marker \";\" which allows for new expressions to be taken in.\n\t\t}\n\t}",
"EvaluationResult evalExpression(ValueExp expr) { return evalExpression(expr, true); }",
"private String parseRegExp(String exp) throws Exception {\r\n\t\treturn RegexpTranslationHelper.translateANTLRToAutomatonStyle(exp);\r\n\t}",
"InterpreterRuntimeContext createInterpreterRuntimeContext();",
"@Override\n\tpublic void parse() throws Exception {\n\t\tLogger.log(\"Parsing expression: \" + getWords().toString(), 4);\n\t\tint wordsSize= getWords().size();\n\t\tString word;\n\t\tint lastSplitIndex = 0;\n\t\tFExpressionSide fExpSide;\n\t\tfExpSideList = new LinkedList<FExpressionSide>();\n\t\tfor(int i=0; i < wordsSize; i++){\n\t\t\tword = getWords().get(i);\n\t\t\t\n\t\t\tif(Operators.INFIX_OPS.contains(word)){\n\t\t\t\tfExpSide = new FExpressionSide(this);\n\t\t\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, i));\n\t\t\t\tfExpSide.setOperator(word);\n\t\t\t\t\n\t\t\t\tlastSplitIndex = i +1;\n\t\t\t\tfExpSideList.add(fExpSide);\n\t\t\t}\n\t\t}\n\t\tfExpSide = new FExpressionSide(this);\n\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, wordsSize));\n\t\tfExpSideList.add(fExpSide);\n\t\t\n\t\tfor(FExpressionSide f : fExpSideList){\n\t\t\tf.parse();\n\t\t}\n\t\t\n\t\t\n\t}",
"public static Node executeExpressions(Node node, Environment env) {\n Node statement = node;\n Node nextStatement = statement.getCdr();\n\n\n while (!nextStatement.isNull()) {\n statement.getCar().eval(statement, env);\n statement = nextStatement;\n nextStatement = nextStatement.getCdr();\n }\n return statement.getCar().eval(statement, env);\n }",
"@Test\n\tpublic void testLoadMultipleExpression() {\n\t\tWriter writer = null ;\n\t\t\n\t\tString sourceFilePath = \"testLoad2.lisp\" ;\n\t\t\n\t\t//create the test source file\n\t\ttry {\n\t\t\twriter = new BufferedWriter(\n\t\t\t\t\t\tnew OutputStreamWriter(\n\t\t\t\t\t\t\t\tnew FileOutputStream(sourceFilePath), \"utf-8\")) ;\n\t\t\twriter.write(\"(define foo 37)\\n\");\n\t\t\twriter.write(\"(define bar 95)\\n\");\n\t\t} catch (IOException except){\n\t\t\t\n\t\t} finally {\n\t\t\ttry {writer.close();} catch (Exception ex) {}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tLispObject result = LispReader.load(sourceFilePath, env) ;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\n\t\t//check that the environment contains the bindings as stated in the source file.\n\t\t\n\t\tSystem.out.println(\"testLoad(): got \" + env.get(\"BAR\")) ;\n\n\t\t//env.dump() ;\n\t\tassertTrue(env.get(\"BAR\").toString().equals(\"95\"));\n\t}",
"private void evalExpression () {\n\tif (expr.type != null) {\n\t // Expression ist wie vorgesehen getypt\n\t if (expr.type instanceof M_Bool) {\n\t\t// Expression ist eine boolesche, also :\n\t\tdebug.addMsg(\"# expression to evaluate is boolean.\",3);\n\t\tSimulatorBoolEvaluator boolExpr = new SimulatorBoolEvaluator(process, expr);\n\t\tvalue = new SimulatorBoolValue ( boolExpr.giveResult() );\n\t }\n\t else if (expr.type instanceof M_Int) {\n\t\t// Expression ist eine zu Integer evaluierende, also :\n\t\tdebug.addMsg(\"# expression to evaluate is integer.\",3);\n\t\tSimulatorIntEvaluator intExpr = new SimulatorIntEvaluator(process, expr);\n\t\tvalue = new SimulatorIntValue ( intExpr.giveResult() ); \n\t }\n\t else {\n\t /* Platz für Exception, da Expression falsch getypt */\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not properly typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:1 \",0);\n\t }\n\n\t} //--------- end if(1) ------------\n\telse {\n\t // Expression ist nicht getypt also :\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:2 \",0);\n\t} //-------- end else --------------\n }",
"public Object eval (Object expression);",
"@Test\n public void testExploratoryString() throws IOException {\n String simplestProgram = \"x := 1;\" +\n \"y :={0,1,2,33};\" +\n \"if (x>y) then \" +\n \"{x:=1;} \" +\n \"else \" +\n \"{y:=1;}\";\n\n CharStream inputCharStream = new ANTLRInputStream(new StringReader(simplestProgram));\n TokenSource tokenSource = new GrammarLexer(inputCharStream);\n TokenStream inputTokenStream = new CommonTokenStream(tokenSource);\n GrammarParser parser = new GrammarParser(inputTokenStream);\n\n //parser.addErrorListener(new TestErrorListener());\n parser.setErrorHandler(new BailErrorStrategy());\n\n GrammarParser.ProgramContext context = parser.program();\n\n System.out.println(context.getText());\n\n logger.info(context.toString());\n }",
"public String evaluate(String expression);",
"@Test\r\n public void testEval__complex__000() throws ScriptException {\r\n final String script =\r\n \"(\" +\r\n \" platform: (swing: (frame: #() javax.swing.JFrame()))\" +\r\n \")\";\r\n Object value = engine.eval(script);\r\n Assert.assertNotNull(value);\r\n Assert.assertTrue(value instanceof Bindings);\r\n Assert.assertTrue(((Bindings) value).containsKey(\"platform\"));\r\n Assert.assertNotNull(((Bindings)value).get(\"platform\"));\r\n }",
"public void visit (Object expr) {\n\t\t\t\n\t\t\toffset += 2;\n\t\t\t\n\t\t\tif (expr instanceof VariableReferenceExpr) {\n\t\t\t\tvisit ( (VariableReferenceExpr) expr);\n\t\t\t} else if (expr instanceof UnionExpr) {\n\t\t\t\tvisit ( (UnionExpr) expr);\n\t\t\t} else if ( expr instanceof UnaryExpr) {\n\t\t\t\tvisit ( (UnaryExpr) expr);\n\t\t\t} else if ( expr instanceof TextNodeStep ) {\n\t\t\t\tvisit ( (TextNodeStep) expr) ;\n\t\t\t} else if ( expr instanceof RelationalExpr) {\n\t\t\t\tvisit ( (RelationalExpr) expr);\n\t\t\t} else if ( expr instanceof ProcessingInstructionNodeStep) {\n\t\t\t\tvisit ( (ProcessingInstructionNodeStep) expr) ;\n\t\t\t} else if ( expr instanceof Predicate) {\n\t\t\t\tvisit ( (Predicate) expr );\n\t\t\t} else if ( expr instanceof PathExpr) {\n\t\t\t\tvisit ( (PathExpr) expr) ;\n\t\t\t} else if ( expr instanceof NumberExpr) {\n\t\t\t\tvisit ( (NumberExpr) expr);\n\t\t\t} else if ( expr instanceof NameStep) {\n\t\t\t\tvisit ( (NameStep) expr);\n\t\t\t} else if ( expr instanceof MultiplicativeExpr) {\n\t\t\t\tvisit ( (MultiplicativeExpr) expr);\n\t\t\t} else if ( expr instanceof LogicalExpr) {\n\t\t\t\tvisit ( (LogicalExpr) expr);\n\t\t\t} else if ( expr instanceof LocationPath) {\n\t\t\t\tvisit ( (LocationPath) expr);\n\t\t\t} else if ( expr instanceof LiteralExpr) {\n\t\t\t\tvisit ( (LiteralExpr) expr);\n\t\t\t} else if ( expr instanceof FunctionCallExpr) {\n\t\t\t\tvisit ( (FunctionCallExpr) expr);\n\t\t\t} else if ( expr instanceof FilterExpr) {\n\t\t\t\tvisit ( (FilterExpr) expr);\n\t\t\t} else if ( expr instanceof EqualityExpr) {\n\t\t\t\tvisit ( (EqualityExpr) expr);\n\t\t\t} else if ( expr instanceof CommentNodeStep) {\n\t\t\t\tvisit ( (CommentNodeStep)expr);\n\t\t\t} else if ( expr instanceof AllNodeStep) {\n\t\t\t\tvisit ( (AllNodeStep) expr);\n\t\t\t} else if ( expr instanceof AdditiveExpr) {\n\t\t\t\tvisit ( (AdditiveExpr) expr);\n\t\t\t} else if (expr instanceof List) {\n\t\t\t\tvisitList((List)expr);\n\t\t\t} else if (expr != null) {\n\t\t\t\tout(\"Panic: Unknown expression kind {0} \",expr.getClass().getName()); //$NON-NLS-1$\n\t\t\t} else {\n\t\t\t\tout(\"null - unset\");\n\t\t\t}\n\t\t\t\n\t\t\toffset -= 2;\n\t\t}",
"public double eval(Environment env) throws EvalException {\n\treturn env.put(id,expr.eval(env));\n }",
"public static void main(String args[] ) throws Exception {\n\n \n Scanner s = new Scanner(System.in);\n System.out.print(\"enter exprestion : \");\n String expr=s.nextLine(); \n \n \n \n\n }",
"public static String parseExecution(String value) throws DefinitionException{\n\t\tMatcher matcher = Pattern.compile(ConfigKey.REGIX_OF_PARSE_EXPRESSION).matcher(value);\n\t\tmatcher.find();\n\t\tString result = matcher.group();\n\t\tif(StringUtils.isNotBlank(result)){\n\t\t\treturn result;\t\n\t\t}else{\n\t\t\tthrow new DefinitionException(\"expression format error\");\n\t\t}\n\t}",
"private List<Expression> expList(List<napParser.ExprContext> exprs){\n List<Expression> arguments = new LinkedList<>();\n for(napParser.ExprContext expr : exprs)\n arguments.add((Expression)visit(expr));\n return arguments;\n }",
"private void stage1_2() {\n\n\t\tString s = \"E $:( 3E0 , 3E0 ) ( $:( 3E0 , 3E0 ) \";\n\n//\t s = SymbolicString.makeConcolicString(s);\n\t\tStringReader sr = new StringReader(s);\n\t\tSystem.out.println(s);\n\t\tFormula formula = new Formula(s);\n\t\tMap<String, Decimal> actual = formula.getVariableValues();\n\t}",
"public static DynamicExpression dynamic(CallSiteBinder binder, Class type, Iterable<Expression> expressions) { throw Extensions.todo(); }",
"public Object evaluate (Interpreter interp, List sexp)\n throws RunTimeException\n {\n Map<String,Object> shadowed = new HashMap<String,Object>();\n\n for (int i = 0; i < _args.size(); i++) {\n String name = ((Name)_args.elementAt(i)).toString();\n Object val = sexp.elementAt(i);\n\n // shadow this variable\n Object oval = interp.env.get(name);\n if (oval != null) shadowed.put(name, oval);\n else shadowed.put(name, NO_VAL);\n\n // evaluate the argument and bind it to the variable\n interp.env.put(name, interp.evaluateSExp(val));\n }\n\n // evaluate the sexps that constitute this function\n Object result = interp.interpret(_progn);\n\n // copy the values of the shadowed variables back into the environment\n for (Map.Entry<String,Object> entry : shadowed.entrySet()) {\n Object oval = entry.getValue();\n if (oval == NO_VAL) interp.env.remove(entry.getKey());\n else interp.env.put(entry.getKey(), oval);\n }\n\n return result;\n }",
"public interface IExpressionRuntime\n{\n Object evaluate();\n}",
"@Test\n\tpublic void expression1() throws SyntaxException, LexicalException {\n\t\tString input = \"2\";\n\t\tshow(input);\n\t\tScanner scanner = new Scanner(input).scan();\n\t\tshow(scanner);\n\t\tSimpleParser parser = new SimpleParser(scanner);\n\t\tparser.expression(); // Call expression directly.\n\t}",
"public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//Scanner scanner = new Scanner(System.in);\r\n\t\t\tSyntax syntax = new Syntax();\r\n\t\t\tsyntax.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tsyntax.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tsyntax.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tsyntax.addTerminal(\"DIVIDE\", TokenType.OPERATOR, OperatorType.DIVIDE);\r\n\t\t\tsyntax.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tsyntax.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tsyntax.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tsyntax.addNonTerminal(\"E\");\r\n\t\t\tsyntax.addNonTerminal(\"T\");\r\n\t\t\tsyntax.addNonTerminal(\"F\");\r\n\t\t\tsyntax.addErrorHandler(\"sample\", null);\r\n\t\t\t//syntax.infer(\"E -> T `PLUS`<+> E | T `MINUS`<-> E | T\");\r\n\t\t\t//syntax.infer(\"T -> F `TIMES`<*> T | F `DIVIDE`</> T | F\");\r\n\t\t\t//syntax.infer(\"F -> `LPA`<(> E `RPA`<)> | `SYMBOL`<i>\");\r\n\t\t\tsyntax.infer(\"E -> E @PLUS<+> T\");\r\n\t\t\tsyntax.infer(\"E -> E @MINUS<-> T\");\r\n\t\t\tsyntax.infer(\"E -> T\");\r\n\t\t\tsyntax.infer(\"T -> T @TIMES<*> F\");\r\n\t\t\tsyntax.infer(\"T -> T @DIVIDE</> F\");\r\n\t\t\tsyntax.infer(\"T -> F\");\r\n\t\t\tsyntax.infer(\"F -> @LPA<(> E @RPA<)>\");\r\n\t\t\tsyntax.infer(\"F -> @SYMBOL<i>\");\r\n\t\t\tsyntax.initialize(\"E\");\r\n\t\t\tSystem.out.println(syntax.toString());\r\n\t\t\tSystem.out.println(syntax.getNGAString());\r\n\t\t\tSystem.out.println(syntax.getNPAString());\r\n\t\t\t//scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \" + e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static void parse()\r\n {\r\n int initial;\r\n initial=expression();\r\n stateList.get(0).setNext1(initial);\r\n stateList.get(0).setNext2(initial);\r\n if(index<=expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n state st=new state(state,\"END\",-1,-1);\r\n stateList.add(st);\r\n }\r\n }",
"int parseExpression() {\r\n\t\t\t\tint x = parseTerm();\r\n\t\t\t\tfor (;;) {\r\n\t\t\t\t\tif (eat('+'))\r\n\t\t\t\t\t\tx += parseTerm(); // addition\r\n\t\t\t\t\telse if (eat('-'))\r\n\t\t\t\t\t\tx -= parseTerm(); // subtraction\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn x;\r\n\t\t\t\t}\r\n\t\t\t}",
"public static void main(String[] args) throws Exception {\n\n SimpleCalcLexer lex = new SimpleCalcLexer(new ANTLRFileStream(args[0]));\n \tCommonTokenStream tokens = new CommonTokenStream(lex);\n\n // \tCommonTokenStream tokens = new CommonTokenStream(lexer);\n\n SimpleCalcParser parser = new SimpleCalcParser(tokens);\n\n try {\n parser.expr();\n } catch (RecognitionException e) {\n e.printStackTrace();\n }\n }",
"ExpressionsPackage getExpressionsPackage();",
"List getExpressions();",
"public Object parseValue(String expr);",
"public static EvalEnv genExampleEnv2()\n {\n EvalEnv result = new EvalEnv();\n result.createVariable(Boolean.class, true);\n result.createVariable(Boolean.class, true);\n for (int x = 0; x < Environment.HalfObsWidth * 2; x++)\n {\n for (int y = 0; y < Environment.HalfObsHeight * 2; y++)\n {\n result.createVariable(Integer.class, 0);\n }\n }\n\n for (int i = 0; i < 5; i++)\n {\n result.createVariable(Integer.class, -1);\n result.createVariable(Float.class, -100.0);\n result.createVariable(Float.class, 10.0);\n }\n return result;\n }",
"@Test\n\t\tpublic void testExpression() throws LexicalException, SyntaxException {\n\t\t\tString input = \"x + 2\";\n\t\t\tPLPParser parser = makeParser(input);\n\t\t\tExpression e = parser.expression(); //call expression here instead of parse\n\t\t\tshow(e);\t\n\t\t\tassertEquals(ExpressionBinary.class, e.getClass());\n\t\t\tExpressionBinary b = (ExpressionBinary)e;\n\t\t\tassertEquals(ExpressionIdentifier.class, b.leftExpression.getClass());//\n\t\t\tExpressionIdentifier left = (ExpressionIdentifier)b.leftExpression;\n\t\t\tassertEquals(\"x\", left.name);\n\t\t\tassertEquals(ExpressionIntegerLiteral.class, b.rightExpression.getClass());\n\t\t\tExpressionIntegerLiteral right = (ExpressionIntegerLiteral)b.rightExpression;\n\t\t\tassertEquals(2, right.value);\n\t\t\tassertEquals(OP_PLUS, b.op);\n\t\t}",
"public static int evaluateExpression(String expression) {\r\n // Create operandStack of ints to store operands\r\n Stack<Integer> operandStack = new Stack<>();\r\n \r\n // Create operatorStack of characters to store operators\r\n Stack<Character> operatorStack = new Stack<>();\r\n \r\n // Insert Blanks\r\n expression = insertBlanks(expression);\r\n \r\n // Extract operands and operators by splitting around blanks\r\n String[] tokens = expression.split(\" \");\r\n \r\n /* Phase 1: Scan tokens\r\n Enhanced for loop, puts every element of tokens in token each time\r\n Like writing token = tokens[i] every time\r\n */\r\n for (String token: tokens) { \r\n if(token.length() == 0) // It's a blank\r\n continue; // Go to the while loop\r\n else if (token.charAt(0) == '+' || token.charAt(0) == '-') {\r\n // process all +, -, *, / in the top of the operator stack\r\n while (!operatorStack.isEmpty() && // While stack isn't empty\r\n (operatorStack.peek() == '+' || // and has an operator on top\r\n operatorStack.peek() == '-' || // Like if you had (2 * 3) + 5 \r\n operatorStack.peek() == '*' || // Or if you had (2 - 3) + 5, do that last no matter what b/c +- is lowest priority\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n // After processing the all the previous operations, push the +- operator onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '*' || token.charAt(0) == '/') {\r\n // Proess all *, / in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '*' ||\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the * or / onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '^') {\r\n // Proess all ^ in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the ^ onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if(token.trim().charAt(0) == '(') {\r\n operatorStack.push('(');\r\n } \r\n else if(token.trim().charAt(0) == ')') {\r\n while(operatorStack.peek() != '(') {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n operatorStack.pop(); // pop\r\n }\r\n else {\r\n operandStack.push(new Integer(token));\r\n }\r\n }\r\n // Phase two: process everything left over\r\n while (!operatorStack.isEmpty()) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n return operandStack.pop(); \r\n }",
"public Expression parseExpression(SyntaxTreeNode parent, String exp) {\n return (Expression)parseTopLevel(parent, \"<EXPRESSION>\"+exp, null);\n }",
"public ParseExpression(){\n expression = null;\n }",
"public Value[] evalArguments(Env env) {\n AbstractFunction fun = env.findFunction(name);\n\n if (fun == null) {\n return null;\n }\n\n return fun.evalArguments(env, this, args);\n }",
"public T evaluate(String expr) {\n List<Token> tokens = ExpressionParser.parse(expr);\n Expression expression = ExpressionBuilder.build(tokens);\n Visitor<T> visitor = new ExpressionVisitor<>();\n return visitor.visit(expression);\n }",
"public static void main(String[] args) throws Exception {\r\n Expression e = new Plus(new Mult(2, \"x\"), new Plus(new Sin(new Mult(4, \"y\")), new Pow(\"e\", \"x\")));\r\n System.out.println(e);\r\n Map<String, Double> assignment = new TreeMap<String, Double>();\r\n assignment.put(\"x\", 2.0);\r\n assignment.put(\"y\", 0.25);\r\n assignment.put(\"e\", 2.71);\r\n System.out.println(e.evaluate(assignment));\r\n e = e.differentiate(\"x\");\r\n System.out.println(e);\r\n System.out.println(e.evaluate(assignment));\r\n System.out.println(e.simplify());\r\n System.out.println(e);\r\n }",
"JavaEvaluator createJavaEvaluator();",
"public Expression preEvaluate(StaticContext env) throws XPathException {\n if (argument.length == 0) {\n return this;\n } else {\n return (Value)evaluateItem(env.makeEarlyEvaluationContext());\n }\n }",
"public static DynamicExpression dynamic(CallSiteBinder binder, Class type, Expression[] expression) { throw Extensions.todo(); }",
"private void getEnvironment(Environment env, FileProcess file) {\n\t\tint t = 0;\n\t\tboolean setReg = false, setFlag = false, setMem = false;\n\t\twhile (true) {\n\t\t\tString temp = file.getLineAt(t);\n\n\t\t\tif (temp == null || temp == \"\") {\n\t\t\t\treturn;\n\t\t\t} else if (temp.contains(\"Register\")) {\n\t\t\t\ttemp = temp.substring(temp.indexOf(\":\") + 1, temp.length());\n\t\t\t\tString[] reg = temp.split(\",\");\n\t\t\t\tfor (int i = 0; i < reg.length; i++) {\n\t\t\t\t\treg[i] = reg[i].replace(\" \", \"\");\n\t\t\t\t\tString r[] = reg[i].split(\"=\");\n\n\t\t\t\t\tenv.getRegister().setRegisterValue(r[0], new LongValue(Long.parseLong(r[1], 16)));\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tsetReg = true;\n\t\t\t} else if (temp.contains(\"Flag\")) {\n\t\t\t\ttemp = temp.substring(temp.indexOf(\":\") + 1, temp.length());\n\t\t\t\tString[] reg = temp.split(\",\");\n\t\t\t\tfor (int i = 0; i < reg.length; i++) {\n\t\t\t\t\treg[i] = reg[i].replace(\" \", \"\");\n\t\t\t\t\tString r[] = reg[i].split(\"=\");\n\n\t\t\t\t\tif (r[1].toLowerCase().contains(\"true\")) {\n\t\t\t\t\t\tenv.getFlag().setFlagValue(r[0], new BooleanValue(true));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tenv.getFlag().setFlagValue(r[0], new BooleanValue(false));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsetFlag = true;\n\t\t\t} else if (temp.contains(\"Memory\")) {\n\t\t\t\ttemp = temp.substring(temp.indexOf(\":\") + 1, temp.length());\n\t\t\t\tString[] reg = temp.split(\",\");\n\t\t\t\tfor (int i = 0; i < reg.length; i++) {\n\t\t\t\t\treg[i] = reg[i].replace(\" \", \"\");\n\t\t\t\t\tString r[] = reg[i].split(\"=\");\n\t\t\t\t\tString addr = r[0].replace(\"0x\", \"\");\n\t\t\t\t\tlong x = Long.parseLong(addr, 16);\n\t\t\t\t\tbyte y = (byte) Long.parseLong(reduce(r[1], 8), 16);\n\t\t\t\t\tenv.getMemory().setByteMemoryValue(x, new LongValue(y));\n\t\t\t\t}\n\t\t\t\tsetMem = true;\n\t\t\t} \n\t\t\tt++;\n\t\t\t\n\t\t\tif (setReg && setFlag && setMem) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"private double parseExpression() {\n\t\tdouble value = parseTerm();\n\t\twhile (true) {\n\t\t\tif (token.getType().equals(Token.Type.PLUS)) { // addition\n\t\t\t\ttoken=lexer.getNextToken();\n\t\t\t\tvalue += parseTerm();\n\t\t\t} else if (token.getType().equals(Token.Type.MINUS)) { // subtraction\n\t\t\t\ttoken = lexer.getNextToken();\n\t\t\t\tvalue -= parseTerm();\n\t\t\t} else {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t}\n\t}",
"public interface ExpressionVisitor{\n\n void handel(BracketExpression bracketExpression);\n\n void handel(NaturalNumber naturalNumber);\n\n\n void handel(Sum sum);\n void handel(Difference difference);\n void handel(Product product);\n void handel(Quotient quotient);\n\n void handel(VariableExpression variableExpression);\n}",
"protected Evaluable parseFactor() throws ParsingException {\n if (_token == null) {\n throw makeException(\"Expecting something more at end of expression\");\n }\n\n Evaluable eval = null;\n\n if (_token.type == TokenType.String) {\n eval = new LiteralExpr(_token.text);\n next(false);\n } else if (_token.type == TokenType.Regex) {\n RegexToken t = (RegexToken) _token;\n\n try {\n Pattern pattern = Pattern.compile(_token.text, t.caseInsensitive ? Pattern.CASE_INSENSITIVE : 0);\n eval = new LiteralExpr(pattern);\n next(false);\n } catch (Exception e) {\n throw makeException(\"Bad regular expression (\" + e.getMessage() + \")\");\n }\n } else if (_token.type == TokenType.Number) {\n eval = new LiteralExpr(((NumberToken)_token).value);\n next(false);\n } else if (_token.type == TokenType.Operator && _token.text.equals(\"-\")) { // unary minus?\n next(true);\n\n if (_token != null && _token.type == TokenType.Number) {\n Number n = ((NumberToken)_token).value;\n\n eval = new LiteralExpr(n instanceof Long ? -n.longValue() : -n.doubleValue());\n\n next(false);\n } else {\n throw makeException(\"Bad negative number\");\n }\n } else if (_token.type == TokenType.Identifier) {\n String text = _token.text;\n next(false);\n\n if (_token == null || _token.type != TokenType.Delimiter || !_token.text.equals(\"(\")) {\n eval = \"null\".equals(text) ? new LiteralExpr(null) : new VariableExpr(text);\n } else if( \"PI\".equals(text) ) {\n eval = new LiteralExpr(Math.PI);\n next(false);\n } else {\n Function f = ControlFunctionRegistry.getFunction(text);\n Control c = ControlFunctionRegistry.getControl(text);\n if (f == null && c == null) {\n throw makeException(\"Unknown function or control named \" + text);\n }\n\n next(true); // swallow (\n\n List<Evaluable> args = parseExpressionList(\")\");\n\n if (c != null) {\n Evaluable[] argsA = makeArray(args);\n String errorMessage = c.checkArguments(argsA);\n if (errorMessage != null) {\n throw makeException(errorMessage);\n }\n eval = new ControlCallExpr(argsA, c);\n } else {\n eval = new FunctionCallExpr(makeArray(args), f);\n }\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"(\")) {\n next(true);\n\n eval = parseExpression();\n\n if (_token != null && _token.type == TokenType.Delimiter && _token.text.equals(\")\")) {\n next(false);\n } else {\n throw makeException(\"Missing )\");\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"[\")) { // [ ... ] array\n next(true); // swallow [\n\n List<Evaluable> args = parseExpressionList(\"]\");\n\n eval = new FunctionCallExpr(makeArray(args), new ArgsToArray());\n } else {\n throw makeException(\"Missing number, string, identifier, regex, or parenthesized expression\");\n }\n\n while (_token != null) {\n if (_token.type == TokenType.Operator && _token.text.equals(\".\")) {\n next(false); // swallow .\n\n if (_token == null || _token.type != TokenType.Identifier) {\n throw makeException(\"Missing function name\");\n }\n\n String identifier = _token.text;\n next(false);\n\n if (_token != null && _token.type == TokenType.Delimiter && _token.text.equals(\"(\")) {\n next(true); // swallow (\n\n Function f = ControlFunctionRegistry.getFunction(identifier);\n if (f == null) {\n throw makeException(\"Unknown function \" + identifier);\n }\n\n List<Evaluable> args = parseExpressionList(\")\");\n args.add(0, eval);\n\n eval = new FunctionCallExpr(makeArray(args), f);\n } else {\n eval = new FieldAccessorExpr(eval, identifier);\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"[\")) {\n next(true); // swallow [\n\n List<Evaluable> args = parseExpressionList(\"]\");\n args.add(0, eval);\n\n eval = new FunctionCallExpr(makeArray(args), ControlFunctionRegistry.getFunction(\"get\"));\n } else {\n break;\n }\n }\n\n return eval;\n }",
"public static void main (String[] args){\n if (args.length != 1){ // Check if there is the input regular expression\n System.out.println(\"Usage: java REcompiler <RegExp>\");\n return;\n }\n String input = args [0]; //Get the input regular expression\n inputCharArray = input.toCharArray(); //Convert the input string into char array\n set_state (0,\"START\",0,0); //Add the start state into the list\n int i = expression(); // Call the expression()\n if (hasError == true) System.out.println(\"GRAMMER ERROR\"); // IF there is any error, display the error message\n else {\n set_state (state, \"END\", 0,0); //Add the end state into the list\n int n1 , n2;\n n1 = n2 = getStartState(); // Get the start state of the FSM\n stateList.get(0).setN1(n1); stateList.get(0).setN2(n2); // Set the 'START' state's n1 and n2 to the start state\n stateList.forEach (state -> { //Print out all the elements in the list\n System.out.println(state.getState()+\",\"+state.getStr()+\",\"+state.getN1()+\",\"+state.getN2());\n });\n }\n }",
"private static List<String> parseExpression( int prefix, String exp)\n {\n if (exp == null || exp.trim().length() == 0)\n throw new IllegalArgumentException(\n \"JEXL expression may not be null or empty\");\n \n List<String> extNames = new ArrayList<>();\n // search for pattern such as \"$sys.*.*(\"\n Pattern p = Pattern.compile((prefix==SYS_PREFIX?SYS_PATTERN:USER_PATTERN));\n Matcher m = p.matcher(exp.toLowerCase());\n int index = 0;\n while ( m.find(index) )\n {\n String substr = m.group();\n StringTokenizer tok = new StringTokenizer(substr, \".\");\n if (tok.countTokens() > 2) \n {\n tok.nextToken();\n extNames.add(tok.nextToken());\n }\n index = m.end();\n } \n return extNames;\n }",
"double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }",
"double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }",
"public ExpressionParser(ExpressionParserTokenManager tm) {\r\n token_source = tm;\r\n token = new Token();\r\n jj_ntk = -1;\r\n jj_gen = 0;\r\n for (int i = 0; i < 22; i++) jj_la1[i] = -1;\r\n for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\r\n }",
"public interface Environment {\n\tpublic Object resolveVariable(String name);\n\tpublic List<String> getRegisteredVariableNames();\n}",
"@Test\n\tpublic void testExpressionList() throws ParseException {\n\t\tList<Expression> list = langParser(\"\").expressionList();\n\t\tassertEquals(list.size(), 0);\n\t\tlist = langParser(\"a\").expressionList();\n\t\tassertEquals(list.size(), 1);\n\t\tlist = langParser(\"a, b\").expressionList();\n\t\tassertEquals(list.size(), 2);\n\t}",
"public String evaluateExpression(ValueExpression expr,CodeExecutionContext execCtx) throws JavascribeException;",
"public static void main(String[] args) {\n String input = \"( ( 1 + sqrt ( 5 ) ) / 2 )\";\n Stack<String> ops = new Stack<String>();\n Stack<Double> vals = new Stack<Double>();\n String[] temps = input.split(\" \");\n for (String temp : temps) {\n\n if (temp.equals(\"(\")) ;\n else if (temp.equals(\"+\")) ops.push(temp);\n else if (temp.equals(\"-\")) ops.push(temp);\n else if (temp.equals(\"*\")) ops.push(temp);\n else if (temp.equals(\"/\")) ops.push(temp);\n else if (temp.equals(\"sqrt\")) ops.push(temp);\n else if (temp.equals(\")\")){\n String op = ops.pop();\n double v = vals.pop();\n if (op.equals(\"+\")) v = vals.pop() + v;\n else if (op.equals(\"-\")) v = vals.pop() - v;\n else if (op.equals(\"*\")) v = vals.pop() * v;\n else if (op.equals(\"/\")) v = vals.pop() / v;\n else if (op.equals(\"sqrt\")) v = Math.sqrt(v);\n vals.push(v);\n }else {\n vals.push(Double.parseDouble(temp));\n }\n }\n System.out.println(vals.pop());\n }",
"@Override\n public Object evaluate(Environment env) {\n if (env.contains(name.getValue())) return new VariableExistsError(name);\n var value = expression.evaluate(env);\n env.put(name.getValue(), value);\n env.setCurrent(value);\n return value;\n }",
"private void extractVars(Expression expr,List<Var> list){\n\t\tif (expr.isVar()){\n\t\t\tlist.add((Var)expr);}\n\t\telse {\n\t\t\tif (expr.isBinaryExpression()){\n\t\t\t\textractVars(((BinaryExpression)expr).getLeft(),list);\n\t\t\t\textractVars(((BinaryExpression)expr).getRight(),list);\n\t\t\t}\n\t\t}\n\t}",
"private double processExpression() throws ParsingException {\n double result = processTerm();\n\n while (true) {\n if (tryCaptureChar('+')) {\n result += processTerm();\n } else if (tryCaptureChar('-')) {\n result -= processTerm();\n } else {\n break;\n }\n }\n return result;\n }",
"Expression getExp();",
"private Object eval(Term expr) {\n Object res = eval(expr.getExpr().get(0));\n\n for (int i = 1; i < expr.getExpr().size(); i++) {\n Object res2 = eval(expr.getExpr().get(i));\n String opt = expr.getOpt().get(i - 1);\n\n if (\"*\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res * (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: Term error\");\n }\n } else if (\"/\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res / (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: Term error\");\n }\n } else if (\"%\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res % (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: Term error\");\n }\n } else {\n throw new RaydenScriptException(\"Expression error: Invalid operator '\" + opt + \"'.\");\n }\n }\n\n return res;\n }",
"public synchronized double parseExpression() throws InvalidExpressionException { // parse expression within parentheses\r\n\t\tdouble value = parseSubExpression();\r\n\t\twhile (true) {\r\n\t\t\tignorWhiteSpace();\r\n\t\t\tif (singleChar == '+') { // in case of addition\r\n\t\t\t\tnextChar();\r\n\t\t\t\tvalue = value + parseSubExpression();\r\n\t\t\t} else if (singleChar == '-') { // in case of subtraction\r\n\t\t\t\tnextChar();\r\n\t\t\t\tvalue = value - parseSubExpression();\r\n\t\t\t} else {\r\n\t\t\t\treturn value;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static String evaluate( String expr ) \n {\n\tString[] arr = expr.split(\"\\\\s+\");\n\tLLStack<String> nums = new LLStack<String>();\n\tLLStack<String> noClose = new LLStack<String>();\n\tint op = 0;\n\n\tfor(String i : arr){ \n\t if(i.equals(\")\")){ //when you reach the closing parenthesis\n\t\tString top = noClose.pop(); //start going through this part of the expression\n\t\tnums.push(i); //add ( to stack for unload\n\t\t\n\t\twhile(!top.equals(\"(\")){ //until you reach the (, where the expression ends\n\t\t\t \n\t\t if(top.equals(\"+\")) op = 1;\n\t\t else if(top.equals(\"-\")) op = 2;\n\t\t else if(top.equals(\"*\")) op = 3;\n\n\t\t else nums.push(top); //if it's not an operand\n\n\t\t top = noClose.pop();\n\t\t}\n\n\t\tnoClose.push(unload(op, nums));\n\t }\n\t \n\t else noClose.push(i); //pushed into a stack of what's in this ()\n \n\t}//end of for loop \n \n\treturn noClose.peek();\n }",
"Expression getExpression();",
"Expression getExpression();",
"Expression getExpression();",
"Expression getExpression();",
"public WebutilsExpression parse(String expressionStr)\r\n\t{\r\n\t\tExpression expression = expressionEvaluator.parse(expressionStr);\r\n\t\treturn new WebutilsExpression(expression, expressionRegistry);\r\n\t}",
"protected Evaluable parseExpression() throws ParsingException {\n Evaluable sub = parseSubExpression();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \">=<==!=\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseSubExpression();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }",
"public MathEval() {\r\n super();\r\n\r\n constants=new TreeMap<String,Double>(String.CASE_INSENSITIVE_ORDER);\r\n setConstant(\"E\" ,Math.E);\r\n setConstant(\"Euler\" ,0.577215664901533D);\r\n setConstant(\"LN2\" ,0.693147180559945D);\r\n setConstant(\"LN10\" ,2.302585092994046D);\r\n setConstant(\"LOG2E\" ,1.442695040888963D);\r\n setConstant(\"LOG10E\",0.434294481903252D);\r\n setConstant(\"PHI\" ,1.618033988749895D);\r\n setConstant(\"PI\" ,Math.PI);\r\n\r\n variables=new TreeMap<String,Double>(String.CASE_INSENSITIVE_ORDER);\r\n\r\n functions=new TreeMap<String,FunctionHandler>(String.CASE_INSENSITIVE_ORDER);\r\n\r\n offset=0;\r\n isConstant=false;\r\n }",
"public static DynamicExpression dynamic(CallSiteBinder binder, Class type, Expression expression0, Expression expression1, Expression expression2, Expression expression3) { throw Extensions.todo(); }",
"public T evaluate(String expr, Map<String, Expression> dataSet) {\n List<Token> tokens = ExpressionParser.parse(expr);\n Expression expression = ExpressionBuilder.build(tokens);\n Visitor<T> visitor = new ExpressionVisitor<>(dataSet);\n return visitor.visit(expression);\n }",
"public double calculate(String expression) {\n\t\tString[] inputs = expression.split(\" \");\n\t if(debug) {\n\t\tSystem.out.print(\"Input array: \");\n\t\tfor(String value : inputs) {\n\t\t\tSystem.out.print(value + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t }\t\n\t\t\n\t\t// Go through the string array and pop operators onto the\n\t\t// operators stack and operands onto the the operands stack\n\t\tfor(String value : inputs) {\n\t\t if(debug) System.out.println(\"Evaluating: \" + value);\n\t\t\tif(value.equals(\"*\") || value.equals(\"/\") || value.equals(\"+\") || value.equals(\"-\")) {\n\t\t\t\t// If stack is empty push onto stack\n\t\t\t\tif(operand.empty()) {\n\t\t\t\t\toperand.push(value);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// If new operator is higher than old push onto\n\t\t\t\t// stack\n\t\t\t\telse if(value.equals(\"*\") || value.equals(\"/\")) {\n\t\t\t\t\tString old = (String)operand.peek();\n\t\t\t\t\tif(old.equals(\"*\")) {\n\t\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\t if(debug) {\n\t\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t\t }\n\t\t\t\t\t \ta = a*b;\n\t\t\t\t\t\toperators.push(a);\n\t\t\t\t\t\told = (String)operand.pop();\n\t\t\t\t\t\toperand.push(value);\n\t\t\t\t\t}\n\t\t\t\t\telse if(old.equals(\"/\")) {\n\t\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\t if(debug) {\n\t\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t\t }\n\t\t\t\t\t \ta = b/a;\n\t\t\t\t\t\toperators.push(a);\n\t\t\t\t\t\told = (String)operand.pop();\n\t\t\t\t\t\toperand.push(value);\n\t\t\t\t\t}\n\t\t\t\t\telse operand.push(value);\n\t\t\t\t}\n\n\t\t\t\t// Else pop old operator and evaluate top two\n\t\t\t\t// elements on operand stack then push new\n\t\t\t\t// operator onto stack\n\t\t\t\telse {\n\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\tString old = (String)operand.pop();\n\t\t\t\t if(debug) {\n\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t }\n\t\t\t\t\tif(old.equals(\"*\")) a = a*b;\n\t\t\t\t\telse if(old.equals(\"/\")) a = b/a;\n\t\t\t\t\telse if(old.equals(\"+\")) a = a+b;\n\t\t\t\t\telse a = b-a;\n\t\t\t\t\toperators.push(a);\n\t\t\t\t\toperand.push(value);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Put operators into operators stack\n\t\t\telse {\n\t\t\t try {\n\t\t\t\tDouble num = Double.parseDouble(value);\n\t\t\t\toperators.push(num);\n\t\t\t }\n\t\t\t catch(NumberFormatException e) {\n\t\t\t\t System.out.println(\"NumberFormatException: Something besides a number or operator entered\");\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\t// Finish up everything left over in stack\n\t\tString old;\n\t\tdouble a;\n\t\tdouble b;\n\t\twhile(!operand.empty()) {\n\t\t\told = (String)operand.pop();\n\t\t\ta = (Double)operators.pop();\n\t\t\tb = (Double)operators.pop();\n\t\t\tif(old.equals(\"*\")) a = a*b;\n\t\t\telse if(old.equals(\"/\")) a = b/a;\n\t\t\telse if(old.equals(\"+\")) a = a+b;\n\t\t\telse a = b-a;\n\t\t\toperators.push(a);\n\t\t}\n\t\treturn (Double)operators.peek();\n\t}",
"public QueryMatches interpret(ITMQLRuntime runtime, IContext context, IExpressionInterpreter<?> caller);",
"public Object getExpression();",
"public Evaluator(Runtime context, ExecutorService executor) {\n\t\t\tsuper(\"evaluator\", SCHEMA);\n\t\t\tthis.context = context;\n\t\t\tthis.executor = executor;\n\t\t}",
"private String evaluate(String expression) {\n String separators = \"()*+/-\";\n String result;\n // Stack for using in algorithm\n Stack<String> stackOperations = new Stack<String>();\n // Stack for RPN - reverse polish notation\n Stack<String> stackRPN = new Stack<String>();\n // Stack for evaluating answer\n Stack<String> stackTemp = new Stack<String>();\n //splitting expression into tokens\n StringTokenizer stringTokenizer = new StringTokenizer(updateUnaryMinus(expression), separators, true);\n\n while (stringTokenizer.hasMoreTokens()) {\n String token = stringTokenizer.nextToken();\n if (isNumber(token)) {\n stackRPN.push(token);\n } else if (isOpenBracket(token)) {\n stackOperations.push(token);\n } else if (isCloseBracket(token)) {\n while (!isOpenBracket(stackOperations.lastElement())) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.pop();\n } else if (isOperator(token)) {\n while (!stackOperations.empty() && isOperator(stackOperations.lastElement())\n && getPrecedence(stackOperations.lastElement()) > getPrecedence(token)) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.push(token);\n }\n }\n while (!stackOperations.empty()) {\n stackRPN.push(stackOperations.pop());\n }\n Collections.reverse(stackRPN);\n\n // Evaluation if RPN expression\n while (!stackRPN.empty()) {\n if (isNumber(stackRPN.lastElement())) stackTemp.push(stackRPN.pop());\n else stackTemp.push(makeOperation(stackRPN.pop(), stackTemp.pop(), stackTemp.pop()));\n }\n result = stackTemp.pop();\n return result;\n }",
"public static int evaluate(String expression) {\n\n\t\tchar[] tokens = expression.toCharArray();\n\t\t// Stack for numbers: 'values'\n\t\tStack<Integer> values = new Stack<Integer>();\n\t\t// Stack for Operators: 'operators'\n\t\tStack<Character> operators = new Stack<Character>();\n\n\t\tfor (int i = 0; i < tokens.length; i++) {\n\t\t\t// Current token is a whitespace, skip it\n\t\t\tif (tokens[i] == ' ')\n\t\t\t\tcontinue;\n\t\t\t// Current token is a number, push it to stack for numbers\n\t\t\tif (tokens[i] >= '0' && tokens[i] <= '9') {\n\t\t\t\tStringBuffer stringBuffer = new StringBuffer();\n\t\t\t\t// There may be more than one digits in number\n\t\t\t\twhile (i < tokens.length && tokens[i] >= '0' && tokens[i] <= '9') {\n\t\t\t\t\tstringBuffer.append(tokens[i++]);\n\t\t\t\t}\n\t\t\t\tvalues.push(Integer.parseInt(stringBuffer.toString()));\n\t\t\t i--;\n\t\t\t} else if (tokens[i] == '(') {\n\t\t\t // Current token is an opening brace, push it to 'operators'\n\t\t\t\toperators.push(tokens[i]);\n\t\t\t} else if (tokens[i] == ')') {\n\t\t\t // Closing brace encountered, solve entire brace\n\t\t\t\twhile (operators.peek() != '(') {\n\t\t\t\t values.push(applyOperation(operators.pop(), values.pop(), values.pop()));\n\t\t\t }\n\t\t\t\toperators.pop();\n\t\t\t} else if (tokens[i] == '+' || tokens[i] == '-' ||tokens[i] == '*' || tokens[i] == '/') {\n\t\t\t // Current token is an operator.\n\t\t\t\twhile (!operators.empty() && hasPrecedence(tokens[i], operators.peek())) {\n\t\t\t\t values.push(applyOperation(operators.pop(), values.pop(),values.pop()));\n\t\t\t // System.out.println(values.peek());\n\t\t\t }\n\t\t\t\t// Push current token to 'operators'.\n\t\t\t\toperators.push(tokens[i]);\n\t\t\t}\n\t\t}\n\t\t// Entire expression has been parsed at this point, apply remaining operators to remaining values\n\t\twhile (!operators.empty()) {\n\t\t\tvalues.push(applyOperation(operators.pop(), values.pop(), values.pop()));\n\t\t}\n\t\t// Top of 'values' contains result, return it\n\t\treturn values.pop();\n\t}",
"@Override ASTRunif parse_impl(Exec E) {\n AST ary = E.parse();\n // parse the seed\n _seed = (long) E.parse().treeWalk(new Env(new HashSet<Key>())).popDbl();\n E.eatEnd(); // eat the ending ')'\n ASTRunif res = (ASTRunif) clone();\n res._asts = new AST[]{ary};\n return res;\n }",
"@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }",
"public interface Expression {\n public boolean interpret(String context);\n}",
"public Expression(String expr) {\n this.expr = expr;\n scalars = null;\n arrays = null;\n openingBracketIndex = null;\n closingBracketIndex = null;\n }"
] |
[
"0.57837355",
"0.5716674",
"0.5713027",
"0.56319493",
"0.55758595",
"0.557069",
"0.54849833",
"0.54015404",
"0.53850055",
"0.53728235",
"0.53450996",
"0.5297113",
"0.5267068",
"0.52569455",
"0.5244753",
"0.52412164",
"0.52288264",
"0.521921",
"0.52174556",
"0.5207591",
"0.520512",
"0.51836485",
"0.5181884",
"0.5157414",
"0.51463604",
"0.5122766",
"0.51223505",
"0.51181394",
"0.51051337",
"0.5081754",
"0.5058612",
"0.5030856",
"0.5025658",
"0.5016323",
"0.49832714",
"0.49711588",
"0.4966865",
"0.49657914",
"0.49610758",
"0.49547333",
"0.49486688",
"0.49459195",
"0.493119",
"0.49304688",
"0.49171185",
"0.49162048",
"0.49141446",
"0.49051246",
"0.49039018",
"0.48905328",
"0.4878577",
"0.48671764",
"0.48632437",
"0.4857947",
"0.48556718",
"0.4830906",
"0.4808482",
"0.48059684",
"0.48043057",
"0.48026735",
"0.48006085",
"0.47945192",
"0.47922808",
"0.47918242",
"0.47771174",
"0.47765297",
"0.47694772",
"0.4766888",
"0.47649527",
"0.47649527",
"0.47617507",
"0.47518903",
"0.47376385",
"0.47334445",
"0.47324586",
"0.47255686",
"0.47215378",
"0.47180033",
"0.47031403",
"0.46968314",
"0.46936393",
"0.4685353",
"0.4684498",
"0.4684498",
"0.4684498",
"0.4684498",
"0.46816644",
"0.46793377",
"0.46730494",
"0.4672538",
"0.46704274",
"0.46678993",
"0.46674478",
"0.46577668",
"0.46563452",
"0.46541595",
"0.46521538",
"0.46503085",
"0.4647673",
"0.46323407",
"0.46315882"
] |
0.0
|
-1
|
get the relative key times. if the key times are set in absolute values, they are converted into relative key times.
|
public double[] getKeyTimes(long _duration){
if(timingIsAbsolute){
double[] ret = new double[relKeyTimes.length];
for(int i = 1; i < (ret.length - 1); i++){
ret[i] = relKeyTimes[i] / _duration;
}
ret[0] = relKeyTimes[0];
ret[ret.length - 1] = relKeyTimes[ret.length - 1];
return ret;
}
return relKeyTimes;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private TreeSet<Float> getKeyTimes() {\n TreeSet<Float> ret = new TreeSet<>();\n for (XmlNode animation : library_animations.getChildren(\"animation\")) {\n if (animation.getChild(\"animation\") != null) {\n animation = animation.getChild(\"animation\");\n }\n XmlNode timeData = animation.getChild(\"source\").getChild(\"float_array\");\n String[] rawTimes = timeData.getData().trim().split(\"\\\\s+\");\n for (String rawTime : rawTimes) {\n ret.add(Float.parseFloat(rawTime));\n\n }\n }\n return ret;\n }",
"public List <Integer> getKeyFrameTimes() { return getKeyFrameTimes(null, true); }",
"double getRelativeTime() {\n return relativeTime;\n }",
"public static String[] makeRelativeTimes(int[] timeIndices,\n float timeInc) {\n\n GregorianCalendar utcCalendar =\n new GregorianCalendar(TimeZone.getTimeZone(\"GMT\"));\n String currentDate = null;\n String times = null;\n List timesList = new ArrayList();\n\n Date now = new Date();\n int minInc = (int) (60 * timeInc);\n int minutes = minInc % 60;\n int hours = minInc / 60;\n utcCalendar.setTime(now);\n int curHour = utcCalendar.get(utcCalendar.HOUR_OF_DAY);\n int curMin = utcCalendar.get(utcCalendar.MINUTE);\n // normalize for time inc\n // int diff = curHour- (curHour / timeInc) * timeInc; \n /*\n int diff = curHour % hourInc;\n // System.err.println(\"cur hour:\" + curHour + \" diff:\" + diff);\n utcCalendar.add(utcCalendar.HOUR_OF_DAY, -diff);\n */\n int hdiff = (hours == 0)\n ? 0\n : curHour % hours;\n int mdiff = (minutes == 0)\n ? curMin\n : curMin % minutes;\n // System.err.println(\"cur hour:\" + curHour + \" diff:\" + hdiff);\n // System.err.println(\"cur min:\" + curMin + \" diff:\" + mdiff);\n utcCalendar.add(utcCalendar.HOUR_OF_DAY, -hdiff);\n utcCalendar.add(utcCalendar.MINUTE, -mdiff);\n now = utcCalendar.getTime();\n for (int i = 0; i < timeIndices.length; i++) {\n //Reset the date to now.\n utcCalendar.setTime(now);\n //Go back timeIndices*increment hours\n //utcCalendar.add(utcCalendar.HOUR_OF_DAY,\n // -timeIndices[i] * hourInc);\n utcCalendar.add(utcCalendar.MINUTE, -timeIndices[i] * minInc);\n int newMin = utcCalendar.get(utcCalendar.MINUTE);\n int newHour = utcCalendar.get(utcCalendar.HOUR_OF_DAY);\n int newDay = utcCalendar.get(utcCalendar.DAY_OF_YEAR);\n int newYear = utcCalendar.get(utcCalendar.YEAR);\n String thisDate = \"\" + newYear + StringUtil.padZero(newDay, 3);\n //Do we have a new day\n if ( !Misc.equals(currentDate, thisDate)) {\n if (currentDate != null) {\n //if not the first time through then add it to the list\n timesList.add(makeDateUrl(currentDate, times.toString()));\n }\n currentDate = thisDate;\n times = \"\";\n }\n\n //Append the time \n if (times.length() > 0) {\n times = times + \",\";\n }\n times = times + newHour + \":\" + StringUtil.padZero(newMin, 2);\n }\n\n //add the last one to the list\n if (currentDate != null) {\n timesList.add(makeDateUrl(currentDate, times));\n }\n\n return (String[]) timesList.toArray(new String[timesList.size()]);\n\n }",
"private int compareTimeSpan(ProcessorDistributionKey key)\n {\n int result = 0;\n result = myTimeSpan.compareTo(key.myTimeSpan);\n\n if (result == 0)\n {\n if (myConstraintKey == null)\n {\n if (key.myConstraintKey != null)\n {\n result = 1;\n }\n }\n else if (key.myConstraintKey == null)\n {\n result = -1;\n }\n else if (!myConstraintKey.equals(key.myConstraintKey))\n {\n result = myConstraintKey.hashCode() - key.myConstraintKey.hashCode();\n\n // Just in case the hash codes are coincident.\n if (result == 0)\n {\n result = System.identityHashCode(myConstraintKey) - System.identityHashCode(key.myConstraintKey);\n }\n }\n }\n\n return result;\n }",
"public List <Integer> getKeyFrameTimes(List <RMShape> theShapes, boolean includeImplied)\n{\n // If a shapeList wasn't provided, assume it should be animator owner's children.\n if(theShapes==null)\n theShapes = _owner.getChildren();\n\n // Create new list for key frames\n List <Integer> keyFrames = new Vector();\n \n // Add implied key frames: time zero, current time and freeze frames\n if(includeImplied) {\n keyFrames.add(0);\n if(getTime()!=0) keyFrames.add(getTime());\n for(Integer freezeFrame : _freezeFrames) {\n int index = Collections.binarySearch(keyFrames, freezeFrame);\n if(index<0)\n keyFrames.add(-index - 1, freezeFrame);\n }\n }\n \n // Add explicit key frames by iterating over owner's children (on down)\n for(int i=0, iMax=ListUtils.size(theShapes); i<iMax; i++)\n getKeyFrames(theShapes.get(i), keyFrames);\n\n // Update Scoped keyframe\n if(!keyFrames.contains(_scopeTime))\n _scopeTime = null;\n\n // Return key frames\n return keyFrames;\n}",
"double getMinTimerTrig();",
"public final List<TimeKey> mo13029a(Map<String, ? extends Map<String, String>> map) {\n ArrayList arrayList = new ArrayList(map.size());\n for (Map.Entry next : map.entrySet()) {\n Map map2 = (Map) next.getValue();\n Object obj = map2.get(\"encrypted_mobile_id\");\n if (obj != null) {\n String str = (String) obj;\n Object obj2 = map2.get(\"fromDate\");\n if (obj2 != null) {\n long roundToLong = MathKt.roundToLong(((Double) obj2).doubleValue());\n Object obj3 = map2.get(\"tillDate\");\n if (obj3 != null) {\n arrayList.add(new TimeKey((String) next.getKey(), str, TimeKey.DEFAULT_NAME, roundToLong, MathKt.roundToLong(((Double) obj3).doubleValue()), 0, 32, (DefaultConstructorMarker) null));\n } else {\n throw new NullPointerException(\"null cannot be cast to non-null type kotlin.Double\");\n }\n } else {\n throw new NullPointerException(\"null cannot be cast to non-null type kotlin.Double\");\n }\n } else {\n throw new NullPointerException(\"null cannot be cast to non-null type kotlin.String\");\n }\n }\n return arrayList;\n }",
"protected double[] getTimes() {\n String vname = getTimeVarName(); //original time variable name\n double[] values = getValues(vname);\n return values;\n }",
"public Map<AbstractVizResource<?, ?>, DataTime[]> getTimeMatchingMap() {\n return timeMatchingMap;\n }",
"public long getKeyingTime() {\n\t\treturn (keyTime);\n\t}",
"public List<TimeSpan> getRequestedTimes()\r\n {\r\n return myRequestedTimes;\r\n }",
"public double getPreferredConsecutiveHours();",
"@Override\n\tpublic void visit(TimeKeyExpression arg0) {\n\t\t\n\t}",
"public final flipsParser.relativeTime_return relativeTime() throws RecognitionException {\n flipsParser.relativeTime_return retval = new flipsParser.relativeTime_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n flipsParser.integerValuePositive_return hr = null;\n\n flipsParser.numericValuePositive_return minn = null;\n\n flipsParser.numericValuePositive_return s = null;\n\n flipsParser.integerValuePositive_return min = null;\n\n flipsParser.numericValuePositive_return numericValuePositive338 = null;\n\n flipsParser.timeUnit_return timeUnit339 = null;\n\n flipsParser.hour_return hour340 = null;\n\n flipsParser.minute_return minute341 = null;\n\n flipsParser.hour_return hour342 = null;\n\n flipsParser.second_return second343 = null;\n\n flipsParser.hour_return hour344 = null;\n\n flipsParser.minute_return minute345 = null;\n\n flipsParser.second_return second346 = null;\n\n flipsParser.minute_return minute347 = null;\n\n flipsParser.second_return second348 = null;\n\n flipsParser.timeFormat_return timeFormat349 = null;\n\n\n RewriteRuleSubtreeStream stream_minute=new RewriteRuleSubtreeStream(adaptor,\"rule minute\");\n RewriteRuleSubtreeStream stream_second=new RewriteRuleSubtreeStream(adaptor,\"rule second\");\n RewriteRuleSubtreeStream stream_numericValuePositive=new RewriteRuleSubtreeStream(adaptor,\"rule numericValuePositive\");\n RewriteRuleSubtreeStream stream_timeUnit=new RewriteRuleSubtreeStream(adaptor,\"rule timeUnit\");\n RewriteRuleSubtreeStream stream_timeFormat=new RewriteRuleSubtreeStream(adaptor,\"rule timeFormat\");\n RewriteRuleSubtreeStream stream_hour=new RewriteRuleSubtreeStream(adaptor,\"rule hour\");\n RewriteRuleSubtreeStream stream_integerValuePositive=new RewriteRuleSubtreeStream(adaptor,\"rule integerValuePositive\");\n try {\n // flips.g:521:2: ( numericValuePositive timeUnit -> ^( TIME numericValuePositive timeUnit ) | hr= integerValuePositive hour minn= numericValuePositive minute -> ^( TIME ^( HOUR $hr) ^( MINUTE $minn) ) | hr= integerValuePositive hour s= numericValuePositive second -> ^( TIME ^( HOUR $hr) ^( SECOND $s) ) | hr= integerValuePositive hour min= integerValuePositive minute s= numericValuePositive second -> ^( TIME ^( HOUR $hr) ^( MINUTE $min) ^( SECOND $s) ) | min= integerValuePositive minute s= numericValuePositive second -> ^( TIME ^( MINUTE $min) ^( SECOND $s) ) | timeFormat -> ^( TIME timeFormat ) )\n int alt135=6;\n alt135 = dfa135.predict(input);\n switch (alt135) {\n case 1 :\n // flips.g:521:4: numericValuePositive timeUnit\n {\n pushFollow(FOLLOW_numericValuePositive_in_relativeTime2866);\n numericValuePositive338=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(numericValuePositive338.getTree());\n pushFollow(FOLLOW_timeUnit_in_relativeTime2868);\n timeUnit339=timeUnit();\n\n state._fsp--;\n\n stream_timeUnit.add(timeUnit339.getTree());\n\n\n // AST REWRITE\n // elements: numericValuePositive, timeUnit\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 522:2: -> ^( TIME numericValuePositive timeUnit )\n {\n // flips.g:522:5: ^( TIME numericValuePositive timeUnit )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TIME, \"TIME\"), root_1);\n\n adaptor.addChild(root_1, stream_numericValuePositive.nextTree());\n adaptor.addChild(root_1, stream_timeUnit.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:523:4: hr= integerValuePositive hour minn= numericValuePositive minute\n {\n pushFollow(FOLLOW_integerValuePositive_in_relativeTime2886);\n hr=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(hr.getTree());\n pushFollow(FOLLOW_hour_in_relativeTime2888);\n hour340=hour();\n\n state._fsp--;\n\n stream_hour.add(hour340.getTree());\n pushFollow(FOLLOW_numericValuePositive_in_relativeTime2892);\n minn=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(minn.getTree());\n pushFollow(FOLLOW_minute_in_relativeTime2894);\n minute341=minute();\n\n state._fsp--;\n\n stream_minute.add(minute341.getTree());\n\n\n // AST REWRITE\n // elements: hr, minn\n // token labels: \n // rule labels: hr, retval, minn\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_hr=new RewriteRuleSubtreeStream(adaptor,\"rule hr\",hr!=null?hr.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_minn=new RewriteRuleSubtreeStream(adaptor,\"rule minn\",minn!=null?minn.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 524:2: -> ^( TIME ^( HOUR $hr) ^( MINUTE $minn) )\n {\n // flips.g:524:5: ^( TIME ^( HOUR $hr) ^( MINUTE $minn) )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TIME, \"TIME\"), root_1);\n\n // flips.g:524:12: ^( HOUR $hr)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(HOUR, \"HOUR\"), root_2);\n\n adaptor.addChild(root_2, stream_hr.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n // flips.g:524:24: ^( MINUTE $minn)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(MINUTE, \"MINUTE\"), root_2);\n\n adaptor.addChild(root_2, stream_minn.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 3 :\n // flips.g:525:4: hr= integerValuePositive hour s= numericValuePositive second\n {\n pushFollow(FOLLOW_integerValuePositive_in_relativeTime2922);\n hr=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(hr.getTree());\n pushFollow(FOLLOW_hour_in_relativeTime2924);\n hour342=hour();\n\n state._fsp--;\n\n stream_hour.add(hour342.getTree());\n pushFollow(FOLLOW_numericValuePositive_in_relativeTime2928);\n s=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(s.getTree());\n pushFollow(FOLLOW_second_in_relativeTime2930);\n second343=second();\n\n state._fsp--;\n\n stream_second.add(second343.getTree());\n\n\n // AST REWRITE\n // elements: s, hr\n // token labels: \n // rule labels: hr, retval, s\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_hr=new RewriteRuleSubtreeStream(adaptor,\"rule hr\",hr!=null?hr.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_s=new RewriteRuleSubtreeStream(adaptor,\"rule s\",s!=null?s.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 526:2: -> ^( TIME ^( HOUR $hr) ^( SECOND $s) )\n {\n // flips.g:526:5: ^( TIME ^( HOUR $hr) ^( SECOND $s) )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TIME, \"TIME\"), root_1);\n\n // flips.g:526:12: ^( HOUR $hr)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(HOUR, \"HOUR\"), root_2);\n\n adaptor.addChild(root_2, stream_hr.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n // flips.g:526:24: ^( SECOND $s)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(SECOND, \"SECOND\"), root_2);\n\n adaptor.addChild(root_2, stream_s.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 4 :\n // flips.g:527:4: hr= integerValuePositive hour min= integerValuePositive minute s= numericValuePositive second\n {\n pushFollow(FOLLOW_integerValuePositive_in_relativeTime2958);\n hr=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(hr.getTree());\n pushFollow(FOLLOW_hour_in_relativeTime2960);\n hour344=hour();\n\n state._fsp--;\n\n stream_hour.add(hour344.getTree());\n pushFollow(FOLLOW_integerValuePositive_in_relativeTime2964);\n min=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(min.getTree());\n pushFollow(FOLLOW_minute_in_relativeTime2966);\n minute345=minute();\n\n state._fsp--;\n\n stream_minute.add(minute345.getTree());\n pushFollow(FOLLOW_numericValuePositive_in_relativeTime2970);\n s=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(s.getTree());\n pushFollow(FOLLOW_second_in_relativeTime2972);\n second346=second();\n\n state._fsp--;\n\n stream_second.add(second346.getTree());\n\n\n // AST REWRITE\n // elements: min, s, hr\n // token labels: \n // rule labels: hr, min, retval, s\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_hr=new RewriteRuleSubtreeStream(adaptor,\"rule hr\",hr!=null?hr.tree:null);\n RewriteRuleSubtreeStream stream_min=new RewriteRuleSubtreeStream(adaptor,\"rule min\",min!=null?min.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_s=new RewriteRuleSubtreeStream(adaptor,\"rule s\",s!=null?s.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 528:2: -> ^( TIME ^( HOUR $hr) ^( MINUTE $min) ^( SECOND $s) )\n {\n // flips.g:528:5: ^( TIME ^( HOUR $hr) ^( MINUTE $min) ^( SECOND $s) )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TIME, \"TIME\"), root_1);\n\n // flips.g:528:12: ^( HOUR $hr)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(HOUR, \"HOUR\"), root_2);\n\n adaptor.addChild(root_2, stream_hr.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n // flips.g:528:24: ^( MINUTE $min)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(MINUTE, \"MINUTE\"), root_2);\n\n adaptor.addChild(root_2, stream_min.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n // flips.g:528:39: ^( SECOND $s)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(SECOND, \"SECOND\"), root_2);\n\n adaptor.addChild(root_2, stream_s.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 5 :\n // flips.g:529:4: min= integerValuePositive minute s= numericValuePositive second\n {\n pushFollow(FOLLOW_integerValuePositive_in_relativeTime3007);\n min=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(min.getTree());\n pushFollow(FOLLOW_minute_in_relativeTime3009);\n minute347=minute();\n\n state._fsp--;\n\n stream_minute.add(minute347.getTree());\n pushFollow(FOLLOW_numericValuePositive_in_relativeTime3013);\n s=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(s.getTree());\n pushFollow(FOLLOW_second_in_relativeTime3015);\n second348=second();\n\n state._fsp--;\n\n stream_second.add(second348.getTree());\n\n\n // AST REWRITE\n // elements: s, min\n // token labels: \n // rule labels: min, retval, s\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_min=new RewriteRuleSubtreeStream(adaptor,\"rule min\",min!=null?min.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_s=new RewriteRuleSubtreeStream(adaptor,\"rule s\",s!=null?s.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 530:2: -> ^( TIME ^( MINUTE $min) ^( SECOND $s) )\n {\n // flips.g:530:5: ^( TIME ^( MINUTE $min) ^( SECOND $s) )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TIME, \"TIME\"), root_1);\n\n // flips.g:530:12: ^( MINUTE $min)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(MINUTE, \"MINUTE\"), root_2);\n\n adaptor.addChild(root_2, stream_min.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n // flips.g:530:27: ^( SECOND $s)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(SECOND, \"SECOND\"), root_2);\n\n adaptor.addChild(root_2, stream_s.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 6 :\n // flips.g:531:4: timeFormat\n {\n pushFollow(FOLLOW_timeFormat_in_relativeTime3041);\n timeFormat349=timeFormat();\n\n state._fsp--;\n\n stream_timeFormat.add(timeFormat349.getTree());\n\n\n // AST REWRITE\n // elements: timeFormat\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 532:2: -> ^( TIME timeFormat )\n {\n // flips.g:532:5: ^( TIME timeFormat )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TIME, \"TIME\"), root_1);\n\n adaptor.addChild(root_1, stream_timeFormat.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }",
"public void newTimeKey() {\r\n\t\ttimeKeyA = System.nanoTime();\r\n\t}",
"public List<LocalDateTime> getAllTimes() {\n\t\tList<LocalDateTime> allTimes = new ArrayList<LocalDateTime>();\n\t\tallTimes.add(shiftStartTime);\n\t\tallTimes.add(bedtime);\n\t\tallTimes.add(shiftEndTime);\n\t\treturn allTimes;\n\t}",
"public Map<Integer, TimesBean> getTimes() {\n/* 15 */ return this.times;\n/* */ }",
"public ArrayList<Time> getTimes() {\n\t\treturn times;\n\t}",
"public int getScopeTime()\n{\n // If scope time not explicitly set, get time prior to given time\n if(_scopeTime==null) {\n List <Integer> keyFrames = getKeyFrameTimes();\n int index = Collections.binarySearch(keyFrames, getTime());\n if(index<0) index = -index - 2; else index--;\n return index>=0? keyFrames.get(index) : 0;\n }\n \n // Return scope time\n return _scopeTime;\n}",
"double getAbsoluteTime() {\n return absoluteTime;\n }",
"protected String getMicrotimingKey(WebContext context) {\n switch (this) {\n case IP:\n return context.getRemoteIP().toString();\n case BOTH:\n return context.getRemoteIP().toString() + \" <-- \" + context.microtimingKey;\n }\n\n // URI is the default:\n return context.microtimingKey;\n }",
"private void parse(String _content){\n\t\tString[] segmts = _content.split(\"\\\\s+\");\n\t\trelKeyTimes = new double[segmts.length + 2];\n\t\tfor(int i = 0; i < segmts.length; i++){\n\t\t\ttry{\n\t\t\t\tif(timingIsAbsolute){\n\t\t\t\t\trelKeyTimes[i + 1] = (float)(new CMsgTime(segmts[i])).getTotalMillis();\n\t\t\t\t} else {\n\t\t\t\t\trelKeyTimes[i + 1] = Float.parseFloat(segmts[i]);\n\t\t\t\t}\n\t\t\t} catch (NumberFormatException e){;\n\t\t\t} catch (ScriptMsgException e){;}\n\t\t\t\n\t\t}\n\t\t// make sure the last keyTime is a perfect 1.0:\n\t\trelKeyTimes[0] = 0.0f;\n\t\trelKeyTimes[relKeyTimes.length - 1] = 1.0f;\n\t}",
"public Integer getLessThanTimes() {\n return lessThanTimes;\n }",
"private long getBucketTimestamp(long predictionTimestampSeconds) {\r\n long key = predictionTimestampSeconds / _bucketSizeSeconds;\r\n key *= _bucketSizeSeconds;\r\n key += _bucketSizeSeconds;\r\n key -= 1;\r\n return key;\r\n }",
"public static double getAttHour(String time1, String time2)\r\n/* 178: */ throws ParseException\r\n/* 179: */ {\r\n/* 180:258 */ double hour = 0.0D;\r\n/* 181:259 */ DateFormat fulDate = new SimpleDateFormat(\"HH:mm\");\r\n/* 182:260 */ long t12 = fulDate.parse(\"12:00\").getTime();\r\n/* 183:261 */ long t13 = fulDate.parse(\"13:00\").getTime();\r\n/* 184:262 */ long t1 = fulDate.parse(time1).getTime();\r\n/* 185:263 */ long PERHOUR = 3600000L;\r\n/* 186:264 */ if (time2 == null)\r\n/* 187: */ {\r\n/* 188:265 */ if (t12 - t1 > 0L) {\r\n/* 189:266 */ hour = (t12 - t1) / PERHOUR;\r\n/* 190: */ }\r\n/* 191: */ }\r\n/* 192: */ else\r\n/* 193: */ {\r\n/* 194:269 */ long t2 = fulDate.parse(time2).getTime();\r\n/* 195:270 */ if ((t1 <= t12) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 196:271 */ hour = (t12 - t1) / PERHOUR;\r\n/* 197:272 */ } else if ((t1 <= t12) && (t2 >= t13)) {\r\n/* 198:273 */ hour = (t2 - t1) / PERHOUR - 1.0D;\r\n/* 199:274 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 200:275 */ hour = 0.0D;\r\n/* 201:276 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t13)) {\r\n/* 202:277 */ hour = (t2 - t13) / PERHOUR;\r\n/* 203: */ } else {\r\n/* 204:279 */ hour = (t2 - t1) / PERHOUR;\r\n/* 205: */ }\r\n/* 206: */ }\r\n/* 207:282 */ DecimalFormat df = new DecimalFormat(\"#.0\");\r\n/* 208:283 */ return Double.parseDouble(df.format(hour));\r\n/* 209: */ }",
"@Override\n public synchronized Enumeration keys() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.keys();\n }",
"@Override\n\tpublic TimerValuesInterface getTimes() {\n\t\treturn timer;\n\t}",
"@Override\n\tpublic void get_time_int(ShortHolder heure, ShortHolder min) {\n\t\t\n\t}",
"private Map<String, Long> getJudgeTime(Expression expr, long time) {\n \n\n if (!inTimeScope(expr, time)) {\n return null;\n }\n\n Map<String, Long> timeMap = new HashMap<String, Long>();\n long time_to = time;\n long time_from = time - (expr.getTime_to() - expr.getTime_from());\n timeMap.put(\"time_from\", time_from);\n timeMap.put(\"time_to\", time_to);\n long last_time_to;\n if (expr.getInterval() != 0) {\n\n if ((time_to - expr.getTime_to()) % expr.getInterval() == 0) {\n\n timeMap.put(\"last_time_from\", time_from - expr.getInterval());\n timeMap.put(\"last_time_to\", time_to - expr.getInterval());\n }\n else {\n return null;\n }\n }\n else {\n if ((time_to - expr.getTime_to()) % (24 * 3600 * 1000) == 0) {\n switch (expr.getUnit()) {\n case DateTimeHelper.INTERVAL_DAY:\n\n timeMap.put(\"last_time_from\", time_from - 24 * 3600 * 1000);\n timeMap.put(\"last_time_to\", time_to - 24 * 3600 * 1000);\n break;\n case DateTimeHelper.INTERVAL_WEEK:\n\n timeMap.put(\"last_time_from\", time_from - 7 * 24 * 3600 * 1000);\n timeMap.put(\"last_time_to\", time_to - 7 * 24 * 3600 * 1000);\n break;\n case DateTimeHelper.INTERVAL_MONTH:\n\n last_time_to = DateTimeHelper.getMonthAgo(new Date(time_to)).getTime();\n timeMap.put(\"last_time_to\", last_time_to);\n timeMap.put(\"last_time_from\", last_time_to - (time_to - time_from));\n break;\n case DateTimeHelper.INTERVAL_YEAR:\n\n last_time_to = DateTimeHelper.getYearAgo(new Date(time_to)).getTime();\n timeMap.put(\"last_time_to\", last_time_to);\n timeMap.put(\"last_time_from\", last_time_to - (time_to - time_from));\n break;\n }\n }\n else {\n return null;\n }\n\n }\n\n return timeMap;\n }",
"public boolean isPlayerTimeRelative ( ) {\n\t\treturn extract ( handle -> handle.isPlayerTimeRelative ( ) );\n\t}",
"private Object[] getKeys(long rawKey) {\n Object[] groupKeys = new Object[_numGroupByExpressions];\n for (int i = 0; i < _numGroupByExpressions; i++) {\n int cardinality = _cardinalities[i];\n groupKeys[i] = getRawValue(i, (int) (rawKey % cardinality));\n rawKey /= cardinality;\n }\n return groupKeys;\n }",
"@Override\n public Set keySet() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.keySet();\n }",
"@Override // com.airbnb.lottie.model.animatable.BaseAnimatableValue, com.airbnb.lottie.model.animatable.AnimatableValue\r\n public /* bridge */ /* synthetic */ List<Keyframe<ScaleXY>> getKeyframes() {\r\n return super.getKeyframes();\r\n }",
"public long getMinTime()\n {\n return times[0];\n }",
"public static List<RangeParam> loadPrefTimeslices(Preferences pref, String key) {\n String res = pref.get(key, \"\");\n\n return RangeParam.parseTimeSlices(res);\n }",
"@Override\n public long getTimeBucket(long time)\n {\n if (time < start) {\n return -1;\n }\n long diffFromStart = time - fixedStart;\n long key = diffFromStart / bucketSpanMillis;\n if (time >= end) {\n long diffInBuckets = (time - end) / bucketSpanMillis;\n long move = (diffInBuckets + 1) * bucketSpanMillis;\n start += move;\n end += move;\n // trigger purge when lower bound changes\n triggerPurge = (move > 0);\n if (triggerPurge) {\n lowestPurgeableTimeBucket = ((start - fixedStart) / bucketSpanMillis) - 2;\n }\n }\n return key;\n\n }",
"void assertTotalTimeEquals(T key, long expected);",
"private void parseCPUSpeedTimes(){\n\t\tString str = parser.readFile(SYS_CPU_SPEED_STEPS, 512);\n\t\tif(str == null)\n\t\t\treturn;\n\t\t\n\t\tString[] vals;\n\t\tint index = 0;\n\t\tlong time;\n\t\t\n\t\tfor(String token : str.split(\"\\n\")){\n\t\t\tif(str.trim().length() == 0) continue;\n\t\t\ttry{\n\t\t\t\tvals = token.split(\" \");\n\t\t\t\ttime = Long.valueOf(vals[1]);\n\t\t\t\tmRelCpuSpeedTimes[index] = time - mBaseCpuSpeedTimes[index];\n\t\t\t\tmBaseCpuSpeedTimes[index] = time;\n\t\t\t}catch (NumberFormatException nfe){\n\t\t\t\tnfe.printStackTrace();\n\t\t\t}finally{\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t}",
"private boolean isTimeKey(int keyCode) {\n\t\tif (keyCode >= 48 && keyCode <= 57) {\n\t\t\treturn true;\n\t\t}\n\t\t// 0 - 9 keys on number pad\n\t\tif (keyCode >= 96 && keyCode <= 105) {\n\t\t\treturn true;\n\t\t}\n\t\t// QWERTYUIOP keys\n\t\tif (keyCode == 81 || keyCode == 87 || keyCode == 69 || keyCode == 82\n\t\t\t\t|| keyCode == 84 || keyCode == 89 || keyCode == 85\n\t\t\t\t|| keyCode == 37 || keyCode == 79 || keyCode == 80) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public TimeMap() {\n hashMap = new HashMap<String, List<Data>>();\n }",
"java.lang.String getField1724();",
"public int getMatchTime() {\n return getIntegerProperty(\"Time\");\n }",
"String getKeyFormat();",
"private long generateTime(int... times)\n\t{\n\t\tlong time = 0;\n\t\tlong[] constants =\n\t\t{ 1000, 1000 * 60, 1000 * 60 * 60, 1000 * 60 * 60 * 24 };\n\t\tint roof = Math.min(times.length, 4);\n\t\tfor (int i = 0; i < roof; i++)\n\t\t{\n\t\t\ttime += times[i] * constants[i];\n\t\t}\n\t\treturn time;\n\t}",
"void assertSelfTimePctEquals(T key, double expected);",
"public TimeMap() {\n timeMap = new HashMap<>();\n }",
"public double getAltRms() {\n\t\treturn 3600.0 * Math.sqrt(1000.0 * altInt / (double) (updateTimeStamp - startTime));\n\t}",
"PathKeys getPathKeys();",
"LocalDateTime calculateNextPossibleStartTime(LocalDateTime startTime);",
"public static List<Integer> getTimeDeltaValues(List<Date> times, Date baseDate, String tDelta) {\n List<Integer> values = new ArrayList<>();\n Calendar cal = Calendar.getInstance();\n cal.setTime(baseDate);\n long sl = cal.getTimeInMillis();\n long el, delta;\n int value;\n for (int i = 0; i < times.size(); i++) {\n cal.setTime(times.get(i));\n el = cal.getTimeInMillis();\n delta = el - sl;\n if (tDelta.equalsIgnoreCase(\"hours\")) {\n value = (int) (delta / (60 * 60 * 1000));\n values.add(value);\n } else if (tDelta.equalsIgnoreCase(\"days\")) {\n value = (int) (delta / (24 * 60 * 60 * 1000));\n values.add(value);\n }\n }\n\n return values;\n }",
"public String[] key_Array_list_rule() {\n String[] key_Array_list = {\"时间\", \"地点\", \"分类\"};\n return key_Array_list;\n }",
"public int getTimeReg32() {\r\n int page = getPagerPage();\r\n if (page == 0) updateRegisters();\r\n return (hourr[page] << 24) | (minr[page] << 8) | secr[page];\r\n }",
"public Map<String, List<TimePeriodModel>> getAllTimePeriods();",
"public ReactorResult<java.lang.String> getAllTime_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), TIME, java.lang.String.class);\r\n\t}",
"public int[] getSegmentStartTimes() {\n int index = mSettings.getChartZoomIndex();\n return Utils.safeIndex(ZOOM_LEVELS, index).segmentStartTimes;\n }",
"void assertSelfTimeEquals(T key, long expected);",
"double getDefaultTimerTrig();",
"public int getLevelTime();",
"public void updateAlarmTime (){\r\n\t\tint newHour, newMinut;\r\n\t\t\r\n\t\tif (relative) { //Before\r\n\t\t\tnewMinut = reference.getMinutes() - alarmMinutes;\r\n\t\t\tnewHour = reference.getHours() - alarmHours - ((newMinut<0)?1:0);\r\n\t\t\tnewMinut = (newMinut<0)?newMinut+60:newMinut;\r\n\t\t\tnewHour = (newHour<0)?newHour+24:newHour;\r\n\t\t} else {\r\n\t\t\tnewMinut = reference.getMinutes() + alarmMinutes;\r\n\t\t\tnewHour = reference.getHours() + alarmHours + ((newMinut>=60)?1:0);\r\n\t\t\tnewMinut = (newMinut>=60)?newMinut-60:newMinut;\r\n\t\t\tnewHour = (newHour>=240)?newHour-24:newHour;\r\n\t\t}\r\n\r\n\t\tthis.alarmTime.setHours(newHour);\r\n\t\tthis.alarmTime.setMinutes(newMinut);\r\n\t}",
"public String[] getKeys(){\n int paddingCount = 1;\n List<String> result = new ArrayList<String>();\n String lastKey = null;\n for (Property x : this.getProperties()) {\n String newKey = new String(x.getKey());\n if (lastKey != null && lastKey.equalsIgnoreCase(newKey)){\n newKey = newKey + \"_\" + paddingCount++;\n }\n result.add(newKey);\n lastKey = newKey;\n }\n return result.toArray(new String[]{});\n }",
"public String getMinKey();",
"public static String createTimeDependentKey() {\r\n\t\tchar pad[];\r\n\t\tint padLen;\r\n\t\tStringBuilder retval = new StringBuilder(32);\r\n\t\tfinal long seed = System.currentTimeMillis();\r\n\t\tRandom rnd = new Random(seed);\r\n\t\t// 10 characters time dependent part\r\n\t\tString timePart = String.valueOf(Long.MAX_VALUE-seed);\r\n\t\tpadLen = timePart.length()-10;\r\n\t\tpad = new char[padLen];\r\n\t\tjava.util.Arrays.fill(pad, '0');\r\n\t\tretval.append(pad).append(timePart);\r\n\t\t// 6 characters sequential\r\n\t\tretval.append(Integer.toHexString(iSequence.incrementAndGet()));\r\n\t\tiSequence.compareAndSet(16777000, 1048576);\r\n\t\t// 8 characters IP dependent part\t\t\r\n\t\ttry {\r\n\t\t\tbyte[] localIPAddr = InetAddress.getLocalHost().getAddress();\r\n\t\t\tretval.append(byteToStr[((int) localIPAddr[0]) & 255]);\r\n\t\t\tretval.append(byteToStr[((int) localIPAddr[1]) & 255]);\r\n\t\t\tretval.append(byteToStr[((int) localIPAddr[2]) & 255]);\r\n\t\t\tretval.append(byteToStr[((int) localIPAddr[3]) & 255]);\r\n\t\t}\r\n\t\tcatch (UnknownHostException e) {\r\n\t\t\tretval.append(\"7f000000\");\r\n\t\t}\r\n\t\t// 8 characters random part\r\n\t\tString randomPart = String.valueOf(rnd.nextInt(Integer.MAX_VALUE));\r\n\t\tpadLen = timePart.length()-8;\r\n\t\tretval.append(randomPart).append(generateRandomId(padLen, \"0123456789abcdef\", Character.LOWERCASE_LETTER));\r\n\t\treturn retval.toString();\r\n\t}",
"private long getTimeIni(ArrayList<Point> r, ArrayList<Point> s){\n\t\t// Get the trajectory with latest first point\n\t\tlong t1 = s.get(0).timeLong > r.get(0).timeLong ? \n\t\t\t\ts.get(0).timeLong : r.get(0).timeLong;\n\t\treturn t1;\n\t}",
"private long baseTime() {\n return Bytes.getUnsignedInt(row, tsdb.metrics.width());\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tTreeMap<Integer,String> map = new TreeMap<Integer,String>();\r\n\t\t\r\n map.put(2000, \"A\");\r\n map.put(5000, \"E\");\r\n map.put(6000, \"F\");\r\n map.put(7000, \"G\");\r\n map.put(3000, \"C\");\r\n map.put(4000, \"D\");\r\n map.put(2100, \"B\");\r\n System.out.println(map);\r\n System.out.println(\"max\"+map.lastKey());\r\n System.out.println(\"min\"+map.firstKey());\r\n \r\n Set<Integer> setLessThen3k = map.headMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessThen3k);\r\n \r\n Set<Integer> setLessgreater3k = map.tailMap(3000).keySet();\r\n System.out.println(\"setLessThen3k---\"+setLessgreater3k);\r\n \r\n \r\n\r\n\t\tTreeMap<String,Integer> Usermap = new TreeMap<String,Integer>();\r\n\t\t\r\n\t\tUsermap.put( \"A\",2000);\r\n\t\tUsermap.put( \"F\",8000);\r\n\t\tUsermap.put( \"G\",7000);\r\n\t\tUsermap.put( \"C\",3000);\r\n\t\tUsermap.put( \"D\",3000);\r\n\t\tUsermap.put( \"E\",9000);\r\n\t\tUsermap.put( \"B\",8000);\r\n System.out.println(map);\r\n System.out.println(\"max\"+Usermap.lastKey());\r\n System.out.println(\"min\"+Usermap.firstKey());\r\n \r\n\r\n \r\n \r\n\t}",
"io.dstore.values.IntegerValue getKeepPropertiesHistoryInHours();",
"public int getExtraTimeGiven()\r\n {\r\n return extraTimeGiven;\r\n }",
"public HashMap<String,LinkedList<Node>> getPreCalculatedPaths(){\n\t\treturn preCalculatedPaths;\n\t}",
"public double getRotRms() {\n\t\treturn 3600.0 * Math.sqrt(1000.0 * rotInt / (double) (updateTimeStamp - startTime));\n\t}",
"List<IKeyframe> getKeyframes();",
"final public synchronized SnmpTimeticks getTimeTicks() {\n if (uptimeCache == null)\n uptimeCache = new SnmpTimeticks((int)sysUpTime) ;\n return uptimeCache ;\n }",
"private void setShiftValues(YFCElement calenderInEle) throws ParseException {\n\t\tString startTime=timeFormatter(calenderInEle.getAttribute(XMLLiterals.SHIFT_START_TIME));\n\t\tString endTime=timeFormatter(calenderInEle.getAttribute(XMLLiterals.SHIFT_END_TIME));\n\t\tString hashKey=startTime+\"-\"+endTime;\n\t\tif(!map.containsKey(hashKey))\n\t\t{\n\t\t\tmap.put(hashKey, hashKey);\n\t\t}\n\t}",
"private static double[] findClosestFruit(Packman p, HashMap<Integer, Fruit> hashLeftFruits) {\n\tHashMap<Double, Integer> hashTimePc2FruitID = new HashMap<>();\n\t for (Entry<Integer, Fruit> subSet: hashLeftFruits.entrySet()) \n\t {\n\t\t final Integer idFruit = subSet.getKey();\n\t\t final Fruit fruit = subSet.getValue();\n\t\t \n\t\t\tdouble timeP2F=distanceInTimeP2F(p, fruit);\n\t\t\thashTimePc2FruitID.put(timeP2F, fruit.GetId());\n\t }\n\t double theShortsTime=Double.MAX_VALUE;//arrTimeOfPc.get(0);\n\t int idFruit=-1;\n\t //for(int nextTime=1; nextTime<arrTimeOfPc.size(); nextTime++) \n\t for (Entry<Double, Integer> subSet: hashTimePc2FruitID.entrySet()) \n\t\t {\n\t\t final Double time = subSet.getKey();\n\t\t \n\t\t if(time<theShortsTime) \n\t\t {\n\t\t\t theShortsTime=time;\n\t\t\t idFruit = subSet.getValue();\n\t\t }\n\t\t \n\t }\n\t double[] pathData= {(int)p.GetId(), (int)idFruit, theShortsTime};\n\t \n\t return pathData;\n\t}",
"private void setBeginAndEnd() {\n for (int i=1;i<keyframes.size();i++){\n if (curTime <= ((PointInTime)keyframes.get(i)).time){\n beginPointTime=(PointInTime)keyframes.get(i-1);\n endPointTime=(PointInTime)keyframes.get(i);\n return;\n }\n }\n beginPointTime=(PointInTime)keyframes.get(0);\n if (keyframes.size()==1)\n endPointTime=beginPointTime;\n else\n endPointTime=(PointInTime)keyframes.get(1);\n curTime=((PointInTime)keyframes.get(0)).time;\n }",
"public int findMinDifference(List<String> timePoints) {\n List<Integer> p = new ArrayList<>();\n for(String time:timePoints){\n String[] hm = time.split(\":\");\n int h = Integer.parseInt(hm[0]);\n int m = Integer.parseInt(hm[1]);\n p.add(h*60 + m);\n if(h<12){\n p.add((h+24)*60+m);\n }\n }\n int diff = Integer.MAX_VALUE;\n Collections.sort(p);\n for(int i=1; i<p.size(); i++){\n diff = Math.min(p.get(i)-p.get(i-1), diff);\n }\n return diff;\n }",
"hr.client.appuser.CouponCenter.TimeRange getExchangeTime();",
"public List<Double> getActualActionTime() {\n if(actionIndex==0&&cumTime==0){\n if(actualActionTime==null){\n actualActionTime=new ArrayList<>();\n }\n else{\n actualActionTime.clear();\n }\n for(double t: actionTime){\n if(t==-1){\n actualActionTime.add(Math.random());\n }\n else{\n actualActionTime.add(t);\n }\n }\n }\n return actualActionTime;\n }",
"public int getTimeToAtk() {\r\n return timeToAtk;\r\n }",
"public TimeBounds getTimeBounds() {\n\t\t// Only here to ensure it is being used correctly.\n\t\t// cbit.util.Assertion.assertNotNull(fieldTimeBounds);\n\t\treturn fieldTimeBounds;\n\t}",
"public int getTT()\n {\n return toTime;\n }",
"public Comparator<PoiPoint> getPointStartTimeComparator() {\r\n \r\n class PointStartTimeComparator implements Comparator<PoiPoint> {\r\n public int compare(PoiPoint point1, PoiPoint point2) {\r\n return (point1.getStartTimeInt() - point2.getStartTimeInt());\r\n }\r\n }\r\n \r\n return new PointStartTimeComparator();\r\n }",
"@Override\n public int getTimeForNextTicInSeconds() {\n int seconds = Calendar.getInstance().get(Calendar.SECOND);\n return 60 - seconds;\n }",
"KeyGroupRange getKeyGroupRange();",
"public double getTimeOffset(double tick) {\n // find the index of the tempo event preceding the tick\n int idx = -1;\n for (int i = mappedTempoEvents.size() - 1; i >= 0; i--) {\n if (mappedTempoEvents.get(i).getTickPos() <= tick) {\n idx = i;\n break;\n }\n }\n if (idx == -1) {\n //oops, should never happen\n throw new IllegalArgumentException(\"internal error: tick is not within this time-map\");\n }\n TempoEvent tempoEvent = mappedTempoEvents.get(idx);\n if (tempoEvent.getTickPos() > startTick) {\n double tickDistance = tick - tempoEvent.getTickPos();\n double timeDistance = timeStretch * tempoEvent.toSeconds(tickDistance);\n double timeOffset = timePositions.get(idx) + timeDistance;\n return timeOffset;\n } else {\n //in this case above calculation should yield a correct result but we can do simpler:\n double tickDistance = tick - startTick;\n double timeOffset = timeStretch * tempoEvent.toSeconds(tickDistance);\n return timeOffset;\n }\n\n }",
"public String getLowestChromKey();",
"@Override\n public byte[] getKey() {\n return MetricUtils.concat2(clusterName, topologyName, getTime().getTime()).getBytes();\n\n }",
"public double timeAllPath(Packman p)\r\n\t{\r\n\t\tdouble sum = 0;\r\n\t\tfor(int i = 0 ; i < FruitList.size() ; i++)\r\n\t\t{\r\n\t\t\tsum+=time(p , FruitList.get(i).location);\r\n\t\t}\r\n\t\treturn sum;\r\n\t}",
"public Long[] allKeys() {\n\t\tLong[] result = new Long[super.getSize()];\n int ctr = 0;\n for(Entry<C> each : sequence) {\n result[ctr] = each.getKey();\n ctr++;\n }\n insertionSort(result);\n return result;\n }",
"public double getTime(int timePt);",
"private long minKey() {\n if (left.size == 0) return key;\n // make key 'absolute' (i.e. relative to the parent of this):\n return left.minKey() + this.key;\n }",
"public double getRelativePrecision ()\n {\n return relativePrecision;\n\n }",
"public Double getValue(double s, double t)\n {\n\n Map.Entry<Double, TreeMap<Double, Double>> sMinEntry = this.map.floorEntry(s);\n if (sMinEntry == null && this.wrapS)\n sMinEntry = this.map.lastEntry(); // wrap\n else if (sMinEntry == null)\n return null;\n\n Map.Entry<Double, Double> sMintMinEntry = sMinEntry.getValue().floorEntry(t);\n if (sMintMinEntry == null && this.wrapT)\n sMintMinEntry = sMinEntry.getValue().lastEntry(); // wrap\n else if (sMintMinEntry == null)\n return null;\n\n Map.Entry<Double, Double> sMintMaxEntry = sMinEntry.getValue().ceilingEntry(t);\n if (sMintMaxEntry == null && this.wrapT)\n sMintMaxEntry = sMinEntry.getValue().firstEntry(); // wrap\n else if (sMintMaxEntry == null)\n return null;\n\n Map.Entry<Double, TreeMap<Double, Double>> sMaxEntry = this.map.ceilingEntry(s);\n if (sMaxEntry == null && this.wrapS)\n sMaxEntry = this.map.firstEntry(); // wrap\n else if (sMaxEntry == null)\n return null;\n\n Map.Entry<Double, Double> sMaxtMinEntry = sMaxEntry.getValue().floorEntry(t);\n if (sMaxtMinEntry == null && this.wrapT)\n sMaxtMinEntry = sMaxEntry.getValue().lastEntry(); // wrap\n else if (sMaxtMinEntry == null)\n return null;\n\n Map.Entry<Double, Double> sMaxtMaxEntry = sMaxEntry.getValue().ceilingEntry(t);\n if (sMaxtMaxEntry == null && this.wrapT)\n sMaxtMaxEntry = sMaxEntry.getValue().firstEntry();\n else if (sMaxtMaxEntry == null)\n return null;\n\n double r00 = sMintMinEntry.getValue();\n double r10 = sMaxtMinEntry.getValue();\n double r01 = sMintMaxEntry.getValue();\n double r11 = sMaxtMaxEntry.getValue();\n\n double s0 = sMinEntry.getKey();\n double s1 = sMaxEntry.getKey();\n\n double t0 = sMintMinEntry.getKey();\n double t1 = sMaxtMaxEntry.getKey();\n\n double as = (s1 - s0) != 0 ? (s - s0) / (s1 - s0) : 0;\n double rs0 = as * r10 + (1 - as) * r00;\n double rs1 = as * r11 + (1 - as) * r01;\n\n double at = (t1 - t0) != 0 ? (t - t0) / (t1 - t0) : 0;\n double r = at * rs1 + (1 - at) * rs0;\n\n return r;\n }",
"BigInteger getResponse_time();",
"public abstract double calculateStartTime();",
"public List<KsmKeyLocationInfo> getKeyLocations() {\n return keyLocations;\n }",
"private int normalizeTime() {\n int currentTimeSeconds = (int) (System.currentTimeMillis() / 1000);\n\n // The graphing interval in minutes\n // TODO not hardcoded :3\n int interval = 30;\n\n // calculate the devisor denominator\n int denom = interval * 60;\n\n return (int) Math.round((currentTimeSeconds - (denom / 2d)) / denom) * denom;\n }",
"private void normalGmtStringToMinutes() {\n int i = Integer.parseInt(gmtString.substring(4, 6));\n offsetMinutes = i * 60;\n i = Integer.parseInt(gmtString.substring(7));\n offsetMinutes += i;\n if (gmtString.charAt(3) == MINUS) {\n offsetMinutes *= -1;\n }\n }",
"public Double getTemplatesMap(final DatacenterBroker broker) {\n return templatesMap.get(broker).getPricePerHour();\n }",
"public SoftHashMap<Integer,TimeEntry> getTimeEntries(SpentOn spentOn)\n throws RedmineException\n {\n return getTimeEntries(ID_ANY,ID_ANY,ownUserId,spentOn);\n }"
] |
[
"0.5775631",
"0.5693436",
"0.55240726",
"0.542278",
"0.5323234",
"0.5150874",
"0.5083482",
"0.50235814",
"0.50001353",
"0.4993451",
"0.4990649",
"0.4982708",
"0.4942717",
"0.4938043",
"0.49022484",
"0.48684406",
"0.484757",
"0.48034826",
"0.47763002",
"0.4769006",
"0.4766995",
"0.47463286",
"0.47052354",
"0.4689075",
"0.4665797",
"0.4654342",
"0.4643506",
"0.46160087",
"0.46095744",
"0.46077394",
"0.46052554",
"0.45754418",
"0.45720175",
"0.4571695",
"0.45571175",
"0.45523623",
"0.45273274",
"0.45215917",
"0.44850606",
"0.4483871",
"0.4477916",
"0.44631195",
"0.4455741",
"0.44464397",
"0.44370744",
"0.44276604",
"0.44208407",
"0.44202617",
"0.4416388",
"0.44119942",
"0.44081506",
"0.4405766",
"0.4391951",
"0.4391821",
"0.43905306",
"0.4375785",
"0.43756834",
"0.43648735",
"0.4364134",
"0.43620944",
"0.43592092",
"0.43580842",
"0.43374836",
"0.43344995",
"0.43292534",
"0.43194452",
"0.43172067",
"0.43164912",
"0.43077844",
"0.42925626",
"0.42920744",
"0.429095",
"0.42847186",
"0.428354",
"0.42832762",
"0.42816225",
"0.42796895",
"0.42767686",
"0.42764297",
"0.4275148",
"0.427389",
"0.42710322",
"0.42705068",
"0.4270409",
"0.42665842",
"0.42634267",
"0.42631018",
"0.42586386",
"0.42531097",
"0.42528912",
"0.42516214",
"0.4248358",
"0.42444175",
"0.42441192",
"0.42431968",
"0.42352754",
"0.42324936",
"0.42309317",
"0.42306837",
"0.42292157"
] |
0.70693904
|
0
|
parse the values and stores them
|
private void parse(String _content){
String[] segmts = _content.split("\\s+");
relKeyTimes = new double[segmts.length + 2];
for(int i = 0; i < segmts.length; i++){
try{
if(timingIsAbsolute){
relKeyTimes[i + 1] = (float)(new CMsgTime(segmts[i])).getTotalMillis();
} else {
relKeyTimes[i + 1] = Float.parseFloat(segmts[i]);
}
} catch (NumberFormatException e){;
} catch (ScriptMsgException e){;}
}
// make sure the last keyTime is a perfect 1.0:
relKeyTimes[0] = 0.0f;
relKeyTimes[relKeyTimes.length - 1] = 1.0f;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void parseValues() {\n final Element table = this.doc.select(\"table\").get(0);\n final Elements rows = table.select(\"tr\");\n for (int ind = 1; ind < rows.size(); ind += 1) {\n String label = rows.get(ind).select(\"td\").get(0).select(\"code\").get(0).text();\n label = label.substring(label.lastIndexOf('.') + 1);\n final String value = rows.get(ind).select(\"td\").get(1).text();\n this.values.put(label, value);\n }\n }",
"private void parseData() {\n\t\t\r\n\t}",
"public void getValues(){\n\t\tfor (ArrayList<String> arrayNums : values){\n\t\t\tString tempAddress = arrayNums.get(0);\n\t\t\tif (ipAddress.toString().equals(tempAddress.toString())){\n\t\t\t\tString numTime = arrayNums.get(1);\n\t\t\t\tDouble doubleTime = Double.parseDouble(numTime);\n\t\t\t\ttime.add(doubleTime);\n\t\t\t\tString numBytes = arrayNums.get(2);\n\t\t\t\tDouble doubleBytes = Double.parseDouble(numBytes);\n\t\t\t\tpackets.add(doubleBytes);\n\t\t\t}\n\t\t}\n\t\treturn;\n\n\t\t\t\n\t}",
"public void parse(){\r\n\t\t//StringTokenizer st = new StringTokenizer(nmeaSentence,\",\");\r\n\t\tst = new StringTokenizer(nmeaSentence,\",\");\r\n\t\tString sv = \"\";\r\n\r\n\t\ttry{\r\n\t\t\tnmeaHeader = st.nextToken();//Global Positioning System Fix Data\r\n\t\t\tmode = st.nextToken();\r\n\t\t\tmodeValue = Integer.parseInt(st.nextToken());\r\n\r\n\t\t\tfor(int i=0;i<=11;i++){\r\n\t\t\t\tsv = st.nextToken();\r\n\t\t\t\tif(sv.length() > 0){\r\n\t\t\t\t\tSV[i] = Integer.parseInt(sv);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSV[i] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tPDOP = Float.parseFloat(st.nextToken());\r\n\t\t\tHDOP = Float.parseFloat(st.nextToken());\r\n\t\t\tVDOP = Float.parseFloat(st.nextToken());\r\n\r\n\t\t}catch(NoSuchElementException e){\r\n\t\t\t//Empty\r\n\t\t}catch(NumberFormatException e2){\r\n\t\t\t//Empty\r\n\t\t}\r\n\r\n\t}",
"public abstract void parseValue(String value);",
"public void readValues() {\n\t\tfor (int i = 0; i < 7; i++) {\n\t\t\tfor (int j = 0; j < 7; j++) {\n\t\t\t\tarray.setElement(i, j, Integer.parseInt(lblCenter[i][j].getText()));\n\t\t\t}\n\t\t\tleftCol.setElement(i, Integer.parseInt(tfWest[i].getText()));\n\t\t\tbottomRow.setElement(i, Integer.parseInt(tfSouth[i].getText()));\n\t\t}\n\t}",
"private static Map<String, String> parseInstanceValues(String data) {\r\n \t\tMap<String, String> responseMap = new HashMap<String, String>();\r\n \t\tif (data != null) {\r\n \t\t\tStringTokenizer strTok = new StringTokenizer(data, \",\\n\");\r\n \t\t\twhile (strTok.hasMoreTokens()) {\r\n \t\t\t\tString key = strTok.nextToken();\r\n \t\t\t\tString val = strTok.nextToken();\r\n \t\t\t\tString oldVal = responseMap.get(key);\r\n \t\t\t\tif (oldVal != null) {\r\n \t\t\t\t\tif (val != null) {\r\n \t\t\t\t\t\tif (oldVal.trim().length() < val.trim().length()) {\r\n \t\t\t\t\t\t\tresponseMap.put(key, val);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponseMap.put(key, val);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn responseMap;\r\n \t}",
"private void valuesToArray() {\n arrayValues = new int[Board.ROWS][Board.COLUMNS];\n StringTokenizer tokenizer = new StringTokenizer(boardValuesString, \",\");\n\n for (int i = 0; i < Board.ROWS; i++) {\n for (int j = 0; j < Board.COLUMNS; j++) {\n // skip the * at the beginning for user placed values.\n String cellValueString = tokenizer.nextToken();\n int cellValue;\n if (!cellValueString.contains(BoardSaver.CELL_USER_VALUE_INDICATOR)) {\n cellValue = Integer.parseInt(cellValueString);\n } else {\n cellValue = Integer.parseInt(cellValueString.substring(1));\n }\n arrayValues[i][j] = cellValue;\n }\n }\n }",
"private void getSavedValues() {\r\n\r\n if (this.pl_expert.getParam(\"displayNodeDegree\") != null) {\r\n this.display_node_degree_current = this.pl_expert.getParam(\"displayNodeDegree\");\r\n } else {\r\n this.display_node_degree_current = display_node_degree_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"displayEdges\") != null) {\r\n this.display_edges_current = this.pl_expert.getParam(\"displayEdges\");\r\n } else {\r\n this.display_edges_current = display_edges_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"scale\") != null) {\r\n this.scale_current = this.pl_expert.getParam(\"scale\");\r\n } else {\r\n this.scale_current = scale_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"minWeight\") != null) {\r\n this.minweight_edges_current = this.pl_expert.getParam(\"minWeight\");\r\n } else {\r\n this.minweight_edges_current = minweight_edges_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"iterations\") != null) {\r\n this.iterations_current = this.pl_expert.getParam(\"iterations\");\r\n } else {\r\n this.iterations_current = iterations_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"vote_value\") != null) {\r\n this.vote_value_current = this.pl_expert.getParam(\"vote_value\");\r\n } else {\r\n this.vote_value_current = vote_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"keep_value\") != null) {\r\n this.keepclass_value_current = this.pl_expert.getParam(\"keep_value\");\r\n } else {\r\n this.keepclass_value_current = keepclass_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"mut_value\") != null) {\r\n this.mut_value_current = this.pl_expert.getParam(\"mut_value\");\r\n } else {\r\n this.mut_value_current = mut_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"mutationParameter\") != null) {\r\n this.mut_option_current = this.pl_expert.getParam(\"mutationParameter\");\r\n } else {\r\n this.mut_option_current = mut_option_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"Update_param\") != null) {\r\n this.update_param_current = this.pl_expert.getParam(\"Update_param\");\r\n } else {\r\n this.update_param_current = update_param_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"Alg_param\") != null) {\r\n this.alg_param_current = this.pl_expert.getParam(\"Alg_param\");\r\n } else {\r\n this.alg_param_current = alg_param_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"only_sub\") != null) {\r\n this.display_sub_current = new Boolean(this.pl_expert.getParam(\"only_sub\")).booleanValue();\r\n } else {\r\n this.display_sub_current = display_sub_default;\r\n }\r\n\r\n this.is_alg_started = false;\r\n }",
"public void getValues(){\r\n //Get Values \r\n int k=0;\r\n String[] var;\r\n String evar;\r\n \r\n for (int i=0; i<linkVector.size(); i++){\r\n var= (String[]) linkVector.elementAt(i);\r\n evar=var[1];\r\n try { \r\n varContextField= varContextFields[linkIndex[k]]; \r\n switch (linkType[k++]){\r\n case DOUBLE: varContextField.setDouble(varContextObject,getDouble(evar)); break;\r\n case ARRAYDOUBLE: varContextField.set(varContextObject,getDoubleArray(evar)); break;\r\n case ARRAYDOUBLE2D: varContextField.set(varContextObject,getDoubleArray2D(evar)); break;\r\n case STRING: varContextField.set(varContextObject,getString(evar)); break; \r\n }\r\n \r\n } catch (java.lang.IllegalAccessException e) {\r\n System.out.println(\"Error Step: getting a value \" + e);\r\n } \r\n } \r\n }",
"public void splitter(String values) {\n\n\t\tfor(int i=0; i < values.length(); i++) {\n\t\t\tnewString += values.charAt(i);\n\n\t\t\tif(semi == values.charAt(i)) {\n\t\t\t\tnewString = newString.replaceAll(\";\", \"\");\n\t\t\t\tnewString = newString.replaceAll(\"\\n\", \"\");\n\t\t\t\tsplittedString.add(newString);\n\t\t\t\tnewString = \"\";\n\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0; i < splittedString.size()-1; i++) {\n\t\t\tsection = splittedString.get(i);\n\t\t\tString[] dev = section.split(\",\");\n\t\t\tboolean validValues = true;\n\t\t\tfor(int x1 = 0; x1 < dev.length; x1+=3) {\n\t\t\t\tString xx1 = dev[x1];\n\t\t\t\tif(isInteger(xx1) && validValues) {\n\t\t\t\t\tx.add(Integer.parseInt(xx1));\n\t\t\t\t} else {\n\t\t\t\t\tvalidValues = false;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tfor(int y1= 1; y1 <dev.length; y1+=3) {\n\t\t\t\tString yy1 = dev[y1];\n\t\t\t\tif(isInteger(yy1) && validValues) {\n\t\t\t\t\ty.add(Integer.parseInt(yy1));\n\t\t\t\t} else {\n\t\t\t\t\tvalidValues = false;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tfor(int z1= 2; z1 <dev.length; z1+=3) {\n\t\t\t\tString zz1 = dev[z1];\n\t\t\t\tif(isInteger(zz1) && validValues) {\n\t\t\t\t\tz.add(Integer.parseInt(zz1));\n\t\t\t\t} else {\n\t\t\t\t\tvalidValues = false;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}",
"protected void parseValues(File file){\r\n\t\ttry {\r\n\t\t\tScanner scanner = new Scanner(file);\r\n\t\t\tString line;\r\n\t\t\tif(scanner.hasNext()) \r\n\t\t\t\tline = scanner.nextLine();\r\n\t\t\twhile (scanner.hasNextLine()) {\r\n\t\t\t\tline = scanner.nextLine();\r\n\t\t\t\taddToSupplyValues(line);\r\n\t\t\t}\r\n\t\t\tscanner.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void processConfig(String[] values){\n int size = values.length;\n configFields = new long[size];\n for(int i = 1; i < size; i++){\n try {\n configFields[i] = Long.parseLong(values[i], 16);\n }catch(Exception e){\n //bad string, ignoring\n configFields[i] = 0;\n }\n }\n }",
"private void populateUserPlacedValues() {\n userPlacedValues = new ArrayList<>();\n StringTokenizer tokenizer = new StringTokenizer(boardValuesString, \",\");\n\n int cellIndex = 0;\n while (tokenizer.hasMoreTokens()) {\n String cellValueString = tokenizer.nextToken();\n if (cellValueString.indexOf('*') != -1) {\n userPlacedValues.add(cellIndex);\n }\n cellIndex++;\n }\n }",
"public void parse() {\n if (commandSeparate.length == 1) {\n parseTaskType();\n } else if (commandSeparate.length == 2) {\n parseTaskType();\n index = commandSeparate[1];\n taskName = commandSeparate[1];\n } else {\n parseTaskType();\n parseTaskName();\n parseTaskDate();\n }\n }",
"private void parseAndPopulate(String in) {\r\n\t\tIParser parser = new AbbyyOCRDataParser(in);\r\n\t\tocrData = parser.parse();\r\n\t\tStore.addData(ocrData);\r\n\t\t\r\n\t\tEditText np = (EditText)findViewById(R.id.patient_et);\r\n\t\tEditText nm = (EditText)findViewById(R.id.medicine_et);\r\n\t\tEditText cd = (EditText)findViewById(R.id.consumption_et);\r\n\t\t\r\n\t\tPatient2Medicine p2m = ocrData.getPatient2Medicine();\r\n\t\tnp.setText(ocrData.getPatient().getName());\r\n\t\tnm.setText(ocrData.getMedicine().getMedicine());\r\n\t\tcd.setText(p2m.getFrequencyOfIntake()\r\n\t\t\t\t+ \" \" + p2m.getQuantityPerIntake() + \" by \" + p2m.getMode());\r\n\t\t\r\n\t}",
"public void parse() {\n }",
"private void pencilValuesToArrayList() {\n userPlacedPencilValuesIndex = new ArrayList<>();\n StringTokenizer tokenizer = new StringTokenizer(pencilValuesString, BoardSaver.PENCIL_VALUES_CELL_DELIMITER);\n\n while (tokenizer.hasMoreTokens()) {\n String cellPossibilitiesList = tokenizer.nextToken();\n\n StringTokenizer tokenizer2 = new StringTokenizer(cellPossibilitiesList, \",\");\n ArrayList<Integer> values = new ArrayList<>();\n\n while (tokenizer2.hasMoreTokens()) {\n String possibilityValue = tokenizer2.nextToken();\n if (!possibilityValue.equals(\" \")) {\n values.add(Integer.valueOf(possibilityValue));\n }\n }\n\n userPlacedPencilValuesIndex.add(values);\n }\n }",
"protected Object parseValue (String value)\n throws Exception\n {\n return value;\n }",
"protected void parseTermData()\n {\n for (int i = 0; i < data.length; i++)\n {\n data[i] = Cdata[i];\n }\n }",
"private void parseAxis() {\n\t\tparseCategoryAxis();\n\t\tparseDateAxis();\n\t\tparseValueAxis();\n\t}",
"private void collectValuesForSettings() {\n portColumnsValue = (portColumns.getProgress());\n portRowsValue = (portRows.getProgress());\n landColumnsValue = (landColumns.getProgress());\n landRowsValue = (landRows.getProgress());\n }",
"private void populateFields() {\n\n if (mReportCursor == null) {\n return;\n }\n\n Cursor c = mReportCursor;\n mValueText.setText(c.getString(c.getColumnIndexOrThrow(ReportPeer.KEY_VALUE)));\n }",
"@Override\n public void parse(String var, Object val)\n {\n super.parse(var, val);\n try\n {\n switch (var.toLowerCase())\n {\n case \"job_id\":\n job_id = (String)val;\n break;\n case \"date_scheduled\":\n date_scheduled = Long.parseLong(String.valueOf(val));\n break;\n case \"date_assigned\":\n date_assigned = Long.parseLong(String.valueOf(val));\n break;\n case \"date_started\":\n date_started = Long.parseLong(String.valueOf(val));\n break;\n case \"date_completed\":\n date_completed = Long.parseLong(String.valueOf(val));\n break;\n case \"description\":\n description = (String)val;\n break;\n case \"location\":\n location = (String)val;\n break;\n default:\n IO.log(getClass().getName(), IO.TAG_ERROR, \"unknown \"+getClass().getName()+\" attribute '\" + var + \"'.\");\n break;\n }\n } catch (NumberFormatException e)\n {\n IO.log(getClass().getName(), IO.TAG_ERROR, e.getMessage());\n }\n }",
"Values values();",
"public DataValue parse(String value) {\r\n \tthrow new RuntimeException(\"no implementation\");\r\n }",
"protected abstract T parseMap(Map<String, Object> values);",
"private void initValues() {\n \n }",
"private void updateValues(){\n if (mCelsian != null) {\n mCelsian.readMplTemp();\n mCelsian.readShtTemp();\n mCelsian.readRh();\n mCelsian.readPres();\n mCelsian.readUvaValue();\n mCelsian.readUvbValue();\n mCelsian.readUvdValue();\n mCelsian.readUvcomp1Value();\n mCelsian.readUvcomp2Value();\n }\n }",
"@Override\n\t\tpublic abstract T[] parse(Object valueToParse, Type componentType);",
"private static void value(ArrayList<tok> pHolder, ArrayList<tok> xmlList) {\n\t\t\r\n\t\tif(pHolder.get(index).getType() == Token_Type.TOK_APOSTROPHE){\r\n\t\t\tindex++;\r\n\t\t\tif(pHolder.get(index).getType() == Token_Type.TOK_ID){\r\n\t\t\t\tindex++;\r\n\t\t\t\tif(pHolder.get(index).getType() == Token_Type.TOK_APOSTROPHE){\r\n\t\t\t\t\tindex++;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse{noError = false;}\r\n\t\t\t}\r\n\t\t\telse{noError = false;}\r\n\t\t}\r\n\t\telse if(pHolder.get(index).getType() == Token_Type.TOK_NUM){\r\n\t\t\tindex++;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse{noError = false;}\r\n\t}",
"public void setValues(){\r\n int k=0;\r\n String[] var;\r\n String evar;\r\n \r\n //Set Values \r\n for (int i=0; i<linkVector.size(); i++){\r\n var= (String[]) linkVector.elementAt(i);\r\n evar=var[1];\r\n try { \r\n varContextField= varContextFields[linkIndex[k]]; \r\n switch (linkType[k++]){\r\n case DOUBLE: setValue(evar,varContextField.getDouble(varContextObject)); break;\r\n case ARRAYDOUBLE: setValue(evar,(double[])varContextField.get(varContextObject)); break;\r\n case ARRAYDOUBLE2D: setValue(evar,(double[][])varContextField.get(varContextObject)); break;\r\n case STRING: setValue(evar,(String)varContextField.get(varContextObject)); break; \r\n }\r\n \r\n } catch (java.lang.IllegalAccessException e) {\r\n System.out.println(\"Error Step: setting a value \" + e);\r\n } \r\n } \r\n }",
"public IValuable parse(String value);",
"private void loadValues()\n {\n OperationSetBasicAutoAnswer opset = providerService\n .getOperationSet(OperationSetBasicAutoAnswer.class);\n OperationSetAdvancedAutoAnswer opSetAdvanced = providerService\n .getOperationSet(OperationSetAdvancedAutoAnswer.class);\n\n if(opset == null)\n return;\n\n noneRadio.setSelected(true);\n alwaysAnswerRadio.setSelected(\n opset.isAutoAnswerUnconditionalSet());\n\n if(opSetAdvanced != null)\n {\n if(opSetAdvanced.isAutoAnswerConditionSet())\n {\n String fName = opSetAdvanced.getAutoAnswerHeaderName();\n String fValue = opSetAdvanced.getAutoAnswerHeaderValue();\n if(AUTO_ALERT_INFO_NAME.equals(fName)\n && AUTO_ALERT_INFO_VALUE.equals(fValue))\n {\n alertInfoValue.setSelected(true);\n }\n else\n {\n customValueRadio.setSelected(true);\n headerNameField.setText(fName);\n\n if(StringUtils.isNotEmpty(fValue))\n headerValueField.setText(fValue);\n }\n\n }\n\n if(StringUtils.isNotEmpty(opSetAdvanced.getCallForward()))\n {\n callFwd.setSelected(true);\n callFwdNumberField.setText(opSetAdvanced.getCallForward());\n }\n }\n\n answerWithVideoCheckBox.setSelected(\n opset.isAutoAnswerWithVideoSet());\n }",
"public void receberValores() {\n Bundle b = getIntent().getExtras();\n if (b != null) {\n cpf3 = b.getString(\"valor2\");\n renda = b.getDouble(\"valor3\");\n data = b.getString(\"valor4\");\n data2 = b.getString(\"valor5\");\n }\n }",
"private void setValues() {\n textViewPrice = findViewById(R.id.textViewPrice);\n textViewStoreName = findViewById(R.id.textViewStoreName);\n textViewLocation = findViewById(R.id.textViewLocation);\n buttonAcceptOrder = findViewById(R.id.buttonAcceptOrder);\n\n order = Parcels.unwrap(getIntent().getParcelableExtra(Order.class.getSimpleName()));\n\n textViewPrice.setText(\"$\" + decimalFormat.format(order.getPrice()));\n textViewStoreName.setText(\"Store: \"+ order.getStore().getName());\n textViewLocation.setText(\"Address: \" + order.getStore().getAddress());\n }",
"private void parseField(String line){\n List<Integer> commaPos = ParserUtils.getCommaPos(line);\n int size = commaPos.size();\n // parse field\n String zip = line.substring(commaPos.get(size-ZIP_CODE_POS-1)+1, commaPos.get(size-ZIP_CODE_POS));\n // if zip is not valid return\n zip = zip.trim();\n if(zip==null || zip.length()<5){\n return;\n }\n // only keep the first 5 digits\n zip = zip.substring(0,5);\n String marketVal = line.substring(commaPos.get(MARKET_VALUE_POS-1)+1, commaPos.get(MARKET_VALUE_POS));\n String liveableArea = line.substring(commaPos.get(size-TOTAL_LIVEABLE_AREA_POS-1)+1, commaPos.get(size-TOTAL_LIVEABLE_AREA_POS));\n // cast those value to Long Double\n Long lZip = ParserUtils.tryCastStrToLong(zip);\n Double DMarketVal = ParserUtils.tryCastStrToDouble(marketVal);\n Double DLiveableArea = ParserUtils.tryCastStrToDouble(liveableArea);\n // update those field into the map\n updatePropertyInfo(lZip,DMarketVal, DLiveableArea);\n }",
"private void limpiarValores(){\n\t\tpcodcia = \"\";\n\t\tcedula = \"\";\n\t\tcoduser = \"\";\n\t\tcluser = \"\";\n\t\tmail = \"\";\n\t\taudit = \"\";\n\t\tnbr = \"\";\n\t\trol = \"\";\n\t}",
"public void parsingAdditionalData() {\n\t\tString AdditionalData = billPayBean.getAdditionalData();\n\t\tswitch (Integer.parseInt(billPayBean.getBillerId())) {\n\t\tcase 91901:\n\t\t\tbillPayBean.setCustomerName(AdditionalData.substring(95,120));\n\t\t\tbillPayBean.setMeterNumber(AdditionalData.substring(7,18));\n\t\t\tbillPayBean.setBillNumber(AdditionalData.substring(18,30));\n\t\t\tbreak;\n\t\tcase 91951:\n\t\t\tbillPayBean.setCustomerName(AdditionalData.substring(47,72));\n\t\t\tbillPayBean.setBillNumber(AdditionalData.substring(0,12));\n\t\t\tbreak;\n\t\tcase 91999:\n\t\t\tbillPayBean.setCustomerName(AdditionalData.substring(66,91));\n\t\t\tbillPayBean.setRegNumber(AdditionalData.substring(0,13));\n\t\t\tbreak;\n\t\tdefault:\n\t\t}\n\t\treturn ;\n\t}",
"private String createValues() {\n String values = getLatitude(\"\");\n if (getLongitude() != FLOATNULL) {\n values = values + \",\" + getLongitude(\"\");\n } // if getLongitude\n if (getDepth() != FLOATNULL) {\n values = values + \",\" + getDepth(\"\");\n } // if getDepth\n if (getTemperatureMin() != FLOATNULL) {\n values = values + \",\" + getTemperatureMin(\"\");\n } // if getTemperatureMin\n if (getTemperatureMax() != FLOATNULL) {\n values = values + \",\" + getTemperatureMax(\"\");\n } // if getTemperatureMax\n if (getSalinityMin() != FLOATNULL) {\n values = values + \",\" + getSalinityMin(\"\");\n } // if getSalinityMin\n if (getSalinityMax() != FLOATNULL) {\n values = values + \",\" + getSalinityMax(\"\");\n } // if getSalinityMax\n if (getOxygenMin() != FLOATNULL) {\n values = values + \",\" + getOxygenMin(\"\");\n } // if getOxygenMin\n if (getOxygenMax() != FLOATNULL) {\n values = values + \",\" + getOxygenMax(\"\");\n } // if getOxygenMax\n if (getNitrateMin() != FLOATNULL) {\n values = values + \",\" + getNitrateMin(\"\");\n } // if getNitrateMin\n if (getNitrateMax() != FLOATNULL) {\n values = values + \",\" + getNitrateMax(\"\");\n } // if getNitrateMax\n if (getPhosphateMin() != FLOATNULL) {\n values = values + \",\" + getPhosphateMin(\"\");\n } // if getPhosphateMin\n if (getPhosphateMax() != FLOATNULL) {\n values = values + \",\" + getPhosphateMax(\"\");\n } // if getPhosphateMax\n if (getSilicateMin() != FLOATNULL) {\n values = values + \",\" + getSilicateMin(\"\");\n } // if getSilicateMin\n if (getSilicateMax() != FLOATNULL) {\n values = values + \",\" + getSilicateMax(\"\");\n } // if getSilicateMax\n if (getChlorophyllMin() != FLOATNULL) {\n values = values + \",\" + getChlorophyllMin(\"\");\n } // if getChlorophyllMin\n if (getChlorophyllMax() != FLOATNULL) {\n values = values + \",\" + getChlorophyllMax(\"\");\n } // if getChlorophyllMax\n if (dbg) System.out.println (\"<br>values = \" + values); // debug\n return values;\n }",
"private void loadAndProcessInput(){\n transactions_set = new ArrayList<>();\n strItemToInt = new HashMap<>();\n intToStrItem = new HashMap<>();\n \n try{\n BufferedReader br = new BufferedReader(\n new InputStreamReader(\n new FileInputStream(this.inputFilePath)\n ));\n \n String line;\n while((line = br.readLine()) != null){\n String[] tokens = line.split(\" \");\n ArrayList<Integer> itemsId = new ArrayList();\n \n for(String item : tokens){\n if( ! strItemToInt.containsKey(item)){\n strItemToInt.put(item, strItemToInt.size()+1);\n intToStrItem.put(strItemToInt.size(), item);\n }\n itemsId.add(strItemToInt.get(item));\n }\n transactions_set.add(itemsId);\n }\n }\n catch(IOException fnfEx){\n System.err.println(\"Input Error\");\n fnfEx.printStackTrace();\n }\n \n }",
"private void get_values(File f1){\n String line;\n Scanner read_file=null;\n try{\n read_file= new Scanner(f1);\n }catch(FileNotFoundException e){\n System.out.println(\"The specified file of the Student cannot be found.\");\n return;\n }\n line=read_file.nextLine();\n while(!(line.contains(\"OOP\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n //System.out.println(line.substring(8));\n OOP[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[2]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[3]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n while(!(line.contains(\"DE\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n DE[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DE[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DE[2]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n while(!(line.contains(\"DSA\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n DSA[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DSA[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DSA[2]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n line=read_file.nextLine();\n total_marks=Float.parseFloat(line.substring(13));\n average=total_marks/10;\n\n read_file.close();\n }",
"public void separateVariables() {\n\t\tsquareVariables = app.split(shapes, \" \");\n\t\t\n\t\t//Going through the array and turning the strings into numbers, for the values of the variables (based on position)\n\t\tfor (int i = 0; i < squareVariables.length; i++) {\n\t\t\tsize = Integer.parseInt(squareVariables[1]);\n\t\t\tposX = Integer.parseInt(squareVariables[2]);\n\t\t\tposY = Integer.parseInt(squareVariables[3]);\n\t\t\tdir1 = Integer.parseInt(squareVariables[4]);\n\t\t\tdir2 = Integer.parseInt(squareVariables[4]);\n\t\t\tvalue = Integer.parseInt(squareVariables[5]);\n\t\t}\n\t}",
"void parse();",
"private Values(){}",
"private Map<String, String> processPostRequest(String content) {\n Map<String, String> store = new HashMap<String, String>();\n\n // Split the post data by &\n for (String entry : content.split(\"&\")) {\n // Split it by =\n String[] data = entry.split(\"=\");\n\n // Check that there is sufficient data in the data array\n if (data.length != 2) {\n continue;\n }\n\n // decode the data\n String key = URLUtils.decode(data[0]);\n String value = URLUtils.decode(data[1]);\n\n // Add it to the store\n store.put(key, value);\n }\n\n return store;\n }",
"public static DataValue parseValue(String value) {\r\n \tif(value == null) {\r\n \t\tthrow new IllegalArgumentException(\"null value\");\r\n \t}\r\n \t\r\n \tint i = value.indexOf(\",\");\r\n \tif(i < 0 || i == value.length()) {\r\n \t\tthrow new IllegalArgumentException(\"wrong string format\");\r\n \t}\r\n \t\r\n \tString rmName = value.substring(0, i);\r\n \tDataValue dv = dataValueMap.get(rmName);\r\n \t\r\n \tif(dv == null) {\r\n \t\tthrow new IllegalArgumentException(\"unsupported RM class[\" + rmName + \"]\");\r\n \t}\r\n \t\r\n \tString v = value.substring(i + 1).trim(); \t\r\n \treturn dv.parse(v);\r\n }",
"public void populateParameterValues() {\n // Query for process step parameter values\n Map<String, Object> paramValBindVars = new HashMap<String, Object>();\n paramValBindVars.put(\"processStepId\", processStepId);\n List<Row> paramValues = DataHelper.queryVO(ProcessController.ENGINE_AM_CONFIG, ProcessController.ENGINE_AM_NAME, PROC_STEP_PARAM_VAL_EXEC_VO_INSTANCE_NAME, PROC_STEP_PARAM_VALUE_VC, paramValBindVars);\n\n // Populate each parameter value with a mapping or a constant value\n for (Row paramValue : paramValues) {\n if ( paramValue.getAttribute(\"ProcessStepParameterCode\")!= null ) {\n String paramCode = (String) paramValue.getAttribute(\"ProcessStepParameterCode\");\n //String paramTypeCode = (String) paramValue.getAttribute(\"ProcessStepParameterTypeCode\");\n String mapping = (String) paramValue.getAttribute(\"ProcessParameterCode\");\n //String procParamTypeCode = (String) paramValue.getAttribute(\"ProcessParameterTypeCode\");\n\n // if parameter is mapped to a constant, then assume its value exists in one of the four data type\n // fields, even though the parameter's data type is unknown\n Object paramVal = null;\n if ( mapping==null ) {\n paramVal = (String) paramValue.getAttribute(\"ParameterValueString\");\n if ( paramVal==null ) {\n paramVal = (BigDecimal) paramValue.getAttribute(\"ParameterValueNumber\");\n if ( paramVal==null ) {\n paramVal = (Date) paramValue.getAttribute(\"ParameterValueDate\");\n if ( paramVal==null ) {\n paramVal = (Timestamp) paramValue.getAttribute(\"ParameterValueTimestamp\");\n if ( paramVal==null ) {\n String val = (String) (paramValue.getAttribute(\"ParameterValueString\"));\n paramVal = new Boolean(val.toLowerCase());\n }\n }\n }\n }\n }\n\n parameterValues.put(paramCode, new ParameterValue(mapping, paramVal));\n }\n }\n }",
"public void parse(final String content){\n\t\t// Datum\n\t\tdate = getDate(content);\n\t\t\n\t\twbc = getWBC(content);\n\t\trbc = getRBC(content);\n\t\thgb = getHGB(content);\n\t\thct = getHCT(content);\n\t\tmcv = getMCV(content);\n\t\tmch = getMCH(content);\n\t\tmchc = getMCHC(content);\n\t\tplt = getPLT(content);\n\t\tlym_percent = getLYMPercent(content);\n\t\tmxd_percent = getMXDPercent(content);\n\t\tneut_percent = getNEUTPercent(content);\n\t\tlym_volume = getLYMVolume(content);\n\t\tmxd_volume = getMXDVolume(content);\n\t\tneut_volume = getNEUTVolume(content);\n\t\trdw_sd = getRDWSD(content);\n\t\trdw_cv = getRDWCV(content);\n\t\tpdw = getPDW(content);\n\t\tmpv = getMPV(content);\n\t\tp_lcr = getPLCR(content);\n\t}",
"public void loadValues() {\r\n\t\tString res = null;\r\n\t\tJSONArray scoreArray;\r\n\t\t// add POST data\r\n\t\tArrayList<NameValuePair> postParameters = new ArrayList<NameValuePair>();\r\n\t\tpostParameters.add(new BasicNameValuePair(\"Judge\", username));\r\n\t\tpostParameters.add(new BasicNameValuePair(\"Jumper\", jumper));\r\n\t\tpostParameters.add(new BasicNameValuePair(\"Event\", event));\r\n\t\t\r\n\t\t// send POST\r\n\t\ttry {\r\n\t\t\tres = HttpWebService.executeHttpPost(\"http://www.bouncetoacure.com/php_files/GetJudgeResults.php\", postParameters);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// parse JSON response\r\n\t\ttry {\r\n\t\t\tscoreArray = new JSONArray(res);\r\n\t\t\tfor (int i = 0; i < scoreArray.length(); i++) {\r\n\t\t\t\tJSONObject jsonObject = scoreArray.getJSONObject(i);\r\n\t\t\t\tif (jsonObject.get(\"Type\").toString().matches(\"jam1\")) {\r\n\t\t\t\t\tsetResults(sb_create1, tv_create1, Integer.valueOf(jsonObject.getString(\"Creativity\").toString()));\r\n\t\t\t\t\tsetResults(sb_diff1, tv_diff1, Integer.valueOf(jsonObject.getString(\"Difficulty\").toString()));\r\n\t\t\t\t\tsetResults(sb_var1, tv_var1, Integer.valueOf(jsonObject.getString(\"Variety\").toString()));\r\n\t\t\t\t\tsetResults(sb_style1, tv_style1, Integer.valueOf(jsonObject.getString(\"Style\").toString()));\r\n\t\t\t\t\tjam1_flag = true;\r\n\t\t\t\t} else if (jsonObject.get(\"Type\").toString().matches(\"solo1\")) {\r\n\t\t\t\t\tsetResults(sb_create2, tv_create2, Integer.valueOf(jsonObject.getString(\"Creativity\").toString()));\r\n\t\t\t\t\tsetResults(sb_diff2, tv_diff2, Integer.valueOf(jsonObject.getString(\"Difficulty\").toString()));\r\n\t\t\t\t\tsetResults(sb_var2, tv_var2, Integer.valueOf(jsonObject.getString(\"Variety\").toString()));\r\n\t\t\t\t\tsetResults(sb_style2, tv_style2, Integer.valueOf(jsonObject.getString(\"Style\").toString()));\r\n\t\t\t\t\trg_landVal2 = Integer.valueOf(jsonObject.getString(\"Landings\"));\r\n\t\t\t\t\tswitch (rg_landVal2) {\r\n\t\t\t\t\t\tcase 0:\r\n\t\t\t\t\t\t\trg_land2.check(R.id.rb3_land2);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 5:\r\n\t\t\t\t\t\t\trg_land2.check(R.id.rb2_land2);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 10:\r\n\t\t\t\t\t\t\trg_land2.check(R.id.rb1_land2);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsolo1_flag = true;\r\n\t\t\t\t} else if (jsonObject.get(\"Type\").toString().matches(\"solo2\")) {\r\n\t\t\t\t\tsetResults(sb_create3, tv_create3, Integer.valueOf(jsonObject.getString(\"Creativity\").toString()));\r\n\t\t\t\t\tsetResults(sb_diff3, tv_diff3, Integer.valueOf(jsonObject.getString(\"Difficulty\").toString()));\r\n\t\t\t\t\tsetResults(sb_var3, tv_var3, Integer.valueOf(jsonObject.getString(\"Variety\").toString()));\r\n\t\t\t\t\tsetResults(sb_style3, tv_style3, Integer.valueOf(jsonObject.getString(\"Style\").toString()));\r\n\t\t\t\t\trg_landVal3 = Integer.valueOf(jsonObject.getString(\"Landings\"));\r\n\t\t\t\t\tswitch (rg_landVal3) {\r\n\t\t\t\t\t\tcase 0:\r\n\t\t\t\t\t\t\trg_land3.check(R.id.rb3_land3);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 5:\r\n\t\t\t\t\t\t\trg_land3.check(R.id.rb2_land3);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 10:\r\n\t\t\t\t\t\t\trg_land3.check(R.id.rb1_land3);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsolo2_flag = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (JSONException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tif (!jam1_flag) {\r\n\t\t\tsetResults(sb_create1, tv_create1, 0);\r\n\t\t\tsetResults(sb_diff1, tv_diff1, 0);\r\n\t\t\tsetResults(sb_var1, tv_var1, 0);\r\n\t\t\tsetResults(sb_style1, tv_style1, 0);\r\n\t\t}\r\n\t\tif (!solo1_flag) {\r\n\t\t\tsetResults(sb_create2, tv_create2, 0);\r\n\t\t\tsetResults(sb_diff2, tv_diff2, 0);\r\n\t\t\tsetResults(sb_var2, tv_var2, 0);\r\n\t\t\tsetResults(sb_style2, tv_style2, 0);\r\n\t\t\trg_land2.check(R.id.rb1_land2);\r\n\t\t\trg_landVal2 = 10;\r\n\t\t}\r\n\t\tif (!solo2_flag) {\r\n\t\t\tsetResults(sb_create3, tv_create3, 0);\r\n\t\t\tsetResults(sb_diff3, tv_diff3, 0);\r\n\t\t\tsetResults(sb_var3, tv_var3, 0);\r\n\t\t\tsetResults(sb_style3, tv_style3, 0);\r\n\t\t\trg_land3.check(R.id.rb1_land3);\r\n\t\t\trg_landVal3 = 10;\r\n\t\t}\r\n\t}",
"private void eatValue() {\n while (position < length) {\n switch (data.charAt(position)) {\n case '\\t': case '\\n': case '\\r': case ' ':\n tokenEnd = position;\n return;\n default:\n position++;\n break;\n }\n }\n tokenEnd = position;\n }",
"public void parseContext(Context context)\n\t{\n\t\tfor (LogDetailParser detailParser : detailParsers)\n\t\t{\n\t\t\tList<StringBuilder> logStrings = context.getValue(detailParser.getContextKey());\n\t\t\tif(logStrings != null)\n\t\t\t{\n\t\t\t\tfor (int i = 0; i < logStrings.size(); i++)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t//convert to model and save to database\n\t\t\t\t\tdetailParser.saveLog2DB(detailParser.parseLog(logStrings.get(i)));\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception ex)\n\t\t\t\t\t{\n//\t\t\t\t\t\tlogger.error(\"logg info is:\" + logStrings.get(i));\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"private void parseData(String data) {\n String[] item = data.split(\";\");\n for(int i = 0; i < item.length; i++) {\n String[] property = item[i].split(\",\");\n MAC_Addresses.add(property[0]);\n }\n }",
"private static HashMap<String, ArrayList<String>> parseKeyValueList(String keySpliter,String valueSpliter,String listSeperator, String strToParse) {\r\n\t\tHashMap<String, ArrayList<String>> key_ValuesList_Map = new HashMap<String, ArrayList<String>>();\r\n\t\tif (listSeperator== null)\r\n\t\t\tlistSeperator=\"\\n\"; // new line\r\n\t\t\t\r\n\t\tif (!strToParse.equals(\"\")) {\r\n\t\t\tString[] strs = strToParse.split(listSeperator);//default listSeperator=\"\\n\" is new line\r\n\r\n\t\t\tArrayList<String> local_values = null;\r\n\t\t\tString criteria = \"\";\r\n\t\t\tfor (String str_tmp : strs) { // str_tmp = enrollment:\r\n\t\t\t\t\t\t\t\t\t\t\t// uma_rob;uma_qa1;\r\n\t\t\t\tString[] strs_tmp = str_tmp.split(keySpliter);//keySpliter=\":\"\r\n\t\t\t\tcriteria = strs_tmp[0].trim();// enrollment or non-enrollment\r\n\t\t\t\tstrs_tmp[1]=strs_tmp[1].trim();\r\n\t\t\t\tif (key_ValuesList_Map.containsKey(criteria)) {\r\n\t\t\t\t\tlocal_values = key_ValuesList_Map.get(criteria);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlocal_values = new ArrayList<String>();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif (Validate.isBlank(valueSpliter)){ // can also be blank, then pass null or \"\"\r\n\t\t\t\t\tlocal_values.add(strs_tmp[1]);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tString[] values_tmp = strs_tmp[1].split(valueSpliter);//valueSpliter=\";\"\r\n\t\t\t\t\tfor (String value : values_tmp) {\r\n\t\t\t\t\t\tlocal_values.add(value.trim());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tkey_ValuesList_Map.put(criteria, local_values);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn key_ValuesList_Map;\r\n\t}",
"public static void parseTemperatureData(List<String> unparsedData) {\n\t\tfor (String data : unparsedData) {\n\t\t\tif (!data.contains(\"TMAX\"))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tString[] tokens = data.split(\",\");\n\t\t\tString stationID = tokens[0];\n\t\t\tDouble temperature = Double.parseDouble(tokens[3]);\n\n\t\t\t//insert data into global map\n\t\t\tprocessTemperatureRecord(stationID, temperature);\n\t\t}\n\n\t}",
"void val_init()\n {\n valstk=new ParserVal[YYSTACKSIZE];\n yyval=new ParserVal();\n yylval=new ParserVal();\n valptr=-1;\n }",
"private void readData() {\n // set the values from the stored data\n // initially these are not set, so we need to query for \"containsKey\"...\n if (isTrue(Variable.MAXTRACKS_ENABLED)) {\n jsMaxTracks.setEnabled(true);\n jcbMaxTracks.setSelected(true);\n } else {\n jsMaxTracks.setEnabled(false);\n jcbMaxTracks.setSelected(false);\n }\n if (data.containsKey(Variable.MAXTRACKS)) {\n jsMaxTracks.setValue((Integer) data.get(Variable.MAXTRACKS));\n }\n if (isTrue(Variable.MAXSIZE_ENABLED)) {\n jsMaxSize.setEnabled(true);\n jcbMaxSize.setSelected(true);\n } else {\n jsMaxSize.setEnabled(false);\n jcbMaxSize.setSelected(false);\n }\n if (data.containsKey(Variable.MAXSIZE)) {\n jsMaxSize.setValue((Integer) data.get(Variable.MAXSIZE));\n }\n if (isTrue(Variable.MAXLENGTH_ENABLED)) {\n jsMaxLength.setEnabled(true);\n jcbMaxLength.setSelected(true);\n } else {\n jsMaxLength.setEnabled(false);\n jcbMaxLength.setSelected(false);\n }\n if (data.containsKey(Variable.MAXLENGTH)) {\n jsMaxLength.setValue((Integer) data.get(Variable.MAXLENGTH));\n }\n if (isTrue(Variable.ONE_MEDIA_ENABLED)) {\n jcbMedia.setEnabled(true);\n jcbOneMedia.setSelected(true);\n jcbConvertMedia.setEnabled(true);\n } else {\n jcbMedia.setEnabled(false);\n jcbOneMedia.setSelected(false);\n jcbConvertMedia.setEnabled(false);\n }\n // Check if pacpl can be used, do it every time the dialog starts as the\n // user might have installed it by now\n boolean bPACPLAvailable = UtilPrepareParty.checkPACPL((String) data\n .get(Variable.CONVERT_COMMAND));\n if (!bPACPLAvailable) {\n // disable media conversion if pacpl is not found\n jcbConvertMedia.setEnabled(false);\n }\n // don't set Convert to on from data if PACPL became unavailable\n if (isTrue(Variable.CONVERT_MEDIA) && bPACPLAvailable) {\n jcbConvertMedia.setSelected(true);\n } else {\n jcbConvertMedia.setSelected(false);\n }\n if (data.containsKey(Variable.ONE_MEDIA)) {\n jcbMedia.setSelectedItem(data.get(Variable.ONE_MEDIA));\n } else {\n // default to MP3 initially\n jcbMedia.setSelectedItem(\"mp3\");\n }\n if (data.containsKey(Variable.RATING_LEVEL)) {\n jsRatingLevel.setValue((Integer) data.get(Variable.RATING_LEVEL));\n }\n if (isTrue(Variable.NORMALIZE_FILENAME)) {\n jcbNormalizeFilename.setSelected(true);\n } else {\n jcbNormalizeFilename.setSelected(false);\n }\n }",
"public boolean parsing (Parsing t) {\n\t\tint posini = t.pos;\n\t\tboolean has_value, has_symbol;\n\t\tint pos, j;\n\t\tdouble val;\n\t\tif (!initialized) init();\t\t// Be sure everyting in place\n\n\t\tt.gobbleSpaces();\t\t\t// Ignore the leading blanks\n\t\tpos = t.pos;\n\n\t\tif (DEBUG>0) System.out.print(\"....parsing(\" + t + \"):\");\n\n\t\t/* Interpret the Value, if any */\n\t\tval = t.parseFactor();\t\t\t// Default value is 1\n\t\tif (DEBUG>0) System.out.print(\" val=\" + val);\n\t\thas_value = t.pos > pos; \t\t// NaN when nothing interpreted\n\n\t\t/* Skip blanks between value and Unit */\n\t\tt.gobbleSpaces();\n\n\t\t/* It may happen that interpreting the Value first generates an error,\n\t for instance 1/4. That means that the number (1) is part of the\n\t unit, and is not the value in front of the unit.\n\t\t */\n\t\tif (t.lookup(op_symb) >= 0) {\n\t\t\thas_value = false;\n\t\t\tt.pos = pos;\n\t\t\tif (DEBUG>0) System.out.print(\"(FALSE!)\");\n\t\t}\n\n\t\t/* Interpret the Unit */\n\t\tpos = t.pos;\t\t\t\t// To keep the Unit symbol\n\t\toffset = 0.;\n\t\tsymbol = null;\n\t\tif (DEBUG>0) System.out.println(\"\\n Interpret '\" + t + \"'\");\n\t\ttry { \n\t\t\thas_symbol = unitec(t, null); \n\t\t\tsymbol = String.copyValueOf(t.a, pos, t.pos-pos);\n\t\t\tObject o = hUnit.get(symbol);\n\t\t\tif (o instanceof String) symbol = (String)o;\n\t\t\tif (has_value & (mksa&_pic) != 0) {\t// A misinterpretation ? Rescan\n\t\t\t\tint pos_end = t.pos;\n\t\t\t\tt.set(posini); t.gobbleSpaces();\n\t\t\t\ttry { t.parseComplex(symbol); t.set(pos_end); }\n\t\t\t\tcatch(Exception e) { \n\t\t\t\t\tt.set(posini); \n\t\t\t\t\treturn(false); \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) { \n\t\t\tif (DEBUG>0) {\n\t\t\t\tSystem.out.println(\"++++unitec catched: \" + e);\n\t\t\t\tMessenger.printStackTrace(e);\n\t\t\t\ttry { Thread.sleep(2000); } catch(Exception i) {;}\n\t\t\t}\n\t\t\thas_symbol = false; \n\t\t\tt.pos = pos;\n\t\t}\n\t\tif (DEBUG>0) System.out.println(\"\\n interpret '\" + t \n\t\t\t\t+ \"', has_value=\" + has_value);\n\n\t\t// Default value in log scale is 0 !\n\t\t// if (no_value && ((mksa&_log) != 0)) value = 0;\n\t\t/* Skip the trailing blanks */\n\n\t\t/* The value may follow the unit -- only for dates and \"special\"\n\t\t * quoted unit\n\t\t */\n\t\tif ((!has_value) && (t.pos < t.length)) {\n\t\t\tpos = t.pos;\n\t\t\t// The symbol may be a \"picture\" e.g. \"YYYY/MMM/DD\"\n\t\t\tif ((!has_symbol) && (t.currentChar() == '\"')) {\n\t\t\t\tif ((j = t.matchingQuote()) > 0) {\n\t\t\t\t\tUdef u; int ip1, ip2;\n\t\t\t\t\tString msg;\n\t\t\t\t\tif (DEBUG>0) System.out.println(\n\t\t\t\t\t\t\t\"....parsing: t.matchingQuote()=\" + j);\n\t\t\t\t\tj -= pos; j++;\t\t// Length including quotes\n\t\t\t\t\tsymbol = t.toString(j);\n\t\t\t\t\tt.advance(j);\n\t\t\t\t\tt.gobbleSpaces();\n\t\t\t\t\tpos = t.pos;\n\t\t\t\t\ttry { val = t.parseComplex(symbol); }\n\t\t\t\t\tcatch(ParseException e) {\t// Mismatch: could be mixed up\n\t\t\t\t\t\tmsg = e.getMessage();\n\t\t\t\t\t\tif (msg.indexOf(\"parseComplex((\")>=0) \t// ERROR in pic\n\t\t\t\t\t\t\tSystem.err.println(e);\n\t\t\t\t\t\tt.set(posini);\n\t\t\t\t\t\treturn(false);\n\t\t\t\t\t}\n\t\t\t\t\tif (t.status() != 0) {\t// Something wrong in 'picture'\n\t\t\t\t\t\tmsg = t.error_message;\n\t\t\t\t\t\tif ((ip1 = msg.indexOf(\" interpreted as (\")) >0) {\n\t\t\t\t\t\t\tip1 = msg.indexOf('(', ip1);\n\t\t\t\t\t\t\tip2 = msg.indexOf(')', ip1);\n\t\t\t\t\t\t\tString correct_symbol = msg.substring(ip1+1, ip2);\n\t\t\t\t\t\t\tif (DEBUG>0) System.out.println(\n\t\t\t\t\t\t\t\t\t\"....parsing: adding Hash \"+symbol\n\t\t\t\t\t\t\t\t\t+\" => \"+correct_symbol);\n\t\t\t\t\t\t\t/* Add the new 'picture' as an alias \n\t\t\t\t\t\t\t * to the correctly spelled one.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\thUnit.put(symbol, correct_symbol);\n\t\t\t\t\t\t\tsymbol = correct_symbol;\n\t\t\t\t\t\t\tt.pos = pos;\n\t\t\t\t\t\t\ttry { val = t.parseComplex(symbol); }\n\t\t\t\t\t\t\tcatch (ParseException pe) {\n\t\t\t\t\t\t\t\tSystem.err.println(pe);\n\t\t\t\t\t\t\t\tMessenger.printStackTrace(pe);\n\t\t\t\t\t\t\t\tt.set(posini);\n\t\t\t\t\t\t\t\treturn(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tSystem.err.println(msg);\n\t\t\t\t\t\t\tt.set(posini);\n\t\t\t\t\t\t\treturn(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\thas_value = true;\n\t\t\t\t\tif (t.isDate()) u = uLookup(\"MJD\");\n\t\t\t\t\telse if (t.isDays()) u = uLookup(\"d\");\n\t\t\t\t\telse if (t.isTime()) u = uLookup(\"\\\"h:m:s\\\"\");\n\t\t\t\t\telse u = uLookup(\"\\\"d:m:s\\\"\");\n\t\t\t\t\t// The quoted symbol is added, to speed up its retrieval\n\t\t\t\t\t// in the next search.\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddSymbol(symbol, u.symb, Parsing.explainComplex(symbol));\n\t\t\t\t\t\tu = uLookup(symbol);\n\t\t\t\t\t\tu.mksa |= _pic;\n\t\t\t\t\t}\n\t\t\t\t\tcatch (ParseException pe) {\n\t\t\t\t\t\tSystem.err.println(pe); \n\t\t\t\t\t\tMessenger.printStackTrace(pe);\n\t\t\t\t\t}\n\t\t\t\t\tmksa = u.mksa;\n\t\t\t\t\tfactor = u.fact;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (has_symbol && (t.pos<t.length)) {\n\t\t\t\tif (DEBUG>0) System.out.println(\"....parsing: symbol=\" + symbol \n\t\t\t\t\t\t+ \", interpret: \" + t);\n\t\t\t\tif (mksa == _MJD) {\t\t// Get Date + Time\n\t\t\t\t\tif (DEBUG>0) System.out.print(\" parsing via Astrotime(\");\n\t\t\t\t\tAstrotime datime = new Astrotime();\n\t\t\t\t\tif (Character.isLetter(symbol.charAt(0)))\n\t\t\t\t\t\tt.set(posini);\t\t// JD or MJD followed by number\n\t\t\t\t\tif (DEBUG>0) System.out.print(t + \") symbol=\" + symbol);\n\t\t\t\t\thas_value = datime.parsing(t);\n\t\t\t\t\tif (has_value) val = datime.getMJD();\n\t\t\t\t\tif (DEBUG>0) {\n\t\t\t\t\t\tSystem.out.println(\" has_value=\" + has_value \n\t\t\t\t\t\t\t\t+ \", MJD=\" + val);\n\t\t\t\t\t\tdatime.dump(\"datime \");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if ((mksa&_pic) != 0) {\t// Interpret complex\n\t\t\t\t\ttry { val = t.parseComplex(symbol); has_value = true; }\n\t\t\t\t\tcatch (Exception e) { t.set(posini); return(false); }\n\t\t\t\t}\n\t\t\t\t//* No other case! else val = t.parseFactor();\n\t\t\t}\n\t\t}\n\n\t\t// Final: Store the results.\n\t\tvalue = has_value ? val : 0./0.;\n\t\tif (has_symbol|has_value) {\n\t\t\treturn(true);\n\t\t}\n\t\tt.pos = posini;\n\t\treturn(false);\t\t\t\t// Nothing found...\n\t}",
"static void parseData(String filename) {\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(filename))) {\n\t\t \n\t\t\tString line;\n\t\t String[] tokens;\n\t\t ArrayList<Double> temp;\n\t\t \n\t\t while ((line = br.readLine()) != null) {\n\t\t \ttemp = new ArrayList<Double>();\n\t\t \ttokens = line.split(\",\");\n\t\t \tfor(String s : tokens) {\n\t\t \t\ttemp.add(Double.parseDouble(s));\n\t\t \t}\n\t\t \tData.add(new Vector(temp));\n\t\t }\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void parseAverages(){\r\n\t\tfor(int i = 1; i < x.size(); i++){\r\n\t\t\tdouble avg = (x.get(i) + x.get(i-1)) / 2;\r\n\t\t\tx.set(i, avg);\r\n\t\t}\r\n\t}",
"public static Vector getListVals( String fsVals, Session foSession )\n {\n Vector loVals = new Vector() ;\n int liValLen = 0 ;\n int liQuoteIndex = -1 ;\n int liCommaIndex = -1 ;\n int liEndQuoteIndex = -1 ;\n String lsValue ;\n String lsTempVal ;\n\n lsValue = fsVals ;\n liValLen = lsValue.length() ;\n\n liQuoteIndex = lsValue.indexOf( '\\\"' ) ;\n liCommaIndex = lsValue.indexOf( ',' ) ;\n\n /*\n * If the string has quotes, then retrieve the individual\n * values within the quotes\n */\n if ( liQuoteIndex != -1 )\n {\n while ( liValLen > 0 )\n {\n liEndQuoteIndex = lsValue.indexOf( '\\\"', liQuoteIndex+1 ) ;\n\n /*\n * Raise an exception if there's no end quote since\n * all values must be properly enclosed in quotes\n */\n if ( liEndQuoteIndex == -1 )\n {\n AMSDataObject.raiseException( \"%c:Q0079%\", foSession ) ;\n return null ;\n } /* end if ( liEndQuoteIndex <= 0 ) */\n\n /* Retrieve the value and add to the vector */\n lsTempVal = lsValue.substring( liQuoteIndex, liEndQuoteIndex+1 ) ;\n loVals.addElement( lsTempVal ) ;\n\n /*\n * Check that there is a comma, between two values. If\n * there is no comma, then throw an exception\n */\n if ( liValLen > liEndQuoteIndex+2 )\n {\n if ( ( lsValue.charAt( liEndQuoteIndex + 1 ) != ',' ) )\n {\n AMSDataObject.raiseException( \"%c:Q0079%\", foSession ) ;\n break ;\n } /* end if ( ( fsVals.charAt( liEndQuoteIndex + 1 ) != ',' ) ) */\n\n /* Create the new string after the comma and reset the length */\n lsValue = lsValue.substring( liEndQuoteIndex+2, liValLen ) ;\n liValLen = lsValue.length() ;\n\n /* Reset the quote index */\n liQuoteIndex = lsValue.indexOf( '\\\"' ) ;\n } /* end if ( liValLen > liEndQuoteIndex+2 ) */\n else\n {\n liValLen = 0 ;\n } /* end else */\n } /* end while */\n } /* end if ( liQuoteIndex != -1 ) */\n else\n {\n /*\n * If the values are numeric then retrieve the comma delimited\n * values and populate the vector\n */\n while ( liValLen > 0 )\n {\n if ( liCommaIndex != -1 )\n {\n lsTempVal = lsValue.substring( 0, liCommaIndex ) ;\n loVals.addElement( lsTempVal ) ;\n\n if ( liValLen > ( liCommaIndex + 1 ) )\n {\n lsValue = lsValue.substring( liCommaIndex+1, liValLen ) ;\n liValLen = lsValue.length() ;\n\n liCommaIndex = lsValue.indexOf( ',' ) ;\n } /* end if ( liValLen > ( liCommaIndex + 1 ) ) */\n } /* end if ( liCommaIndex != -1 ) */\n else\n {\n lsTempVal = lsValue.substring( 0, liValLen ) ;\n loVals.addElement( lsTempVal ) ;\n liValLen = 0 ;\n } /* end else */\n } /* end while */\n } /* end else */\n return loVals ;\n }",
"public void parser(JSONObject jo) {\n\n\t\n\t\tcontractId = JsonUtil.getJsonString(jo, \"contractId\");\n\t\tdate1 = JsonUtil.getJsonString(jo, \"date1\");\n\t\tstartDate = JsonUtil.getJsonString(jo, \"startDate\");\n\t\tendDate = JsonUtil.getJsonString(jo,\"endDate\");\n\t\tsupplierName = JsonUtil.getJsonString(jo,\"supplierName\");\n\t\ttxt7 = JsonUtil.getJsonString(jo,\"txt7\");\n\t\t\n\t\t\n\t\n\t}",
"public void parsePost()\n {\n Hashtable table = new Hashtable();\n try\n {\n\n String[] pairs = Utilities.splitString(content, \"&\");\n for (int i = 0; i < pairs.length; i++)\n {\n String[] pair = Utilities.splitString(pairs[i], \"=\");\n table.put(pair[0], pair[1]);\n }\n Variables.updateTableWithTable(table);\n Variables.save();\n }\n catch (Exception e)\n {\n Utilities.debugLine(\"WebServer.parsePost(): ERROR\" + content, DEBUG);\n }\n Utilities.debugLine(\"WebServer.parsePost(): Variables were \" + content, DEBUG);\n Utilities.debugLine(\"WebServer.parsePost(): HASHTABLE = \" + table.toString(), DEBUG);\n\n }",
"@Override\n public Value[] getValues() throws ValueFormatException, RepositoryException {\n return null;\n }",
"public abstract T parse(Object valueToParse, Type type);",
"public ValuesRequirement(String values){\r\n\t\tsuper();\r\n\t\tString[] splitValues = values.split(\",\");\r\n\t\t_values = new BigDecimal[splitValues.length];\r\n\t\tfor(int i = 0; i < splitValues.length; i++){\r\n\t\t\t_values[i] = new BigDecimal(splitValues[i]);\r\n\t\t}\r\n\t}",
"private static void elementsToSubValuesForStoring( Value value, NodeList list, String type )\n\t{\n\t\tNode node;\n\t\tValue childValue;\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor( int i = 0; i < list.getLength(); i++ ) {\n\t\t\tnode = list.item( i );\n\t\t\tswitch( node.getNodeType() ) {\n\t\t\t\tcase Node.ATTRIBUTE_NODE:\n\t\t\t\t\tif ( !node.getNodeName().equals( JOLIE_TYPE_ATTRIBUTE ) ) {\n\t\t\t\t\t\tgetAttribute( value, node.getNodeName() ).setValue( node.getNodeValue() );\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Node.ELEMENT_NODE:\n\t\t\t\t\tchildValue = value.getNewChild( (node.getLocalName() == null) ? node.getNodeName() : node.getLocalName() );\n\t\t\t\t\tString subElType = setAttributesForStoring( childValue, node );\n\t\t\t\t\telementsToSubValuesForStoring( childValue, node.getChildNodes(), subElType );\n\t\t\t\t\tbreak;\n\t\t\t\tcase Node.CDATA_SECTION_NODE:\n\t\t\t\tcase Node.TEXT_NODE:\n\t\t\t\t\tbuilder.append( node.getNodeValue() );\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif ( builder.length() > 0 ) {\n\t\t\tif ( type.equals( \"string\" ) ) {\n\t\t\t\tvalue.setValue( builder.toString() );\n\t\t\t} else if ( type.equals( \"int\" ) ) {\n\t\t\t\tvalue.setValue( new Integer( builder.toString() ) );\n\t\t\t} else if ( type.equals( \"double\" ) ) {\n\t\t\t\tvalue.setValue( new Double( builder.toString() ) );\n\t\t\t}\n\t\t}\n\t}",
"private void fillTrackingList(String [] dataEntry){\n\n boolean check = true;\n double longtitude;\n double latitude;\n double altitude;\n double speed;\n\n for (String entry: dataEntry) {\n String [] entryValues = entry.split(\",\");\n\n // Needed to kick out a null Value\n if(check){\n String [] str = entryValues[0].split(\"null\");\n Log.d(\"CheckValue\",str[1]);\n longtitude = Double.parseDouble(str[1]);\n }else{\n longtitude = Double.parseDouble(entryValues[0]);\n }\n\n // Rest of the data is parsed\n latitude = Double.parseDouble(entryValues[1]);\n altitude = Double.parseDouble(entryValues[2]);\n speed = Double.parseDouble(entryValues[3]);\n\n // Adds Entry to the List\n TrackingEntry trackingEntry = new TrackingEntry(longtitude,latitude,altitude,speed);\n trackingList.add(trackingEntry);\n Log.d(\"CheckValue\",entryValues[0]);\n Log.d(\"lines\",\"Added: \"+trackingEntry.toString());\n\n check = false;\n }\n }",
"public void tokenizeAndParse(){\n StringTokenizer st1 = new StringTokenizer(Strinput, \" \");\n while (st1.hasMoreTokens()){\n String temp = st1.nextToken();\n if(!temp.equals(\"Rs\")&&!temp.equals(\"Ri\")){\n melody.add(Integer.decode(temp.substring(0,2)));\n }\n\n }\n\n }",
"public void loadSymbolValues(Scanner sc) \n throws IOException {\n while (sc.hasNextLine()) {\n StringTokenizer st = new StringTokenizer(sc.nextLine().trim());\n int numTokens = st.countTokens();\n String sym = st.nextToken();\n ScalarSymbol ssymbol = new ScalarSymbol(sym);\n ArraySymbol asymbol = new ArraySymbol(sym);\n int ssi = scalars.indexOf(ssymbol);\n int asi = arrays.indexOf(asymbol);\n if (ssi == -1 && asi == -1) {\n continue;\n }\n int num = Integer.parseInt(st.nextToken());\n if (numTokens == 2) { // scalar symbol\n scalars.get(ssi).value = num;\n } else { // array symbol\n asymbol = arrays.get(asi);\n asymbol.values = new int[num];\n // following are (index,val) pairs\n while (st.hasMoreTokens()) {\n String tok = st.nextToken();\n StringTokenizer stt = new StringTokenizer(tok,\" (,)\");\n int index = Integer.parseInt(stt.nextToken());\n int val = Integer.parseInt(stt.nextToken());\n asymbol.values[index] = val; \n }\n }\n }\n }",
"public int parse()\n\t{\n\t\tString[] lines = data.split(System.getProperty(\"line.separator\"));\n\n\t\t//A '1' at the first line on the first char indicate that it has a saved data\n\t\tif(lines[0].charAt(0) == 0|| data == null || data.equals(\"\"))\n\t\t{\n\t\t\treturn -1; // should return an error or -1 to indicate so\n\t\t}\n\n\t\tfor(int i = 0;i<lines.length;i++)\n\t\t{\n\t\t\tdataArray[i] =\tInteger.parseInt(lines[i]);\n\t\t}\n\n\t\treturn 1; \n\t}",
"public DValParser(byte[] data)\r\n/* 18: */ {\r\n/* 19: 72 */ int options = IntegerHelper.getInt(data[0], data[1]);\r\n/* 20: */ \r\n/* 21: 74 */ this.promptBoxVisible = ((options & PROMPT_BOX_VISIBLE_MASK) != 0);\r\n/* 22: 75 */ this.promptBoxAtCell = ((options & PROMPT_BOX_AT_CELL_MASK) != 0);\r\n/* 23: 76 */ this.validityDataCached = ((options & VALIDITY_DATA_CACHED_MASK) != 0);\r\n/* 24: */ \r\n/* 25: 78 */ this.objectId = IntegerHelper.getInt(data[10], data[11], data[12], data[13]);\r\n/* 26: 79 */ this.numDVRecords = IntegerHelper.getInt(data[14], data[15], \r\n/* 27: 80 */ data[16], data[17]);\r\n/* 28: */ }",
"public void setData(){\n\t\tif(companyId != null){\t\t\t\n\t\t\tSystemProperty systemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"BUSINESS_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tbusinessType = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"MAX_INVALID_LOGIN\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tinvalidloginMax = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SKU_GENFLAG\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tautomaticItemCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SKU_GENFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tformatItemCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tdeliveryItemNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"STO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tstockOpnameNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"RN_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\treceiptItemNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PLU_GENFLAG\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tautomaticProdCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PLU_FORMAT_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tprodCodeFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tsalesNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SOINV_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tinvoiceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SORCPT_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\treceiptNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DEFAULT_TAX_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tsalesTax = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DELIVERY_COST\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tdeliveryCost = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpurchaceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PINV_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpurchaceInvoiceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PAYMENT_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpaymentNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"TAX_VALUE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\ttaxValue = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t} else {\n\t\t\tbusinessType = null;\n\t\t\tinvalidloginMax = null;\n\t\t\tautomaticItemCode = null;\n\t\t\tformatItemCode = null;\n\t\t\tdeliveryItemNoFormat = null;\n\t\t\tstockOpnameNoFormat = null;\n\t\t\treceiptItemNoFormat = null;\n\t\t\tautomaticProdCode = null;\n\t\t\tprodCodeFormat = null;\n\t\t\tsalesNoFormat = null;\n\t\t\tinvoiceNoFormat = null;\n\t\t\treceiptNoFormat = null;\n\t\t\tsalesTax = null;\n\t\t\tdeliveryCost = null;\n\t\t\tpurchaceNoFormat = null;\n\t\t\tpurchaceInvoiceNoFormat = null;\n\t\t\tpaymentNoFormat = null;\n\t\t\ttaxValue = null;\n\t\t}\n\t}",
"private Vector pparse(){\n Vector<Object> ret = new Vector<Object>();\n clearWhitespace();\n while (c != -1){\n ret.add(parseSingle());\n clearWhitespace();\n }\n return ret;\n }",
"private Map<String, List<String>> validateAndGetInputValues() {\r\n Map<String, List<String>> inputValues = new HashMap<String, List<String>>();\r\n // initiate the map using model input parameters.\r\n Map<String, InputParam> paramMap = model.getInputParamMap();\r\n\r\n if (formFields.size() != paramMap.size()) {\r\n throw new ExcelWrapperException(\r\n \"The number of form fields should be equal to the number of input parameters.\");\r\n }\r\n\r\n for (String fieldName : formFields.keySet()) {\r\n List<String> values = new ArrayList<String>();\r\n String fieldValue = formFields.getFirst(fieldName);\r\n InputParam inputParam = paramMap.get(fieldName);\r\n if (inputParam == null) {\r\n throw new ExcelWrapperException(\"unrecognzied form field of \" + fieldName);\r\n }\r\n\r\n int numrows = inputParam.getNumRows()==null?1:inputParam.getNumRows();\r\n if (numrows>1) {\r\n values = Utils.parseList(fieldName,fieldValue,inputParam.getDataTypeEnum());\r\n } else {\r\n Utils.checkInputParamValue(fieldName, fieldValue, inputParam.getDataTypeEnum());\r\n values.add(fieldValue);\r\n }\r\n\r\n inputValues.put(fieldName, values);\r\n }\r\n\r\n return inputValues;\r\n }",
"private String[] parseArray(String val) {\n String[] arrayVals;\n val = val.trim();\n if (emptyVal(val)) {\n arrayVals = Constants.EMPTY_STRING_ARRAY;\n } else {\n arrayVals = val.split(\"\\\\s+\");\n }\n return arrayVals;\n }",
"@Override\n public void parse(String sentence) {\n String[] tmp = sentence.split(DELIM);\n if (tmp.length > 4) {\n mSvCount = parseStringToInt(tmp[3]);\n if (mSvCount == 0) {\n return;\n }\n int totalSentences = parseStringToInt(tmp[1]);\n int currSentence = parseStringToInt(tmp[2]);\n\n if (mSatsReady) {\n resetSats();\n mSatsReady = false;\n } else if ((currSentence == totalSentences) && !mSatsReady) {\n // tag data as dirty when we have parsed the last part\n mSatsReady = true;\n }\n int idx = 0;\n while ((currSentence <= totalSentences) && (idx < 4)) {\n int offset = idx << 2;\n int base_offset = (currSentence - 1) << 2;\n if (offset + 4 < tmp.length)\n mSvs[base_offset + idx] = parseStringToInt(tmp[4 + offset]);\n if (offset + 5 < tmp.length)\n mSvElevations[base_offset + idx] = parseStringToInt(tmp[5 + offset]);\n if (offset + 6 < tmp.length)\n mSvAzimuths[base_offset + idx] = parseStringToInt(tmp[6 + offset]);\n if (offset + 7 < tmp.length)\n mSnrs[base_offset + idx] = parseStringToInt(tmp[7 + offset]);\n idx++;\n }\n }\n }",
"private void getSavedDBValues() {\r\n boolean isSet[] = new boolean[12];\r\n for (int i = 0; i < 12; i++)\r\n isSet[i] = false;\r\n\r\n if (this.pl_DB.getParam(\"Hostname\") != null) {\r\n this.hostnameString = this.pl_DB.getParam(\"Hostname\");\r\n isSet[0] = true;\r\n } else\r\n this.hostnameString = hostnameString_default;\r\n if (this.pl_DB.getParam(\"Port\") != null) {\r\n try {\r\n this.portNr = Integer.parseInt(this.pl_DB.getParam(\"Port\"));\r\n } catch (NumberFormatException e) {\r\n this.portNr = portNr_default;\r\n }\r\n isSet[1] = true;\r\n } else\r\n this.portNr = portNr_default;\r\n if (this.pl_DB.getParam(\"Database\") != null) {\r\n this.databaseString = this.pl_DB.getParam(\"Database\");\r\n isSet[2] = true;\r\n } else\r\n this.databaseString = databaseString_default;\r\n if (this.pl_DB.getParam(\"Username\") != null) {\r\n this.usernameString = this.pl_DB.getParam(\"Username\");\r\n isSet[3] = true;\r\n } else\r\n this.usernameString = rusernameString_default;\r\n if (this.pl_DB.getParam(\"Password\") != null) {\r\n this.passwdString = this.pl_DB.getParam(\"Password\");\r\n } else\r\n this.passwdString = \"\";\r\n if (this.pl_DB.getParam(\"nodeTableName\") != null) {\r\n this.NodeTableString = this.pl_DB.getParam(\"nodeTableName\");\r\n isSet[4] = true;\r\n } else\r\n this.NodeTableString = nodeList_DBtable_default;\r\n if (this.pl_DB.getParam(\"nodeColIDName\") != null) {\r\n this.NodeIDColString = this.pl_DB.getParam(\"nodeColIDName\");\r\n isSet[5] = true;\r\n } else\r\n this.NodeIDColString = node_ids_DBcol_default;\r\n if (this.pl_DB.getParam(\"nodeColLabelName\") != null) {\r\n this.NodeLabelColString = this.pl_DB.getParam(\"nodeColLabelName\");\r\n isSet[6] = true;\r\n } else\r\n this.NodeLabelColString = node_labels_DBcol_default;\r\n if (this.pl_DB.getParam(\"edgeTableName\") != null) {\r\n this.EdgeTableString = this.pl_DB.getParam(\"edgeTableName\");\r\n isSet[7] = true;\r\n } else\r\n this.EdgeTableString = edgeList_DBtable_default;\r\n if (this.pl_DB.getParam(\"edgeCol1Name\") != null) {\r\n this.EdgeCo1String = this.pl_DB.getParam(\"edgeCol1Name\");\r\n isSet[8] = true;\r\n } else\r\n this.EdgeCo1String = edgeList_DBcol1_default;\r\n if (this.pl_DB.getParam(\"edgeCol2Name\") != null) {\r\n this.EdgeCol2String = this.pl_DB.getParam(\"edgeCol2Name\");\r\n isSet[9] = true;\r\n } else\r\n this.EdgeCol2String = edgeList_DBcol2_default;\r\n if (this.pl_DB.getParam(\"edgeColWeightName\") != null) {\r\n this.EdgeWeightColString = this.pl_DB.getParam(\"edgeColWeightName\");\r\n isSet[10] = true;\r\n } else\r\n this.EdgeWeightColString = edgeList_DBcolweight_default;\r\n if (this.pl_DB.getParam(\"resultTableName\") != null) {\r\n this.resultTableString = this.pl_DB.getParam(\"resultTableName\");\r\n isSet[11] = true;\r\n } else\r\n this.resultTableString = result_DBtable_default;\r\n\r\n for (int i = 0; i < 12; i++) {\r\n if (isSet[i])\r\n this.isDBValuesSet = true;\r\n else {\r\n this.isDBValuesSet = false;\r\n break;\r\n }\r\n }\r\n\r\n this.is_alg_started = false;\r\n this.is_already_read_from_DB = false;\r\n this.is_already_renumbered = false;\r\n }",
"private void parse() {\n if (getFields() == null) {\n List<? extends StructField> fieldRefs =\n ((StructObjectInspector)getInspector()).getAllStructFieldRefs();\n setFields(new LazyObject[fieldRefs.size()]);\n for (int i = 0; i < getFields().length; i++) {\n String hbaseColumnFamily = hbaseColumnFamilies.get(i);\n String hbaseColumnQualifier = hbaseColumnQualifiers.get(i);\n\n ObjectInspector fieldObjectInspector = fieldRefs.get(i).getFieldObjectInspector();\n if (hbaseColumnQualifier == null && !HBaseSerDe.isSpecialColumn(hbaseColumnFamily)) {\n // a column family\n getFields()[i] = new LazyHBaseCellMap(\n (LazyMapObjectInspector) fieldObjectInspector);\n continue;\n }\n if(fieldObjectInspector instanceof LazyListObjectInspector) {\n \tgetFields()[i] = new LazyJsonArray((LazyListObjectInspector)fieldObjectInspector);\n \tcontinue;\n }\n\n getFields()[i] = LazyFactory.createLazyObject(fieldRefs.get(i).getFieldObjectInspector());\n }\n setFieldInited(new boolean[getFields().length]);\n }\n Arrays.fill(getFieldInited(), false);\n setParsed(true);\n }",
"private void populateUserValue(UserValue uvalue, SessionInfo sessInfo)\r\n\t{\r\n\t\tuvalue.setAmountId(sessInfo.mAmtFormat);\r\n\t\tuvalue.setAuthenticationType(sessInfo.authenticationType);\r\n\t\tuvalue.setChannelId(\"\" + sessInfo.channelId);\r\n\t\tuvalue.setCustomerType(sessInfo.customerType);\r\n\t\tuvalue.setDateId(sessInfo.mDateFormat);\r\n\t\tuvalue.setTimeFormat(sessInfo.timeFormat);\r\n\t\tuvalue.setDeviceBand(sessInfo.deviceType);\r\n\t\tuvalue.setDirection(sessInfo.direction);\r\n\t\tuvalue.setEquivalentCurrency(sessInfo.equivalentCurrency);\r\n\t\tuvalue.setFIRST_NAME(sessInfo.firstName);\r\n\t\tuvalue.setFontsizeId(sessInfo.fontsizeId);\r\n\t\tuvalue.setPrimaryGcif(sessInfo.primaryGcif);\r\n\t\tuvalue.setLangId(sessInfo.mLanguage);\r\n\t\tuvalue.setLAST_NAME(sessInfo.lastName);\r\n\t\tuvalue.setLoginId(sessInfo.loginId);\r\n\t\tuvalue.setMIDDLE_NAME(sessInfo.middleName);\r\n\t\tuvalue.setSeclangId(sessInfo.mSecLang);\r\n\t\tuvalue.setSessionId(sessInfo.sessionId);\r\n\t\tuvalue.setSessionTicket(sessInfo.sessionId);\r\n\t\tuvalue.setThemeId(sessInfo.themeId);\r\n\t\tuvalue.setTimeZoneId(sessInfo.mTimeZoneId);\r\n\t\tuvalue.setUserNo(sessInfo.userNo);\r\n\t\tuvalue.setPreferredWorkspaceId(sessInfo.prefWorkspace);\r\n\t\tuvalue.setTransactionStatus(\"SUCCESS\");\r\n\t}",
"@Override\n\t\t\t\t\t\tpublic void done(List<ParseObject> arg0,\n\t\t\t\t\t\t\t\tParseException arg1) {\n\t\t\t\t\t\t\tif (arg1 == null && arg0.size() != 0) {\n\t\t\t\t\t\t\t\tfor (ParseObject p : arg0) {\n\t\t\t\t\t\t\t\t\tp.put(\"user\", ParseUser.getCurrentUser());\n\t\t\t\t\t\t\t\t\tp.put(\"weight\", kgs);\n\t\t\t\t\t\t\t\t\tp.put(\"age\", Integer.parseInt(age1\n\t\t\t\t\t\t\t\t\t\t\t.getText().toString()));\n\t\t\t\t\t\t\t\t\tp.put(\"height\", cms);\n\t\t\t\t\t\t\t\t\tp.put(\"active\", String.valueOf(active));\n\t\t\t\t\t\t\t\t\tp.put(\"sex\", sex);\n\t\t\t\t\t\t\t\t\tp.put(\"bmi\", bmi);\n\t\t\t\t\t\t\t\t\tp.put(\"totalcal\", totalcal);\n\t\t\t\t\t\t\t\t\tp.put(\"factor\", String.valueOf(factor));\n\n\t\t\t\t\t\t\t\t\tp.saveEventually();\n\t\t\t\t\t\t\t\t\tLog.d(\"place\", ParseUser.getCurrentUser().toString());\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (arg0.size() == 0) {\n\t\t\t\t\t\t\t\tParseObject p = new ParseObject(\"UserData\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tp.put(\"user\", ParseUser.getCurrentUser());\n\t\t\t\t\t\t\t\tp.put(\"weight\", kgs);\n\t\t\t\t\t\t\t\tp.put(\"age\", Integer.parseInt(age1.getText()\n\t\t\t\t\t\t\t\t\t\t.toString()));\n\t\t\t\t\t\t\t\tp.put(\"height\", cms);\n\t\t\t\t\t\t\t\tp.put(\"active\", String.valueOf(active));\n\t\t\t\t\t\t\t\tp.put(\"sex\", sex);\n\t\t\t\t\t\t\t\tp.put(\"bmi\", bmi);\n\t\t\t\t\t\t\t\tp.put(\"totalcal\", totalcal);\n\n\t\t\t\t\t\t\t\tp.put(\"factor\", String.valueOf(factor));\n\t\t\t\t\t\t\t\tLog.d(\"place\", ParseUser.getCurrentUser().toString());\n\t\t\t\t\t\t\t\tp.saveEventually();\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\tLog.d(\"score\", \"Error: \" + arg1.getMessage());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"public static void processVariablesInformation () {\n\n for (int i = 0; i < data.length(); i++) {\n if (data.charAt(i) == ',')\n cutPoints.add(i);\n }\n\n if (cutPoints.size() == numberOfVariablesReceived-1) {\n\n if(isNumeric(data.substring(1, cutPoints.get(0))))\n oxygenValue = data.substring(1, cutPoints.get(0));\n\n if(isNumeric(data.substring(cutPoints.get(0) + 1, cutPoints.get(1))))\n heartRateValue = data.substring(cutPoints.get(0) + 1, cutPoints.get(1));\n\n if(isNumeric(data.substring(cutPoints.get(1) + 1, cutPoints.get(2))))\n stressValue = data.substring(cutPoints.get(1) + 1, cutPoints.get(2));\n\n if(isNumeric(data.substring(cutPoints.get(2) + 1, endOfLineIndex)))\n tempSampleTime = Integer.parseInt(data.substring(cutPoints.get(2) + 1, endOfLineIndex));\n }\n if (Integer.parseInt(heartRateValue) > 0)\n integerbpm = sixtyMillis / Integer.parseInt(heartRateValue);\n else\n integerbpm = INFINITE;\n\n // Comment this part for junit tests\n if (integerbpm >= 0) {\n heartBeatAnim.setDuration(integerbpm);\n heartBeatAnim.start();\n }\n oxygenLevel.setText(oxygenValue + \"%\");\n heartRate.setText(\" HR = \" + heartRateValue + \"BPM\");\n stressLabel.setText(\" Stress= \" + stressValue + \"%\");\n stressBar.setProgress(Integer.parseInt(stressValue));\n oxygenBar.setProgress(Integer.parseInt(oxygenValue));\n\n if (Integer.parseInt(oxygenValue) < 95 || Integer.parseInt(heartRateValue) < 60 || Integer.parseInt(heartRateValue) > 120) {\n attentionImage.setVisibility(View.VISIBLE);\n attentionLabel.setVisibility(View.VISIBLE);\n\n if (sound == true) {\n final ToneGenerator tg = new ToneGenerator(AudioManager.STREAM_NOTIFICATION, 100);\n tg.startTone(ToneGenerator.TONE_CDMA_PIP);\n }\n } else {\n attentionImage.setVisibility(View.INVISIBLE);\n attentionLabel.setVisibility(View.INVISIBLE);\n }\n // until here\n }",
"private void extractValues(File file) {\n\t\tsetFileSize(getSizeFromFile(file));\n\t\tgetXmlInfo(file);\n\t\tif (mXmlInfo != null){\n\t\t Date date = getFileBackupTime(mXmlInfo);\n\t\t\tif (date != null){\n\t\t\t\tsetBackupTime(formatDisplayTime(date));\n\t\t\t}\n\t\t}else{\n\t\t Log.e(LogTag.RESTORE, \"xml Info is null: file = \" + mFile.getAbsolutePath());\n\t\t}\n\t}",
"Values createValues();",
"private HashMap<String,String> getVarValues(Module m, Call c)\n {\n HashMap<String,String> vars = new HashMap<String,String>();\n String regex = replaceVars(c.assumption,\"[.[^,]]+\");\n Pattern pattern = Pattern.compile(regex);\n\n for(String result: m.getSceptical())\n {\n Matcher matcher = pattern.matcher(result);\n if(matcher.find())\n {\n String v = c.assumption;\n String r = result;\n int vCurrent = 0;\n int rCurrent = 0;\n while(vCurrent<v.length() && rCurrent<r.length())\n {\n if(v.toCharArray()[vCurrent] != r.toCharArray()[rCurrent])\n {\n String variable = getVar(v.substring(vCurrent));\n String value = getValue(r.substring(rCurrent));\n vars.put(variable,value);\n vCurrent = vCurrent + variable.length();\n rCurrent = rCurrent + value.length();\n }\n vCurrent++;\n rCurrent++;\n }\n }\n }\n return vars;\n }",
"private Object parse(\n String value\n ){\n return \n value.startsWith(\"P\") || value.startsWith(\"-P\") ? Datatypes.create(Duration.class, value) : \n value.indexOf('T') < 0 ? Datatypes.create(XMLGregorianCalendar.class, value) : \n Datatypes.create(java.util.Date.class, value);\n }",
"public static void parseValue(String s) throws FileInvalidException {\r\n\t\tif (s.indexOf('=') == -1) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString key = s.substring(0, s.indexOf('='));\r\n\t\t\r\n\t\t// Handles empty field.\r\n\t\tif (s.indexOf('{') == -1 || s.indexOf('}') == -1 || s.indexOf('}') - s.indexOf('{') < 2) {\r\n\t\t\tthrow new FileInvalidException(\"Field \\\"\" + key + \"\\\" is empty.\");\r\n\t\t}\r\n\r\n\t\tString value = s.substring(s.indexOf('{') + 1, s.indexOf('}'));\r\n\r\n\t\tswitch(key) {\r\n\t\tcase \"author\": \r\n\t\t\tauthor = value;\r\n\t\t\tbreak;\r\n\t\tcase \"journal\": \r\n\t\t\tjournal = value;\r\n\t\t\tbreak;\r\n\t\tcase \"title\": \r\n\t\t\ttitle = value;\r\n\t\t\tbreak;\r\n\t\tcase \"year\": \r\n\t\t\tyear = value;\r\n\t\t\tbreak;\r\n\t\tcase \"volume\": \r\n\t\t\tvolume = value;\r\n\t\t\tbreak;\r\n\t\tcase \"number\": \r\n\t\t\tnumber = value;\r\n\t\t\tbreak;\r\n\t\tcase \"pages\": \r\n\t\t\tpages = value;\r\n\t\t\tbreak;\r\n\t\tcase \"doi\": \r\n\t\t\tdoi = value;\r\n\t\t\tbreak;\r\n\t\tcase \"ISSN\": \r\n\t\t\tISSN = value;\r\n\t\t\tbreak;\r\n\t\tcase \"month\": \r\n\t\t\tmonth = value;\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t}",
"public void parseGPSData(){\n List<String> coordData = new ArrayList<String>();\n for (int i = 6; i < currentMessage.size(); i++){\n // Convert to int to rid ourselves of preceding zeros. Yes, this is bad.\n coordData.add(\n String.valueOf(\n Integer.parseInt(\n bcdToStr(currentMessage.get(i))\n )\n )\n );\n }\n\n String latitudeNorthSouth = (\n bcdToIntString(coordData.get(3)).charAt(1) == '0'\n ) ? \"N\" : \"S\";\n \n String longitudeEastWest = (\n bcdToIntString(coordData.get(8)).charAt(1) == '0'\n ) ? \"E\" : \"W\";\n \n triggerCallback(\"onUpdateGPSCoordinates\",\n String.format(\n \"%.4f%s%s %.4f%s%s\", \n //Latitude\n decimalMinsToDecimalDeg(\n coordData.get(0), coordData.get(1), coordData.get(2)\n ),\n (char) 0x00B0,\n latitudeNorthSouth,\n //Longitude\n decimalMinsToDecimalDeg(\n coordData.get(4) + coordData.get(5),\n coordData.get(6),\n coordData.get(7)\n ),\n (char) 0x00B0,\n longitudeEastWest\n )\n );\n \n // Parse out altitude data which is in meters and is stored as a byte coded decimal\n int altitude = Integer.parseInt(\n bcdToStr(currentMessage.get(15)) + bcdToStr(currentMessage.get(16))\n );\n\n triggerCallback(\"onUpdateGPSAltitude\", altitude);\n \n // Parse out time data which is in UTC\n String gpsUTCTime = String.format(\n \"%s:%s\",\n bcdToIntString(bcdToStr(currentMessage.get(18))),\n bcdToIntString(bcdToStr(currentMessage.get(19)))\n );\n \n triggerCallback(\"onUpdateGPSTime\", gpsUTCTime);\n }",
"public void getDataType(String heading, String rowvalues) {\n\t\tString rowval[]=rowvalues.split(\",\");\n\t\tHashMap<String,String> hmap= new HashMap<String,String>();\n //logic for datatype\t\n\t\tfor(String val:rowval)\n\t\t{ \n\t\t try {\n\t\t\t \n\t\t //checking for integer \t\n\t\t \t Integer.parseInt(val);\n\t\t \t hmap.put(val,\"Interger\");\n\t\t \n\t\t }\n\t catch (NumberFormatException e) //exception if integer not found\n\t {\n\t //checking for string // System.out.println(val + \" is String\");\n\t hmap.put(val,\"String\");\n\t }\n\t\t try\n\t { \n\t\t\t String str1 = null;\n DateFormat formatter = null;\n Date str2 = null;\n \t\t if (val.matches(\"([0-9]{2})/([0-9]{2})/([0-9]{4})\")) {\n formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\n } else if (val.matches(\"([0-9]{2})-([0-9]{2})-([0-9]{4})\")) {\n formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\n } else if (val.matches(\"([0-9]{4})([0-9]{2})([0-9]{2})\")) {\n formatter = new SimpleDateFormat(\"yyyyMMdd\");\n } else if (val.matches(\"([0-9]{4})-([0-9]{2})-([0-9]{2})\")) {\n formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n } else if (val.matches(\"([0-9]{4})/([0-9]{2})/([0-9]{2})\")) {\n formatter = new SimpleDateFormat(\"yyyy/MM/dd\");\n }\n \t\t \n\t //System.out.println(val + \" is a valid integer number\");\n \n\t //checking for date\t \n \t\t str2=formatter.parse(val);\n \t\t hmap.put(val,\"date\");\n\t } \n\t\t\t catch (Exception ex) { //Catch the Exception if date not found\n\t\t\t\t//hmap.put(val,\"String\");\n\t\t\t\t \n\t }\n\t\t }\n\t//printing values\t\n\t\tfor(Map.Entry<String, String> hm : hmap.entrySet())\n\t\t{\n\t\t\tSystem.out.println(hm.getKey()+\"--->\"+hm.getValue());\n\t\t} \n\t }",
"protected final void parses() {\n current = read();\n skipSpaces();\n\n for (;;) {\n switch (current) {\n default:\n return;\n case '+': case '-': case '.':\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n }\n \n float x2 = parseNumber();\n skipCommaSpaces();\n float y2 = parseNumber();\n skipCommaSpaces();\n float x = parseNumber();\n skipCommaSpaces();\n float y = parseNumber();\n\n float smoothX = currentX * 2 - smoothCCenterX;\n float smoothY = currentY * 2 - smoothCCenterY;\n smoothCCenterX = currentX + x2;\n smoothCCenterY = currentY + y2;\n currentX += x;\n currentY += y;\n\n p.curveTo(smoothX, smoothY,\n smoothCCenterX, smoothCCenterY,\n currentX, currentY);\n\n smoothQCenterX = currentX;\n smoothQCenterY = currentY;\n skipCommaSpaces();\n }\n }",
"private void saveValues() {\r\n this.pl_expert.setParam(\"displayNodeDegree\", (String) this.nodeDegreeSpinner.getValue());\r\n this.pl_expert.setParam(\"displayEdges\", (String) this.displayEdgesSpinner.getValue());\r\n this.pl_expert.setParam(\"scale\", (String) this.scaleSpinner.getValue());\r\n this.pl_expert.setParam(\"minWeight\", (String) this.minweightSpinner.getValue());\r\n this.pl_expert.setParam(\"iterations\", (String) this.iterationsSpinner.getValue());\r\n this.pl_expert.setParam(\"mutationParameter\", this.mutationParameter.getSelection().getActionCommand());\r\n this.pl_expert.setParam(\"Update_param\", this.Update_param.getSelection().getActionCommand());\r\n this.pl_expert.setParam(\"vote_value\", (String) this.vote_value.getValue());\r\n this.pl_expert.setParam(\"keep_value\", (String) this.keep_value.getValue());\r\n this.pl_expert.setParam(\"mut_value\", (String) this.mut_value.getValue());\r\n this.pl_expert.setParam(\"only_sub\", new Boolean(this.only_sub.isSelected()).toString());\r\n\r\n this.is_alg_started = false;\r\n }",
"public Object parseValue(String expr);",
"@Override\r\n public Tuple2<Integer, Double> map(String value) throws Exception {\n return Tuple2.of(1, Double.parseDouble(value));\r\n }",
"private void parse_text()\n {\n float temporary_min = min; // used to hold the values entered, before\n float temporary_max = max; // validating them\n\n String str = getText();\n Float Float_NaN = new Float(Float.NaN);\n // get the first number\n float val = findNumber( START, str, SEPARATOR );\n Float Float_val = new Float(val);\n if ( !Float_val.equals(Float_NaN) )\n temporary_min = val;\n // get the second number\n val = findNumber( SEPARATOR, str, END );\n Float_val = new Float(val);\n if ( !Float_val.equals(Float_NaN) )\n temporary_max = val;\n\n if ( temporary_min < temporary_max ) // make sure the values\n { // define a non-degenerate\n min = temporary_min; // interval, before we \n max = temporary_max; // accept them\n }\n\n show_text();\n }",
"private void init() {\r\n\t\t// Convert the string Values from file to numerical values\r\n\t\tif ((field.getDecimalMinimum() != null)\r\n\t\t\t\t&& (field.getDecimalMaximum() != null)) {\r\n\t\t\ttry {\r\n\t\t\t\thasRange = true;\r\n\t\t\t\tminimum = Long.valueOf(Long.parseLong(field.getDecimalMinimum()));\r\n\t\t\t\tmaximum = Long.valueOf(Long.parseLong(field.getDecimalMaximum()));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\thasRange = false;\r\n\t\t\t\tminimum = Long.valueOf(Integer.MIN_VALUE);\r\n\t\t\t\tmaximum = Long.valueOf(Integer.MAX_VALUE);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\thasRange = false;\r\n\t\t\tminimum = Long.valueOf(Integer.MIN_VALUE);\r\n\t\t\tmaximum = Long.valueOf(Integer.MAX_VALUE);\r\n\t\t}\r\n\r\n\t\tisNumeric = field.getCharacterSet().matches(\"^[0-9\\\\-*\\\\[\\\\]]*$\");\r\n\t\tintBitLength = field.getBitLength() == null ? 0 : field.getBitLength()\r\n\t\t\t\t.intValue();\r\n\t\tString charSet = \"^\"\r\n\t\t\t\t+ (field.getCharacterSet().endsWith(\"*\") ? field\r\n\t\t\t\t\t\t.getCharacterSet() : field.getCharacterSet() + \"*\")\r\n\t\t\t\t+ \"$\";\r\n\t\tcharSetRegex = Pattern.compile(charSet);\r\n\t\tintLength = field.getLength() == null ? Integer.MAX_VALUE : field\r\n\t\t\t\t.getLength().intValue();\r\n\t}",
"public void splitData(String fullData){\n\t\t\n\t\tDictionary<String> strings = new Dictionary<>();\n\t\tDictionary<Float> floats = new Dictionary<>();\n\t\tDictionary<Boolean> booleans = new Dictionary<>();\n\t\t\n\t\tList<String> lines = new ArrayList<>(Arrays.asList(fullData.split(\"\\n\")));\n\t\t\n\t\tString[] labels = lines.get(0).split(\",\");\n\t\tlines.remove(0);\n\t\t\n\t\tfor(String line: lines){\n\t\t\tString[] data = line.split(\",\");\n\t\t\t\n\t\t\tfor(int i=0;i<data.length;i++){\n\t\t\t\t\n\t\t\t\t//placeholder since current data has no actual booleans\n\t\t\t\tif(labels[i].equals(\"autoBaselineGroup\") || labels[i].equals(\"autoGear\") || labels[i].equals(\"Did Climb\") || labels[i].equals(\"died\") || labels[i].equals(\"defense\")){\n\t\t\t\t\tif(data[i].equals(\"1\")){\n\t\t\t\t\t\tbooleans.add(labels[i], true);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tbooleans.add(labels[i], false);\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//check what type it is\n\t\t\t\tSystem.out.println(number);\n\t\t\t\ttry{\n\t\t\t\t\tswitch(labels[i]){\n\t\t\t\t\tcase \"Round\":\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tcase \"Date and Time Of Match\":\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tcase \"UUID\":\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tcase \"end\":\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfloats.add(labels[i], Float.parseFloat(data[i]));\n\t\t\t\t\tcontinue;\n\t\t\t\t} catch(NumberFormatException e){\n\t\t\t\t\t//not an int, check for bool\n\t\t\t\t\t\n\t\t\t\t\tif(data[i].toLowerCase().contains(\"true\")){\n\t\t\t\t\t\tbooleans.add(labels[i], true);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif(data[i].toLowerCase().contains(\"false\")){\n\t\t\t\t\t\tbooleans.add(labels[i], false);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//must be string\n\t\t\t\t\tdata[i] = \"\\n\\t\"+data[i];\n\t\t\t\t\tdata[i] = data[i].replace(\"|c\", \",\").replace(\"|n\", \"\\n\\t\").replace(\"||\", \"|\").replace(\"|q\", \"\\\"\").replace(\"|;\", \":\");\n\t\t\t\t\tstrings.add(labels[i], data[i]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint matchNum = getMatchNum(line, labels);\n\t\t\t\n\t\t\tMatch r = new Match(number, matchNum, \"TIME\");\n\t\t\tr.setData(strings, floats, booleans);\n\t\t\tmatches.add(r);\n\t\t\t\n\t\t\tstrings = new Dictionary<>();\n\t\t\tfloats = new Dictionary<>();\n\t\t\tbooleans = new Dictionary<>();\n\t\t}\n\t}",
"public void parse() throws XMLStreamException {\n\t\tInputStream dictStream = ClassLoader.getSystemResourceAsStream(fixFileName);\n\t\tXMLStreamReader reader = factory.createXMLStreamReader(dictStream);\n\t\tString curFieldName = \"\";\n\t\twhile (reader.hasNext()) {\n\t\t\tint event = reader.next();\n\t\t\tswitch (event) {\n\t\t\tcase XMLStreamConstants.START_ELEMENT:\n\t\t\t\tString elementName = reader.getLocalName();\n\t\t\t\telementNames.add(elementName);\n\t\t\t\tif (\"fields\".equals(elementName)) {\n\t\t\t\t\tisFieldsElement = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (\"field\".equals(elementName) && isFieldsElement) {\n\t\t\t\t\tString num = reader.getAttributeValue(null, \"number\");\n\t\t\t\t\tcurFieldName = reader.getAttributeValue(null, \"name\");\n\t\t\t\t\tFieldParser.logger.info(num + \", \" + curFieldName);\n\t\t\t\t\t// Integer tagNumber = Integer.parseInt(num);\n\t\t\t\t\ttagNameToNumber.put(curFieldName, num);\n\t\t\t\t\ttagNumberToName.put(num, curFieldName);\n\t\t\t\t\tMap<String, String> tagValueToTagValueDesc = tagNameToTagValueDesc.get(curFieldName);\n\t\t\t\t\tif (tagValueToTagValueDesc == null) {\n\t\t\t\t\t\ttagValueToTagValueDesc = new ConcurrentHashMap<>();\n\t\t\t\t\t\ttagNameToTagValueDesc.put(curFieldName, tagValueToTagValueDesc);\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (\"value\".equals(elementName) && !\"\".equals(curFieldName)) {\n\t\t\t\t\tMap<String, String> tagValueToTagValueDesc = tagNameToTagValueDesc.get(curFieldName);\n\t\t\t\t\tString enumNum = reader.getAttributeValue(null, \"enum\");\n\t\t\t\t\tString enumDesc = reader.getAttributeValue(null, \"description\");\n\t\t\t\t\ttagValueToTagValueDesc.put(enumNum, enumDesc);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase XMLStreamConstants.END_ELEMENT:\n\t\t\t\telementName = reader.getLocalName();\n\t\t\t\tif (\"fields\".equals(elementName)) {\n\t\t\t\t\tisFieldsElement = false;\n\t\t\t\t\tcurFieldName = \"\";\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t}\n\t\t}\n\t\treader.close();\n\t}",
"@Override\n\tpublic void postParse() {\n\t}",
"@Override\n\tpublic void postParse() {\n\t}",
"protected void storeCurrentValues() {\n }"
] |
[
"0.6874023",
"0.6868655",
"0.64130294",
"0.6208848",
"0.6014694",
"0.5891352",
"0.58076334",
"0.57216585",
"0.5695518",
"0.56940764",
"0.5642465",
"0.5629598",
"0.5609456",
"0.5603366",
"0.55719984",
"0.5562605",
"0.55278695",
"0.5523766",
"0.5523687",
"0.55066156",
"0.5490022",
"0.54807204",
"0.54276437",
"0.53995156",
"0.53836215",
"0.5383404",
"0.5381502",
"0.5355892",
"0.533948",
"0.5337068",
"0.5330796",
"0.5326727",
"0.5323809",
"0.53114545",
"0.52941567",
"0.5288752",
"0.528424",
"0.5283993",
"0.525298",
"0.5251166",
"0.5250858",
"0.524108",
"0.5239693",
"0.52390057",
"0.52035195",
"0.51961285",
"0.5181109",
"0.5180206",
"0.5176008",
"0.516538",
"0.5148494",
"0.5143322",
"0.51345515",
"0.51215297",
"0.5116227",
"0.5109264",
"0.51080483",
"0.51037896",
"0.5096678",
"0.5085493",
"0.50826985",
"0.50802803",
"0.50798815",
"0.50747377",
"0.50742775",
"0.50629544",
"0.5056776",
"0.50542694",
"0.5043796",
"0.50434667",
"0.50324607",
"0.50316036",
"0.502784",
"0.5025056",
"0.5016593",
"0.50053006",
"0.5001665",
"0.49976403",
"0.49955747",
"0.4993622",
"0.49873456",
"0.4976977",
"0.49697846",
"0.49610433",
"0.49594155",
"0.49586523",
"0.4957427",
"0.4953862",
"0.49528256",
"0.49515045",
"0.49465105",
"0.49447972",
"0.49420112",
"0.49376625",
"0.4924556",
"0.49211043",
"0.49198353",
"0.49170235",
"0.49170235",
"0.49155143"
] |
0.52183586
|
44
|
Service interface for Docker Engine related operations.
|
public interface DockerEngineService {
/**
* Returns a list of the existing containers.
*
* @return list of existing containers as {@link ContainerModel} objects, wrapped as {@link Mono}
*/
Mono<List<Container>> getExistingContainers();
/**
* Returns detailed information about the specified containers as streaming data.
* Flux streams returning from multiple containers are merged as a single stream.
*
* @param containerIDList list of container ID strings as provided by Docker
* @return detailed information about the containers as {@link ContainerDetailsModel} wrapped as {@link Flux}
*/
Flux<ContainerDetails> getContainerDetails(List<String> containerIDList);
/**
* Returns statistics about the specified containers as streaming data.
* Flux streams returning from multiple containers are merged as a single stream.
*
* @param containerIDList container ID strings as provided by Docker
* @return statistics about the container as {@link ContainerRuntimeStatsModel} wrapped as {@link Flux}
*/
Flux<ContainerStats> getContainerStatistics(List<String> containerIDList);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static Kernel start(int port)\n {\n Kernel app = Kernel.newInstance();\n Container container = app.getContainer();\n\n // Forms\n container.add(new ServiceDefinition<>(AnnualReviewType.class));\n container.add(new ServiceDefinition<>(UserType.class));\n\n // Managers\n container.add(new ServiceDefinition<>(AccessDecisionManager.class, YuconzAccessDecisionManager.class));\n container.add(new ServiceDefinition<>(YuconzAuthenticationManager.class));\n container.add(new ServiceDefinition<>(Hibernate.class));\n container.add(new ServiceDefinition<>(LogManager.class))\n .addMethodCallDefinitions(new MethodCallDefinition(\n \"setAuthenticationManager\",\n new ServiceReference<>(YuconzAuthenticationManager.class)\n ));\n container.add(new ServiceDefinition<>(RecordManager.class));\n container.add(new ServiceDefinition<>(AnnualReviewManager.class));\n container.add(new ServiceDefinition<>(FormManager.class));\n\n container.add(new ServiceDefinition<>(AuthorisationManager.class))\n .addMethodCallDefinitions(new MethodCallDefinition(\n \"setAuthenticationManager\",\n new ServiceReference<>(YuconzAuthenticationManager.class)\n ));\n\n // Resolvers\n container.add(new ServiceDefinition<>(UserResolver.class));\n container.add(new ServiceDefinition<>(RecordResolver.class));\n\n // JTwig Functions\n container.add(new ServiceDefinition<>(CurrentUserFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(CurrentRoleFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(FormRenderFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(FormStartRenderFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(FormEndRenderFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(ActivePageFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(IsGrantedFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(RangeFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(ServiceFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(LocalDateFunction.class)).addTag(\"jtwig.function\");\n\n // Voters\n container.add(new ServiceDefinition<>(PersonalDetailsVoter.class)).addTag(\"authentication.voter\");\n container.add(new ServiceDefinition<>(RecordVoter.class)).addTag(\"authentication.voter\");\n container.add(new ServiceDefinition<>(AnnualReviewVoter.class)).addTag(\"authentication.voter\");\n container.add(new ServiceDefinition<>(AuthorisationVoter.class)).addTag(\"authentication.voter\");\n\n container.getServiceDefinition(FrameworkServer.class).setConfigurationReference(new PlainReference<>(new Configuration()\n {\n @Override\n public int getPort()\n {\n return port;\n }\n }));\n\n app.boot();\n\n Router router = container.get(Router.class);\n\n // Records\n router.registerController(AppController.class);\n router.registerController(StaticController.class);\n router.registerController(AuthenticationController.class);\n router.registerController(DashboardController.class);\n router.registerController(EmployeesController.class);\n router.registerController(RecordController.class);\n router.registerController(AnnualReviewController.class);\n\n FormManager formManager = container.get(FormManager.class);\n\n formManager.getRenderers().removeIf(r -> r.getClass().equals(ChoiceRenderer.class));\n formManager.addRenderer(CustomChoiceRenderer.class);\n formManager.addRenderer(DateRenderer.class);\n\n app.start();\n\n return app;\n }",
"public synchronized void startContainer(DockerHost dh, Operator op) throws DockerException, InterruptedException {\n final DockerClient docker = DefaultDockerClient.builder().uri(\"http://\" + dh.getUrl() + \":2375\").connectTimeoutMillis(60000).build();\n\n DockerContainer dc = opConfig.createDockerContainerConfiguration(op);\n String usedImage = \"\";\n\n /* Update the list of available docker images */\n if (!dh.getAvailableImages().contains(op.getType())) {\n //check if type is a valid dockerimage\n try {\n docker.pull(op.getType());\n List<String> availableImages = dh.getAvailableImages();\n availableImages.add(op.getType());\n dh.setAvailableImages(availableImages);\n dhr.save(dh);\n usedImage = op.getType();\n } catch (ImageNotFoundException ex) {\n LOG.info(\"Operator type docker image (\" + op.getType() + \") is not available - falling back to default image: \" + config.getProcessingNodeImage());\n if (!dh.getAvailableImages().contains(config.getProcessingNodeImage())) {\n docker.pull(config.getProcessingNodeImage());\n List<String> availableImages = dh.getAvailableImages();\n availableImages.add(config.getProcessingNodeImage());\n dh.setAvailableImages(availableImages);\n dhr.save(dh);\n }\n usedImage = config.getProcessingNodeImage();\n }\n }\n\n /* Configure environment variables */\n List<String> environmentVariables = new ArrayList<>();\n String outgoingHost = op.getConcreteLocation().getIpAddress().equals(config.getRabbitMQHost()) ? config.getRuntimeIP() : op.getConcreteLocation().getIpAddress(); // generalized deployment\n environmentVariables.add(\"SPRING_RABBITMQ_OUTGOING_HOST=\" + outgoingHost);\n environmentVariables.add(\"SPRING_REDIS_HOST=\" + config.getRedisOperatorHost());\n environmentVariables.add(\"OUTGOINGEXCHANGE=\" + op.getName());\n environmentVariables.add(\"INCOMINGQUEUES=\" + topologyManagement.getIncomingQueues(op.getName()));\n environmentVariables.add(\"ROLE=\" + op.getType());\n environmentVariables.add(\"OPERATOR_SUBSCRIBED_OPERATORS=\" + topologyManagement.getDownstreamOperators(op.getName()));\n environmentVariables.add(\"OPERATORNAME=\" + op.getName());\n environmentVariables.add(\"OPERATORTYPE=\" + op.getType());\n\n\n /* Configure docker container */\n Double vmCores = dh.getCores();\n Double containerCores = dc.getCpuCores();\n\n long containerMemory = (long) dc.getMemory().doubleValue() * 1024 * 1024;\n long cpuShares = 1024 / (long) Math.ceil(vmCores / containerCores);\n\n /* Bind container port (processingNodeServerPort) to an available host port */\n String hostPort = getAvailablePortOnHost(dh);\n if (hostPort == null)\n throw new DockerException(\"Not available port on host \" + dh.getName() + \" to bind a new container\");\n\n final Map<String, List<PortBinding>> portBindings = new HashMap<>();\n portBindings.put(processingNodeServerPort, Lists.newArrayList(PortBinding.of(\"0.0.0.0\", hostPort)));\n\n final HostConfig hostConfig = HostConfig.builder()\n .cpuShares(cpuShares)\n .memoryReservation(containerMemory)\n .portBindings(portBindings)\n .networkMode(\"bridge\")\n .build();\n\n final ContainerConfig containerConfig = ContainerConfig.builder()\n .hostConfig(hostConfig)\n .image(usedImage)\n .exposedPorts(processingNodeServerPort)\n .cmd(\"sh\", \"-c\", \"java -jar vispProcessingNode-0.0.1.jar -Djava.security.egd=file:/dev/./urandom\")\n .env(environmentVariables)\n .build();\n\n /* Start docker container */\n final ContainerCreation creation = docker.createContainer(containerConfig);\n final String id = creation.id();\n docker.startContainer(id);\n\n /* Save docker container information on repository */\n dc.setContainerid(id);\n dc.setImage(usedImage);\n dc.setHost(dh.getName());\n dc.setMonitoringPort(hostPort);\n dc.setStatus(\"running\");\n dc.setTerminationTime(null);\n dcr.save(dc);\n\n /* Update the set of used port on docker host */\n List<String> usedPorts = dh.getUsedPorts();\n usedPorts.add(hostPort);\n dh.setUsedPorts(usedPorts);\n dhr.save(dh);\n\n LOG.info(\"VISP - A new container with the ID: \" + id + \" for the operatorType: \" + dc.getOperatorType() + \" on the host: \" + dh.getName() + \" has been started.\");\n }",
"Fog_Services createFog_Services();",
"public interface ImageService extends Remote {\n\n public static final int IMG_SIZE_ORIGINAL = 0;\n public static final int IMG_SIZE_176_220_SMALL = 1;\n public static final int IMG_SIZE_330_220 = 2;\n public static final int IMG_SIZE_240_320_SMALL = 3;\n public static final int IMG_SIZE_120_67 = 4;\n\n public static final int IMG_SIZE_320_480_SMALL = 5;\n public static final int IMG_SIZE_170_121 = 6;\n public static final int IMG_SIZE_480_640_SMALL = 7;\n public static final int IMG_SIZE_800_600 = 8;\n\n public static final String SERVICE_NAME = \"ImageService\";\n\n public byte[] getBytes(long imageId, int imageSize) throws RemoteException;\n\n public byte[] getBytesQuiet(long imageId, int imageSize) throws RemoteException;\n\n public void removeImage(long imageId) throws RemoteException;\n\n public byte[] scale(byte[] data, int imageSize) throws RemoteException;\n\n public boolean addImage(long imageId, byte[] bytes) throws RemoteException;\n}",
"go.micro.runtime.RuntimeOuterClass.Service getService();",
"go.micro.runtime.RuntimeOuterClass.Service getService();",
"go.micro.runtime.RuntimeOuterClass.Service getService();",
"public interface EventRepositoryService {\n\n EventDeploymentBuilder createDeployment();\n\n void deleteDeployment(String deploymentId);\n\n EventDefinitionQuery createEventDefinitionQuery();\n \n ChannelDefinitionQuery createChannelDefinitionQuery();\n\n /**\n * Changes the category of a deployment.\n * \n * @param deploymentId\n * The id of the deployment of which the category will be changed.\n * @param category\n * The new category.\n */\n void setDeploymentCategory(String deploymentId, String category);\n\n /**\n * Changes the tenant id of a deployment.\n * \n * @param deploymentId\n * The id of the deployment of which the tenant identifier will be changed.\n * @param newTenantId\n * The new tenant identifier.\n */\n void setDeploymentTenantId(String deploymentId, String newTenantId);\n \n /**\n * Changes the parent deployment id of a deployment. This is used to move deployments to a different app deployment parent.\n * \n * @param deploymentId\n * The id of the deployment of which the parent deployment identifier will be changed.\n * @param newParentDeploymentId\n * The new parent deployment identifier.\n */\n void changeDeploymentParentDeploymentId(String deploymentId, String newParentDeploymentId);\n\n List<String> getDeploymentResourceNames(String deploymentId);\n\n InputStream getResourceAsStream(String deploymentId, String resourceName);\n\n EventDeploymentQuery createDeploymentQuery();\n\n EventDefinition getEventDefinition(String eventDefinitionId);\n\n InputStream getEventDefinitionResource(String eventDefinitionId);\n\n void setEventDefinitionCategory(String eventDefinitionId, String category);\n \n ChannelDefinition getChannelDefinition(String channelDefinitionId);\n\n InputStream getChannelDefinitionResource(String channelDefinitionId);\n\n void setChannelDefinitionCategory(String channelDefinitionId, String category);\n \n EventModel getEventModelById(String eventDefinitionId);\n\n EventModel getEventModelByKey(String eventDefinitionKey);\n \n EventModel getEventModelByKey(String eventDefinitionKey, String tenantId);\n\n EventModel getEventModelByKeyAndParentDeploymentId(String eventDefinitionKey, String parentDeploymentId);\n\n EventModel getEventModelByKeyAndParentDeploymentId(String eventDefinitionKey, String parentDeploymentId, String tenantId);\n \n ChannelModel getChannelModelById(String channelDefinitionId);\n\n ChannelModel getChannelModelByKey(String channelDefinitionKey);\n \n ChannelModel getChannelModelByKey(String channelDefinitionKey, String tenantId);\n\n ChannelModel getChannelModelByKeyAndParentDeploymentId(String channelDefinitionKey, String parentDeploymentId);\n\n ChannelModel getChannelModelByKeyAndParentDeploymentId(String channelDefinitionKey, String parentDeploymentId, String tenantId);\n \n /**\n * Programmatically build and register a new {@link EventModel}.\n */\n EventModelBuilder createEventModelBuilder();\n \n InboundChannelModelBuilder createInboundChannelModelBuilder();\n \n OutboundChannelModelBuilder createOutboundChannelModelBuilder();\n}",
"public interface IDevopsIngressService {\n\n void createIngress(String ingressYaml, String name, String namespace, Long envId, Long commandId);\n\n void deleteIngress(String name, String namespace, Long envId, Long commandId);\n}",
"public LocalDockerLauncher(\n String serviceHost,\n Integer servicePort,\n int labPort,\n Map<String, String> envVars,\n String dockerImage,\n boolean isKubernetes) {\n this.serviceHost = serviceHost;\n this.servicePort = servicePort;\n this.labPort = labPort;\n this.envVars = (envVars == null) ? new HashMap<>() : envVars;\n this.dockerImage = dockerImage;\n this.isKubernetes = isKubernetes;\n }",
"@Tags({\"cassandra\", \"connection\", \"database\"})\n@CapabilityDescription(\"Provides Cassandra Connection Pooling Service.\")\npublic interface CassandraService extends ControllerService{\n Session getSession() throws Exception;\n Cluster getCluster() throws Exception;\n}",
"public interface InstanceDeployCenter {\r\n\r\n /**\r\n * 启动已经存在的实例\r\n * @param appId\r\n * @param instanceId\r\n * @return\r\n */\r\n boolean startExistInstance(long appId, int instanceId);\r\n\r\n /**\r\n * 启动已存在的实例,无需进行redis资源包校验\r\n * @param appId\r\n * @param instanceId\r\n * @return\r\n */\r\n boolean startExistInstanceWithoutResourceCheck(long appId, int instanceId);\r\n\r\n /**\r\n * 下线已经存在的实例\r\n * @param appId\r\n * @param instanceId\r\n * @return\r\n */\r\n boolean shutdownExistInstance(long appId, int instanceId);\r\n\r\n /**\r\n * cluster forget\r\n * @param appId\r\n * @param instanceId\r\n * @return\r\n */\r\n boolean forgetInstance(long appId, int instanceId);\r\n\r\n /**\r\n * 清理(cluster forget)集群内所有fail节点\r\n * @param appId\r\n * @param instanceId\r\n * @return\r\n */\r\n boolean clearFailInstances(long appId);\r\n \r\n /**\r\n * 展示实例最近的日志\r\n * @param instanceId\r\n * @param maxLineNum\r\n * @return\r\n */\r\n String showInstanceRecentLog(int instanceId, int maxLineNum);\r\n\r\n /**\r\n * 修改实例配置\r\n * @param appId\r\n * @param appAuditId\r\n * @param host\r\n * @param port\r\n * @param instanceConfigKey\r\n * @param instanceConfigValue\r\n * @return\r\n */\r\n boolean modifyInstanceConfig(long appId, Long appAuditId, String host, int port, String instanceConfigKey,\r\n String instanceConfigValue);\r\n\r\n /**\r\n * 检测pod是否有被调度其他宿主机\r\n * @param ip\r\n */\r\n MachineSyncEnum podChangeStatus(String ip);\r\n\r\n /**\r\n * 检测pod是否有心跳停止实例&启动\r\n * @return\r\n */\r\n List<InstanceAlertValueResult> checkAndStartExceptionInstance(String ip, Boolean isAlert);\r\n\r\n\r\n}",
"public void service() {\n\t}",
"public interface Service {\n // Service-specific methods go here\n }",
"@Beta\npublic interface GoogleComputeEngineApi extends Closeable {\n\n /**\n * Provides access to Address features\n *\n * @param projectName the name of the project\n * @param region the name of the region scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/regions/{region}\")\n AddressApi getAddressApi(@PathParam(\"project\") String projectName, @PathParam(\"region\") String region);\n\n /**\n * Provides access to Disk features\n *\n * @param projectName the name of the project\n * @param zone the name of the zone scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n DiskApi getDiskApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);\n\n /**\n * Provides access to DiskType features\n *\n * @param projectName the name of the project\n * @param zone the name of the zone scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n DiskTypeApi getDiskTypeApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);\n\n /**\n * Provides access to Firewall features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n FirewallApi getFirewallApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to ForwardingRule features\n *\n * @param projectName the name of the project\n * @param region the name of the region scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/regions/{region}\")\n ForwardingRuleApi getForwardingRuleApi(@PathParam(\"project\") String projectName, @PathParam(\"region\") String region);\n\n /**\n * Provides access to Global Operation features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n GlobalOperationApi getGlobalOperationApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to HttpHealthCheck features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n HttpHealthCheckApi getHttpHealthCheckApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Image features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n ImageApi getImageApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Instance features\n *\n * @param projectName the name of the project\n * @param zone zone the instances are in.\n */\n @Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n InstanceApi getInstanceApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);\n\n /**\n * Provides access to MachineType features\n *\n * @param projectName the name of the project\n * @param zone the name of the zone scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n MachineTypeApi getMachineTypeApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);\n\n /**\n * Provides access to Network features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n NetworkApi getNetworkApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Project features\n */\n @Delegate\n ProjectApi getProjectApi();\n\n /**\n * Provides access to Region features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}\")\n RegionApi getRegionApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Region Operation features\n *\n * @param project the name of the project\n * @param region the name of the region scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/regions/{region}\")\n RegionOperationApi getRegionOperationApi(@PathParam(\"project\") String project, @PathParam(\"region\") String region);\n\n /**\n * Provides access to Route features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n RouteApi getRouteApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Snapshot features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n SnapshotApi getSnapshotApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to TargetPool features\n *\n * @param projectName the name of the project\n * @param region the name of the region scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/regions/{region}\")\n TargetPoolApi getTargetPoolApi(@PathParam(\"project\") String projectName, @PathParam(\"region\") String region);\n\n /**\n * Provides access to Zone features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}\")\n ZoneApi getZoneApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Zone Operation features\n *\n * @param projectName the name of the project\n * @param zone the name of the zone scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n ZoneOperationApi getZoneOperationApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);\n}",
"public interface ButtonArticleService extends Service<ButtonArticle> {\n\n}",
"public interface IDevopsIngressService {\n\n void createIngress(String ingressYaml, String name, String namespace);\n\n void deleteIngress(String name, String namespace);\n}",
"public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}",
"public interface ChefService {\n\n ListenableFuture<ResponseChefsEvent> requestChefs(final RequestChefsEvent event);\n\n ListenableFuture<ResponseChefEvent> createChef(final CreateChefEvent event);\n\n ListenableFuture<ResponseChefEvent> registerChef(final RegisterChefEvent event);\n\n ListenableFuture<ResponseChefEvent> requestChef(final RequestChefEvent event);\n\n ListenableFuture<ResponseChefEvent> updateChef(final UpdateChefEvent event);\n\n ListenableFuture<ResponseChefEvent> deleteChef(final DeleteChefEvent event);\n}",
"@Host(\"{$host}\")\n @ServiceInterface(name = \"ComputeManagementCli\")\n private interface VirtualMachineScaleSetVMsService {\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimage\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> reimage(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @BodyParam(\"application/json\") VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimageall\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> reimageAll(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/deallocate\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> deallocate(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Content-Type: application/json\"})\n @Put(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> update(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @BodyParam(\"application/json\") VirtualMachineScaleSetVMInner parameters,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Delete(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}\")\n @ExpectedResponses({200, 202, 204})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> delete(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Content-Type: application/json\"})\n @Get(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}\")\n @ExpectedResponses({200})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<VirtualMachineScaleSetVMInner>> get(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"$expand\") InstanceViewTypes expand,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n\n @Headers({\"Content-Type: application/json\"})\n @Get(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/instanceView\")\n @ExpectedResponses({200})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<VirtualMachineScaleSetVMInstanceViewInner>> getInstanceView(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n\n @Headers({\"Content-Type: application/json\"})\n @Get(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines\")\n @ExpectedResponses({200})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<VirtualMachineScaleSetVMListResult>> list(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"virtualMachineScaleSetName\") String virtualMachineScaleSetName,\n @QueryParam(\"$filter\") String filter,\n @QueryParam(\"$select\") String select,\n @QueryParam(\"$expand\") String expand,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> powerOff(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"skipShutdown\") Boolean skipShutdown,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> restart(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> start(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> redeploy(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/retrieveBootDiagnosticsData\")\n @ExpectedResponses({200})\n @UnexpectedResponseExceptionType(ApiErrorException.class)\n Mono<Response<RetrieveBootDiagnosticsDataResultInner>> retrieveBootDiagnosticsData(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"sasUriExpirationTimeInMinutes\") Integer sasUriExpirationTimeInMinutes,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> performMaintenance(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction\")\n @ExpectedResponses({204})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Void>> simulateEviction(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> runCommand(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @BodyParam(\"application/json\") RunCommandInput parameters,\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<VirtualMachineScaleSetVMListResult>> listNext(\n @PathParam(value = \"nextLink\", encoded = true) String nextLink,\n @HostParam(\"$host\") String endpoint,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n }",
"public ImagePull() {\n super(\"docker:pull\");\n }",
"public interface ImageStatusService {\n\n /**\n * 状态变化处理操作\n */\n void changeHandle(String id, Integer type);\n}",
"@Service\n@Area(\"Network\")\npublic interface NetworksService {\n /**\n * Creates a new logical network, or associates an existing network with a data center.\n *\n * Creation of a new network requires the `name` and `data_center` elements.\n *\n * For example, to create a network named `mynetwork` for data center `123` send a request like this:\n *\n * [source]\n * ----\n * POST /ovirt-engine/api/networks\n * ----\n *\n * With a request body like this:\n *\n * [source,xml]\n * ----\n * <network>\n * <name>mynetwork</name>\n * <data_center id=\"123\"/>\n * </network>\n * ----\n *\n *\n * To associate the existing network `456` with the data center `123` send a request like this:\n *\n * [source]\n * ----\n * POST /ovirt-engine/api/datacenters/123/networks\n * ----\n *\n * With a request body like this:\n *\n * [source,xml]\n * ----\n * <network>\n * <name>ovirtmgmt</name>\n * </network>\n * ----\n *\n * To create a network named `exnetwork` on top of an external _OpenStack_ network provider `456` send a request\n * like this:\n *\n * [source]\n * ----\n * POST /ovirt-engine/api/networks\n * ----\n *\n * [source,xml]\n * ----\n * <network>\n * <name>exnetwork</name>\n * <external_provider id=\"456\"/>\n * <data_center id=\"123\"/>\n * </network>\n * ----\n *\n * @author Martin Mucha <[email protected]>\n * @author Petr Horacek <[email protected]>\n * @date 12 Nov 2017\n * @status added\n */\n interface Add {\n @InputDetail\n default void inputDetail() {\n or(mandatory(network().id()), mandatory(network().name()));\n optional(network().comment());\n optional(network().description());\n optional(network().ip().address());\n optional(network().ip().gateway());\n optional(network().ip().netmask());\n optional(network().mtu());\n optional(network().profileRequired());\n optional(network().stp());\n optional(network().vlan().id());\n optional(network().usages()[COLLECTION]);\n optional(network().externalProvider().id());\n optional(network().externalProviderPhysicalNetwork().id());\n optional(network().portIsolation());\n }\n @In @Out Network network();\n }\n\n /**\n * List logical networks.\n *\n * For example:\n *\n * [source]\n * ----\n * GET /ovirt-engine/api/networks\n * ----\n *\n * Will respond:\n *\n * [source,xml]\n * ----\n * <networks>\n * <network href=\"/ovirt-engine/api/networks/123\" id=\"123\">\n * <name>ovirtmgmt</name>\n * <description>Default Management Network</description>\n * <link href=\"/ovirt-engine/api/networks/123/permissions\" rel=\"permissions\"/>\n * <link href=\"/ovirt-engine/api/networks/123/vnicprofiles\" rel=\"vnicprofiles\"/>\n * <link href=\"/ovirt-engine/api/networks/123/networklabels\" rel=\"networklabels\"/>\n * <mtu>0</mtu>\n * <stp>false</stp>\n * <usages>\n * <usage>vm</usage>\n * </usages>\n * <data_center href=\"/ovirt-engine/api/datacenters/456\" id=\"456\"/>\n * </network>\n * ...\n * </networks>\n * ----\n *\n * The order of the returned list of networks is guaranteed only if the `sortby` clause is included in the\n * `search` parameter.\n *\n * @author Ori Ben Sasson <[email protected]>\n * @date 14 Sep 2016\n * @status added\n */\n interface List extends Follow {\n @Out Network[] networks();\n\n /**\n * Sets the maximum number of networks to return. If not specified all the networks are returned.\n */\n @In Integer max();\n\n /**\n * A query string used to restrict the returned networks.\n */\n @In String search();\n\n /**\n * Indicates if the search performed using the `search` parameter should be performed taking case into\n * account. The default value is `true`, which means that case is taken into account. If you want to search\n * ignoring case set it to `false`.\n */\n @In Boolean caseSensitive();\n }\n\n /**\n * Reference to the service that manages a specific network.\n *\n * @author Ori Ben Sasson <[email protected]>\n * @date 12 Dec 2016\n * @status added\n */\n @Service NetworkService network(String id);\n}",
"public interface Service extends AsyncRunnable, Remote {\n\n\tint registryPort() throws RemoteException;\n\n\tString name() throws RemoteException;\n}",
"public interface AESEncryptionService {\n\n\t/**\n\t * The API method to encrypt the data using AES Algorithm\n\t * \n\t * @param dataToEncrypt\n\t * @return encrypted data as byte array\n\t * @throws RegBaseCheckedException\n\t */\n\tbyte[] encrypt(final byte[] dataToEncrypt) throws RegBaseCheckedException;\n}",
"public interface ConsulService {\n\n /**\n * Deregisters a node, service, or check\n */\n public void deregister(SvcInfo svcInfo);\n\n /**\n * Lists known datacenters\n * @return\n */\n public List<String> getDatacenters();\n\n /**\n * Lists nodes in a given DC\n * @return\n */\n public List<Node> getNodes();\n\n /**\n * Lists services in a given DC\n */\n public Map<String, List<String>> getServices();\n\n /**\n * Lists the nodes in a given service\n * @return\n */\n public List<CatalogService> getService(String service);\n\n /**\n * Lists the services provided by a node\n */\n public CatalogNode getNode(String node);\n \n\n\n /**\n * Returns the health info of a node\n */\n public List<HealthCheck> getNodeChecks(String node);\n\n /**\n * Returns the checks of a service\n */\n public List<HealthCheck> getServiceChecks(String service);\n\n /**\n * Returns the nodes and health info of a service\n */\n public List<ServiceHealth> getServiceInstances(String service);\n\n /**\n * Returns the checks in a given state\n */\n public List<HealthCheck> getChecksByState(String state);\n\n}",
"public interface IngestHandlerService extends Remote {\r\n\r\n String ingest(String xmlData, String resourceType, SecurityContext securityContext) throws EscidocException,\r\n RemoteException;\r\n\r\n String ingest(String xmlData, String resourceType, String authHandle, Boolean restAccess) throws EscidocException,\r\n RemoteException;\r\n\r\n}",
"@RequestMapping(value = \"/{serviceName}\", method = RequestMethod.GET)\n ResponseEntity<Object> getServiceDocker(@PathVariable(\"serviceName\") String serviceName,\n HttpServletRequest request) throws Exception {\n HttpHeaders headers = new HttpHeaders();\n headers.set(\"X-Forwarded-Host\", String.format(\"%s:%d\", request.getServerName(), request.getServerPort()));\n if (StringUtils.isNotEmpty(contextPath) && ! \"/\".equals(contextPath)) {\n headers.set(\"X-Forwarded-Prefix\", contextPath);\n }\n HttpEntity entity = new HttpEntity(headers);\n\n String serviceNameKey = String.format(\"gateway.services.%s\", serviceName);\n String url = environment.getProperty(serviceNameKey) + docketUri;\n ResponseEntity<String> response = restTemplate.exchange(url, HttpMethod.GET, entity, String.class);\n return new ResponseEntity<>(response.getBody(), HttpStatus.OK);\n }",
"public interface IHouseVideoRealtimeService {\r\n /**\r\n * 直播列表\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveList(String params) throws Exception;\r\n\r\n /**\r\n * 直播添加\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveCreate(String params) throws Exception;\r\n\r\n /**\r\n * 直播详情\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveDetail(String params)throws Exception;\r\n\r\n /**\r\n * 直播修改\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveUpdate(String params) throws Exception;\r\n\r\n /**\r\n * 直播删除\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveDelete(String params) throws Exception;\r\n}",
"public interface ProductService {\n\n\n ProductExecution getList(Product condition, int pageNum, int pageSize);\n\n /**\n * 添加商品信息以及图片处理\n *\n * @param product 商品对象\n * @param thumbnail 缩略图\n * @param productImgList 商品子图\n * @return\n * @throws ProductOperationException\n */\n ProductExecution add(Product product, ImageHolder thumbnail, List<ImageHolder> productImgList);\n\n /**\n * 根据商品id查询商品\n * @param id\n * @return\n */\n Product getById(long id);\n\n /**\n * 修改商品信息以及图片处理\n *\n * @param product 商品对象\n * @param thumbnail 缩略图\n * @param productImgList 商品子图\n * @return\n * @throws ProductOperationException\n */\n ProductExecution modify(Product product, ImageHolder thumbnail, List<ImageHolder> productImgList);\n\n boolean setProductCategoryToNull(long productCategoryId);\n\n}",
"public interface ConfigService {\n\n\n /**\n * eureka配置\n *\n * @param sb\n * @param addr\n */\n void eureka(StringBuilder sb, String addr);\n\n /**\n * redis配置\n *\n * @param sb\n * @param addr\n */\n void redis(StringBuilder sb, String addr);\n\n\n /**\n * 数据源配置\n *\n * @param sb\n */\n void thymeleafAndDatasource(StringBuilder sb);\n\n\n /**\n * 关于mybatis的配置\n *\n * @param sb\n * @param packages\n */\n void mybatis(StringBuilder sb, String packages);\n\n\n /**\n * 分页插件配置\n *\n * @param sb\n */\n void pagehelper(StringBuilder sb);\n\n /**\n * 生成application.yml\n *\n * @param name\n */\n void application(String name);\n\n\n /**\n * 生成application-xxx.yml\n *\n * @param branch\n * @param packages\n */\n void applicationBranch(String branch, String packages);\n\n\n /**\n * log文件\n *\n */\n void logBack();\n}",
"public DocumentumCoreServicesImpl() {\r\n\r\n\t\tIObjectService iObjService = null;\r\n\r\n\t\tif (this.objectService == null) {\r\n\r\n\t\t\tlogger.info(INFO_INICIANDO_EMC);\r\n\r\n\t\t\ttry {\r\n\r\n\t\t\t\tRepositoryIdentityConstants repositoryIdentityConstants = EMCDocumentumFactory\r\n\t\t\t\t\t\t.getConstants(RepositoryIdentityConstants.class);\r\n\r\n\t\t\t\tthis.setRepositoryIdentityConstants(repositoryIdentityConstants);\r\n\r\n\t\t\t\tContextFactory contextFactory = ContextFactory.getInstance();\r\n\r\n\t\t\t\tIServiceContext serviceContext = contextFactory.getContext();\r\n\t\t\t\tserviceContext.setRuntimeProperty(IServiceContext.USER_TRANSACTION_HINT, IServiceContext.TRANSACTION_REQUIRED);\r\n\t\t\t\tserviceContext.setRuntimeProperty(IServiceContext.PAYLOAD_PROCESSING_POLICY, \"PAYLOAD_FAIL_ON_EXCEPTION\");\r\n\r\n\t\t\t\tsetServiceContext(serviceContext);\r\n\r\n\t\t\t\tRepositoryIdentity repoId = new RepositoryIdentity();\r\n\r\n\t\t\t\trepoId.setRepositoryName(REPOSITORY_NAME);\r\n\r\n\t\t\t\trepoId.setUserName(USER_NAME);\r\n\r\n\t\t\t\trepoId.setPassword(USER_PASSWORD);\r\n\r\n\t\t\t\tgetServiceContext().addIdentity(repoId);\r\n\r\n\t\t\t\t//\t\tcontextFactory.register(getServiceContext());\r\n\r\n\t\t\t\t//iObjectService = ServiceFactory.getInstance().getRemoteService(IObjectService.class, serviceContext, MODULE_NAME, DFS_SERVICE_URL);\r\n\t\t\t\tiObjService = ServiceFactory.getInstance().getLocalService(IObjectService.class, serviceContext);\r\n\r\n\t\t\t\tlogger.info(INFO_CONEXAO_EMC);\r\n\r\n\t\t\t\tthis.objectService = iObjService;\r\n\r\n\t\t\t} catch (ServiceInvocationException e) {\r\n\r\n\t\t\t\tlogger.error(ERROR_CONEXAO_EMC.concat(e.getLocalizedMessage()));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tthis.setObjectService(iObjService);\r\n\t\t}\r\n\r\n\t}",
"public interface GroupService {\n void upgradeInstances(String app_id, String app_version);\n}",
"public CreateScaledImagesService() {\n super(\"CreateScaledImagesService\");\n }",
"public mService() {\n super(\"fetchImageService\");\n }",
"public interface RestClientService {\n\n\tCollection<Resource<MeasurementDto>> getCatalogueMeasurements(String uri, String metricName, String resourceName);\n\tResource<MeasurementDto> getMonitorMeasurement(String uri, UserCredentials user);\n\tCollection<Resource<SystemResourceDto>> getSystemResources(String uri);\n\tCollection<Resource<ComplexTypeDto>> getAvailableComplexTypes(String uri);\n\tResource<ComplexMeasurementDto> getComplexDetails(String uri);\n\tvoid addMeasurement(String uri, ComplexMeasurementOutDto measurement, UserCredentials user);\n\tvoid deleteMeasurement(String uri, UserCredentials user);\n}",
"public interface IMaintenanceEngineerService {\n\n void post(MaintenanceEngineerPayload payload, IErrorCallback callback);\n\n void get(Long id, IErrorCallback errorCallback);\n}",
"public interface PolicyEngine extends Startable, Lockable, TopicListener {\n\n /**\n * Boot the engine.\n *\n * @param cliArgs command line arguments\n */\n void boot(String[] cliArgs);\n\n /**\n * configure the policy engine according to the given properties.\n *\n * @param properties Policy Engine properties\n * @throws IllegalArgumentException when invalid or insufficient properties are provided\n */\n void configure(Properties properties);\n\n /**\n * updates the Policy Engine with the given configuration.\n *\n * @param configuration the configuration\n * @return success or failure\n * @throws IllegalArgumentException if invalid argument provided\n * @throws IllegalStateException if the system is in an invalid state\n */\n boolean configure(PdpdConfiguration configuration);\n\n /**\n * open the Policy Engine to external configuration systems.\n *\n * @return success or failure\n */\n boolean open();\n\n\n /**\n * configure the engine's environment. General lab installation configuration is made available\n * to the Engine. Typically, custom lab installation that may be needed by arbitrary drools\n * applications are made available, for example network component and database host addresses.\n * Multiple environments can be passed in and tracked by the engine.\n *\n * @param properties an environment properties\n */\n void setEnvironment(Properties properties);\n\n /**\n * gets the engine's environment.\n *\n * @return properties object\n */\n Properties getEnvironment();\n\n /**\n * gets an environment's value, by 1) first from the engine's environment, and 2) from the OS\n * environment.\n *\n * @param key environment key\n * @return environment value or null if absent\n */\n String getEnvironmentProperty(String key);\n\n /**\n * sets an engine's environment property.\n *\n * @param key key\n * @param value value\n * @return property string\n */\n String setEnvironmentProperty(String key, String value);\n\n /**\n * Gets the hostname used by this PDP-D.\n */\n String getHostName();\n\n /**\n * Gets the cluster name as configured in $CLUSTER_NAME,\n * otherwise it will assume an UUID as the cluster name.\n */\n String getClusterName();\n\n /**\n * Gets the PDP Name from hostname and $CLUSTER_NAME,\n * otherwise if CLUSTER_NAME is not set, the PdpName\n * will be the concatenation of the hostname and a\n * UUID.\n */\n String getPdpName();\n\n /**\n * registers a new Policy Controller with the Policy Engine initialized per properties.\n *\n * @param properties properties to initialize the Policy Controller\n * @return the newly instantiated Policy Controller\n * @throws IllegalArgumentException when invalid or insufficient properties are provided\n * @throws IllegalStateException when the engine is in a state where this operation is not\n * permitted.\n */\n PolicyController createPolicyController(String name, Properties properties);\n\n /**\n * updates a set of Policy Controllers with configuration information.\n *\n * @param configuration list of configurations\n * @return list of controllers\n * @throws IllegalArgumentException exception\n * @throws IllegalStateException exception\n */\n List<PolicyController> updatePolicyControllers(List<ControllerConfiguration> configuration);\n\n /**\n * updates an already existing Policy Controller with configuration information.\n *\n * @param configuration configuration\n * @return the updated Policy Controller\n * @throws IllegalArgumentException in the configuration is invalid\n * @throws IllegalStateException if the controller is in a bad state\n */\n PolicyController updatePolicyController(ControllerConfiguration configuration);\n\n /**\n * removes the Policy Controller identified by its name from the Policy Engine.\n *\n * @param name name of the Policy Controller\n */\n void removePolicyController(String name);\n\n /**\n * removes a Policy Controller from the Policy Engine.\n *\n * @param controller the Policy Controller to remove from the Policy Engine\n */\n void removePolicyController(PolicyController controller);\n\n /**\n * returns a list of the available Policy Controllers.\n *\n * @return list of Policy Controllers\n */\n List<PolicyController> getPolicyControllers();\n\n\n /**\n * get policy controller names.\n *\n * @return list of controller names\n */\n List<String> getPolicyControllerIds();\n\n /**\n * get unmanaged sources.\n *\n * @return unmanaged sources\n */\n List<TopicSource> getSources();\n\n /**\n * get unmanaged sinks.\n *\n * @return unmanaged sinks\n */\n List<TopicSink> getSinks();\n\n /**\n * get unmmanaged http servers list.\n *\n * @return http servers\n */\n List<HttpServletServer> getHttpServers();\n\n /**\n * Gets a thread pool that can be used to execute background tasks.\n */\n ScheduledExecutorService getExecutorService();\n\n /**\n * get properties configuration.\n *\n * @return properties objects\n */\n Properties getProperties();\n\n /**\n * get features attached to the Policy Engine.\n *\n * @return list of features\n */\n List<PolicyEngineFeatureApi> getFeatureProviders();\n\n /**\n * get named feature attached to the Policy Engine.\n *\n * @return the feature\n */\n PolicyEngineFeatureApi getFeatureProvider(String featureName);\n\n /**\n * get features attached to the Policy Engine.\n *\n * @return list of features\n */\n List<String> getFeatures();\n\n /**\n * get domain maker.\n *\n * @return the domain maker\n */\n DomainMaker getDomainMaker();\n\n /**\n * get statistics for this PDP.\n *\n * @return statistics\n */\n PolicyStatsManager getStats();\n\n /**\n * Attempts the dispatching of an \"event\" object.\n *\n * @param topic topic\n * @param event the event object to send\n * @return true if successful, false if a failure has occurred.\n * @throws IllegalArgumentException when invalid or insufficient properties are provided\n * @throws IllegalStateException when the engine is in a state where this operation is not\n * permitted (ie. locked or stopped).\n */\n boolean deliver(String topic, Object event);\n\n /**\n * Attempts the dispatching of an \"event\" object over communication infrastructure \"busType\".\n *\n * @param topic topic\n * @param event the event object to send\n * @return true if successful, false if a failure has occurred.\n * @throws IllegalArgumentException when invalid or insufficient properties are provided\n * @throws IllegalStateException when the engine is in a state where this operation is not\n * permitted (ie. locked or stopped).\n * @throws UnsupportedOperationException when the engine cannot deliver due to the functionality\n * missing (ie. communication infrastructure not supported.\n */\n boolean deliver(String busType, String topic, Object event);\n\n /**\n * Attempts the dispatching of an \"event\" object over communication infrastructure \"busType\".\n *\n * @param topic topic\n * @param event the event object to send\n * @return true if successful, false if a failure has occurred.\n * @throws IllegalArgumentException when invalid or insufficient properties are provided\n * @throws IllegalStateException when the engine is in a state where this operation is not\n * permitted (ie. locked or stopped).\n * @throws UnsupportedOperationException when the engine cannot deliver due to the functionality\n * missing (ie. communication infrastructure not supported.\n */\n boolean deliver(CommInfrastructure busType, String topic, Object event);\n\n /**\n * Attempts delivering of an String over communication infrastructure \"busType\".\n *\n * @param topic topic\n * @param event the event object to send\n * @return true if successful, false if a failure has occurred.\n * @throws IllegalArgumentException when invalid or insufficient properties are provided\n * @throws IllegalStateException when the engine is in a state where this operation is not\n * permitted (ie. locked or stopped).\n * @throws UnsupportedOperationException when the engine cannot deliver due to the functionality\n * missing (ie. communication infrastructure not supported.\n */\n boolean deliver(CommInfrastructure busType, String topic, String event);\n\n /**\n * Requests a lock on a resource. Typically, the lock is not immediately granted,\n * though a \"lock\" object is always returned. Once the lock has been granted (or\n * denied), the callback will be invoked to indicate the result.\n *\n * <p/>\n * Notes:\n * <dl>\n * <li>The callback may be invoked <i>before</i> this method returns</li>\n * <li>The implementation need not honor waitForLock={@code true}</li>\n * </dl>\n *\n * @param resourceId identifier of the resource to be locked\n * @param ownerKey information identifying the owner requesting the lock\n * @param holdSec amount of time, in seconds, for which the lock should be held once\n * it has been granted, after which it will automatically be released\n * @param callback callback to be invoked once the lock is granted, or subsequently\n * lost; must not be {@code null}\n * @param waitForLock {@code true} to wait for the lock, if it is currently locked,\n * {@code false} otherwise\n * @return a new lock\n */\n Lock createLock(String resourceId, String ownerKey, int holdSec, LockCallback callback,\n boolean waitForLock);\n\n /**\n * Invoked when the host goes into the active state.\n */\n void activate();\n\n /**\n * Invoked when the host goes into the standby state.\n */\n void deactivate();\n\n /**\n * produces a default telemetry configuration.\n *\n * @return policy engine configuration\n */\n Properties defaultTelemetryConfig();\n\n /**\n * Track a policy execution metric.\n *\n * @param controllerName controller name\n * @param policyName policy name\n * @param metric metric\n */\n void metric(String controllerName, String policyName, Metric metric);\n\n /**\n * Track a policy execution transaction.\n *\n * @param controllerName controller name\n * @param policyName policy name\n * @param transaction transaction\n */\n void transaction(String controllerName, String policyName, Metric transaction);\n}",
"public interface ComputeService {\n\n\n Integer add(int a, int b);\n}",
"public interface ImageService {\n public long insert(ImageEntity entity);\n\n public ImageEntity query(long id);\n\n public List<ImageEntity> findTiles(long id);\n\n public boolean update(ImageEntity entity);\n\n public boolean delete(long id);\n}",
"public interface AlarmDataEnvService extends Service<AlarmDataEnv> {\n\n}",
"public interface ClusterDefinitionService {\n\n /**\n * Returns the local controller node.\n * @return local controller node\n */\n ControllerNode localNode();\n\n /**\n * Returns the set of seed nodes that should be used for discovering other members\n * of the cluster.\n * @return set of seed controller nodes\n */\n Set<ControllerNode> seedNodes();\n\n /**\n * Forms cluster configuration based on the specified set of node\n * information. Assumes subsequent restart for the new configuration to\n * take hold.\n *\n * @param nodes set of nodes that form the cluster\n * @param ipPrefix IP address prefix, e.g. 10.0.1.*\n */\n void formCluster(Set<ControllerNode> nodes, String ipPrefix);\n}",
"private static interface Service {}",
"public abstract IOpipeService service();",
"private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}",
"public interface NodeInstanceService {\n int add(ReviewNodeInstance reviewNodeInstance);\n ReviewNodeInstance queryById(Long id);\n int updateStatus(Map<String, Object> map); //map中有 id、 status(3或4)\n int updateTime(Map<String, Object> map);\n}",
"public interface VCenterHAService {\n\n List<ESightHAServer> getServerList(VCenterInfo vCenterInfo) throws Exception;\n\n void removeMonitored(VCenterInfo vCenterInfo, List<ESightHAServer> list);\n\n /**\n * create provider if it doesn't exist\n *\n * @param enable Whether to enable\n * @return providerId\n */\n String createProvider(ConnectedVim connectedVim, boolean enable);\n\n /**\n * remove provider if it exist\n *\n * @param vCenterInfo vCenter account info\n * @return null: provider not exist<br/> true: remove success<br/> false: remove fail or other\n * exception\n */\n Boolean removeProvider(VCenterInfo vCenterInfo);\n\n /**\n * create alarm definition in vcenter and DB in a new lowest priority thread\n */\n void registerAlarmDefInVcenterAndDB(VCenterInfo vCenterInfo,\n List<AlarmDefinition> alarmDefinitionList, boolean result);\n\n ConnectedVim getConnectedVim();\n\n /**\n * unregister alarm definitions from vCenter\n */\n int unregisterAlarmDef(VCenterInfo vCenterInfo, List<String> morList);\n\n}",
"public interface DeviceOperateService {\n public int opValve(Integer userid,String house_code,Integer open,Integer islock,JSONObject resultObj);\n\n public int setBuildingValve(Integer userid, Map<String,String> paramters,JSONObject resultObj);\n\n public int opBuildingValve(Integer userid, Map<String,String> paramters,JSONObject resultObj);\n\n public int readBuildingValveSet(Integer userid, Map<String,String> paramters,JSONObject resultObj);\n}",
"public interface SearchClientService {\r\n\t/**\r\n\t * Get Search engine client\r\n\t * \r\n\t * @return\r\n\t */\r\n\tClient getClient();\r\n\r\n\tvoid setup();\r\n\r\n\tvoid shutdown();\r\n}",
"public interface CentralConfRegistryService {\n void set(String key, Object value) throws ServiceException;\n\n void set(String key, Object value, String description) throws ServiceException;\n\n Object get(String key) throws ServiceException;\n}",
"public interface ApplicationService {\n ResourceList build(CloudBlueprint cloudBlueprint);\n List<Server> getServers(String environment);\n Map<String, JsonBall> getServerDetail(String serverName);\n}",
"public interface Engine {\n\n String run();\n\n}",
"public interface ServiceRegistry {\n\n /**\n * Add a service into the registry.\n *\n * @param serviceInfo\n */\n void addService(ServiceInfo serviceInfo);\n\n /**\n * Gets the interval in second of heartbeats.\n *\n * @return\n */\n int getHeartbeatInterval();\n\n /**\n * Sets the interval in second of heartbeats.\n *\n * @param interval\n */\n void setHeartbeatInterval(int interval);\n\n void run();\n\n void stop();\n}",
"public interface CloudServiceImpl {\n\n /**\n * This method provides an implementation of distributed map. All the nodes\n * on the cluster shares this instance.\n * @param mapName Name of the map.\n * @param <K> Type of the map's key.\n * @param <V> Type of the map's values.\n * @return Return the instance of the distributed map.\n */\n <K extends Object, V extends Object> Map<K, V> getMap(String mapName);\n\n /**\n * This method provides an implementation of distributed queue. All the nodes\n * on the cluster shares this instance.\n * @param queueName Name of the queue.\n * @param <V> Type of the queue's values.\n * @return Return the instance of the distributed queue.\n */\n <V extends Object> Queue<V> getQueue(String queueName);\n\n /**\n * This method provides an implementation of distributed set. All the nodes\n * on the cloud shares this instance.\n * @param setName Name of the set.\n * @param <V> Type of the set's values.\n * @return Return the instance of the distributed set.\n */\n <V extends Object> Set<V> getSet(String setName);\n\n /**\n * This method provides an implementation of distributed counter. All the nodes\n * on the cloud shares this instance.\n * @param counterName Name of the counter.\n * @return Return thr instance of the counter.\n */\n Counter getCounter(String counterName);\n\n /**\n * This method takes a resource an lock this for all the thread around the cluster\n * and this resource has locked for all the thread for execution.\n * This method is blocked until you can get the lock.\n * @param resourceName The name of the resource to lock.\n * @throws InterruptedException Interrupted exception\n */\n void lock(String resourceName) throws InterruptedException;\n\n /**\n * This method unlocks a previously locked resource.\n * @param resourceName The name of the resource locked.\n * @throws InterruptedException Interrupted exception.\n */\n void unlock(String resourceName) throws InterruptedException;\n\n /**\n * Return the implementation of the Lock interface distributed.\n * @param lockName Name of the lock.\n * @return Distributed lock implementation.\n */\n Lock getLock(String lockName);\n\n /**\n * Return the distributed lock condition over specific lock object.\n * @param conditionName Lock condition name.\n * @param lock Specific lock object.\n * @return Return the lock condition.\n */\n Condition getCondition(String conditionName, Lock lock);\n\n /**\n * Creates a instance of cache into the cloud using the specific strategy to\n * specify the behavior of the cache instance.\n * @param cacheName Name of the cache instance.\n * @param strategies Set with the strategies for the cache instance.\n */\n void createCache(String cacheName, Set<CloudCacheStrategy> strategies);\n\n /**\n * Return the instance of cache named with specific name.\n * @param cacheName Name of the instance of cache.\n * @return Instance of cache.\n */\n CloudCache getCache(String cacheName);\n\n /**\n * Dispatch the event instance to the cloud.\n * @param event Event instance.\n */\n void dispatchEvent(DistributedEvent event);\n\n /**\n * Publish a distributed layer into the cloud.\n * @param layerClass Layer class.\n * @param implName Layer implementation name.\n * @param regex Regex for match the implementation.\n */\n void publishDistributedLayer(Class<? extends LayerInterface> layerClass, String implName, String regex);\n\n /**\n * This method send the plugin for all the nodes into the cloud.\n * @param jarFile Byte array that represents the jar file.\n */\n void publishPlugin(byte[] jarFile);\n\n /**\n * This method verifies if the layer and name indicated are published into the cloud.\n * @param layerClass Layer class.\n * @param implName Layer implementation name.\n * @return Returns true if the layer is published and false in the otherwise.\n */\n boolean isLayerPublished(Class<? extends LayerInterface> layerClass, String implName);\n\n /**\n * Returns the object that represent the distributed layer.\n * @param layerClass Layer class.\n * @param implName Layer implementation name.\n * @return Regex if exist or null.\n */\n String getRegexFromDistributedLayer(Class<? extends LayerInterface> layerClass, String implName);\n\n /**\n * Invokes the remote instance of a layer.\n * @param layerClass Layer interface class.\n * @param implName Implementation name.\n * @param method Method to invoke.\n * @param parameters Parameters to invoke.\n * @param <O> Expected return data type.\n * @return Invocation result.\n */\n <O extends Object> O layerInvoke(Class<? extends LayerInterface> layerClass, String implName, Method method, Object... parameters);\n\n /**\n * This method must start the process of interaction with other services.\n */\n void publishMe();\n\n /**\n * This method start a worker over the cloud implementation to make a task and finish.\n * @param workerConfig Map with all the parameters to configure a worker instance.\n */\n void forkWorker(Map<String,Object> workerConfig);\n\n /**\n * Shutdown hook\n */\n void shutdown();\n\n}",
"public interface ElasticSearchClientService {\n\n public void add(TodoItem todoItem);\n\n public String search(String searchString);\n\n public void update(String id, TodoItem todoItem);\n\n public void delete(String id);\n\n}",
"public interface EzService {\n}",
"public interface Provider {\n //Connection connect(String url, java.util.Properties info)\n Service newService();\n}",
"public interface EngineInterface<T> {\n\tpublic T run (Mower mower);\n}",
"@Ignore\n\t@Test\n\tpublic void testGetDockerClient(){\n\t\tList<Container> shinyContainers = dockerService.getShinyContainers();\n\t\tAssert.assertEquals(1, shinyContainers.size());\n\t}",
"public interface TelIpManageService {\n\n public List<CallCenter> queryCallCenters();\n\n public void updateCallCenter(CallCenter callCenter);\n\n\tpublic void deleteCallCenters(List<Integer> callCenterIDs);\n\n\tpublic void addCallCenter(CallCenter callCenter);\n\n\tpublic CallCenter queryCallCenter(Integer callCenterID);\n}",
"public interface JSONRestconfService {\n /**\n * The data tree root path.\n */\n String ROOT_PATH = null;\n\n /**\n * Issues a restconf PUT request to the configuration data store.\n *\n * @param uriPath the yang instance identifier path, eg \"opendaylight-inventory:nodes/node/device-id\".\n * To specify the root, use {@link ROOT_PATH}.\n * @param payload the payload data in JSON format.\n * @throws OperationFailedException if the request fails.\n */\n void put(String uriPath, @Nonnull String payload) throws OperationFailedException;\n\n /**\n * Issues a restconf POST request to the configuration data store.\n *\n * @param uriPath the yang instance identifier path, eg \"opendaylight-inventory:nodes/node/device-id\".\n * To specify the root, use {@link ROOT_PATH}.\n * @param payload the payload data in JSON format.\n * @throws OperationFailedException if the request fails.\n */\n void post(String uriPath, @Nonnull String payload) throws OperationFailedException;\n\n /**\n * Issues a restconf DELETE request to the configuration data store.\n *\n * @param uriPath the yang instance identifier path, eg \"opendaylight-inventory:nodes/node/device-id\".\n * To specify the root, use {@link ROOT_PATH}.\n * @throws OperationFailedException if the request fails.\n */\n void delete(String uriPath) throws OperationFailedException;\n\n /**\n * Issues a restconf GET request to the given data store.\n *\n * @param uriPath the yang instance identifier path, eg \"opendaylight-inventory:nodes/node/device-id\".\n * To specify the root, use {@link ROOT_PATH}.\n * @param datastoreType the data store type to read from.\n * @return an Optional containing the data in JSON format if present.\n * @throws OperationFailedException if the request fails.\n */\n Optional<String> get(String uriPath, LogicalDatastoreType datastoreType)\n throws OperationFailedException;\n\n /**\n * Invokes a yang-defined RPC.\n *\n * @param uriPath the path representing the RPC to invoke, eg \"toaster:make-toast\".\n * @param input the input in JSON format if the RPC takes input.\n * @return an Optional containing the output in JSON format if the RPC returns output.\n * @throws OperationFailedException if the request fails.\n */\n Optional<String> invokeRpc(@Nonnull String uriPath, Optional<String> input) throws OperationFailedException;\n\n /**\n * Issues a restconf PATCH request to the configuration data store.\n *\n * @param uriPath the yang instance identifier path, eg \"opendaylight-inventory:nodes/node/device-id\".\n * To specify the root, use {@link ROOT_PATH}.\n * @param payload the payload data in JSON format.\n * @return an Optional containing the patch response data in JSON format.\n * @throws OperationFailedException if the request fails.\n */\n Optional<String> patch(@Nonnull String uriPath, @Nonnull String payload) throws OperationFailedException;\n}",
"void start() throws EngineException;",
"public interface HardwareServices\n{\n Hardware create(Hardware hardware);\n\n Hardware read(long id);\n\n Hardware update(Hardware hardware);\n\n void delete(long id);\n}",
"public interface SmartCultureFarmService extends Service<SmartCultureFarm> {\n\n}",
"Container createContainer();",
"public interface BeforeStopHook<T extends ServiceManager> extends DockerLifecycleHook<T> {\n}",
"String getDockerFilelocation();",
"@Test\n public void testBuildContainer() throws Exception {\n System.out.println(\"buildContainer\");\n JTextArea ta = new JTextArea();\n //Create temp host file\n try {\n //\"False\" in file writer for no append\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"hosts\", false)));\n out.println(\"[email protected]\");\n out.flush();\n } catch (Exception e) {\n\n }\n ArrayList<File> files = new ArrayList<File>();\n Docker instance = new Docker(\"ubuntu\", \"git\", files, \"sh6791\", \"matrix\", \"v1\", \"saqhuss\", \"dockersh6791\", \"[email protected]\");\n instance.buildDockerfile();\n instance.buildContainer(ta);\n Process p;\n String line = null;\n StringBuilder sb = new StringBuilder();\n try {\n p = Runtime.getRuntime().exec(new String[]{\"docker\", \"images\"});\n BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n } catch (Exception e) {\n\n }\n assertEquals(sb.toString().split(\"\\n\")[1].split(\" \")[0].trim(), \"saqhuss/matrix\");\n Files.delete(Paths.get(\"Dockerfile\"));\n Files.delete(Paths.get(\"hosts\"));\n Files.delete(Paths.get(\"id_rsa\"));\n Files.delete(Paths.get(\"id_rsa.pub\"));\n Files.delete(Paths.get(\"authorized_keys\"));\n }",
"public void doService() {\n }",
"public interface ImageSearchService {\n\n /**\n * Register an image into the search instance.\n *\n * @param imageData Image data in JPEG or PNG format.\n * @param imageType Image format.\n * @param uuid Unique identifier of the image.\n */\n void register(byte[] imageData, ObjectImageType imageType, String uuid);\n\n /**\n * Un-register an image from the search instance.\n *\n * @param uuid Unique identifier of the image.\n */\n void unregister(String uuid);\n\n /**\n * Find all images similar to the given one.\n *\n * @param imageData Image to match with registered ones in the search instance.\n * @param objectRegion object region to search.\n * @return Found images UUIDs and raw response.\n */\n ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);\n\n /**\n * Check the image search configuration is correct by making a fake search request.\n *\n * @param configuration Configuration to check.\n */\n void checkImageSearchConfiguration(Configuration configuration) throws InvalidConfigurationException;\n}",
"public interface VideoService {\n /**\n * 查询一个video\n *\n * @param id\n * @return\n * @throws Exception\n */\n Video findVideoById(Integer id) throws Exception;\n\n /**\n * 保存一个video\n *\n * @param video\n * @throws Exception\n */\n void saveVideo(Video video) throws Exception;\n\n /**\n * 更新一个video\n *\n * @param video\n * @throws Exception\n */\n void updateVideo(Video video) throws Exception;\n\n /**\n * 查询所有video\n *\n * @return\n * @throws Exception\n */\n List<Video> findAllVideo() throws Exception;\n\n /**\n * 通过id删除\n *\n * @throws Exception\n */\n void deleteVideoById(Integer id) throws Exception;\n\n /**\n * 查找所有的video总数\n *\n * @return\n * @throws Exception\n */\n int findCountVideo() throws Exception;\n\n /**\n * 查询一个video\n *\n * @return\n * @throws Exception\n */\n Video queryVideoService() throws Exception;\n}",
"public interface TearcherInfoService extends Service<TearcherInfo> {\n\n}",
"public interface AlgorithmParamService\n{\n ReturnData addParam(AlgorithmParam param);\n void deleteAllParam(Integer nodeId);\n ReturnData deleteParam(Integer paramId);\n ReturnData updateParam(AlgorithmParam param);\n Boolean judgeName(List<AlgorithmParam> addParams,List<AlgorithmParam> updateParams);\n List<AlgorithmParam> findNodeParam(Integer nodeId);\n Boolean judgeAddName(AlgorithmParam param);\n Boolean judgeUpdateName(AlgorithmParam param);\n}",
"public interface EventService {\n\n //根据eventCode获取事件信息\n Event getEventByEventCode(String eventCode);\n\n //根据事件的主键更改修改的次数\n Integer upateEventTimesById(Integer eventId,Integer upateTimes);\n\n //根据事件的主键更新最新操作时间\n Integer upateOperateTimeById(Integer eventId, Date operateTime);\n\n /**\n * 条件查询事件列表\n * @param userName\n * @param eventListCondBO\n * @param currentPage\n * @param pageSize\n * @return\n */\n Page eventService(String userName,EventListCondBO eventListCondBO,Integer currentPage,Integer pageSize);\n\n /**\n * 事件流未读转为已读\n * @param eventId\n */\n void eventReadStatus(Integer eventId);\n}",
"Service newService();",
"public interface CommunityPostItemService extends Service<CommunityPostItem> {\n\n}",
"public interface CacheConfigService {\n Cache init();\n\n void close();\n}",
"public interface ImageEngine {\n\n //采用责任链模式\n\n void init();\n\n ImageEngine with(Context context);\n\n ImageEngine load(String path);\n\n ImageEngine into(ImageView target);\n\n\n}",
"public interface WatchdogService {\r\n\t\r\n\t/**\r\n\t * Starts the hardware watchdog on the device. If a timeout value has not been\r\n\t * set, the watchdog will use its default timeout.<br>\r\n\t * This call is no longer used. The life-cycle of the watchdog is controlled\r\n\t * by the configuration parameters of the WatchdogSerivce. The API call\r\n\t * is retained for compatibility reasons.\r\n\t */\r\n @Deprecated\r\n\tpublic void startWatchdog();\r\n\t\r\n\t/**\r\n\t * Stops the hardware Watchdog on the device\r\n * This call is no longer used. The life-cycle of the watchdog is controlled\r\n * by the configuration parameters of the WatchdogSerivce. The API call\r\n * is retained for compatibility reasons.\r\n\t */\r\n @Deprecated\r\n\tpublic void stopWatchdog();\r\n\t\r\n\t/**\r\n\t * Returns the timeout value for the hardware watchdog in increments of milliseconds.\r\n\t * \r\n\t * @return\t\tAn int representing the hardware timeout value in milliseconds. \r\n\t */\r\n\tpublic int getHardwareTimeout();\r\n\t\r\n\t/**\r\n\t * Register a critical service with the Critical Service Check-in. \r\n\t * Once registered, the critical service must call the checkin() \r\n\t * method (at a frequency higher than 1/timeout) to prevent a system reboot.\r\n\t * \r\n\t * @param criticalService\tA <code>CriticalService</code> to be registered.\r\n\t * @param timeout\t\t\tA timeout value that the critical service cannot exceed\r\n\t * \t\t\t\t\t\t\tbetween updates without generating a system reboot. The\r\n\t * \t\t\t\t\t\t\ttime is expressed in seconds.\r\n\t */\r\n\t@Deprecated\r\n\tpublic void registerCriticalService(CriticalComponent criticalComponent);\r\n\t\r\n\t/**\r\n\t * Unregister a critical service with the Critical Service Check-in.\r\n\t * Once unregistered, the critical service will no longer call the \r\n\t * checkin() method.\r\n\t * \r\n\t * @param criticalService\tA <code>CriticalService</code> to be unregistered.\r\n\t */\r\n @Deprecated\r\n\tpublic void unregisterCriticalService(CriticalComponent criticalComponent);\r\n\t\r\n /**\r\n * Register a critical component with the WatchdogService Check-in. \r\n * Once registered, the critical component must call the checkin() \r\n * method (at a frequency higher than 1/timeout) to prevent a system reboot.\r\n * \r\n * @param CriticalComponent The CriticalComponent to be registered.\r\n * @param timeout A timeout value that the critical service cannot exceed\r\n * between updates without generating a system reboot. The\r\n * time is expressed in seconds.\r\n */\r\n public void registerCriticalComponent(CriticalComponent criticalComponent);\r\n \r\n /**\r\n * Unregister a critical component with the WatchdogService Check-in.\r\n * Once unregistered, the critical component will no longer call the \r\n * checkin() method.\r\n * \r\n * @param CriticalComponent The CriticalComponent to be unregistered.\r\n */\r\n public void unregisterCriticalComponent(CriticalComponent criticalComponent);\r\n\r\n /**\r\n\t * Returns the list of the currently registered CriticalComponents\r\n\t * \r\n\t * @return\tA List of CriticalComponents\r\n\t */\r\n\tpublic List<CriticalComponent> getCriticalComponents();\r\n\t\r\n\t/**\r\n\t * This method is used to notify the Watchdog Service that a critical service\r\n\t * has 'checked in' and the reboot timer should be reset.\r\n\t * \r\n\t * @param criticalComponent\tThe criticalComponent to be updated.\r\n\t */\r\n\tpublic void checkin(CriticalComponent criticalComponent);\r\n\t\r\n}",
"public interface ServiceManagerInterface {\n\n /**\n * add a Service\n * @param servicePackage the service package to register\n * @param configuration The configuration of the client\n * @param profile the client profile\n * @return The added service description\n * @throws IOException\n * @throws SoapException\n */\n AGServiceDescription addService(\n AGServicePackageDescription servicePackage,\n AGParameter[] configuration,\n ClientProfile profile)\n throws IOException, SoapException;\n\n /**\n * gets the service manager description\n * @return service manager description\n * @throws IOException\n * @throws SoapException\n */\n AGServiceManagerDescription getDescription()\n throws IOException, SoapException;\n\n /**\n * gets the url of the node service\n * @return url of node service\n * @throws IOException\n * @throws SoapException\n */\n String getNodeServiceUrl()\n throws IOException, SoapException;\n\n /**\n * gets the available services\n * @return a vector of available services\n * @throws IOException\n * @throws SoapException\n */\n AGServiceDescription[] getServices()\n throws IOException, SoapException;\n\n /**\n * test whether the service manager is valid\n * @return the 'valid' state\n * @throws IOException\n * @throws SoapException\n */\n int isValid() throws IOException, SoapException;\n\n /**\n * removes a service from the service manager\n * @param serviceDescription the description of the service to be removed\n * @throws IOException\n * @throws SoapException\n */\n void removeService(AGServiceDescription serviceDescription)\n throws IOException, SoapException;\n\n /**\n * removes all services from the service manager\n * @throws IOException\n * @throws SoapException\n */\n void removeServices() throws IOException, SoapException;\n\n /**\n * sets the url for node service\n * @param nodeServiceUri\n * @throws IOException\n * @throws SoapException\n */\n void setNodeServiceUrl(String nodeServiceUri)\n throws IOException, SoapException;\n\n /**\n * shuts down the service manager\n * @throws IOException\n * @throws SoapException\n */\n void shutdown() throws IOException, SoapException;\n\n /**\n * stops all services on service manager\n * @throws IOException\n * @throws SoapException\n */\n void stopServices() throws IOException, SoapException;\n\n /**\n * gets the version number of the service manager\n * @return string with version of service manager\n * @throws IOException\n * @throws SoapException\n */\n String getVersion() throws IOException, SoapException;\n\n\n /**\n * Requests to join a bridge\n * @param bridgeDescription The description of the bridge\n * @throws IOException\n * @throws SoapException\n */\n void joinBridge(BridgeDescription bridgeDescription)\n throws IOException, SoapException;\n\n /**\n * Sets the streams of this service manager\n *\n * @param streamDescriptionList a vector of stream descriptions\n * @throws IOException\n * @throws SoapException\n */\n void setStreams(StreamDescription[] streamDescriptionList)\n throws IOException, SoapException;\n /**\n * adds a stream\n * @param argname stream description of new stream\n * @throws IOException\n * @throws SoapException\n */\n void addStream(StreamDescription argname)\n throws IOException, SoapException;\n /**\n * Removes a stream\n * @param argname The stream to remove\n * @throws IOException\n * @throws SoapException\n */\n void removeStream(StreamDescription argname)\n throws IOException, SoapException;\n /**\n * Sets the point of reference for network traffic\n * @param url The url of the point of reference server\n * @throws IOException\n * @throws SoapException\n */\n void setPointOfReference(String url)\n throws IOException, SoapException;\n\n /**\n * Sets the encryption\n * @param encryption The encryption\n * @throws IOException\n * @throws SoapException\n */\n void setEncryption(String encryption)\n throws IOException, SoapException;\n /**\n * Instructs the client to run automatic bridging\n * @throws IOException\n * @throws SoapException\n */\n void runAutomaticBridging()\n throws IOException, SoapException;\n\n /**\n * Determines if a service is enabled\n * @param service The service to get the status of\n * @return True if enabled, false otherwise\n * @throws IOException\n * @throws SoapException\n */\n boolean isServiceEnabled(AGServiceDescription service)\n throws IOException, SoapException;\n\n /**\n * Enables or disables a service\n * @param service The service to control\n * @param enabled True to enable, false to disable\n * @throws IOException\n * @throws SoapException\n */\n void enableService(AGServiceDescription service, boolean enabled)\n throws IOException, SoapException;\n\n /**\n * Gets the configuration parameters of a service\n * @param service The service to get the configuration of\n * @return The parameters\n * @throws IOException\n * @throws SoapException\n */\n AGParameter[] getServiceConfiguration(AGServiceDescription service)\n throws IOException, SoapException;\n /**\n * Sets the configuration parameters for a service\n * @param service The service to configure\n * @param config The new parameters\n * @throws IOException\n * @throws SoapException\n */\n void setServiceConfiguration(AGServiceDescription service,\n AGParameter[] config)\n throws IOException, SoapException;\n\n /**\n * Sets the client profile\n * @param profile The new profile\n * @throws IOException\n * @throws SoapException\n */\n void setClientProfile(ClientProfile profile)\n throws IOException, SoapException;\n}",
"SourceBuilder createService();",
"public interface ProjectService {\n\n public String chargeProject(String instance, String id);\n\n public void createProject(String instance, String name);\n\n public void delete(String instance, String id);\n\n public List<Project> chargeAll(String instance);\n\n public void update(String instance, String id, String name);\n}",
"public interface ContentCategoryService {\n HmResult addConentCategory(long parentId, String name);\n public List<EasyUITreeNode> getContentCatList(long parentId);\n}",
"public interface ProgramsService {\n\n /**\n * Retrieves all the programs from EPG.\n * @param date the date to consider\n * @param application the application that request the data\n * @param channels list of channel to consider\n * @return List of programs\n */\n List<Program> findAllPrograms(String date, String application, List<String> channels);\n}",
"@Override\n protected void reconfigureService() {\n }",
"public interface Service {\n\n}",
"public interface Service {\n\n}",
"public void execute() throws MojoExecutionException {\n deploy(service, dockerImage,Optional.ofNullable(kalixProject),Optional.ofNullable(kalixContext));\n }",
"private RunVolumes() {}",
"public DownloadImageService() {\n\n super(\"DownloadImageService\");\n }",
"public interface DiscoveryService {\n boolean saveDiscovery(Discovery discovery);\n\n boolean updateDiscovery(Discovery discovery);\n\n Discovery getDiscoveryById(int id);\n\n boolean deleteDiscovery(int id);\n\n boolean deleteDiscoveryByIdList(int[] idList);\n\n List<Discovery> getDiscoveryByRandomPage(int offset, int limit, int[] excludeIdList);\n\n List<Discovery> getDiscoveryByCreateTimeDescPage(int offset, int limit);\n\n int getDiscoveryCount();\n}",
"public interface DeviceService extends BaseService<PDevice,String> {\n\n int checkDeviceName(String dname);\n List<String> getallIp();\n int count();\n String authDevice(String msg1);\n void updateDeviceCon(String eid,String conStatue);\n ReType showCon(PDevice pDevice, int page, int limit);\n\n\n List<PDevice> getAlldevice();\n\n void addDevice(PDevice pDevice);\n\n void updateDeviceIp(String eid, String inetAddress);\n\n PDevice selectDevicebyeid(String eid);\n\n JsonUtil deletebydeviceId(String eid, boolean flag);\n\n void updateDevice(PDevice pDevice);\n\n\n List<HashMap<String,String>> getDeviceConnect(List<String> deviceids);\n}",
"@Service\npublic interface CategoryService {\n void updateCategory(String title,String description);\n Iterable<Category> getAllCategories();\n}",
"public interface WorkConsumerService{\n\n /**\n * Consumes a single work unit.\n * <p>\n * Blocks for 15 s or until a work unit becomes consumable, if there is currently none. \n * \n */\n void consumeWorkUnit();\n\n /**\n * Returns the total number of consumed work units by the engine instance at hand since\n * the engine's last deployment.\n */\n long getConsumedWorkUnits();\n\n}",
"public Collection<Service> createServices();",
"public interface SysLogService extends CurdService<SysLog> {\n\n}",
"public interface PaTaskItemPointViewService extends Service<PaTaskItemPointView> {\n\n}",
"public interface CommandManagerService {\n\n\t/**\n\t * This method gets the available command types on the edge server and the\n\t * ID of the ReaderFactory that the command type works with.\n\t * \n\t * @return A set of CommandConfigPluginDTOs\n\t */\n\tSet<CommandConfigFactoryDTO> getCommandConfigFactories();\n\n\t/**\n\t * Get all the CommandConfigFactoryID associated with a readerFactoryID.\n\t * \n\t * @param readerFactoryID\n\t * @return\n\t */\n\tSet<CommandConfigFactoryDTO> getCommandConfigFactoriesByReaderID(String readerFactoryID);\n\n\t/**\n\t * Get the CommandConfigurationFactory\n\t * @param commandFactoryID\n\t * @return\n\t */\n\tCommandConfigFactoryDTO getCommandConfigFactory(\n\t\t\tString commandFactoryID);\n\n\t/**\n\t * Gets the DTOs for configured commands.\n\t * \n\t * @return a set of configured commands\n\t */\n\tSet<CommandConfigurationDTO> getCommands();\n\n\t/**\n\t * Gets the DTO for a given Command Configuration.\n\t * \n\t * @param commandConfigurationID\n\t * The ID of the commandConfiguration to get\n\t * @return A DTO for the configured command, or null if no command\n\t * configuration is available for the given ID\n\t */\n\tCommandConfigurationDTO getCommandConfiguration(\n\t\t\tString commandConfigurationID);\n\n\t/**\n\t * Gets the meta information necessary to construct a new Command.\n\t * \n\t * @param commandType\n\t * the type of command to make\n\t * @return an MBeanInfo object that describes how to make a new command\n\t */\n\tMBeanInfo getCommandDescription(String commandType);\n\n\t/**\n\t * Create a new Command.\n\t * \n\t * @param commandType\n\t * The type of the Command to make\n\t * @param properties\n\t * the properties of a Command\n\t * @return the id of new created command\n\t */\n\tString createCommand(String commandType, AttributeList properties);\n\n\t/**\n\t * Sets the properties of a Command.\n\t * \n\t * @param commandID\n\t * the ID of the command to set\n\t * @param properties\n\t * the new properties of the command\n\t */\n\tvoid setCommandProperties(String commandID, AttributeList properties);\n\n\t/**\n\t * Delete a command configuration.\n\t * \n\t * @param commandConfigurationID\n\t * the ID of the commandConfiguration to delete\n\t */\n\tvoid deleteCommand(String commandID);\n}",
"public interface ICategoryService {\n /*添加品类 即添加节点*/\n ServerResponse addCategory(String categoryName, Integer parentId);\n\n /*修改品类名字*/\n ServerResponse updateCategoryName(Integer categoryId,String categoryName);\n\n /*获取品类子节点(平级)*/\n ServerResponse<List<Category>> getChildrenParallelCategory(Integer categoryId);\n\n /*递归查询本节点的id及孩子节点的id*/\n ServerResponse<List<Integer>> selectCategoryAndChildrenById(Integer categoryId);\n}",
"public interface ProcesoVENService extends Service {\n\n\t/**\n\t * Ejecuta procedimiento generico\n\t * @param nombreExecute\n\t * @param criteria\n\t */\n\tpublic void executeGenerico(String nombreExecute, Map criteria) ;\n\t\n\t/**Actualiza calensarios\n\t * @param calendario\n\t * @param usuario\n\t */\n\tpublic void updateCalendario(Calendario calendario, Usuario usuario);\n\t\n\t/**devuelve lista de calendarios\n\t * @param criteria\n\t * @return\n\t */\n\tpublic List getCalendarios(Map criteria);\n\t\n\t/**\n\t * devuelve el calendario\n\t * @param criteria\n\t * @return\n\t */\n\tpublic Calendario getCalendario(Map criteria);\n\t\n /**\n * devuelve los feriados d euna zona\n * @param criteria\n * @return\n */\n public List getFeriadoZona(Map criteria);\n\t\n\t/**\n\t * Actualiza feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void updateFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * Inserta los feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * elimina los feriados d euna zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void deleteFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\n\t/**\n\t * Metodo que trae las zonas de una region\n\t * @param feriadoRegion\n\t * @return\n\t */\n\tpublic List getZonasRegion(String feriadoRegion);\n\n\t/**\n\t * Retorna el indicador de habilitacion RUV\n\t * @param criteria\n\t * @return\n\t */\n\tpublic String getIndicadorHabilitacionRuv(Map criteria);\n\n\t/**\n\t * Genera la informacion para el reporte RUV\n\t * @param map\n\t */\n\tpublic void executeGeneracionReporteRUV(Map map);\n\t\n\t/**\n\t * Genera los archivos de libro de ventas - detalles SII\n\t * @param map\n\t */\n\tpublic void executeGenerarArchivosLibroVentasDetalleSII(Map map);\n\t\n}"
] |
[
"0.60918945",
"0.5811388",
"0.57298565",
"0.57091504",
"0.5630217",
"0.5630217",
"0.5630217",
"0.562104",
"0.56130666",
"0.5533139",
"0.5531504",
"0.5499116",
"0.54523706",
"0.54503405",
"0.54251546",
"0.54208606",
"0.54006594",
"0.53926903",
"0.5333877",
"0.5332472",
"0.5318757",
"0.53143704",
"0.5309201",
"0.5300577",
"0.52912813",
"0.5280508",
"0.5279648",
"0.5277447",
"0.5276931",
"0.52762645",
"0.5266351",
"0.526319",
"0.52563286",
"0.5239137",
"0.5232053",
"0.5225358",
"0.522372",
"0.52221894",
"0.5214521",
"0.5212559",
"0.52124685",
"0.51997745",
"0.51878524",
"0.5186409",
"0.51854616",
"0.518454",
"0.517682",
"0.5173335",
"0.51669717",
"0.51636744",
"0.5157927",
"0.51496756",
"0.51495874",
"0.51439613",
"0.51422864",
"0.5126928",
"0.51256883",
"0.5117038",
"0.51151174",
"0.51017666",
"0.50958276",
"0.50886655",
"0.50864476",
"0.5084994",
"0.50845504",
"0.5077188",
"0.50754297",
"0.50695807",
"0.5066054",
"0.5064626",
"0.5063375",
"0.50600916",
"0.5055959",
"0.5055689",
"0.50545615",
"0.5051623",
"0.5051376",
"0.50430816",
"0.5042124",
"0.50418705",
"0.5040978",
"0.5039348",
"0.50360245",
"0.50353384",
"0.5019804",
"0.50144863",
"0.50144863",
"0.5013026",
"0.5011886",
"0.50117135",
"0.50102556",
"0.50006473",
"0.49985397",
"0.49975437",
"0.49951684",
"0.49946362",
"0.49939746",
"0.49936256",
"0.49890086",
"0.49886227"
] |
0.68275535
|
0
|
The number of cards chosen from the table determines what is done
|
public static void humanMove(CuarentaGame game, Card playedCard, ArrayList<Card> chosenCards){
switch(chosenCards.size()){
case 0: noCardsChosen(game, playedCard);
System.out.println("No cards found");
break;
case 1: oneCardChosen(game, playedCard, chosenCards.get(0));
System.out.println("One card found");
break;
default: generalAction(game, playedCard, chosenCards);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int getNumCards();",
"public int getNumCards()\r\n {\r\n return numCards;\r\n }",
"public int numOfCards() {\n return cards.size();\n }",
"public int getNumCards() {\n return this.numCards;\n }",
"public int getNumberOfCards()\n\t{\n\t\treturn numCards;\n\t}",
"public int getNumberOfCards() {\r\n\t\treturn numberOfCards;\r\n\t}",
"public int size() {\r\n\t\treturn seedCards.size();\r\n\t}",
"public int size() {\r\n\t\treturn cards.size();\r\n\t}",
"public int getNumCards() {\n return this.topCard;\n }",
"public int getSize(){\r\n\t\treturn cards.size();\r\n\t}",
"public int size()\n\t{\n\t\treturn card.size();\n\t}",
"public int getAmountOfCards() {\n\t\t\n\t\treturn myCards.size();\n\t\t\n\t}",
"public static int getNumCardsPerHand()\n {\n return NUM_CARDS_PER_HAND;\n }",
"public int getCardCount() {\n return cardSet.totalCount();\n }",
"public List<Integer> askPlayerCardsToUse();",
"public int getTotalCards() {\n\t\treturn cards.size();\n\t}",
"public int getNumberOfDifferentCards(ArrayList<CardModel> playerCardsList) {\n System.out.println(\"different card method\") ;\n int numberOfUnits = 0;\n int infantryCardNumber = 0;\n int artilaryCardNumber = 0;\n int cavalaryCardNumber = 0;\n\n ArrayList<CardModel> playerCards = playerCardsList;\n\n infantryCardNumber = getNumberCardTypeByCardType(playerCards, EnumHandler.CardType.INFANTRY);\n artilaryCardNumber = getNumberCardTypeByCardType(playerCards , EnumHandler.CardType.ARTILLERY);\n cavalaryCardNumber = getNumberCardTypeByCardType(playerCards , EnumHandler.CardType.CAVALRY);\n\n numberOfUnits = Math.min(infantryCardNumber, Math.min(artilaryCardNumber, cavalaryCardNumber));\n\n if (numberOfUnits > 0 && isUpdatePlayerDeck()) {\n setPlayerDeckByCardType(playerCards, EnumHandler.CardType.INFANTRY, numberOfUnits);\n setPlayerDeckByCardType(playerCards, EnumHandler.CardType.ARTILLERY, numberOfUnits);\n setPlayerDeckByCardType(playerCards, EnumHandler.CardType.CAVALRY, numberOfUnits);\n }\n\n return numberOfUnits;\n\n }",
"@Override\n public int howManyActivated(){\n return (gameboardPanel.howManyActivated() + leaderCardsPanel.howManyActivated());\n }",
"public int getCountTradeCards() {\r\n\t\treturn countTradeCards;\r\n\t}",
"public int getCardCount() {\r\n\t\treturn this.cards;\r\n\t}",
"public int getCardCount() {\r\n return cardCount;\r\n\t}",
"@Override\r\n\tpublic int requestCard (ArrayList<Card> cardsAlreadyRequested) {\n\t\treturn (int)(Math.random() * 13);\r\n\t}",
"@Test\n public void getNumDraw() {\n this.reset();\n assertEquals(-1, this.bps.getNumDraw());\n // max # of visible cards in the draw pile\n this.reset();\n this.bps.startGame(this.fullDeck, false, 7, 1);\n assertEquals(1, this.bps.getNumDraw());\n }",
"public int getNumDevCards() {\n \t\tint count = 0;\n \t\tfor (int i = 0; i < cards.length; i++)\n \t\t\tcount += cards[i];\n \n \t\treturn count + newCards.size();\n \t}",
"public void cards() {\n\t\t\n\n\t\tboolean[] randomCards = new boolean[52];\n\n\t\t// choose 4 random distinct cards from the deck\n\t\tint count = 0;\n\t\tint card1 = 0;\n\t\tint card2 = 0;\n\t\tint card3 = 0;\n\t\tint card4 = 0;\n\n\t\twhile (count < 4) {// Display only four cards\n\n\t\t\tcard1 = ((int) (Math.random() * 12) + 1) + 1;// Ignore zero\n\t\t\tcard2 = ((int) (Math.random() * 12) + 1) + 1;// Ignore zero\n\t\t\tcard3 = ((int) (Math.random() * 12) + 1) + 1;// Ignore zero\n\t\t\tcard4 = ((int) (Math.random() * 12) + 1) + 1;// Ignore zero\n\n\t\t\tif ((randomCards[card1] = !randomCards[card2]) && (randomCards[card1] = !randomCards[card3])\n\t\t\t\t\t&& (randomCards[card1] = !randomCards[card4]) && (randomCards[card2] = !randomCards[card3])\n\t\t\t\t\t&& (randomCards[card2] = !randomCards[card4]) && (randomCards[card3] = !randomCards[card4])) {\n\n\t\t\t\tString[] cards = { \"clubs\", \"diamonds\", \"hearts\", \"spades\" };\n\n\t\t\t\tString name1 = cards[(int) (Math.random() * cards.length)];\n\t\t\t\tString name2 = cards[(int) (Math.random() * cards.length)];\n\t\t\t\tString name3 = cards[(int) (Math.random() * cards.length)];\n\t\t\t\tString name4 = cards[(int) (Math.random() * cards.length)];\n\n\t\t\t\tImage image1 = new Image(\"png/\" + (card1) + \"_of_\" + name1 + \".png\");\n\t\t\t\tImage image2 = new Image(\"png/\" + (card2) + \"_of_\" + name2 + \".png\");\n\t\t\t\tImage image3 = new Image(\"png/\" + (card3) + \"_of_\" + name3 + \".png\");\n\t\t\t\tImage image4 = new Image(\"png/\" + (card4) + \"_of_\" + name4 + \".png\");\n\n\t\t\t\timgCard1.setImage(image1);\n\t\t\t\timgCard2.setImage(image2);\n\t\t\t\timgCard3.setImage(image3);\n\t\t\t\timgCard4.setImage(image4);\n\n\t\t\t\tcount++;\n\n\t\t\t}\n\n\t\t}\n\n\t\tString cardOneValue = Integer.toString(card1);\n\t\tString cardTwoValue = Integer.toString(card2);\n\t\tString cardThreeValue = Integer.toString(card3);\n\t\tString cardFourValue = Integer.toString(card4);\n\t\tSystem.out.println(cardOneValue + \" - \" + cardTwoValue + \" - \" + cardThreeValue + \" - \" + cardFourValue);\n\t\tsetText.setText(cardOneValue +\" \"+ cardTwoValue +\" \"+ cardThreeValue +\" \"+ cardFourValue);\n\t\t\n\t\tint solution = 0; \n\t\tif(solution!=24) {\n\t\tfor(int limit = 0; limit < 25; limit++) {\n\t\t\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(solution);\n\t\t\n\t}",
"public static int chooseCardFromCollection(Collection collection) {\n System.out.println(\"Please select the pokemons numbers you want. (beetween 1 and \" + collection.getAlCardsCollection().size() + \")\");\n return keyboardChoice.nextInt();\n }",
"@Test\n public void getDeckTest2() {\n GenericStandardDeckGame g = new GenericStandardDeckGame();\n List<Card> deck = g.getDeck();\n for (int i = 2; i < 15; i++) {\n int counter = 0;\n for (Card c : deck) {\n if (c.getValue() == i) {\n counter++;\n }\n }\n assertEquals(counter, 4);\n }\n }",
"public int size()\r\n\t{\r\n\t\treturn deck.size();\r\n\t}",
"public int cardsLeft() {\n return deck.size();\n }",
"private Integer[] getNumberOfCards() {\n Integer[] numberOfCards = new Integer[players.length];\n\n for (int i = 0; i < players.length; i++) {\n numberOfCards[i] = players[i].getHand().length;\n }\n\n return numberOfCards;\n }",
"public int getCardCount() {\n\t\treturn this.cardsInhand.size();\n\t}",
"public int length()\n {\n return cards.size();\n }",
"private void countSelections(){\n\t\tfor(Student student: students){\n\t\t\tArrayList<Character> studentAnswers = student.getAnswers();\n\t\t\tSystem.out.print(\"student: \"+student.toString() + \"\\n\");\n\t\t\tfor(Character answer: studentAnswers){\n\t\t\t\tint timesSelected = selections.get(q.getPossibleAnswers().indexOf(answer));\n\t\t\t\tselections.set(q.getPossibleAnswers().indexOf(answer), timesSelected+1);\n\t\t\t}\n\t\t}\n\t}",
"Pinochle(){\n createDeck();\n createDeck();\n this.originalSizeOfDeck = this.deckOfCards.size();\n }",
"public int getNumberOfSimilarCards(ArrayList<CardModel> playerCardsList) {\n System.out.println(\"Similar card method\") ;\n int numberOfUnits = 0;\n int infantryCardNumber = 0;\n int artilaryCardNumber = 0;\n int cavalaryCardNumber = 0;\n ArrayList<CardModel> cards = playerCardsList;\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 && isUpdatePlayerDeck()) {\n setPlayerDeckByCardType(cards, EnumHandler.CardType.INFANTRY);\n }\n if (artilaryCardNumber / 3 > 0 && isUpdatePlayerDeck()) {\n setPlayerDeckByCardType(cards, EnumHandler.CardType.ARTILLERY);\n }\n if (cavalaryCardNumber / 3 > 0 && isUpdatePlayerDeck()) {\n setPlayerDeckByCardType(cards, EnumHandler.CardType.CAVALRY);\n }\n\n return numberOfUnits;\n }",
"public int leaderDeckSize(){\n return deckLeaderCard.size();\n }",
"public int remaining() {\r\n\t\treturn cards.size();\r\n\t}",
"public int size() {\n return deck.size();\n }",
"public int chooseCard(){\n if(playable.size() == 1)//checks the size\n return searchCard(0);//returns the only playable card\n else{\n int temp = (int) Math.random()*playable.size();//chooses a random one\n return searchCard(temp);//returns that cards position\n }\n }",
"public int askWhatPermitCards(List<PermitCard> cards);",
"public int CardsOnDeck()\n\t{\n\t\treturn cardNumber;\n\t}",
"public int getSizeOfDeck(){\n return cardDeck.size();\n }",
"@Test\r\n\tpublic void TestDeckSuitCount() {\n\t\ttry {\r\n\t\t\tDeck AKDeck = new Deck();\r\n\t\t\tfor (int i = 13; i >= 0; i--) {\r\n\t\t\t\tassertEquals(i, AKDeck.Count(eSuit.HEARTS));\r\n\t\t\t\tAKDeck.Draw(eSuit.HEARTS);\r\n\t\t\t}\r\n\t\t} catch (DeckException ex) {\r\n\t\t\tSystem.out.println(\"The deck is empty. No more cards can be drawn.\");\r\n\t\t}\r\n\t}",
"private int numberOfColumns() {\n DisplayMetrics displayMetrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n // You can change this divider to adjust the size of the recipe cards\n int widthDivider = 300;\n int width = displayMetrics.widthPixels;\n int numOfColumns = width / widthDivider;\n if (numOfColumns < 2) {\n return 2;\n }\n return numOfColumns;\n }",
"public int getVictoryCards() {\n \t\treturn victory;\n \t}",
"@Test\n void shuffleTest() {\n CardDeck deck = new CardDeck(testCardTexts);\n int[] occurences = new int[testCardTexts.length];\n int numberOfCards = testCardTexts.length;\n int numberOfDraws = 10000;\n\n for (int i = 0; i < numberOfDraws ; i++) {\n //Shuffles deck\n deck.shuffle();\n\n //Draws upper card and gets id - increments occurence\n occurences[deck.draw().getId()]++;\n }\n\n for (int i = 0; i < testCardTexts.length; i++) {\n assertTrue(occurences[i]<(numberOfDraws/numberOfCards)+50 && occurences[i]> (numberOfDraws/numberOfCards)-50);\n }\n\n }",
"public int run() {\n\t\t// start game\n\t\t// dealers shuffle cards\n\t\tview.displayIntro();\n\t\tview.printLine();\n\t\t\n\t\tdealer.shuffleCards();\n\t\tview.printLine();\n\t\t\n\t\tint numOfCards = 0;\n\t\tint numOfRounds = 1;\n\t\t\n\t\twhile(numOfRounds < 5){\n\t\t\t// Dealer dealing cards to players\n\t\t\tview.displayRound(numOfRounds);\n\t\t\tview.printLine();\n\t\t\tnumOfRounds++;\n\t\t\t// First round --> face down for each player\n\t\t\tif(numOfCards == 0){\n\t\t\t\tfor (GamePlayerInterface player : players) {\n\t\t\t\t\t// take out card from dealer and give it to player\n\t\t\t\t\tCard card = dealer.dealCard();\n\t\t\t\t\tplayer.addCard(card);\n\t\t\t\t\tnumOfCards++;\n\t\t\t\t\t// NEED to add total and both players for current record\n\t\t\t\t\tview.updateTable(players,player);\n\t\t\t\t\tview.printLine();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint currentPDvalue[] = new int[2];\n\t\t\tString currentPDname[] = new String[2];\n\t\t\tString currentPDsuit[] = new String[2];\n\t\t\tint x = 0;\n\t\t\t// Second card onwards\n\t\t\t\tfor (GamePlayerInterface player : players) {\n\t\t\t\t\t// take out card from dealer and give it to player\n\t\t\t\t\tCard card = dealer.dealCard();\n\t\t\t\t\tplayer.addCard(card);\n\t\t\t\t\t\n\t\t\t\t\tcurrentPDvalue[x] = card.getValue();\n\t\t\t\t\tcurrentPDname[x] = card.getName();\n\t\t\t\t\tcurrentPDsuit[x] = card.getSuit();\n\t\t\t\t\tx++;\n\t\t\t\t\t\n\t\t\t\t\tnumOfCards++;\n\t\t\t\t\t\n\t\t\t\t\tview.updateTable(players,player);\n\t\t\t\t\tview.printLine();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Check which card is higher\n\t\t\t\t\n\t\t\t\tint PDbig = 0;\n\t\t\t\tPDbig = compareBigger(currentPDvalue[0], currentPDvalue[1], currentPDsuit[0], \n\t\t\t\t\t\t\t\t\t\tcurrentPDsuit[1], currentPDname[0],currentPDname[1]);\n\t\t\t\t\n\t\t\t\t// Do any betting by either Player or Dealer\n\t\t\t\tboolean ifContinue = true;\n\t\t\t\tifContinue = displayBet(PDbig, players);\n\t\t\t\tif(!ifContinue){\n\t\t\t\t\tresult = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tview.printLine();\n\t\t}\n\t\t\n\t\t//show all player's cards (include hidden cards\n\t\tview.updateTableShowAllCards(players);\n\t\t//assume human player is always the first in the arraylist\n\t\tGamePlayerInterface player = players.get(0);\n\t\t\n\t\t//determine if human player has win\n\t\tview.printLine();\n\t\tview.print(\"Determine winning\");\n\t\t\n\t\tresult = determineWinning(player, dealer);\n\t\tint totalChips = players.get(0).getChips();\n\t\t\n\t\tswitch(result){\n\t\tcase 0: totalChips = (players.get(0).getChips()) + (betOnTable/2);\n\t\t\t\tplayers.get(0).setChips(totalChips);\n\t\t\t\treturn totalChips;\n\t\tcase 1: break;\n\t\tcase 2:\ttotalChips = (players.get(0).getChips()) + betOnTable;\n\t\t\t\tplayers.get(0).setChips(totalChips);\n\t\t\t\treturn totalChips;\n\t\tdefault: view.print(\"Only 3 possibilities. Contact admin for assistance!\");\n\t\t}\n\t\tview.printChips(totalChips);\n\t\tview.print(\"End of Game\");\n\t\t//end of one game\n\t\t\n\t\t// Remove cards from previous arrays and re-add to original deck\n\t\tfor(GamePlayerInterface p : players){\n\t\t\trecreateDeck(p);\n\t\t}\n\t\t\n\t\t// initially, return result\n\t\treturn totalChips;\n\t}",
"private int drawCards(){\n int input = JOptionPane.showConfirmDialog(null, FirstPlayer.showHand() + SecondPlayer.showHand() +\n \"Would you like to continue the game?\\n\", \"Draw another card?\", \n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n return input;\n }",
"@Override\n public int getShoeSize() {\n return this.cards.size();\n }",
"public void NumberOfPlayers()\r\n {\r\n Input=JOptionPane.showInputDialog(\"Type the number of players\", JOptionPane.YES_NO_OPTION);\r\n \r\n SecondInput = JOptionPane.showInputDialog(\"How many of those \"+ Input +\" players will be AI ?\", JOptionPane.YES_NO_OPTION);\r\n \r\n while(Converter(SecondInput) >= Converter(Input))\r\n {\r\n if(Converter(SecondInput) >= Converter(Input))\r\n {\r\n JOptionPane.showMessageDialog(this,\"AI players can't be equal or more than the original number of players!\",\r\n \"ERROR\",\r\n JOptionPane.ERROR_MESSAGE);\r\n\r\n SecondInput = JOptionPane.showInputDialog(\"How many of those \"+ Input +\" players will be AI ?\", JOptionPane.YES_NO_OPTION);\r\n }\r\n \r\n }\r\n \r\n if(Input!=null)\r\n {\r\n int j = Converter(Input); \r\n \r\n Start();\r\n }\r\n \r\n }",
"public void can_counter()\n {\n candidate_count=0;\n for (HashMap.Entry<String,Candidate> set : allCandidates.entrySet())\n {\n candidate_count++;\n }\n }",
"public void dealerAskCard() {\n int dealerScore = this.getDealerHand().getActualValue();\n while (dealerScore < 17) {\n Card card = this.deck.deal(this.getDealerHand());\n dealerScore = this.getDealerHand().getActualValue();\n }\n }",
"private int demDoiThong(List<Card> bai) {\n List<Card> cards = new ArrayList<>() ;\n int max = 0;\n int count = 0;\n for (int i = 0; i < bai.size() - 1; i++) {\n if (bai.get(i).getId() >= 48) {\n break;\n }\n if (count == 0 && bai.get(i).getCardNumber() == bai.get(i + 1).getCardNumber()) {\n count = 1;\n if (cards.isEmpty()) {\n cards.add(bai.get(i));\n cards.add(bai.get(i + 1));\n }\n } else {\n if (count % 2 != 0) {\n if (bai.get(i).getCardNumber()== bai.get(i + 1).getCardNumber() - 1) {\n count++;\n } else if (bai.get(i).getCardNumber()!= bai.get(i + 1).getCardNumber()) {\n // valid = false;\n if (count > max) {\n max = count;\n }\n if(cards.size()<6){\n cards.clear();\n }\n count = 0;\n }\n } else {\n if (bai.get(i).getCardNumber()== bai.get(i + 1).getCardNumber()) {\n if(!cards.contains(bai.get(i))){\n cards.add(bai.get(i));\n }\n if(!cards.contains(bai.get(i+1))){\n cards.add(bai.get(i+1));\n }\n count++;\n } else {\n // valid = false;\n if (count > max) {\n max = count;\n }\n if(cards.size()<6){\n cards.clear();\n }\n count = 0;\n }\n }\n }\n }\n if (count > max) {\n max = count;\n }\n if (max >= 5) {\n this.specialCards.addAll(cards);\n }\n return (max + 1) / 2;\n }",
"private int getSelectedCount() {\r\n\t int count = 0;\r\n\t for (int i = 0; i < _selectedList.size(); ++i) {\r\n\t count += _selectedList.get(i) ? 1 : 0;\r\n\t }\r\n\t return count;\r\n\t}",
"public static void cardsPlayer(int player){\n System.out.println(\"Player has cards as below\");\n for(int i=0;i<player;i++){\n System.out.println(\"the player has cards\"+i);\n shuffleCards(arrayList,player);\n }\n }",
"int countByExample(CardExample example);",
"@Override\n\tpublic int countIndex() {\n\t\treturn logoMapper.selectCountLogo()+headbannerMapper.selecCountHB()+succefulMapper.selecCountSucc()+solutionMapper.selecCountSolu();\n\t}",
"@Test\n public void getNumRows() {\n this.reset();\n assertEquals(-1, this.bps.getNumRows());\n // # of rows originally in pyramid\n this.reset();\n this.bps.startGame(this.fullDeck, false, 3, 1);\n assertEquals(3, this.bps.getNumRows());\n // # of rows after game has been played\n this.bps.removeUsingDraw(0, 2, 2);\n this.bps.removeUsingDraw(0, 2, 1);\n this.bps.removeUsingDraw(0, 2, 0);\n assertEquals(2, this.bps.getNumRows());\n assertNotEquals(3, this.bps.getNumRows());\n\n\n }",
"public int getCardsToDraw() {\r\n return cardsToDraw;\r\n }",
"public void setChosenDeckNumber(int n){\n this.chosenDeckNumber = n;\n }",
"public static String sameCardsChosen() {\n return \"You chose the same cards, pleas choose the second card again: \";\n }",
"public int getCardCount() {\n \t\treturn dupCount;\n \t}",
"public int getHandSize() {\r\n\t\treturn playerCards.size();\r\n\t}",
"private static BigInteger numOfFlipsRequired(BigInteger numOfCards,BigInteger bi0,BigInteger bi3,BigInteger bi1){\n \n if(numOfCards.equals(bi0)){\n return bi0;\n }else if(numOfCards.compareTo(bi3) == -1){\n return bi1;\n }else if(numOfCards.mod(bi3).compareTo(bi0) == 0){\n return numOfCards.divide(bi3);\n }else{\n return numOfCards;\n }\n \n \n // return numOfFlips;\n }",
"public int printChoicesForShowtimes() {\n\t\tint i=0;\n\t\tint N = this.getDataLength();\n\t\twhile(i<N) {\n\t\t\tif (this.dataList.get(i).isComingSoon())\n\t\t\t\tbreak;\n\t\t\tSystem.out.println(i+\" : \"+this.dataList.get(i).toString());\n\t\t\t++i;\n\t\t}\n\t\t\n\t\treturn i;\n\t}",
"public void chooseCards() {\n\n if (availableGods.isEmpty()) {\n createChallenger();\n notifyChoose(cardsChosen, this.getGodListNames(), this.getCurrentTurn().getCurrentPlayer().getNickname());\n } else {\n notifyChoose(true, this.getGodListNames(), this.getCurrentTurn().getCurrentPlayer().getNickname());\n }\n\n }",
"public int receiveNumCards() {\n try {\n return dIn.readInt();\n } catch (IOException e) {\n System.out.println(\"Number of cards not received\");\n e.printStackTrace();\n }\n return 0;\n }",
"private int playerTurn() {\n List<Card> drawnCards = new LinkedList<>();\n boolean exit = false;\n\n // Ask the player to draw more cards\n do {\n // Draw cards\n Card drawn = drawCard();\n drawnCards.add(drawn);\n Ui.cls();\n Ui.println(\"You drew a \" + drawn.getName());\n Ui.pause();\n\n // Shows current cards and drawn cards\n Ui.cls();\n Ui.println(getHeader());\n Ui.println();\n Ui.print(\"Cards:\");\n // Draw every card\n for (int i = 0; i < drawnCards.size(); i++) {\n Ui.print(\" \" + drawnCards.get(i));\n if (i + 1 < drawnCards.size()) {\n Ui.print(\",\");\n }\n }\n // Value of cards\n Ui.println(\"Value: \" + highestPossibleValue(drawnCards));\n Ui.println();\n\n // Check for too much points\n if (highestPossibleValue(drawnCards) > 21) {\n Ui.println(\"Unfortunately you got more than 21 points, resulting in a total of 0 points!\");\n Ui.pause();\n break;\n } else {\n Ui.println(\"Would you like to draw another card?\");\n Ui.println(\"1) Take another card\");\n Ui.println(\"2) Stop taking cards\");\n }\n\n // Input\n boolean quitInput = false;\n while (!quitInput) {\n int menuChoice = Ui.getValidInt();\n\n switch (menuChoice) {\n case 1:\n quitInput = true;\n break;\n case 2:\n exit = true;\n quitInput = true;\n break;\n default:\n break;\n }\n }\n\n } while (!exit);\n\n if (highestPossibleValue(drawnCards) > 21) {\n return 0;\n } else {\n return highestPossibleValue(drawnCards);\n }\n }",
"private int getRowCountFromGuessing() {\n\t\treturn rowCountFromGuessing;\n\t}",
"public int askWhatPoliticCards(List<PoliticCard> cards);",
"public int getCount() {\n\n if (team.size() <= 0)\n return 1;\n return team.size();\n }",
"public int remainingCards() {\n return this.cards.length - this.topCardIndex ;\n }",
"public void choose(int n) {\r\n\t\tfor (int i = 0; i < mustChoose.size(); i++) {\r\n\t\t\t// Find the specific card\r\n\t\t\tif (mustChoose.get(i).contentEquals(\"Shrine\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\tcurrentPlayer.updateGold(1);\r\n\t\t\t\t} else if (n == 2) {\r\n\t\t\t\t\tupdateHealth(currentPlayer,1);\r\n\t\t\t\t\tupdateBoardNoImageChange();\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Dragon Shrine\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\tcurrentPlayer.updateGold(2);\r\n\t\t\t\t} else if (n == 2) {\r\n\t\t\t\t\tmustTrash.add(\"Dragon Shrine\");\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Treasure Hunter\")) {\r\n\t\t\t\tif (!dungeonRow[n-4].isBought()) {\r\n\t\t\t\t\tdungeonRow[n-4] = mainDeck.getNext();\r\n\t\t\t\t\tmainDeck.removeTop();\r\n\t\t\t\t\tif (dungeonRow[n-4].isHasArrive()) {\r\n\t\t\t\t\t\tdoArriveEffect(dungeonRow[n-4]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tupdateDungeonRow(currentPlayer, false);\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Underworld Dealing\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\tcurrentPlayer.updateGold(1);\r\n\t\t\t\t} else if (n == 2 && currentPlayer.getGold() >= 7) {\r\n\t\t\t\t\tcurrentPlayer.updateGold(-7);\r\n\t\t\t\t\t// Tries to buy 2\r\n\t\t\t\t\tif (reserve.getSecretTomes().size() > 0) {\r\n\t\t\t\t\t\tcurrentPlayer.getDiscardPile().add(reserve.getSecretTomes().get(0));\r\n\t\t\t\t\t\treserve.removeSecretTome();\r\n\t\t\t\t\t\tcurrentPlayer.updateSecretTomes(1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (reserve.getSecretTomes().size() > 0) {\r\n\t\t\t\t\t\tcurrentPlayer.getDiscardPile().add(reserve.getSecretTomes().get(0));\r\n\t\t\t\t\t\treserve.removeSecretTome();\r\n\t\t\t\t\t\tcurrentPlayer.updateSecretTomes(1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tupdateDungeonRow(currentPlayer, false);\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Apothecary\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\tcurrentPlayer.updateSwords(3);\r\n\t\t\t\t} else if (n == 2) {\r\n\t\t\t\t\tcurrentPlayer.updateGold(2);\r\n\t\t\t\t} else if (n == 3) {\r\n\t\t\t\t\tupdateHealth(currentPlayer,1);\r\n\t\t\t\t\tupdateBoardNoImageChange();\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Mister Whiskers\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\t// Only dragon attack in the middle of turn\r\n\t\t\t\t\tdragonAttack(cubesPerLevel[attackLevel]);\r\n\t\t\t\t} else if (n == 2) {\r\n\t\t\t\t\tcurrentPlayer.updateClankOnBoard(-2);\r\n\t\t\t\t\tupdateBoardNoImageChange();\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Wand of Wind\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\tcurrentPlayer.updateTeleports(1);\r\n\t\t\t\t} else if (n > 1) {\r\n\t\t\t\t\t// Take a secret from nearby room\r\n\t\t\t\t\tif (Utils.has(GlobalVars.adjacentRoomsPerRoom[currentPlayer.getCurrentRoom()],n) || Utils.has(GlobalVars.teleportRoomsPerRoom[currentPlayer.getCurrentRoom()],n)) {\r\n\t\t\t\t\t\tif (mapContents[n].startsWith(\"Minor\") || mapContents[n].startsWith(\"Major\")) {\r\n\t\t\t\t\t\t\trewardPlayer(n);\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tupdateBoard();\r\n\t\t\t\t\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else return;\r\n\t\t\t\t} else return;\r\n\t\t\t}\r\n\t\t\tmustChoose.remove(i);\r\n\t\t}\r\n\t\tupdateMarketAndTreasures(false);\r\n\t\tupdateInfo(currentPlayer, false);\r\n\t\t// In case Mister Whiskers ends the game\r\n\t\tif (!checkIfGameIsOver()) {\r\n\t\t\tupdatePlayArea(currentPlayer, false);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\r\n \r\n //Check the input of cards should be multiple of 5 and more than 0\r\n if (args.length % 5 == 0 && args.length > 0) {\r\n \r\n int player = args.length / N; //count the player based on input\r\n int playerNo; //store the number of player for print\r\n int countCard = args.length; //count the number of card \r\n\r\n Suit[] CardSuit = new Suit[countCard]; //store the suit of cards\r\n Rank[] CardRank = new Rank[countCard]; //store the rank of cards\r\n Card[] card = new Card[countCard]; //store all cards\r\n Card[] cardinhand = new Card[N]; //store cards in one hand\r\n PokerHand[] hand = new PokerHand[player]; //store all players' hands\r\n \r\n //Deal with print of players draw\r\n int[] drawPlayer = new int[player]; //store draw players number \r\n /*set default value in the array as bigger than the number of player, \r\n so that will be sorted to the last if not updated*/\r\n Arrays.fill(drawPlayer, player + 1); \r\n int countDraw = 0; //count the number of draw players\r\n \r\n //Get the input: rank of the card\r\n for (int i = 0; i < countCard; i++) {\r\n switch (args[i].charAt(0)) {\r\n case ('2'):\r\n CardRank[i] = Rank.TWO;\r\n break;\r\n case ('3'):\r\n CardRank[i] = Rank.THREE;\r\n break;\r\n case ('4'):\r\n CardRank[i] = Rank.FOUR;\r\n break;\r\n case ('5'):\r\n CardRank[i] = Rank.FIVE;\r\n break;\r\n case ('6'):\r\n CardRank[i] = Rank.SIX;\r\n break;\r\n case ('7'):\r\n CardRank[i] = Rank.SEVEN;\r\n break;\r\n case ('8'):\r\n CardRank[i] = Rank.EIGHT;\r\n break;\r\n case ('9'):\r\n CardRank[i] = Rank.NINE;\r\n break;\r\n case ('T'):\r\n case ('t'):\r\n CardRank[i] = Rank.TEN;\r\n break;\r\n case ('J'):\r\n case ('j'):\r\n CardRank[i] = Rank.JACK;\r\n break;\r\n case ('Q'):\r\n case ('q'):\r\n CardRank[i] = Rank.QUEEN;\r\n break;\r\n case ('K'):\r\n case ('k'):\r\n CardRank[i] = Rank.KING;\r\n break;\r\n case ('A'):\r\n case ('a'):\r\n CardRank[i] = Rank.ACE;\r\n break;\r\n default:\r\n System.out.println\r\n (\"Error: invalid card name '\" + args[i] + \"'\");\r\n System.exit(i);\r\n break;\r\n }\r\n //Get the input: suit of the card\r\n switch (args[i].charAt(1)) {\r\n case ('C'):\r\n case ('c'):\r\n CardSuit[i] = Suit.Clubs;\r\n break;\r\n case ('D'):\r\n case ('d'):\r\n CardSuit[i] = Suit.Diamonds;\r\n break;\r\n case ('H'):\r\n case ('h'):\r\n CardSuit[i] = Suit.Hearts;\r\n break;\r\n case ('S'):\r\n case ('s'):\r\n CardSuit[i] = Suit.Spades;\r\n break;\r\n default:\r\n System.out.println\r\n (\"Error: invalid card name '\" + args[i] + \"'\");\r\n System.exit(i);\r\n break;\r\n }\r\n //Set all cards in the array\r\n card[i] = new Card(CardRank[i], CardSuit[i]);\r\n }\r\n\r\n //Use all cards to set cards for each player\r\n for (int i = 0; i < player; i++) {\r\n for (int j = 0; j < N; j++) {\r\n cardinhand[j] = card[i * 5 + j];\r\n }\r\n playerNo = i + 1;\r\n //Set cards and player number of each hand\r\n hand[i] = new PokerHand(cardinhand, playerNo);\r\n System.out.print(\"Player \" + playerNo + \": \");\r\n //Find the classification of each hand and print\r\n switch (hand[i].FindClass()) {\r\n case Straight_flush:\r\n System.out.println\r\n (hand[i].getR1().getRankName() + \"-high straight flush\");\r\n break;\r\n case Four_of_a_kind:\r\n System.out.println\r\n (\"Four \" + hand[i].getR1().getRankName() + \"s\");\r\n break;\r\n case Full_house:\r\n System.out.println\r\n (hand[i].getR1().getRankName() + \"s full of \" + \r\n hand[i].getR2().getRankName() + \"s\");\r\n break;\r\n case Flush:\r\n System.out.println\r\n (hand[i].getR1().getRankName() + \"-high flush\");\r\n break;\r\n case Straight:\r\n System.out.println\r\n (hand[i].getR1().getRankName() + \"-high straight\");\r\n break;\r\n case Three_of_a_kind:\r\n System.out.println\r\n (\"Three \" + hand[i].getR1().getRankName() + \"s\");\r\n break;\r\n case Two_pair:\r\n System.out.println\r\n (hand[i].getR1().getRankName() + \"s over \" + \r\n hand[i].getR2().getRankName() + \"s\");\r\n break;\r\n case One_pair:\r\n System.out.println\r\n (\"Pair of \" + hand[i].getR2().getRankName() + \"s\");\r\n break;\r\n case High_cards:\r\n System.out.println\r\n (hand[i].getR1().getRankName() + \"-high\");\r\n break;\r\n }\r\n }\r\n\r\n Arrays.sort(hand);//sort the comparable object hand\r\n\r\n // Find the player number that draw with the highest hand player\r\n for (int i = player - 2; i >= 0; i--) {\r\n if (hand[player - 1].compareTo(hand[i]) == 0) {\r\n drawPlayer[countDraw] = hand[i].getPlayerNo();\r\n countDraw++; // count the number of draw players\r\n }\r\n }\r\n\r\n Arrays.sort(drawPlayer); // ascending sort the player number \r\n //print result after compare and sort\r\n if (player > 1) {\r\n if (countDraw > 1)\r\n\r\n {\r\n System.out.print(\"Players \");\r\n for (int i = 0; i < countDraw - 1; i++) {\r\n System.out.print(drawPlayer[i] + \", \");\r\n }\r\n System.out.println(\r\n hand[player - 2].getPlayerNo() + \" and \" + \r\n hand[player - 1].getPlayerNo() + \" draw.\");\r\n } else if (countDraw == 1)\r\n System.out.println\r\n (\"Players \" + hand[player - 2].getPlayerNo() + \r\n \" and \"+ hand[player - 1].getPlayerNo() + \" draw.\");\r\n else\r\n System.out.println\r\n (\"Player \" + hand[player - 1].getPlayerNo() + \" wins.\");\r\n }\r\n } else\r\n System.out.println\r\n (\"Error: wrong number of arguments; must be a multiple of 5\");\r\n System.exit(args.length);\r\n }",
"public int getTotalRegularCards() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getCardsByWins());\n }",
"public ChooseCards(ArrayList<CardView> possibleCards, int num, ArrayList<CardView> pickedCards) {\n super(\"choose cards\");\n this.possibleCards = possibleCards;\n this.num = num;\n this.pickedCards = pickedCards;\n }",
"public void numberOfChoices() {\n\t\tcommon.waitForElement(mcqChoices, 60);\n\t\tchoicesinMCQ = mcqChoices.getText();\n\t\tarr = choicesinMCQ.split(\"\\\\W+\");\n\t\tnumberOfChoicesinMCQ = arr[3];\n\t\tlastOption = numberOfChoicesinMCQ.charAt(0);\n\t\tint a = 1;\n\t\tfor (char x = firstOption; x < lastOption; x++) {\n\t\t\tfirstOption += 1;\n\t\t\ta += 1;\n\t\t}\n\t\tfor (choice = 0; choice < a; choice++) {\n\t\t\tcommon.waitForElement(mcqChoices, 60);\n\t\t\tanswerChoice.get(choice).click();\n\t\t}\n\t\tchoice = 0;\n\t\ta = 1;\n\t\tfirstOption = 'A';\n\t}",
"public int getHandKarteCount(){\n return getHandKarte().size();\n }",
"public int getSize() {\n return pokerList.size();\n }",
"static int calculateScore(Card[] winnings) {\n int score = 0;\n for (Card card : winnings)\n if (card != null)\n score++;\n else\n break;\n return score;\n }",
"int getCount(Side player) {\n return player == BLACK ? _countBlack : _countWhite;\n }",
"@Override\n protected void initialCardGeneration() {\n Intent intent = getIntent();\n if(intent != null)\n {\n if(intent.getBooleanExtra(\"cardPoolIntent\", false))\n {\n // Store card pools loaded in from elsewhere.\n Bundle bundle = intent.getExtras();\n openedCardPool = bundle.getParcelableArrayList(\"openedCardPool\");\n selectedCardPool = bundle.getParcelableArrayList(\"selectedCardPool\");\n\n // Gets the deck ID and stores it in case this was passed from MyDeckActivity.\n deckId = bundle.getInt(\"deckId\");\n\n // Update card counter button according to passed in selected card pool (deck).\n btnCardsInDeck.setText(selectedCardPool.size() + SEALED_DECK_NUM);\n }\n else\n {\n // Generate new cards according to Sealed rules, using the database. (6 boosters.)\n generateNewCards();\n }\n }\n else\n {\n // Generate new cards according to Sealed rules, using the database. (6 boosters.)\n generateNewCards();\n }\n }",
"public void displayUnusedCards(MapBoard board){\n\t\tSystem.out.println(\"----------------------------------------------------------------------------------------------\");\n\t\tSystem.out.println(\"|\\t\\t\\t\\t\\tSelect card to play |\");\n\t\tSystem.out.println(\"----------------------------------------------------------------------------------------------\");\n\t\tSystem.out.println(\"\\n\");\n\t\tint local=0;\n\t\tScanner input=new Scanner(System.in);\n\t\tArrayList<Integer> temp=new ArrayList<>();\n\t\tfor (int i = 0; i < playerCards.size(); i++) {\n\t\t\tif (!(playerCards.get(i).used)) {\n\t\t\t\tSystem.out.println(\"\\tPress \\\"\"+(i)+\"\\\"\");\n\t\t\t\tplayerCards.get(i).showPlayerCardDetails();\n\t\t\t\tSystem.out.println();\n\t\t\t\tlocal++;\n\t\t\t\ttemp.add(i);\n\t\t\t}\n\t\t}\n\t\t\n\t\tdo{\n\t\t\tint j=input.nextInt();\n\t\t\t\n\t\t\tif(!(temp.contains(j))){\n\t\t\t\tSystem.out.println(\"<<<<<---Wrong choice--->>>>>\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//perform action specific to player card\n\t\t\tplayerCards.get(j).used=true;\n\t\t\tplayerCards.get(j).startPlayerCardActions();\n\t\t\tbreak;\n\t\t}while(true);\n\t\t\n\t\t\n\t\t//discard used cards at the end of each turn\n\t\tdiscardUsedCards();\n\t\tif(Start.temparea.size()>0)\n\t\t{\n\t\t\tSystem.out.println(\"--------------------------------------------------------------\");\n\t\t\tSystem.out.println(\"| <<<< Do you want to perform cityarea card ? >>>> |\");\n\t\t\tSystem.out.println(\"--------------------------------------------------------------\");\n\t\t\tSystem.out.println(\"| 1. YES |\");\n\t\t\tSystem.out.println(\"| 2. No |\");\n\t\t\tSystem.out.println(\"--------------------------------------------------------------\");\n\t\t\n\t\t\tdo\n\t\t\t{\n\t\t\t\tint value=input.nextInt();\n\t\t\t\tif(value==1)\n\t\t\t\t{\n\t\t\t\t\t//Start.PerformPlayerCard(board, this);\n\t\t\t\t\tStart.CheckCityAreaCard(board, this);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(value==2)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"<<<<<---Wrong Choice.--->>>>\\n\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile(true);\n\t\t}\n\t\t\n\t}",
"public int size() {\n return this.deck.size();\n }",
"public boolean hasMoreCards() {\n if (cardHold == 0)\n return false;\n else\n return true;\n }",
"int getPickupsCount();",
"public static void options(){\n //player 1 not enough cards\n if(hand1.isEmpty()){\n System.out.println();\n System.out.println(\"Player 1 cards: \" + hand1.cardsLeft());\n System.out.println(\"Player 2 cards: \" + hand2.cardsLeft()+\"\\n\");\n System.out.println(\"Not enough cards, Player 1 loses\");\n outcome = 2;\n outcomes();\n //player 2 not enough cards\n }else if(hand2.isEmpty()){\n System.out.println();\n System.out.println(\"Player 1 cards: \" + hand1.cardsLeft());\n System.out.println(\"Player 2 cards: \" + hand2.cardsLeft()+\"\\n\");\n System.out.println(\"Not enough cards, Player 2 loses\");\n outcome = 1;\n outcomes();\n //tie by both 0 cards\n }else if(hand1.isEmpty()&&hand2.isEmpty()){\n System.out.println();\n System.out.println(\"Player 1 cards: \" + hand1.cardsLeft());\n System.out.println(\"Player 2 cards: \" + hand2.cardsLeft()+\"\\n\");\n System.out.println(\"No winner\");\n outcome = 3;\n outcomes();\n }\n }",
"public int getNumDevCardType(Cards card) {\n \t\tint count = 0;\n \t\tfor (int i = 0; i < newCards.size(); i++) {\n \t\t\tif (newCards.get(i) == card)\n \t\t\t\tcount += 1;\n \t\t}\n \n \t\treturn cards[card.ordinal()] + count;\n \t}",
"@Override\n\tpublic int getCount() {\n\t\tif (docketMachineArray.size() <= 0)\n\t\t\treturn 1;\n\t\treturn docketMachineArray.size();\n\t}",
"int getCardsRemaining(int player) {\n return players[player].getHand().size();\n }",
"boolean haveGame(char suit){\n int suitNum = 0; // number of cards that follow suit\n for (int i=0; i<6; i++)\n if (hand.get(i).suit == suit)\n suitNum++;\n return (suitNum > 3);\n }",
"int getNumberOfQuestions();",
"public int size(){\n\t\treturn howMany; \n\t}",
"public static int face(int card){\n //check if card is out of bounds\n if(card < 1 || card > 52){\n return 0;\n }\n //subtract 1 from card to include multiples of 13\n //add 1 so that it matches up with the desired output\n return (card - 1) % 13 + 1;\n }",
"int getNewlyAvailableQuestsCount();",
"private int getRandomCard (ArrayList<Card> hand) {\n\t\treturn (int)(Math.random() * hand.size());\r\n\t}",
"private void showCardStats() {\n TextView unlockedNum = findViewById(R.id.UnlockedNum);\n unlockedNum.setText(\n \" \" + this.masterDeck.retrieveUnlockedCardNames().size() +\n \" / \" + this.masterDeck.deckSize()\n );\n }",
"@Test\n\tpublic void TestDeal() {\n\t\tArrayList<Player> testPlayers = game.getPlayers();\n\t\tArrayList<Card> allCards = new ArrayList<Card>();\n\t\tSet<Card> allCardsSet = new HashSet<Card>();\n\t\tint handSize = testPlayers.get(0).getCards().size();\n\t\tboolean correctSize = true;\n\t\t\n\t\tfor(Player p : testPlayers) {\n\t\t\tallCards.addAll(p.getCards());\n\t\t\tif(Math.abs(p.getCards().size() - handSize) > 1)\n\t\t\t\tcorrectSize = false;\n\t\t}\n\t\tallCardsSet.addAll(allCards);\n\t\t\n\t\tAssert.assertEquals(correctSize, true);\n\t\tAssert.assertEquals(allCards.size(), 21);\n\t\tAssert.assertEquals(allCards.size(), allCardsSet.size());\n\t}",
"public int performDuel(){\n Random rand = new Random();\n int intRand;\n intRand = rand(6);\n while(this.engine.getGameInformation().cards[intRand][intRand] == 0 ){\n intRand = rand(6);\n }\n return intRand;\n }",
"@Override\n\tpublic int countBySeatIdAndCardNum(DgCard card) {\n\t\treturn dgCardMapper.countBySeatIdAndCardNum(card);\n\t}",
"int numberOfCandidates();"
] |
[
"0.73339224",
"0.7064558",
"0.6889568",
"0.6845268",
"0.6814817",
"0.6728574",
"0.6647301",
"0.66364187",
"0.6628359",
"0.647041",
"0.64531904",
"0.6428382",
"0.6416003",
"0.6394484",
"0.6389403",
"0.6375495",
"0.6363887",
"0.62318206",
"0.6228448",
"0.6221358",
"0.62169516",
"0.62087995",
"0.614301",
"0.61257595",
"0.61242354",
"0.61209613",
"0.61180025",
"0.6117297",
"0.61171323",
"0.60838777",
"0.607347",
"0.60718805",
"0.6063522",
"0.60583967",
"0.6045872",
"0.6044649",
"0.6038509",
"0.6036143",
"0.60271966",
"0.60058063",
"0.59998465",
"0.5976938",
"0.59762883",
"0.5951039",
"0.59406877",
"0.5911247",
"0.5910046",
"0.58960485",
"0.5888098",
"0.5871275",
"0.58545357",
"0.5846789",
"0.58248025",
"0.582275",
"0.5802923",
"0.5798317",
"0.57919216",
"0.57904255",
"0.57863027",
"0.5775934",
"0.57738996",
"0.57606614",
"0.57593966",
"0.57484335",
"0.5741992",
"0.5738603",
"0.5732242",
"0.57315135",
"0.5721456",
"0.5720545",
"0.5718686",
"0.5705987",
"0.570398",
"0.57019615",
"0.5683857",
"0.56815386",
"0.56793237",
"0.56752664",
"0.56644416",
"0.56639284",
"0.5662194",
"0.56613946",
"0.566053",
"0.56572175",
"0.5654252",
"0.5649276",
"0.5635651",
"0.5633199",
"0.5632193",
"0.5632016",
"0.5628053",
"0.5626895",
"0.56243277",
"0.5617469",
"0.5613971",
"0.56111014",
"0.55975163",
"0.5593498",
"0.5592201",
"0.55887365",
"0.5583348"
] |
0.0
|
-1
|
If the chosen card has a rank of 3, 4, 5, 6, or 7 it can 'added' up to
|
private static boolean containsAddivelySameNumber(Card card, ArrayList<Card> list){
if(card.getRank().getValue()<3 || card.getRank().getValue()>7){
for(int i=0; i<list.size(); i++){
for(int j=i; j<list.size(); j++){
if(list.get(i).getRank().getValue()+list.get(j).getRank().getValue() == card.getRank().getValue())
return true;
}
}
return false;
}
else
return false;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tboolean isValid(){\n\t\tif(size()==5) {\n\t\t\tint suite = getCard(0).suit;\n\t\t\tfor(int i = 1 ; i< size(); i++) {\n\t\t\t\tif(getCard(i).suit != suite) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tsort();\n\t\t\tint currRank = (getCard(0).rank +11)%13;\n\t\t\tfor(int i=0; i<size(); i++) {\n\t\t\t\tif((getCard(i).rank+11)%13 != currRank) return false;\n\t\t\t\tcurrRank++;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isValid() {\r\n\t\tif (this.size() == 5) {\r\n\t\t\tthis.sort();\r\n\t\t\tif ((this.getCard(0).getRank() == this.getCard(1).getRank()) && (this.getCard(0).getRank() == this.getCard(2).getRank()) && (this.getCard(0).getRank() == this.getCard(3).getRank())) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse if ((this.getCard(1).getRank() == this.getCard(2).getRank()) && (this.getCard(1).getRank() == this.getCard(3).getRank()) && (this.getCard(1).getRank() == this.getCard(4).getRank())) {\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\treturn false;\r\n\t}",
"public boolean canAdd(Card c)\r\n {\r\n int val;\r\n int v;\r\n if(c.getSuit() != suit)\r\n return false;\r\n \r\n v = c.getValue();\r\n if(pile.isEmpty() && v == 12)\r\n return true;\r\n \r\n if(!pile.isEmpty())\r\n {\r\n card = pile.peek();\r\n val = card.getValue();\r\n if (val == 12)\r\n val = -1;\r\n if(v == (val+1))\r\n return true;\r\n }\r\n return false;\r\n }",
"static boolean isFour(ArrayList<Card> c)\n {\n if(c.size() < 4)\n {\n return false;\n }\n \n for(int x = 0 ; x < c.size() - 3 ; x++)\n {\n if(c.get(x).getRank() == c.get(x+1).getRank() && c.get(x+1).getRank() == c.get(x+2).getRank() && c.get(x+2).getRank() == c.get(x+3).getRank())\n {\n return true;\n }\n } \n return false;\n }",
"public boolean isValid() {\n\t\tif (this.size()!=5) {\n\t\t\treturn false;\n\t\t}\n\t\tthis.sort();\n\t\tif (this.getCard(2).getRank()==this.getCard(0).getRank() && this.getCard(3).getRank()==this.getCard(4).getRank()) {\n\t\t\treturn true;\n\t\t}\n\t\telse if (this.getCard(2).getRank()==this.getCard(4).getRank() && this.getCard(1).getRank()==this.getCard(0).getRank()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean addCard(Card hit) {\n if (numOfCards == 10) {\r\n System.err.println(\"You already have 5 cards. \"\r\n + \"Cannot add another. \\n\");\r\n }\r\n //actually adding cards\r\n hand[numOfCards] = hit;\r\n numOfCards++;\r\n\r\n return (getHandSum() <= 21);\r\n }",
"public static boolean isFourOfAKind(Hand hand)\n {\n\n List<Long> counted = hand.getCards().stream()\n .collect(Collectors.groupingBy(o -> o.getRank().toString(), Collectors.counting()))\n .values().stream().sorted().collect(Collectors.toList());\n if (counted.size() == 2 && counted.get(1) == 4)\n {\n return true;\n }\n return false;\n /*\n ----------------------------------------------\n Map<Rank, Integer> c = new HashMap<>();\n for (Card card : hand.getCards())\n {\n c.put(card.getRank(), 0);\n }\n for (Card card : hand.getCards())\n {\n c.put(card.getRank(), c.get(card.getRank()) + 1);\n }\n return c.containsValue(4);\n\n */\n /*int counter = 1;\n for (int i = 0; i < hand.getCards().size(); i++)\n {\n for (int j = 0; j <hand.getCards().size(); j++)\n {\n if ((i != j) && ((hand.getCards().get(i).getRank().toString()).compareTo(hand.getCards().get(j).getRank().toString()) == 0))\n {\n counter++;\n }\n\n }\n if (counter == 4) return true;\n else counter = 1;\n }*/\n\n\n\n //return false;\n }",
"abstract boolean allowedToAdd(Card card);",
"boolean haveGame(char suit){\n int suitNum = 0; // number of cards that follow suit\n for (int i=0; i<6; i++)\n if (hand.get(i).suit == suit)\n suitNum++;\n return (suitNum > 3);\n }",
"public boolean isValid() {\n\t\tif (this.size() != 5) return false;\n\t\tif (!((this.getCard(0).getSuit() == this.getCard(1).getSuit()) && (this.getCard(1).getSuit() == this.getCard(2).getSuit()) && (this.getCard(2).getSuit() == this.getCard(3).getSuit()) && (this.getCard(3).getSuit() == this.getCard(4).getSuit()))) return false;\n\t\t\n\t\tint[] cardsInHand= {this.getCard(0).getRank(), this.getCard(1).getRank(), this.getCard(2).getRank(), this.getCard(3).getRank(), this.getCard(4).getRank()};\n\t\t\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tif (cardsInHand[i]==0) cardsInHand[i]=13;\n\t\t\telse if (cardsInHand[i]==1) cardsInHand[i]=14;\n\t\t}\n\t\t\n\t\tArrays.sort(cardsInHand);\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(cardsInHand[i]!=cardsInHand[i+1]-1) return false;\n\t\t}\n\t\treturn true;\n\t}",
"public void addCard(int card) {\n cards[numCards] = card;\n numCards++;\n \n if (card == 1) {\n score = score + 11;\n numSoft++;\n }\n else if(card == 11 || card == 12 || card == 13) {\n score = score + 10;\n }\n else {\n score = score + card;\n }\n \n //Decreases any aces from 11 to 1 if the score is above 21\n while(numSoft > 0 && score > 21){\n score = score - 10;\n numSoft--;\n }\n }",
"@Override\n public boolean anotherPlayIsPossible()\n {\n \t\n List<Integer> test = cardIndexes();\n return containsSum13(test) || containsK(test);\n \n }",
"public List<Integer> askPlayerCardsToUse();",
"@Override\n\tpublic void addCard(PlayingCard card) {\n\t\t\n\t\t\n\t\tif(card == null)return;\n\t\tif(!(card instanceof SkatCard))return;\n\t\tif(!(card.getSuit().equals(SkatCard.suitHerz)\n\t\t\t\t|| card.getSuit().equals(SkatCard.suitKaro) \n\t\t\t\t|| card.getSuit().equals(SkatCard.suitPik)\n\t\t\t\t|| card.getSuit().equals(SkatCard.suitKreuz)))return;\n\t\tif(!(card.getRank() == SkatCard.rank7\n\t\t\t\t|| card.getRank() == SkatCard.rank8\n\t\t\t\t|| card.getRank() == SkatCard.rank9\n\t\t\t\t|| card.getRank() == SkatCard.rank10\n\t\t\t\t|| card.getRank() == SkatCard.rankBube\n\t\t\t\t|| card.getRank() == SkatCard.rankDame\n\t\t\t\t|| card.getRank() == SkatCard.rankKoenig\n\t\t\t\t|| card.getRank() == SkatCard.rankAss))return;\n\t\tif(getCount() >= kartenAnzahl)return;\n\t\tfor(int i = 0; i < getCount(); i++) {\n\t\t\tif(card.compareTo(aktuellesDeck[i]) == 0)return;\n\t\t}\n\t\t\n\t\t/*\n\t\t * eigentliches addCard\n\t\t */\n\t\taktuellesDeck[getCount()] = card;\n\t\tcount++;\n\t}",
"private boolean isValidRank(int rank) {\r\n if (rank < 1 || rank > 13) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public boolean playCard(Cards card, Players player) {\n boolean higher = false;\n int compare = 0;\n if (playedCards.size() == 0 || this.playAgain(player)) { //to check if it is a new game or this is a new round\n if (card instanceof TrumpCards) { //to check if the first played card is a supertrump card\n setCategory(((TrumpCards) card).cardEffect());\n }\n higher = true;\n } else {\n if (card instanceof NormCards) { //to check if the played card is a normal card\n if (getLastCard() instanceof NormCards) { //to check whether the last played card is a normal card or a supertrump card\n if (category.equals(\"H\")) {\n Float now = new Float(((NormCards) card).getHardness());\n Float last = new Float(((NormCards) getLastCard()).getHardness());\n compare = now.compareTo(last);\n } else if (category.equals(\"S\")) {\n Float now = new Float(((NormCards) card).getSpecGravity());\n Float last = new Float(((NormCards) getLastCard()).getSpecGravity());\n compare = now.compareTo(last);\n } else if (category.equals(\"C\")) {\n Float now = new Float(((NormCards) card).getCleavageValue());\n Float last = new Float(((NormCards) getLastCard()).getCleavageValue());\n compare = now.compareTo(last);\n } else if (category.equals(\"CA\")) {\n Float now = new Float(((NormCards) card).getCrustalAbunVal());\n Float last = new Float(((NormCards) getLastCard()).getCrustalAbunVal());\n compare = now.compareTo(last);\n } else if (category.equals(\"EV\")) {\n Float now = new Float(((NormCards) card).getEcoValueValue());\n Float last = new Float(((NormCards) getLastCard()).getEcoValueValue());\n compare = now.compareTo(last);\n\n }\n if (compare > 0) {\n higher = true;\n } else {\n System.out.println(\"The selected card does not has higher value!\");\n }\n } else { //or else, the last played card is a supertrump card\n higher = true;\n }\n } else { //or else, the played is a supertrump card\n setCategory(((TrumpCards) card).cardEffect());\n higher = true;\n }\n }\n return higher;\n }",
"@Override\n public Card playCard() {\n List<Card> rank1 = new ArrayList<>();\n List<Card> rank2 = new ArrayList<>();\n List<Card> rank3 = new ArrayList<>();\n List<Card> rank4 = new ArrayList<>();\n for (Card card : cardsInHand) {\n if (card.getRank().equals(Card.Rank.EIGHT)) {\n rank1.add(card);\n break;\n } else if (card.getSuit().equals(idealSuit)\n && card.getRank().equals(idealRank)\n && (topCard.getSuit().equals(card.getSuit())\n || topCard.getRank().equals(card.getRank()))) {\n rank2.add(card);\n } else if ((card.getSuit().equals(idealSuit) || card.getRank().equals(idealRank))\n && (topCard.getSuit().equals(card.getSuit())\n || topCard.getRank().equals(card.getRank()))) {\n rank3.add(card);\n } else if (topCard.getSuit().equals(card.getSuit())\n || topCard.getRank().equals(card.getRank())) {\n rank4.add(card);\n }\n }\n List<List<Card>> playPossibilities = new ArrayList<>(Arrays.asList(rank1, rank2, rank3, rank4));\n for (List<Card> list : playPossibilities) {\n if (list.size() > 0) {\n cardsInHand.remove(list.get(0));\n return list.get(0);\n }\n }\n // This method will never return null if shouldDrawCard() is called beforehand.\n return null;\n }",
"public int[] hasNSequentially(int lengthOfHand) {//check for Ace case //need to NOT ALLOW DUPLICATES\n ArrayList<Card> handList = new ArrayList<Card>();\n int solution[] = {0, 0};//number in a row, lowest number of that\n boolean foundSomeNInAFow = false;\n int hasAce = 0;\n\n int usedNumbers[] = new int[13];//2,3,4,5,6,7,8,9,10,j,q,k,a --> THIS HANDLES THE ACE CASE\n for (int i = 0; i < lengthOfHand; i++) {//was\n usedNumbers[allCards[i].value - 2]++;//USED\n if (usedNumbers[allCards[i].value - 2] == 1) {//handles NOT having doubles of numbers like 2 3 4 4 5 \n handList.add(this.allCards[i]);\n if (this.allCards[i].value == 14) {\n Card c = new Card(1, this.allCards[i].suit);\n handList.add(0, c);//add to front..shifts elements to right\n }\n }\n }\n\n for (int i = 0; i < handList.size() - 4; i++) {//check for 5 in a row, //was - 4\n int val = handList.get(i).value;\n int counter = 0;\n for (int j = 0; j < 4; j++) {//was 4\n if (handList.get(j + i + 1).value == val + 1 + j) {\n counter++;\n } else {\n break;\n }\n if (counter == 4) {//was 4\n foundSomeNInAFow = true;\n solution[0] = 5;\n solution[1] = val;\n }\n }\n }\n\n if (foundSomeNInAFow == false) {\n for (int i = 0; i < handList.size() - 3; i++) {//check for 5 in a row, //was - 4\n int val = handList.get(i).value;\n int counter = 0;\n for (int j = 0; j < 3; j++) {\n if (handList.get(j + i + 1).value == val + 1 + j) {\n counter++;\n } else {\n break;\n }\n if (counter == 3) {\n // System.out.println(\"yes 4 sequentially\");\n foundSomeNInAFow = true;\n solution[0] = 4;\n solution[1] = val;\n }\n }\n }\n }\n\n if (foundSomeNInAFow == false) {\n for (int i = 0; i < handList.size() - 2; i++) {//check for 5 in a row, //was - 4\n int val = handList.get(i).value;\n int counter = 0;\n for (int j = 0; j < 2; j++) {\n if (handList.get(j + i + 1).value == val + 1 + j) {\n counter++;\n } else {\n break;\n }\n if (counter == 2) {\n // System.out.println(\"yes 3 sequentially\");\n foundSomeNInAFow = true;\n solution[0] = 3;\n solution[1] = val;\n }\n }\n }\n }\n\n if (foundSomeNInAFow == false) {\n for (int i = 0; i < handList.size() - 1; i++) {//check for 5 in a row, //was - 4\n int val = handList.get(i).value;\n int counter = 0;\n for (int j = 0; j < 1; j++) {\n if (handList.get(j + i + 1).value == val + 1 + j) {\n counter++;\n } else {\n break;\n }\n if (counter == 1) {\n //System.out.println(\"yes 2 sequentially\");\n foundSomeNInAFow = true;\n solution[0] = 2;\n solution[1] = val;\n\n }\n }\n }\n }\n\n return solution;//return at end that way if there is 2,3,5,7,8 it returns 7 8 not 2 3\n\n }",
"@Test\n void testForLargestCardInTrickComparingRank() {\n Dealer testDealer = new Dealer();\n\n Suit suit1 = Suit.DIAMONDS;\n Suit suit2 = Suit.SPADES;\n Suit suit3 = Suit.DIAMONDS;\n Suit suit4 = Suit.DIAMONDS;\n \n Rank rank1 = Rank.TWO;\n Rank rank2 = Rank.KING;\n Rank rank3 = Rank.ACE;\n Rank rank4 = Rank.FIVE;\n\n Card card1 = new Card(suit1,rank1,false);\n Card card2 = new Card(suit2,rank2,false);\n Card card3 = new Card(suit3,rank3,false);\n Card card4 = new Card(suit4,rank4,false);\n\n \n testDealer.addToPlayedCards(card1);\n testDealer.addToPlayedCards(card2);\n testDealer.addToPlayedCards(card3);\n testDealer.addToPlayedCards(card4);\n\n assertEquals(card3 , testDealer.getLargestCardFromTrick());\n }",
"private int GetBestCard(Card[] card) {\n\t int iPos = 0;\n\t int iWeightTemp = 0;\n\t int iWeight[] = new int[8];\n\t for (int i = 0; i < 8; i++){\n\t\t iWeight[i] = -1;\n\t }\n\t // For each selectable card, work out a weight, the highest weight is the one selected.\n\t // The weight is worked out by the distance another of the players cards is from playable ones, with no playable cards in between\n\t Card myCard, nextCard;\n\t for (int i = 0; i < 8; i++){\n\t\t if (card[i] != null){\n\t\t\t // if card value > 7\n\t\t\t if (card[i].GetValue() > 7){\n\t\t\t\t // do you have cards that are higher than this card\n\t\t\t\t myCard = card[i];\n\t\t\t\t iWeightTemp = 0;\n\t\t\t \tfor (int j = 0; j < mCardCount; j++){\n\t\t\t \t\tnextCard = mCard[j];\n\t\t\t \t\tif (nextCard != null && nextCard.GetSuit() == myCard.GetSuit() && nextCard.GetValue() > myCard.GetValue()){\n\t\t\t \t\t\tif (nextCard.GetValue() - myCard.GetValue() > iWeightTemp)\n\t\t\t \t\t\t\tiWeightTemp = nextCard.GetValue() - myCard.GetValue();\n\t\t\t \t\t\tmyCard = nextCard;\n\t\t\t \t\t}\n\t\t\t \t}\n\t\t\t \tiWeight[i] = iWeightTemp;\n\t\t\t \t\t\n\t\t\t }\n\t\t\t if (card[i].GetValue() < 7){\n\t\t\t\t // do you have cards that are lower than this card\n\t\t\t\t myCard = card[i];\n\t\t\t\t iWeightTemp = 0;\n\t\t\t \tfor (int j = mCardCount-1; j >=0; j--){\n\t\t\t \t\tnextCard = mCard[j];\n\t\t\t \t\tif (nextCard != null && nextCard.GetSuit() == myCard.GetSuit() && nextCard.GetValue() < myCard.GetValue()){\n\t\t\t \t\t\tif (myCard.GetValue() - nextCard.GetValue() > iWeightTemp)\n\t\t\t \t\t\t\tiWeightTemp = myCard.GetValue() - nextCard.GetValue();\n\t\t\t \t\t\tmyCard = nextCard;\n\t\t\t \t\t}\n\t\t\t \t}\n\t\t\t \tiWeight[i] = iWeightTemp;\n\t\t\t \t\t\n\t\t\t }\t\n\t\t\t if (card[i].GetValue() == 7){\n\t\t\t\t // do you have cards that are in this suit\n\t\t\t\t myCard = card[i];\n\t\t\t\t int iWeightTemp1;\n\t\t\t\t iWeightTemp = 0;\n\t\t\t\t iWeightTemp1 = 0;\n\t\t\t\t // do you have cards that are higher than this card\n\t\t\t \tfor (int j = 0; j < mCardCount; j++){\n\t\t\t \t\tnextCard = mCard[j];\n\t\t\t \t\tif (nextCard != null && nextCard.GetSuit() == myCard.GetSuit() && nextCard.GetValue() > myCard.GetValue()){\n\t\t\t \t\t\tif (nextCard.GetValue() - myCard.GetValue() > iWeightTemp)\n\t\t\t \t\t\t\tiWeightTemp = nextCard.GetValue() - myCard.GetValue();\n\t\t\t \t\t\tmyCard = nextCard;\n\t\t\t \t\t}\n\t\t\t \t}\n\t\t\t \tmyCard = card[i];\n\t\t\t \t// do you have cards that are lower than this card\n\t\t\t \tfor (int j = mCardCount-1; j >=0; j--){\n\t\t\t \t\tnextCard = mCard[j];\n\t\t\t \t\tif (nextCard != null && nextCard.GetSuit() == myCard.GetSuit() && nextCard.GetValue() < myCard.GetValue()){\n\t\t\t \t\t\tif (myCard.GetValue() - nextCard.GetValue() > iWeightTemp1)\n\t\t\t \t\t\t\tiWeightTemp1 = myCard.GetValue() - nextCard.GetValue();\n\t\t\t \t\t\tmyCard = nextCard;\n\t\t\t \t\t}\n\t\t\t \t} \t\n\t\t\t \tiWeight[i] = iWeightTemp + iWeightTemp1;\n\t\t\t \t\t\n\t\t\t }\t\t\t \n\t\t }\n\t\t \t \n\t }\n\t boolean bLoopAceKing = true;\n\t int iMaxTemp = 0;\n\t int iMaxCount = 0;\t\n\t int[] iMaxs;\n\t iMaxs = new int[8];\n\t while (bLoopAceKing){\n\t\t for (int i = 0; i < 8; i++){\n\t\t\t if (iWeight[i] >= iMaxTemp){\n\t\t\t\t if (iWeight[i] == iMaxTemp){\n\t\t\t\t\t iMaxs[iMaxCount] = i;\n\t\t\t\t\t iMaxCount++;\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t iMaxTemp = iWeight[i];\n\t\t\t\t\t iMaxs = new int[8];\n\t\t\t\t\t iMaxCount = 0;\n\t\t\t\t\t iMaxs[iMaxCount] = i;\n\t\t\t\t\t iMaxCount++;\n\t\t\t\t }\t\t\t \n\t\t\t }\t \n\t\t }\n\t\t boolean bAceKing = false;\n\t\t // If the top weight is zero, meaning your options don't help you, then play the one that is closest to ace/king\n\t\t if (iMaxTemp == 0 && iMaxCount > 1){\n\t\t\t for (int k = 0; k < iMaxCount; k++){\n\t\t\t\t\t iWeight[iMaxs[k]] = Math.abs(card[iMaxs[k]].GetValue()-7);\n\t\t\t\t\t bAceKing = true;\t\t\t\t \n\t\t\t } \t\t \n\t\t }\n\t\t if (bAceKing){\n\t\t\t bLoopAceKing = true;\n\t\t\t iMaxs = new int[8];\n\t\t\t iMaxTemp = 0;\n\t\t\t iMaxCount = 0;\t\t\t \n\t\t }\n\t\t else \n\t\t\t bLoopAceKing = false;\n\t }\n\t if (iMaxCount == 1)\n\t\t iPos = iMaxs[iMaxCount-1];\n\t else {\n\t\t Random generator = new Random();\n\t\t int randomIndex = generator.nextInt( iMaxCount );\n\t\t iPos = iMaxs[randomIndex];\n\t }\n\t\t \n\t return iPos;\n\t \n }",
"public void determineRank(){\r\n //ranks highcard 0, pair 1, twopair 2, three of a kind 3, straight 4, flush 5,\r\n //full house 6, four of a kind 7 , straight flush 8, royal flush 9\r\n //I should start top down.\r\n\r\n //Royal Flush\r\n if(isRoyalFlush())\r\n setRank(9);\r\n //Straight flush\r\n else if(isFlush() && isStraight())\r\n setRank(8);\r\n //four of a kind\r\n else if(isFourOfAKind())\r\n setRank(7);\r\n //full house\r\n else if( isFullHouse())\r\n setRank(6);\r\n //flush\r\n else if(isFlush())\r\n setRank(5);\r\n //straight\r\n else if(isStraight())\r\n setRank(4);\r\n //three of a kind\r\n else if(isThreeOfAKind())\r\n setRank(3);\r\n //twoPair\r\n else if(isTwoPair())\r\n setRank(2);\r\n //pair\r\n else if(isPair())\r\n setRank(1);\r\n //highcard\r\n else\r\n setRank(0);\r\n\r\n }",
"@Override\n public boolean isLegal(List<Integer> selectedCards)\n {\n //checks if the two cards selected added together equal 13\n if(selectedCards.size() == 2)\n {\n if(containsSum13(selectedCards))\n {\n \treturn true;\n }\n }\n \n //checks if the selected card is a K\n if(selectedCards.size() == 1)\n {\n \treturn containsK(selectedCards);\n }\n return false;\n \n }",
"boolean CheckAndAddCardInBuild(Card_Model cardToBeAdded, Card_Model cardInBuild, int currentPlayer, Vector<Card_Model> playerHand) {\n\n boolean isCardInBuild = false;\n Vector<Card_Model> tempBuild = buildOfCards;\n int aceAs1 = 0;\n int aceAs14 = 0;\n Card_Model cardAdded;\n\n // Cycling through the cards in the build and see if the card the user selected is actually in the build\n for(int i = 0; i < buildOfCards.size(); i++) {\n if(buildOfCards.get(i).GetCard().equals(cardInBuild.GetCard())) {\n isCardInBuild = true;\n }\n }\n\n // If the card the user wants to add to a build exists and they are not the owner...\n if(isCardInBuild && owner != currentPlayer) {\n\n // Push the card the player wants to add to the build onto a temporary copy of the build to\n // be added if the numbers correctly add up to a card in their hand\n tempBuild.add(cardToBeAdded);\n cardAdded = cardToBeAdded;\n\n // Iterate through the build with the card added and see what number it adds up to\n for (int i = 0; i < tempBuild.size(); i++) {\n if (tempBuild.get(i).GetNumber() != 'A') {\n aceAs1 += playerModel.CardNumber(tempBuild.get(i).GetNumber());\n aceAs14 += playerModel.CardNumber(tempBuild.get(i).GetNumber());\n } else {\n aceAs1++;\n aceAs14 += 14;\n }\n }\n\n // Then iterate through the players hand and check and see with the card they want to add being added,\n // Does it equal one of the cards in their hand\n for (int i = 0; i < playerHand.size(); i++) {\n\n if(cardToBeAdded.GetCard().equals(playerHand.get(i).GetCard())) {\n continue;\n }\n\n // If it does equal, update the build with the added card and return true\n if (playerModel.CardNumber(playerHand.get(i).GetNumber()) == aceAs1 ||\n playerModel.CardNumber(playerHand.get(i).GetNumber()) == aceAs14 ||\n playerHand.get(i).GetNumber() == 'A' && aceAs1 == 14) {\n buildOfCards = tempBuild;\n owner = currentPlayer;\n\n if (playerHand.get(i).GetNumber() != 'A') {\n cardValueOfBuild = playerModel.CardNumber(playerHand.get(i).GetNumber());\n } else {\n cardValueOfBuild = 14;\n }\n\n return true;\n }\n }\n\n // If we get out of the for loop then that means that it never added up to a card in the player's hand\n tempBuild.remove(tempBuild.lastElement());\n return false;\n }\n\n // You can not add to the existing build\n else {\n return false;\n }\n }",
"public int evaluateCardScore(int score, int rank) {\n //If the card is an ace\n if (rank == 0) {\n //If the score is 11 or greater, 11 value is bad\n if (score > 10)\n return 1;\n //if the score is 10 or less, 11 will raise score close to 21\n else\n return 11;\n }\n //Card is a court it is worth 10\n else if (rank > 9)\n return 10;\n //Any other card is worth its rank+1\n else\n return rank + 1;\n }",
"public int trickWinner(){\n Card.NUMBER one = player1Play.getValue();\n Card.NUMBER two = player2Play.getValue();\n Card.NUMBER three = player3Play.getValue();\n Card.NUMBER four = player4Play.getValue();\n Card.SUIT oneSuit = player1Play.getSuit();\n Card.SUIT twoSuit = player2Play.getSuit();\n Card.SUIT threeSuit = player3Play.getSuit();\n Card.SUIT fourSuit = player4Play.getSuit();\n int[] value = new int[4];\n value[0] = Card.getValsVal(one, oneSuit, currentTrumpSuit);\n value[1] = Card.getValsVal(two, twoSuit, currentTrumpSuit);\n value[2] = Card.getValsVal(three, threeSuit, currentTrumpSuit);\n value[3] = Card.getValsVal(four, fourSuit, currentTrumpSuit);\n if(player1Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[0] += 10;\n }\n if(player2Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[1] += 10;\n }\n if(player3Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[2] += 10;\n }\n if(player4Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[3] += 10;\n }\n if(player1Play.getSuit() == currentTrumpSuit || value[0] == 7){\n value[0] += 20;\n }\n if(player2Play.getSuit() == currentTrumpSuit || value[1] == 7){\n value[1] += 20;\n }\n if(player3Play.getSuit() == currentTrumpSuit || value[2] == 7){\n value[2] += 20;\n }\n if(player4Play.getSuit() == currentTrumpSuit || value[3] == 7){\n value[3] += 20;\n }\n int winner = 0;\n int winVal = 0;\n for(int i = 0; i < 4; i++){\n if(value[i] > winVal){\n winVal = value[i];\n winner = i;\n }\n }\n return winner;\n }",
"@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\n\t\t\tint counter = 0;\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (i + 1 < hand.size()) {\n\t\t\t\t\tif (hand.get(i + 1).getCardValue().getValue()\n\t\t\t\t\t\t\t- hand.get(i).getCardValue().getValue() == 1)\n\t\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//if not straight, then do a final check of 5 unique cards\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tif (counter != 4) {\n\t\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn map.size() == 5;\n\t\t}",
"public int compareTo(Card card) {\r\n return Integer.compare(rank, card.rank);\r\n\r\n }",
"public boolean compareRank(Card otherCard) {\n return rank == otherCard.rank;\n }",
"public void addCard(Card card, GamePlayer GP){\n for(int i=0; i<4; i++){\n if(cardsPlayed[i] == null){\n cardsPlayed[i]=card;\n if(i == 0){\n suit = card.getSuit();\n }\n break;\n }\n }\n }",
"@Override\n\tpublic void insertCard(PlayingCard card, int position) {\n\t\t\n\t\t\n\t\tif(card != null && card instanceof SkatCard) {\n\t\t\tif(card.getSuit().equals(SkatCard.suitHerz)\n\t\t\t\t|| card.getSuit().equals(SkatCard.suitKaro) \n\t\t\t\t|| card.getSuit().equals(SkatCard.suitPik)\n\t\t\t\t|| card.getSuit().equals(SkatCard.suitKreuz)){\n\t\t\t\t\n\t\t\t\tif(card.getRank() == SkatCard.rank7\n\t\t\t\t\t|| card.getRank() == SkatCard.rank8\n\t\t\t\t\t|| card.getRank() == SkatCard.rank9\n\t\t\t\t\t|| card.getRank() == SkatCard.rank10\n\t\t\t\t\t|| card.getRank() == SkatCard.rankBube\n\t\t\t\t\t|| card.getRank() == SkatCard.rankDame\n\t\t\t\t\t|| card.getRank() == SkatCard.rankKoenig\n\t\t\t\t\t|| card.getRank() == SkatCard.rankAss) {\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfor(int i = 0; i < getCount(); i++) {\n\t\t\t\t\t\tif(card.compareTo(aktuellesDeck[i]) == 0){\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\tif(position - 1 < kartenAnzahl && position > 0 && getCount() < kartenAnzahl) {\n\t\t\t\t\t\t\tfor(int i = getCount() - 1; i >= position - 1; i--) {\n\t\t\t\t\t\t\t\taktuellesDeck[i+1] = new SkatCard(aktuellesDeck[i].getSuit(), aktuellesDeck[i].getRank());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taktuellesDeck[position - 1] = new SkatCard(card.getSuit(), card.getRank());\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}else System.out.println(\"Bitte Position überprüfen\");\n\t\t\t\t}else {System.out.println(\"falscher Wert\");}\t\n\t\t\t}else {System.out.println(\"falsche Farbe\");}\n\t\t}else {System.out.println(\"Karte null oder keine SkatKarte\");}\n}",
"public boolean isValid() {\n\t\t//Check for size=3, then check if their ranks are same.\n\t\tif(this.size()==3) {\n\t\t\tif(this.getCard(0).getRank()==this.getCard(1).getRank()) {\n\t\t\t\tif(this.getCard(1).getRank()==this.getCard(2).getRank()){\n\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"public int compareTo(Card c){\n if(rank == c.rank){\n if(suit == c.suit){\n return 0;\n }\n else if(suit > c.suit){\n return 1;\n }\n else{\n return -1;\n }\n }\n else{\n if(rank == c.rank){\n return 0;\n }\n else if(rank > c.rank){\n return 1;\n }\n else{\n return -1;\n }\n }\n \n\t}",
"private boolean faceCard(ArrayList<Card> cards) {\r\n\t\tfor (Card card: cards) {\r\n\t\t\tif (card.getValue() >= 11 && card.getValue() <= 13) \r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean legalMove(Card last, Card current) {\n // check if a card has been wished for\n if (current.getRank() == CardRank.JACK) {\n return true;\n }\n\n // check if a player has satisfied another's card wish\n if (last.getRank() == CardRank.JACK && current.getSuite() == wishedSuite) {\n additionalCards = 0;\n return true;\n }\n\n // Seven may always be allowed\n System.out.println(additionalCards);\n if (additionalCards > 0){\n return current.getRank() == CardRank.SEVEN;\n }\n\n return last.compareTo(current) == 0;\n }",
"public Card takeTurn(Suit suit, int rank) throws InvalidCardException {\n //display current hand and prompt the user to input a card to play\n Scanner scanner = new Scanner(System.in);\n while(true) {\n System.out.println(name+\"'s turn\");\n System.out.println(\"Your current hand is:\");\n System.out.print(\"[\"+hand.getCards().get(0));\n for(int i=1; i<hand.getCards().size(); i++) {\n System.out.print(\", \"+hand.getCards().get(i));\n }\n System.out.println(\"]\");\n System.out.println(\"Which card do you want to play?\");\n //read the user's input and make sure it's a valid card\n String input = scanner.next();\n //if the user entered nothing, they draw by default\n if(input.equals(\"none\")) {\n return null;\n }\n Suit inputSuit = null;\n switch(input.substring(input.length()-1).toLowerCase()) {\n case \"c\":\n inputSuit = Suit.CLUBS;\n break;\n case \"s\":\n inputSuit = Suit.SPADES;\n break;\n case \"h\":\n inputSuit = Suit.HEARTS;\n break;\n case \"d\":\n inputSuit = Suit.DIAMONDS;\n break;\n default:\n throw new InvalidCardException(\"Invalid suit\");\n }\n int inputRank = Integer.parseInt(input.substring(0,input.length()-1));\n if(inputRank < 1 || inputRank > 13) {\n throw new InvalidCardException(\"Invalid rank\");\n }\n //if the card is playable and the player has it in their hand, then play it\n if(inputSuit.equals(suit) || inputRank == rank) {\n ArrayList<Card> cards = hand.getCards();\n Card card = new Card(inputSuit, inputRank);\n for(int i=0; i<cards.size(); i++) {\n if(cards.get(i).equals(card)) {\n return hand.draw(input);\n }\n }\n System.out.println(\"You do not have that card\");\n } else if(hand.getCards().contains(new Card(inputSuit, inputRank)) && inputRank == 8) { //this makes 8s always playable\n return hand.draw(input);\n } else {\n System.out.println(\"Invalid card. Try again\");\n }\n }\n }",
"public void addWinning1(Card card)\n {\n player1Hand.enqueue(card);\n }",
"boolean haveLow(char suit){\n for (int i=0; i<6; i++)\n if ((hand.get(i).suit == suit) && (hand.get(i).rank < (10 - pitchTable.getNumPlayers())))\n return true;\n return false;\n }",
"public void addToUse(int card) {\r\n\t\tthis.toUse.add(card);\r\n\t}",
"public boolean isPickItUp(int playerID, Card discard){\n if(turn == playerID && gameStage == 1 && dealer == playerID){\n currentTrumpSuit = middleCardSuit;\n // make dealer discard a card and give them the middle card\n if(dealer == 0){\n //discard card that player taps\n if(player1Hand.get(0) == discard){\n player1Hand.remove(0);\n player1Hand.add(middleCard);\n turn++;\n gameStage = 3;\n }\n else if(player1Hand.get(1) == discard){\n player1Hand.remove(1);\n player1Hand.add(middleCard);\n turn++;\n gameStage = 3;\n }\n else if(player1Hand.get(2) == discard){\n player1Hand.remove(2);\n player1Hand.add(middleCard);\n turn++;\n gameStage = 3;\n }\n else if(player1Hand.get(3) == discard){\n player1Hand.remove(3);\n player1Hand.add(middleCard);\n turn++;\n gameStage = 3;\n }\n else if(player1Hand.get(4) == discard){\n player1Hand.remove(4);\n player1Hand.add(middleCard);\n turn++;\n gameStage = 3;\n }\n }\n }\n return false;\n }",
"@Test\n void testForLargestCardInTrick() {\n Dealer testDealer = new Dealer();\n\n Suit suit1 = Suit.DIAMONDS;\n Suit suit2 = Suit.SPADES;\n Suit suit3 = Suit.SPADES;\n Suit suit4 = Suit.DIAMONDS;\n \n Rank rank1 = Rank.TWO;\n Rank rank2 = Rank.KING;\n Rank rank3 = Rank.ACE;\n Rank rank4 = Rank.FIVE;\n\n Card card1 = new Card(suit1,rank1,false);\n Card card2 = new Card(suit2,rank2,false);\n Card card3 = new Card(suit3,rank3,false);\n Card card4 = new Card(suit4,rank4,false);\n\n \n testDealer.addToPlayedCards(card1);\n testDealer.addToPlayedCards(card2);\n testDealer.addToPlayedCards(card3);\n testDealer.addToPlayedCards(card4);\n\n assertEquals(card4 , testDealer.getLargestCardFromTrick());\n }",
"@Test\n public void cardHasRank(){\n assertEquals(Rank.NINE, this.card.getRank());\n }",
"public void ArrangeSuits() {\n if (mCardCount > 0) {\n \tCard card;\n \tCard orderedCards[];\n \torderedCards = new Card[mCardCount];\n \tint iValue;\n \tint iOrder[];\n \tint iCount = 0;\n \tiOrder = new int [mCardCount];\n \tint iMinValue = Card.HEARTS * 13 + Card.KING;\n \tiOrder[0] = iMinValue;\n \tfor (int i = 0; i < mCardCount; i++){\n \t\tcard = mCard[i];\n \t\tiValue = card.GetSuit()*13 + card.GetValue();\n \t\tiCount = 0;\n \t\t// See where the card value comes in the pecking order\n \t\twhile (iValue > iOrder[iCount]){\n \t\t\tiCount++;\n \t\t}\n \t\t// It goes here, so move everything else along one\n \t\tfor (int j = mCardCount-1; j > iCount; j--)\n \t\t\tiOrder[j] = iOrder[j-1];\n \t\tiOrder[iCount] = iValue;\n \t}\n \t\n \tfor (int i = 0; i < mCardCount; i++){\n \t\tfor (int j = 0; j < mCardCount; j++){\n \t\tcard = mCard[j];\n \t\tiValue = card.GetSuit()*13 + card.GetValue(); \t\t\t\n \t\t\tif (iValue == iOrder[i]){\n \t\t\t\torderedCards[i] = mCard[j];\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n \tfor (int i = 0; i < mCardCount; i++){\n \t\tmCard[i] = orderedCards[i];\n \t} \t\n }\n }",
"static int getComputerCard(Card playerCard) {\n //The computer will iterate through different possible cards it might choose to play.\n //This represents a chosen card at any given time.\n Card possibleCard = null;\n //The position in the computer's hand where the possibleCard is stored.\n int cardPosition = 0;\n //True if the computer has a card of higher value than the player's.\n boolean hasHigherCard = false;\n //Iterate through the computer's hand, trying to find a card higher than the player's\n for (int i = 0; i < highCardGame.getHand(0).getNumCards(); i++) {\n if (playerCard.compareTo(highCardGame.getHand(0).inspectCard(i)) < 0) {\n //The computer has a higher card.\n if (possibleCard != null) {\n //If this card is lower than the possible card, but can still beat the player, then replace possible card.\n if (possibleCard.compareTo(highCardGame.getHand(0).inspectCard(i)) > 0) {\n possibleCard = new Card(highCardGame.getHand(0).inspectCard(i));\n cardPosition = i;\n }\n } else {\n //If the computer has not yet chosen a possible card, choose this one.\n possibleCard = new Card(highCardGame.getHand(0).inspectCard(i));\n hasHigherCard = true;\n cardPosition = i;\n }\n }\n }\n if (!hasHigherCard) {\n //If the computer does not have a card that can beat the player, then feed the lowest card\n //that the computer has to the player.\n for (int i = 0; i < highCardGame.getHand(0).getNumCards(); i++)\n if (playerCard.compareTo(highCardGame.getHand(0).inspectCard(i)) >= 0) {\n if (possibleCard != null) {\n if (possibleCard.compareTo(highCardGame.getHand(0).inspectCard(i)) > 0) {\n possibleCard = new Card(highCardGame.getHand(0).inspectCard(i));\n cardPosition = i;\n }\n } else {\n possibleCard = highCardGame.getHand(0).inspectCard(i);\n cardPosition = i;\n }\n }\n }\n return cardPosition;\n }",
"public boolean isValid() {\n\t\t\n\t\tif(this.size()!=2)\n\t\t\treturn false;\n\t\telse {\n\t\t\tint rank1=this.getCard(0).getRank();\n\t\t\tint rank2=this.getCard(1).getRank();\n\t\t\t\n\t\t\tif(rank1==rank2)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t}",
"public static void main(String[] args) {\r\n \r\n //Check the input of cards should be multiple of 5 and more than 0\r\n if (args.length % 5 == 0 && args.length > 0) {\r\n \r\n int player = args.length / N; //count the player based on input\r\n int playerNo; //store the number of player for print\r\n int countCard = args.length; //count the number of card \r\n\r\n Suit[] CardSuit = new Suit[countCard]; //store the suit of cards\r\n Rank[] CardRank = new Rank[countCard]; //store the rank of cards\r\n Card[] card = new Card[countCard]; //store all cards\r\n Card[] cardinhand = new Card[N]; //store cards in one hand\r\n PokerHand[] hand = new PokerHand[player]; //store all players' hands\r\n \r\n //Deal with print of players draw\r\n int[] drawPlayer = new int[player]; //store draw players number \r\n /*set default value in the array as bigger than the number of player, \r\n so that will be sorted to the last if not updated*/\r\n Arrays.fill(drawPlayer, player + 1); \r\n int countDraw = 0; //count the number of draw players\r\n \r\n //Get the input: rank of the card\r\n for (int i = 0; i < countCard; i++) {\r\n switch (args[i].charAt(0)) {\r\n case ('2'):\r\n CardRank[i] = Rank.TWO;\r\n break;\r\n case ('3'):\r\n CardRank[i] = Rank.THREE;\r\n break;\r\n case ('4'):\r\n CardRank[i] = Rank.FOUR;\r\n break;\r\n case ('5'):\r\n CardRank[i] = Rank.FIVE;\r\n break;\r\n case ('6'):\r\n CardRank[i] = Rank.SIX;\r\n break;\r\n case ('7'):\r\n CardRank[i] = Rank.SEVEN;\r\n break;\r\n case ('8'):\r\n CardRank[i] = Rank.EIGHT;\r\n break;\r\n case ('9'):\r\n CardRank[i] = Rank.NINE;\r\n break;\r\n case ('T'):\r\n case ('t'):\r\n CardRank[i] = Rank.TEN;\r\n break;\r\n case ('J'):\r\n case ('j'):\r\n CardRank[i] = Rank.JACK;\r\n break;\r\n case ('Q'):\r\n case ('q'):\r\n CardRank[i] = Rank.QUEEN;\r\n break;\r\n case ('K'):\r\n case ('k'):\r\n CardRank[i] = Rank.KING;\r\n break;\r\n case ('A'):\r\n case ('a'):\r\n CardRank[i] = Rank.ACE;\r\n break;\r\n default:\r\n System.out.println\r\n (\"Error: invalid card name '\" + args[i] + \"'\");\r\n System.exit(i);\r\n break;\r\n }\r\n //Get the input: suit of the card\r\n switch (args[i].charAt(1)) {\r\n case ('C'):\r\n case ('c'):\r\n CardSuit[i] = Suit.Clubs;\r\n break;\r\n case ('D'):\r\n case ('d'):\r\n CardSuit[i] = Suit.Diamonds;\r\n break;\r\n case ('H'):\r\n case ('h'):\r\n CardSuit[i] = Suit.Hearts;\r\n break;\r\n case ('S'):\r\n case ('s'):\r\n CardSuit[i] = Suit.Spades;\r\n break;\r\n default:\r\n System.out.println\r\n (\"Error: invalid card name '\" + args[i] + \"'\");\r\n System.exit(i);\r\n break;\r\n }\r\n //Set all cards in the array\r\n card[i] = new Card(CardRank[i], CardSuit[i]);\r\n }\r\n\r\n //Use all cards to set cards for each player\r\n for (int i = 0; i < player; i++) {\r\n for (int j = 0; j < N; j++) {\r\n cardinhand[j] = card[i * 5 + j];\r\n }\r\n playerNo = i + 1;\r\n //Set cards and player number of each hand\r\n hand[i] = new PokerHand(cardinhand, playerNo);\r\n System.out.print(\"Player \" + playerNo + \": \");\r\n //Find the classification of each hand and print\r\n switch (hand[i].FindClass()) {\r\n case Straight_flush:\r\n System.out.println\r\n (hand[i].getR1().getRankName() + \"-high straight flush\");\r\n break;\r\n case Four_of_a_kind:\r\n System.out.println\r\n (\"Four \" + hand[i].getR1().getRankName() + \"s\");\r\n break;\r\n case Full_house:\r\n System.out.println\r\n (hand[i].getR1().getRankName() + \"s full of \" + \r\n hand[i].getR2().getRankName() + \"s\");\r\n break;\r\n case Flush:\r\n System.out.println\r\n (hand[i].getR1().getRankName() + \"-high flush\");\r\n break;\r\n case Straight:\r\n System.out.println\r\n (hand[i].getR1().getRankName() + \"-high straight\");\r\n break;\r\n case Three_of_a_kind:\r\n System.out.println\r\n (\"Three \" + hand[i].getR1().getRankName() + \"s\");\r\n break;\r\n case Two_pair:\r\n System.out.println\r\n (hand[i].getR1().getRankName() + \"s over \" + \r\n hand[i].getR2().getRankName() + \"s\");\r\n break;\r\n case One_pair:\r\n System.out.println\r\n (\"Pair of \" + hand[i].getR2().getRankName() + \"s\");\r\n break;\r\n case High_cards:\r\n System.out.println\r\n (hand[i].getR1().getRankName() + \"-high\");\r\n break;\r\n }\r\n }\r\n\r\n Arrays.sort(hand);//sort the comparable object hand\r\n\r\n // Find the player number that draw with the highest hand player\r\n for (int i = player - 2; i >= 0; i--) {\r\n if (hand[player - 1].compareTo(hand[i]) == 0) {\r\n drawPlayer[countDraw] = hand[i].getPlayerNo();\r\n countDraw++; // count the number of draw players\r\n }\r\n }\r\n\r\n Arrays.sort(drawPlayer); // ascending sort the player number \r\n //print result after compare and sort\r\n if (player > 1) {\r\n if (countDraw > 1)\r\n\r\n {\r\n System.out.print(\"Players \");\r\n for (int i = 0; i < countDraw - 1; i++) {\r\n System.out.print(drawPlayer[i] + \", \");\r\n }\r\n System.out.println(\r\n hand[player - 2].getPlayerNo() + \" and \" + \r\n hand[player - 1].getPlayerNo() + \" draw.\");\r\n } else if (countDraw == 1)\r\n System.out.println\r\n (\"Players \" + hand[player - 2].getPlayerNo() + \r\n \" and \"+ hand[player - 1].getPlayerNo() + \" draw.\");\r\n else\r\n System.out.println\r\n (\"Player \" + hand[player - 1].getPlayerNo() + \" wins.\");\r\n }\r\n } else\r\n System.out.println\r\n (\"Error: wrong number of arguments; must be a multiple of 5\");\r\n System.exit(args.length);\r\n }",
"public boolean hasCardsInCurrentHand(Rank rank) {\r\n boolean value = false;\r\n for (int i = 0; i < currentCards.size(); i++) {\r\n if (currentCards.get(i).getRank().equals(rank)) {\r\n value = true;\r\n break;\r\n } else {\r\n value = false;\r\n }\r\n }\r\n return value;\r\n }",
"public boolean play(DiscardPile discardPile, \n\t Stack<Card> drawPile, \n\t\t\t\t\t\t\t\t\t\t\tArrayList<Player> players)\n\t{\t\n\t\n\t\n\tSystem.out.println(\"Before playing: \" + this.hand.toString());\n\t\tboolean temp = false;\n\t\tString suitEight = \"xyz\";\n\t\n\t\tif ((discardPile.top()).getRank() == 4 && super.checker_4 == true){\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"\\t _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \");\n\t\t\tSystem.out.println(\"\\t | skipping the turn.. :( |\");\n\t\t\tSystem.out.println(\"\\t -----------------------------\");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t\tsuper.checker_4 = false;\n\t\t\treturn false;\n\t\t\t\n\t\t\t}\n\t\n\t\n\t\n\t\n\t\n\t\n\t\t/* adding two cards */\n\t\t if ((discardPile.top()).getRank() == 2 && super.checker_2 == true){\n\t\t\t \n\t\t\t System.out.println();\n\t\t\t System.out.println(\"\\t _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \");\n\t\t\t System.out.println(\"\\t | twice the value added! |\");\n\t\t\t System.out.println(\"\\t -----------------------------\");\n\t\t\t System.out.println();\n\t\t\t System.out.println();\n\t\t\t \n\t\t\t \n\t\t\tthis.hand.add(drawPile.pop());\n\t\t\t this.hand.add(drawPile.pop());\n\t\t\ttemp = false;\n\t\t\tsuper.checker_2 = false;\n\t\t }\n\t\t\n\t\t\n\t\t \n\t\t\n\t\telse{\n\t\t\tint i = location_1(discardPile);\n\t\t\t\n\t\t\t\n\t\t\tif(i == -1){\n\t\t\t\tthis.hand.add(drawPile.pop());\n\t\t\t\tif( i == location_2(discardPile)){ \n\t\t\t\t\t//System.out.println(\"value is added!\");\n\t\t\t\t\t//System.out.println();\n\t\t\t\t\t//System.out.println();\n\t\t\t\t\n\t\t\t\t} else{\n\t\t\t\t\ti = location_2(discardPile);\n\t\t\t\t\t//System.out.println(\"HAHA! got it!\");\n\t\t\t\t\tdiscardPile.add(this.hand.remove(i));\n\t\t\t\t\ttemp = false;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif ((discardPile.top()).getRank() == 2 && super.checker_2 == false){\n\t\t\t\t\t\tsuper.checker_2 = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(discardPile.top().getRank() == 4 && super.checker_4 == false){\n\t\t\t\t\t\tsuper.checker_4 = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif ((discardPile.top()).getRank() == 8 && temp == false){\n\t\t\t\t\t\tsuitEight = this.wildEight(discardPile, drawPile, players);\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"\\t \\t ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\t\t\t\t\t\tSystem.out.println(\"\\t \\t \\t Changing the suit to: \" + suitEight);\n\t\t\t\t\t\tSystem.out.print(\"\\t \\t \\t Processing....\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t(discardPile.top()).setSuit(suitEight);\n\t\t\t\t\t\tSystem.out.println(\"\\t \\t \\t draw pile : \" + drawPile.peek() );\n\t\t\t\t\t\tSystem.out.println(\"\\t \\t \\t discard pile : \" + discardPile.top() );\n\t\t\t\t\t\tSystem.out.println(\"\\t \\t ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif( this.hand.size() == 0 ){\n\t\t\t\t\ttemp = true;\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\t\n\t\t\t\t\n\t\t\t} else{\n\t\t\t\tdiscardPile.add(this.hand.remove(i));\n\t\t\t\ttemp = false;\n\t\t\t\t\n\t\t\t\tif ((discardPile.top()).getRank() == 2 && super.checker_2 == false){\n\t\t\t\t\t\tsuper.checker_2 = true;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(discardPile.top().getRank() == 4 && super.checker_4 == false){\n\t\t\t\t\tsuper.checker_4 = true;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ((discardPile.top()).getRank() == 8 && temp == false){\n\t\t\t\t\t\tsuitEight = this.wildEight(discardPile, drawPile, players);\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"\\t \\t ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\t\t\t\t\t\tSystem.out.println(\"\\t \\t \\t Changing the suit to: \" + suitEight);\n\t\t\t\t\t\tSystem.out.print(\"\\t \\t \\t Processing....\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t(discardPile.top()).setSuit(suitEight);\n\t\t\t\t\t\tSystem.out.println(\"\\t \\t \\t draw pile : \" + drawPile.peek() );\n\t\t\t\t\t\tSystem.out.println(\"\\t \\t \\t discard pile : \" + discardPile.top() );\n\t\t\t\t\t\tSystem.out.println(\"\\t \\t ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif( this.hand.size() == 0 ){\n\t\t\t\t\ttemp = true;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\n\n\t\t\n\t\t\n\t\n\t\tSystem.out.println(\"After Playing: \" + this.hand.toString());\n\t\tSystem.out.println();\n\t\treturn temp;\n\t\t\n\t\n\t}",
"public void dealerAskCard() {\n int dealerScore = this.getDealerHand().getActualValue();\n while (dealerScore < 17) {\n Card card = this.deck.deal(this.getDealerHand());\n dealerScore = this.getDealerHand().getActualValue();\n }\n }",
"public int hit() {\n //Add the new card to the players deck\n playerStack.add(cards[talonStack]);\n\n //Increment the score based on the new card\n playerScore += evaluateCardScore(playerScore, cards[talonStack].rank);\n\n //Increment the counter for the un-played deck\n talonStack++;\n\n //If the player gets a score above 21, the game is over\n if (playerScore > 21) {\n dealerTurn();\n\n\n if (playerCash <= 0) {\n restartGame();\n return -1;\n } else {\n return -1;\n }\n }\n //If the player hit blackjack, the dealer takes the turn.\n else if (playerScore == 21) {\n dealerTurn();\n\n //Tie\n if (dealerScore == 21) {\n playerCash += playerBet;\n return 0;\n }\n //Win\n else {\n playerCash += (playerBet * 2);\n return 1;\n }\n }\n\n return 2;\n }",
"@Test\n void pass3CardsRound99(){\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n testDealer.setRoundCount(99);\n \n List<Card> heartHand, spadeHand, clubHand, diamondHand,userPassedCards;\n\n heartHand = new ArrayList<Card>();\n spadeHand = new ArrayList<Card>();\n clubHand = new ArrayList<Card>();\n diamondHand = new ArrayList<Card>();\n userPassedCards = new ArrayList<Card>();\n \n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.ACE, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.KING, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.QUEEN, true));\n\n \n for(Card c:userPassedCards) {\n c.setOwnerOfCard(\"user\");\n }\n\n for (Rank rank : Rank.values()) {\n heartHand.add(new Card(Suit.HEARTS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n spadeHand.add(new Card(Suit.SPADES, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n clubHand.add(new Card(Suit.CLUBS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n diamondHand.add(new Card(Suit.DIAMONDS, rank, true));\n }\n \n testDealer.getBotA().fillHandCards(heartHand);\n testDealer.getBotB().fillHandCards(spadeHand);\n testDealer.getBotC().fillHandCards(clubHand);\n testDealer.getUser().fillHandCards(diamondHand);\n\n testDealer.distributePassedCards(userPassedCards);\n\n assertEquals(13, testDealer.getUserHandCards().size());\n assertEquals(13, testDealer.getBotA().getHandCards().size());\n assertEquals(13, testDealer.getBotB().getHandCards().size());\n assertEquals(13, testDealer.getBotC().getHandCards().size());\n\n assertEquals(\"QUEEN of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(0).toString());\n assertEquals(\"KING of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(1).toString());\n assertEquals(\"ACE of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(2).toString());\n\n assertEquals(\"QUEEN of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(0).toString());\n assertEquals(\"KING of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(1).toString());\n assertEquals(\"ACE of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(2).toString());\n\n assertEquals(\"QUEEN of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(10).toString());\n assertEquals(\"KING of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(11).toString());\n assertEquals(\"ACE of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(12).toString());\n\n assertEquals(\"QUEEN of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(10).toString());\n assertEquals(\"KING of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(11).toString());\n assertEquals(\"ACE of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(12).toString());\n }",
"public int chooseCard(){\n if(playable.size() == 1)//checks the size\n return searchCard(0);//returns the only playable card\n else{\n int temp = (int) Math.random()*playable.size();//chooses a random one\n return searchCard(temp);//returns that cards position\n }\n }",
"private void yourturn() {\n if (whosturn != 3) {\n whosturn = 3;\n displayTable();\n }\n\n // TODO mega duplication\n int top = 0;\n // testing is player has a card they can play\n if (pile.notEmpty()) {\n boolean canplay = false;\n if (hand.getCard(0) == null) { // if player only has card on the table\n if (hand.isFaceUp()) // if player has faceup card on the table\n {\n for (int n = 0; n < 3; n++) {\n if (hand.getFaceUp(n) != null) {\n if (nine && pile.topValue() == 9) {\n top = 0;\n for (int i = 0; i < 52; i++) {\n if (pile.get(i) == null) {\n canplay = true;\n break;\n }\n if (pile.get(i).getValue() == 9) top++;\n else break;\n }\n }\n if (canplay) break;\n if (seven\n && pile.get(top).getValue() == 7\n && hand.getFaceUp(n).getValue() < 7) {\n canplay = true;\n break;\n } else if (hand.getFaceUp(n).getValue() == 2\n || hand.getFaceUp(n).getValue() == 10) {\n canplay = true;\n break;\n } else if (nine && hand.getFaceUp(n).getValue() == 9) {\n canplay = true;\n break;\n } else if (!seven || pile.get(top).getValue() != 7) {\n if (pile.get(top).getValue() <= hand.getFaceUp(n).getValue()) {\n canplay = true;\n break;\n }\n }\n }\n }\n } else // if player only has facedown cards\n canplay = true;\n } else {\n for (int n = 0; n < hand.length() - 1; n++) {\n if (hand.getCard(n) == null) break;\n if (nine && pile.topValue() == 9) {\n top = 0;\n for (int i = 0; i < 52; i++) {\n if (pile.get(i) == null) {\n canplay = true;\n break;\n }\n if (pile.get(i).getValue() == 9) top++;\n else break;\n }\n }\n if (canplay) break;\n if (hand.getCard(n).getValue() == 2 || hand.getCard(n).getValue() == 10) {\n canplay = true;\n break;\n }\n if (nine && hand.getCard(n).getValue() == 9) {\n canplay = true;\n break;\n }\n if (seven && pile.get(top).getValue() == 7 && hand.getCard(n).getValue() < 7) {\n canplay = true;\n break;\n } else if (seven != true || pile.get(top).getValue() != 7) {\n if (pile.get(top).getValue() <= hand.getCard(n).getValue()) {\n canplay = true;\n break;\n }\n }\n }\n }\n if (canplay) {\n // sh.addMsg(\"Its Your Turn\");\n sh.setmyTurn(true);\n } else { // cant play then must pick up the pile\n sh.addMsg(\n \"The card played was a \"\n + pile.top().getStringValue()\n + \" you had to pick up the pile. BLAOW\");\n pile.moveToHand(hand);\n sendCommand(\"turn:pickup:\");\n nextTurn();\n displayTable();\n }\n } else {\n // sh.addMsg(\"Its Your Turn\");\n sh.setmyTurn(true);\n }\n }",
"boolean haveJ(char suit){\n for (int i=0; i<6; i++)\n if ((hand.get(i).suit == suit) && (hand.get(i).rank == 11))\n return true;\n return false;\n }",
"public boolean put(Card card) {\n if (this.isEmpty() && card.value() != 13) {\n return false;\n }\n if (!this.isEmpty()) {\n// System.out.println(\"chci polozit: \" + card + \" na \" + this.deck[this.top]);\n Card tmp = this.deck[this.top];\n// System.out.println(\"Rozdil karet je: \"+ tmp.compareValue(card) + \" Jsou si podobne?\" + tmp.similarColorTo(card));\n if (tmp.compareValue(card) != 1 || tmp.similarColorTo(card)) {\n// System.out.println(\"Nepolozeno - chyba\");\n return false;\n }\n }\n\n if (this.top+1 < this.size) {\n this.deck[++this.top] = card;\n return true;\n }\n else {\n return false;\n }\n }",
"@Override\n public boolean checkRequirement(PlayerContext playerContext) {\n int sumOfRightColourAndLevelCard = 0;\n for (DevelopmentCard developmentCard : playerContext.getAllDevelopmentCards()){\n if (developmentCard.getColour() == cardColour && developmentCard.getLevel() == cardLevel)\n sumOfRightColourAndLevelCard ++;\n }\n return sumOfRightColourAndLevelCard >= numberOfCards;\n }",
"public int Shuffle_Distribute(int numberOfPlayers)\n\t{\n\t\t//put 52 cards in a list and shuffle them\n\t\tArrayList<String> pokerToUse = new ArrayList<String>(Arrays.asList(pokerCards));\n\t\tCollections.shuffle(pokerToUse);\n\t\t//based on how many people play\n\t\tint whoStarts=0;\n\t\tswitch(numberOfPlayers)\n\t\t{\n\t\t\t\n\t\t\tcase 2:\n\t\t\t\tuser1card = new ArrayList<String>();\n\t\t\t\tuser2card = new ArrayList<String>();\n\t\t\t\t//give 13 cards to each player\n\t\t\t\tfor(int i=0;i<13;i++)\n\t\t\t\t{\n\t\t\t\t\t//give a random card to the first player\n\t\t\t\t\tint idx1 = new Random().nextInt(pokerToUse.size());\n\t\t\t\t\tString random1 = pokerToUse.get(idx1);\n\t\t\t\t\tpokerToUse.remove(idx1);\n\t\t\t\t\tuser1card.add(random1);\n\t\t\t\t\t//give a random card to the second player\n\t\t\t\t\tint idx2 = new Random().nextInt(pokerToUse.size());\n\t\t\t\t\tString random2 = pokerToUse.get(idx2);\n\t\t\t\t\tpokerToUse.remove(idx2);\n\t\t\t\t\tuser2card.add(random2);\n\t\t\t\t}\t\n\t\t\t\tboolean findWhoStarts = false;\n\t\t\t\tint cardNumber=4;\n\t\t\t\twhile(findWhoStarts==false)\n\t\t\t\t{\n\t\t\t\t\tString card = new StringBuilder(\"h\").append(Integer.toString(cardNumber)).toString();\n\t\t\t\t\tif(user1card.contains(card))\n\t\t\t\t\t{\n\t\t\t\t\t\tfindWhoStarts=true;\n\t\t\t\t\t\twhoStarts=1;\n\t\t\t\t\t}\n\t\t\t\t\telse if(user2card.contains(card))\n\t\t\t\t\t{\n\t\t\t\t\t\tfindWhoStarts=true;\n\t\t\t\t\t\twhoStarts=2;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfindWhoStarts=false;\n\t\t\t\t\t\tcardNumber++;\n\t\t\t\t\t\t//it's rarely possible no one has a heart car. If it happesn, re shuffle \n\t\t\t\t\t\tif (cardNumber==14)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\twhoStarts=99;//error needs reshuffle\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\tbreak;\t\t\t\t\n\t\t\tdefault:\n\t\t\t\twhoStarts=0;\n\t\t\t\tbreak;\n\t\t\n\t\t}\t\n\t\treturn whoStarts;\n\t}",
"@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Integer counter : map.values()) {\n\t\t\t\tif (map.size() == 2 && counter == 4)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"public boolean addCard(Card card)\n {\n if (numOccurrences(card) >= numPacks)\n return false;\n\n cards[topCard++] = card;\n return true;\n }",
"public boolean checkBlackJack() {\r\n if(cards.size() == 2 && score() == 21){\r\n blackJack = true;\r\n over = true;\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }",
"@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tint counter = 0;\n\t\t\tif (map.size() == 4) {\n\n\t\t\t\tfor (Integer key : map.keySet()) {\n\t\t\t\t\tif (map.get(key) == 2) {\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t\tif (map.get(key) == 1) {\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn counter == 4;\n\t\t}",
"@Override\n public boolean isBlackjack() {\n return ( (countCards()==2) && (higherScore()==21) );\n }",
"@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Integer counter : map.values()) {\n\t\t\t\tif (map.size() == 3 && counter == 3)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"public static void addPlayer(){\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter the player\");\n int player = scanner.nextInt();\n if(player >=2) {\n System.out.println(\"Enter the 2 more than player\");\n cardsPlayer(player);\n }\n\n }",
"public boolean hit() {\r\n add(deck.deal());\r\n return getHandValue() <= 21;\r\n }",
"private void makeTrips() {\n int highestThree, firstKicker, secondKicker;\n highestThree = firstKicker = secondKicker = -1;\n for (Integer key : this.cardOccurrence.keySet()) {\n int value = this.cardOccurrence.get(key);\n if(value == 3 && value > highestThree)\n highestThree = key;\n else {\n if(key > firstKicker) {\n secondKicker = firstKicker;\n firstKicker = key;\n }\n else if(key > secondKicker)\n secondKicker = key;\n }\n }\n\n //Go through Cards ArrayList to get the actual cards pertaining\n ArrayList<String> validHand = new ArrayList<>();\n for(int i = 0; i < this.cards.size(); i++) {\n Card c = this.cards.get(i);\n if(c.sameValue(highestThree))\n validHand.add(c.toString());\n else if(c.sameValue(firstKicker) || c.sameValue(secondKicker))\n validHand.add(c.toString());\n }\n this.cardHand = new CardHand(validHand.toArray(new String[0]));\n }",
"public boolean isPair(){\n \r\n List<PokerCard> pair;\r\n remainingCardValues = new ArrayList<>();\r\n \r\n //First possibility: first two cards\r\n pair = cards.subList(0, 2);\r\n if(haveSameValue(pair)){\r\n handValue = pair.get(0).getValue();\r\n \r\n //Store remaining card values for potential later comparison\r\n remainingCardValues.add(cards.get(4).getValue());\r\n remainingCardValues.add(cards.get(3).getValue());\r\n remainingCardValues.add(cards.get(2).getValue()); \r\n \r\n return true;\r\n }\r\n \r\n //Second possibility: cards 2 and 3\r\n pair = cards.subList(1, 3);\r\n if(haveSameValue(pair)){\r\n handValue = pair.get(0).getValue();\r\n \r\n //Store remaining card values for potential later comparison\r\n remainingCardValues.add(cards.get(4).getValue());\r\n remainingCardValues.add(cards.get(3).getValue());\r\n remainingCardValues.add(cards.get(0).getValue());\r\n \r\n return true;\r\n }\r\n \r\n //Third possibility: cards 3 and 4\r\n pair = cards.subList(2, 4);\r\n if(haveSameValue(pair)){\r\n handValue = pair.get(0).getValue();\r\n \r\n //Store remaining card values for potential later comparison\r\n remainingCardValues.add(cards.get(4).getValue());\r\n remainingCardValues.add(cards.get(1).getValue());\r\n remainingCardValues.add(cards.get(0).getValue());\r\n \r\n return true;\r\n }\r\n \r\n //Fourth possibility: last two cards\r\n pair = cards.subList(3, 5);\r\n if(haveSameValue(pair)){\r\n handValue = pair.get(0).getValue();\r\n \r\n //Store remaining card values for potential later comparison\r\n remainingCardValues.add(cards.get(2).getValue());\r\n remainingCardValues.add(cards.get(1).getValue());\r\n remainingCardValues.add(cards.get(0).getValue());\r\n \r\n return true;\r\n }\r\n return false;\r\n }",
"public int compareTo(Card card) {\n\t\tint thisRank = this.rank;\n\t\tint cardRank = card.rank;\n\n\t\tif(thisRank == 0 || thisRank == 1) \n\t\t\tthisRank +=13;\n\t\tif(cardRank == 0 || cardRank == 1) \n\t\t\tcardRank+=13;\n\t\tif(thisRank < cardRank)\n\t\t\treturn -1;\n\t\telse if(thisRank > cardRank)\n\t\t\treturn 1;\n\t\telse {\n\t\t\tif(this.getSuit() > card.getSuit())\n\t\t\t\treturn 1;\n\t\t\telse if(this.getSuit() < card.getSuit())\n\t\t\t\treturn -1;\n\t\t\telse \n\t\t\t\treturn 0;\n\t\t}\n\t}",
"@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tint counter = 0;\n\t\t\tif (map.size() == 3) {\n\n\t\t\t\tfor (Integer key : map.keySet()) {\n\t\t\t\t\tif (map.get(key) == 2) {\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t\tif (map.get(key) == 1) {\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn counter == 3;\n\t\t}",
"public boolean isWin_DragonKingOfArms(){\r\n // player got LordSelachii card\r\n /*Player playerHoldCard = null;\r\n for (Player player : discWorld.getPlayer_HASH().values()) {\r\n if (player.getPersonalityCardID() == 5) {\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }*/\r\n int count = 0;\r\n for(TroubleMarker troubleMarker : discWorld.getTroubleMarker_HASH().values()){\r\n if(troubleMarker.getAreaNumber() != ConstantField.DEFAULT_PIECE_AREA_NUMBER){\r\n count++;\r\n }\r\n }\r\n \r\n if(count >= 8){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n \r\n }",
"public boolean isFourOfAKind(){\n List<PokerCard> subList;\r\n \r\n //First possibility: first four cards are the same value\r\n subList = cards.subList(0, cards.size()-1);\r\n if(haveSameValue(subList)){\r\n handValue = subList.get(0).getValue();\r\n return true;\r\n }\r\n \r\n //Second possibility: last four cards are the same value\r\n subList = cards.subList(1, cards.size());\r\n if(haveSameValue(subList)){\r\n handValue = subList.get(0).getValue();\r\n return true;\r\n }\r\n \r\n return false;\r\n }",
"boolean haveHigh(char suit){\n for (int i=0; i<6; i++)\n if ((hand.get(i).suit == suit) && (hand.get(i).rank > (6 + pitchTable.getNumPlayers())))\n return true;\n return false;\n }",
"public void isOrderUpTrump(int playerID){\n if(turn == playerID && gameStage == 1 && dealer != 0){\n currentTrumpSuit = middleCardSuit;\n // make dealer discard a card and give them the middle card\n if(dealer == 1){\n // remove a card from the player's hand and add the middle card\n player2Hand.remove(2);\n player2Hand.add(middleCard);\n turn = 2;\n gameStage = 3;\n }\n else if(dealer == 2){\n // remove a card from the player's hand and add the middle card\n player3Hand.remove(2);\n player3Hand.add(middleCard);\n turn = 3;\n gameStage = 3;\n }\n else if(dealer == 3){\n // remove a card from the player's hand and add the middle card\n player4Hand.remove(2);\n player4Hand.add(middleCard);\n turn = 0;\n gameStage = 3;\n }\n }\n }",
"static boolean isStraight(ArrayList<Card> c)\n {\n if(c.size() < 5)\n {\n return false;\n }\n for(int x = 0 ; x < c.size()-1 ; x++)\n {\n int rank1 = c.get(x).getRank();\n int rank2 = c.get(x+1).getRank();\n \n if(rank1 != rank2 - 1)\n {\n return false;\n }\n }\n \n return true;\n }",
"@Test\n void pass3CardsRound3(){\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n testDealer.setRoundCount(3);\n \n List<Card> heartHand, spadeHand, clubHand, diamondHand,userPassedCards;\n\n heartHand = new ArrayList<Card>();\n spadeHand = new ArrayList<Card>();\n clubHand = new ArrayList<Card>();\n diamondHand = new ArrayList<Card>();\n userPassedCards = new ArrayList<Card>();\n \n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.ACE, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.KING, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.QUEEN, true));\n\n \n for(Card c:userPassedCards) {\n c.setOwnerOfCard(\"user\");\n }\n\n for (Rank rank : Rank.values()) {\n heartHand.add(new Card(Suit.HEARTS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n spadeHand.add(new Card(Suit.SPADES, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n clubHand.add(new Card(Suit.CLUBS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n diamondHand.add(new Card(Suit.DIAMONDS, rank, true));\n }\n \n testDealer.getBotA().fillHandCards(heartHand);\n testDealer.getBotB().fillHandCards(spadeHand);\n testDealer.getBotC().fillHandCards(clubHand);\n testDealer.getUser().fillHandCards(diamondHand);\n\n testDealer.distributePassedCards(userPassedCards);\n\n assertEquals(13, testDealer.getUserHandCards().size());\n assertEquals(13, testDealer.getBotA().getHandCards().size());\n assertEquals(13, testDealer.getBotB().getHandCards().size());\n assertEquals(13, testDealer.getBotC().getHandCards().size());\n\n assertEquals(\"QUEEN of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(0).toString());\n assertEquals(\"KING of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(1).toString());\n assertEquals(\"ACE of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(2).toString());\n\n assertEquals(\"QUEEN of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(0).toString());\n assertEquals(\"KING of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(1).toString());\n assertEquals(\"ACE of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(2).toString());\n\n assertEquals(\"QUEEN of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(10).toString());\n assertEquals(\"KING of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(11).toString());\n assertEquals(\"ACE of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(12).toString());\n\n assertEquals(\"QUEEN of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(10).toString());\n assertEquals(\"KING of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(11).toString());\n assertEquals(\"ACE of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(12).toString());\n }",
"private void findIdealSuitAndRank() {\n Map<Card.Suit, Integer> suitsInHand = new HashMap<Card.Suit, Integer>();\n Map<Card.Rank, Integer> ranksInHand = new HashMap<Card.Rank, Integer>();\n\n // Use the enumerable methods in Card class to put all the keys in the HashMaps\n for (Card.Suit suit : Card.Suit.values()) {\n suitsInHand.put(suit, 0);\n }\n for (Card.Rank rank : Card.Rank.values()) {\n ranksInHand.put(rank, 0);\n }\n\n // Place all cards played in their respective locations in the HashMap\n for (Card card : cardsInHand) {\n suitsInHand.put(card.getSuit(), suitsInHand.get(card.getSuit()) + 1);\n ranksInHand.put(card.getRank(), ranksInHand.get(card.getRank()) + 1);\n }\n /**\n * The following for loop was derived from\n * https://stackoverflow.com/questions/5911174/finding-key-associated-with-max-value-in-a-java-map\n * for finding the key with the max value in a HashMap.\n */\n Map.Entry<Card.Suit, Integer> maxEntrySuit = null;\n for (Map.Entry<Card.Suit, Integer> entry : suitsInHand.entrySet()) {\n if (maxEntrySuit == null || entry.getValue().compareTo(maxEntrySuit.getValue()) > 0) {\n maxEntrySuit = entry;\n }\n }\n idealSuit = maxEntrySuit.getKey();\n\n Map.Entry<Card.Rank, Integer> maxEntryRank = null;\n for (Map.Entry<Card.Rank, Integer> entry : ranksInHand.entrySet()) {\n if (maxEntryRank == null || entry.getValue().compareTo(maxEntryRank.getValue()) > 0) {\n maxEntryRank = entry;\n }\n }\n idealRank = maxEntryRank.getKey();\n }",
"private int demDoiThong(List<Card> bai) {\n List<Card> cards = new ArrayList<>() ;\n int max = 0;\n int count = 0;\n for (int i = 0; i < bai.size() - 1; i++) {\n if (bai.get(i).getId() >= 48) {\n break;\n }\n if (count == 0 && bai.get(i).getCardNumber() == bai.get(i + 1).getCardNumber()) {\n count = 1;\n if (cards.isEmpty()) {\n cards.add(bai.get(i));\n cards.add(bai.get(i + 1));\n }\n } else {\n if (count % 2 != 0) {\n if (bai.get(i).getCardNumber()== bai.get(i + 1).getCardNumber() - 1) {\n count++;\n } else if (bai.get(i).getCardNumber()!= bai.get(i + 1).getCardNumber()) {\n // valid = false;\n if (count > max) {\n max = count;\n }\n if(cards.size()<6){\n cards.clear();\n }\n count = 0;\n }\n } else {\n if (bai.get(i).getCardNumber()== bai.get(i + 1).getCardNumber()) {\n if(!cards.contains(bai.get(i))){\n cards.add(bai.get(i));\n }\n if(!cards.contains(bai.get(i+1))){\n cards.add(bai.get(i+1));\n }\n count++;\n } else {\n // valid = false;\n if (count > max) {\n max = count;\n }\n if(cards.size()<6){\n cards.clear();\n }\n count = 0;\n }\n }\n }\n }\n if (count > max) {\n max = count;\n }\n if (max >= 5) {\n this.specialCards.addAll(cards);\n }\n return (max + 1) / 2;\n }",
"boolean haveSuit(char suit){\n for (int i=0; i<6; i++)\n if (hand.get(i).suit != suit)\n return false;\n return true;\n }",
"private void numberRule(Player p){\n if(winner.playCard.getNumber() < p.playCard.getNumber()){\n setWinner(p);\n }\n }",
"public boolean validMove(int playerID, Card selectedCard){\n // turn == playerID\n if(gameStage == 3){\n if(numPlays == 0){\n if(playerID == 0){\n player1Play = selectedCard;\n // card goes to middle\n //checks suit of the jack if played first and sets first played suit to the correct suit\n //according to which suit is trump\n if(selectedCard.getValue() == Card.NUMBER.JACK){\n if(currentTrumpSuit == Card.SUIT.DIAMONDS && selectedCard.getSuit() == Card.SUIT.HEARTS){\n firstPlayedSuit = Card.SUIT.DIAMONDS;\n }\n if(currentTrumpSuit == Card.SUIT.HEARTS && selectedCard.getSuit() == Card.SUIT.DIAMONDS){\n firstPlayedSuit = Card.SUIT.HEARTS;\n }\n if(currentTrumpSuit == Card.SUIT.CLUBS && selectedCard.getSuit() == Card.SUIT.SPADES){\n firstPlayedSuit = Card.SUIT.CLUBS;\n }\n if(currentTrumpSuit == Card.SUIT.SPADES && selectedCard.getSuit() == Card.SUIT.CLUBS){\n firstPlayedSuit = Card.SUIT.SPADES;\n }\n }\n else{\n firstPlayedSuit = player1Play.getSuit();\n }\n numPlays++;\n turn++;\n return true;\n }\n else if(playerID == 1){\n player2Play = selectedCard;\n // card goes to middle\n //checks suit of the jack if played first and sets first played suit to the correct suit\n //according to which suit is trump\n if(selectedCard.getValue() == Card.NUMBER.JACK){\n if(currentTrumpSuit == Card.SUIT.DIAMONDS && selectedCard.getSuit() == Card.SUIT.HEARTS){\n firstPlayedSuit = Card.SUIT.DIAMONDS;\n }\n if(currentTrumpSuit == Card.SUIT.HEARTS && selectedCard.getSuit() == Card.SUIT.DIAMONDS){\n firstPlayedSuit = Card.SUIT.HEARTS;\n }\n if(currentTrumpSuit == Card.SUIT.CLUBS && selectedCard.getSuit() == Card.SUIT.SPADES){\n firstPlayedSuit = Card.SUIT.CLUBS;\n }\n if(currentTrumpSuit == Card.SUIT.SPADES && selectedCard.getSuit() == Card.SUIT.CLUBS){\n firstPlayedSuit = Card.SUIT.SPADES;\n }\n }\n else{\n firstPlayedSuit = player2Play.getSuit();\n }\n numPlays++;\n turn++;\n return true;\n }\n else if(playerID == 2){\n player3Play = selectedCard;\n // card goes to middle\n //checks suit of the jack if played first and sets first played suit to the correct suit\n //according to which suit is trump\n if(selectedCard.getValue() == Card.NUMBER.JACK){\n if(currentTrumpSuit == Card.SUIT.DIAMONDS && selectedCard.getSuit() == Card.SUIT.HEARTS){\n firstPlayedSuit = Card.SUIT.DIAMONDS;\n }\n if(currentTrumpSuit == Card.SUIT.HEARTS && selectedCard.getSuit() == Card.SUIT.DIAMONDS){\n firstPlayedSuit = Card.SUIT.HEARTS;\n }\n if(currentTrumpSuit == Card.SUIT.CLUBS && selectedCard.getSuit() == Card.SUIT.SPADES){\n firstPlayedSuit = Card.SUIT.CLUBS;\n }\n if(currentTrumpSuit == Card.SUIT.SPADES && selectedCard.getSuit() == Card.SUIT.CLUBS){\n firstPlayedSuit = Card.SUIT.SPADES;\n }\n }\n else{\n firstPlayedSuit = player3Play.getSuit();\n }\n numPlays++;\n turn++;\n return true;\n }\n else if(playerID == 3){\n player4Play = selectedCard;\n // card goes to middle\n //checks suit of the jack if played first and sets first played suit to the correct suit\n //according to which suit is trump\n if(selectedCard.getValue() == Card.NUMBER.JACK){\n if(currentTrumpSuit == Card.SUIT.DIAMONDS && selectedCard.getSuit() == Card.SUIT.HEARTS){\n firstPlayedSuit = Card.SUIT.DIAMONDS;\n }\n if(currentTrumpSuit == Card.SUIT.HEARTS && selectedCard.getSuit() == Card.SUIT.DIAMONDS){\n firstPlayedSuit = Card.SUIT.HEARTS;\n }\n if(currentTrumpSuit == Card.SUIT.CLUBS && selectedCard.getSuit() == Card.SUIT.SPADES){\n firstPlayedSuit = Card.SUIT.CLUBS;\n }\n if(currentTrumpSuit == Card.SUIT.SPADES && selectedCard.getSuit() == Card.SUIT.CLUBS){\n firstPlayedSuit = Card.SUIT.SPADES;\n }\n }\n else{\n firstPlayedSuit = player4Play.getSuit();\n }\n numPlays++;\n turn = 0;\n return true;\n }\n }\n else if(numPlays < 3){\n if(playerID == 0){\n player1Play = selectedCard;\n numPlays++;\n turn++;\n return true;\n }\n else if(playerID == 1){\n player2Play = selectedCard;\n numPlays++;\n turn++;\n return true;\n }\n else if(playerID == 2){\n player3Play = selectedCard;\n numPlays++;\n turn++;\n return true;\n }\n else if(playerID == 3){\n player4Play = selectedCard;\n numPlays++;\n turn = 0;\n return true;\n }\n }\n // if three cards have been played this is the last card\n else if(numPlays == 3){\n if(playerID == 0){\n player1Play = selectedCard;\n numPlays++;\n firstPlayedSuit = null;\n return true;\n }\n else if(playerID == 1){\n player2Play = selectedCard;\n numPlays++;\n firstPlayedSuit = null;\n return true;\n }\n else if(playerID == 2){\n player3Play = selectedCard;\n numPlays++;\n firstPlayedSuit = null;\n return true;\n }\n else if(playerID == 3){\n player4Play = selectedCard;\n numPlays++;\n firstPlayedSuit = null;\n return true;\n }\n }\n }\n return false;\n }",
"public boolean rankIsEqualsTo(Card c) {\r\n\t\t//this method compares two card objects and if one is equal to the other then it return the value as true\r\n\t\tboolean rankIsEqualsTo = false;\r\n\t\t\r\n\t\tif(rank == c.getRank()) {\r\n\t\t\trankIsEqualsTo = true;\r\n\t\t}//if\r\n\t\treturn rankIsEqualsTo;\r\n\t\t\r\n\t}",
"@Test\n void pass3CardsRound4(){\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n testDealer.setRoundCount(4);\n \n List<Card> heartHand, spadeHand, clubHand, diamondHand,userPassedCards;\n\n heartHand = new ArrayList<Card>();\n spadeHand = new ArrayList<Card>();\n clubHand = new ArrayList<Card>();\n diamondHand = new ArrayList<Card>();\n userPassedCards = new ArrayList<Card>();\n \n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.ACE, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.KING, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.QUEEN, true));\n\n \n for(Card c:userPassedCards) {\n c.setOwnerOfCard(\"user\");\n }\n\n for (Rank rank : Rank.values()) {\n heartHand.add(new Card(Suit.HEARTS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n spadeHand.add(new Card(Suit.SPADES, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n clubHand.add(new Card(Suit.CLUBS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n diamondHand.add(new Card(Suit.DIAMONDS, rank, true));\n }\n \n testDealer.getBotA().fillHandCards(heartHand);\n testDealer.getBotB().fillHandCards(spadeHand);\n testDealer.getBotC().fillHandCards(clubHand);\n testDealer.getUser().fillHandCards(diamondHand);\n\n testDealer.distributePassedCards(userPassedCards);\n\n assertEquals(13, testDealer.getUserHandCards().size());\n assertEquals(13, testDealer.getBotA().getHandCards().size());\n assertEquals(13, testDealer.getBotB().getHandCards().size());\n assertEquals(13, testDealer.getBotC().getHandCards().size());\n\n assertEquals(\"TWO of HEARTS[pickable by botA]\", testDealer.getBotA().getHandCards().get(0).toString());\n assertEquals(\"THREE of HEARTS[pickable by botA]\", testDealer.getBotA().getHandCards().get(1).toString());\n assertEquals(\"FOUR of HEARTS[pickable by botA]\", testDealer.getBotA().getHandCards().get(2).toString());\n\n assertEquals(\"TWO of SPADES[pickable by botB]\", testDealer.getBotB().getHandCards().get(0).toString());\n assertEquals(\"THREE of SPADES[pickable by botB]\", testDealer.getBotB().getHandCards().get(1).toString());\n assertEquals(\"FOUR of SPADES[pickable by botB]\", testDealer.getBotB().getHandCards().get(2).toString());\n\n assertEquals(\"QUEEN of CLUBS[pickable by botC]\", testDealer.getBotC().getHandCards().get(10).toString());\n assertEquals(\"KING of CLUBS[pickable by botC]\", testDealer.getBotC().getHandCards().get(11).toString());\n assertEquals(\"ACE of CLUBS[pickable by botC]\", testDealer.getBotC().getHandCards().get(12).toString());\n\n assertEquals(\"QUEEN of DIAMONDS[pickable by user]\", testDealer.getUser().getHandCards().get(10).toString());\n assertEquals(\"KING of DIAMONDS[pickable by user]\", testDealer.getUser().getHandCards().get(11).toString());\n assertEquals(\"ACE of DIAMONDS[pickable by user]\", testDealer.getUser().getHandCards().get(12).toString());\n }",
"public boolean check(ArrayList<Card> cards){\n int val = cards.get(0).getVal();\n if(val == 2 || val == 10)\n return true;\n //sevens are special\n if(topCardVal() == 7)\n return (topCardVal() >= val);\n return (topCardVal() <= val);\n }",
"public boolean addTopCard( Card c)\r\n {\r\n if ( valid < cards.length)\r\n {\r\n cards[valid] = c; // should this be cloned?\r\n valid++;\r\n return true;\r\n }\r\n return false;\r\n }",
"@Test\r\n public void testPlayer_getDumbStrategyCard_differentWinners() {\r\n player2 = new Player(\"\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n boolean differentLegalCardFound = false;\r\n Card firstDiscard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor());\r\n for(int i = 0; i < 25; i++) {\r\n Card loopCard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor());\r\n if(!loopCard.equals(firstDiscard)) {\r\n differentLegalCardFound = true;\r\n }\r\n }\r\n assertTrue(differentLegalCardFound);\r\n }",
"public Card play7(){\n Scanner scanner = new Scanner(System.in);\n Card chosenCard = null;\n int cardIndex;\n do{\n System.out.println(\"which card ? (it should be 7 )\");\n cardIndex = scanner.nextInt();\n// scanner.nextLine();\n if(cardIndex<=0 || cardIndex > hand.size()){\n System.out.println(\"not valid input\");\n System.out.println(\"please try again : \");\n }\n else if((!(hand.get(cardIndex-1).getSign().equals(\"7\")))){\n System.out.println(\"! it is not a seven card !\");\n System.out.println(\"please try again : \");\n }\n else{\n chosenCard = hand.get(cardIndex - 1);\n }\n\n }while(cardIndex <= 0 || cardIndex > hand.size() || chosenCard == null);\n\n\n hand.remove(chosenCard);\n return chosenCard;\n\n\n }",
"boolean hasRanking();",
"private void suitRule(Player p){\n if(((p.getPlayCard().getSuit() == trump.getSuit()) && (winner.getPlayCard().getSuit() == trump.getSuit()) )|| (winner.getPlayCard().getSuit() == p.getPlayCard().getSuit())){\n numberRule(p);\n }\nif(p.getPlayCard().getSuit() == trump.getSuit() && winner.getPlayCard().getSuit() != p.getPlayCard().getSuit()){\n setWinner(p);\n }\n\n }",
"public void cards() {\n System.out.print(\"Enter a card: \");\n in.nextLine();\n String cardName = in.nextLine().toUpperCase();\n String cardSuit = cardName.substring(1);\n String cardRank = cardName.substring(0, 1);\n\n switch (cardRank) {\n case \"2\":\n cardRank = \"Two\";\n break;\n case \"3\":\n cardRank = \"Three\";\n break;\n case \"4\":\n cardRank = \"Four\";\n break;\n case \"5\":\n cardRank = \"Five\";\n break;\n case \"6\":\n cardRank = \"Six\";\n break;\n case \"7\":\n cardRank = \"Seven\";\n break;\n case \"8\":\n cardRank = \"Eight\";\n break;\n case \"9\":\n cardRank = \"Nine\";\n break;\n case \"T\":\n cardRank = \"Ten\";\n break;\n case \"J\":\n cardRank = \"Jack\";\n break;\n case \"Q\":\n cardRank = \"Queen\";\n break;\n case \"K\":\n cardRank = \"Kind\";\n break;\n case \"A\":\n cardRank = \"Ace\";\n break;\n default:\n cardRank = \"Invalid\";\n break;\n }\n\n switch (cardSuit) {\n case \"C\":\n cardSuit = \"Clubs\";\n break;\n case \"H\":\n cardSuit = \"Hearts\";\n break;\n case \"D\":\n cardSuit = \"Diamonds\";\n break;\n case \"S\":\n cardSuit = \"Spades\";\n break;\n default:\n cardSuit = \"Invalid\";\n break;\n }\n\n if (cardRank == \"Invalid\") {\n System.out.println(\"\\nThat's not a valid rank.\\n\");\n } else if (cardSuit == \"Invalid\" || cardName.length() != 2) {\n System.out.println(\"\\nThat's not a valid suit.\\n\");\n } else {\n System.out.println(\"\\n\" + cardRank + \" of \" + cardSuit + \".\");\n }\n }",
"public boolean addCard(Card card) {\n int cardCount = 0;\n //Check to see if the deck already has the maximum number of cards\n //of this type.\n for (Card cardInDeck : this.cards)\n if (cardInDeck.equals(card))\n cardCount++;\n //Return false is the card will not fit, or if it is invalid.\n if (cardCount >= this.numPacks || this.topCard >= this.MAX_CARDS || card.errorFlag)\n return false;\n this.topCard++;\n //Add the card object to the deck.\n this.cards[topCard - 1] = new Card(card);\n return true;\n }",
"public void applyCard(Card card, String user){\n if (user.equals(\"player\")){\n if (card == null){\n //System.out.println(\"No card in this slot\");\n //System.out.println(\"Size of tempDeck: \" + playerTempDeck.size());\n } else{\n if(playerMana >= card.getManaCost()){\n updateMana(\"player\", -card.getManaCost());\n //Check if has enough gold, too. Make free cards have a worth of gold = 0.\n //playerGoldAmount -= card.getGoldCost(); //------------------------------------------------Implement this once it can be tested.\n\n if(card.getEffect().contains(\"A\")){ //attack\n //looks long, but it finds the index of the Attack symbol (\"A\") and adds one to it, so it'll find the value 5 if the input is \"A5\", anywhere on the string.\n //Allows for things such as \"A4D1\" in theory.\n updateHealth(\"enemy\", -Character.getNumericValue(card.getEffect().charAt(card.getEffect().indexOf(\"A\") + 1)), true);\n }\n if(card.getEffect().contains(\"D\")) { //Defend\n updateDefence(\"player\", Character.getNumericValue(card.getEffect().charAt(card.getEffect().indexOf(\"D\") + 1)));\n }\n\n //Discard the card just used, put into discarded pile.\n Integer index = playerHand.indexOf(card);\n discardedCards.add(card);\n //System.out.println(\"Current index is: \" + index);\n //System.out.println(\"At that index was: \" + playerHand.get(index));\n playerHand.set(index, null);\n\n\n //System.out.println(\"The deck is currently: \" + playerHand.toString());\n //playerHand.remove(card); //Doesn't work, shortens the size all together.\n drawCard(index);\n }\n }\n }\n\n else if (user.equals(\"enemy\")){\n if(enemyMana >= card.getManaCost()){\n updateMana(\"enemy\", -card.getManaCost());\n if(card.getEffect().contains(\"A\")){\n updateHealth(\"player\", -Character.getNumericValue(card.getEffect().charAt(card.getEffect().indexOf(\"A\") + 1)), true);\n }\n if(card.getEffect().contains(\"D\")) {\n updateDefence(\"enemy\", Character.getNumericValue(card.getEffect().charAt(card.getEffect().indexOf(\"D\") + 1)));\n }\n }\n }\n }",
"@Override\r\n public PlayingCard comparePlayingCards(PlayingCard cardOne, PlayingCard cardTwo){\r\n if(cardOne.getRank().ordinal() > cardTwo.getRank().ordinal()){\r\n return cardOne;\r\n }\r\n else if(cardTwo.getRank().ordinal() > cardOne.getRank().ordinal()){\r\n return cardTwo;\r\n }\r\n else {\r\n return null;\r\n }\r\n }",
"public Rank rank(){\n return PackedCard.rank(this.nbCard);\n }",
"public boolean isAddable(Card card, Card middle)\n {\n //ensure that the stack does not include cards of different rank\n if (stack.size() == 0)\n {\n //when a suit is manually picked by a previous draw of a queen\n if (!setOfCards.middle.get(0).firstCard && (setOfCards.middle.get(0).getRank() == \"Q\"))\n {\n if (card.suit == manualSuit)\n {\n return true;\n }\n else if (card.getRank() == \"Q\")\n {\n return true;\n }\n else\n {\n return false;\n }\n }\n if (middle.sameRank(card) || middle.sameSuit(card))\n {\n\n return true;\n }\n else if (card.getRank() == \"Q\")\n {\n return true;\n }\n else\n return false;\n }\n else if (stack.get(0).sameRank(card))\n {\n return true;\n }\n else\n return false;\n }",
"private void updateLastCardDiscarded(){\r\n\t\tint x = 0;\r\n\t\twhile(this != game.getPlayer(x++)){} // find the nextPlayer\r\n\t\tx = x % game.getNumberOfPlayers();\r\n\t\tnextPlayer = game.getPlayer(x);\r\n\t\t\r\n\t\tif(latestRound != game.getRoundNumber()){ // if it's a new Round, reset\r\n\t\t\tpickedUpCards = new ArrayList<Card>();\r\n\t\t\tlastCardDiscarded = null;\r\n\t\t\tlatestRound = game.getRoundNumber();\r\n\t\t\t\r\n\t\t\tfor(int y = 0; y < game.getNumberOfPlayers(); y++){ // ?????\r\n\t\t\t\tif(game.getPlayer(y) != this && \r\n\t\t\t\t\t\t(getScore() >= game.getPlayer(y).getScore() || getPhase() > game.getPlayer(y).getPhase())){//????\r\n\t\t\t\t\tsetName(oldName);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetName(oldName + \"is#WINNING\"); // ?????\r\n\t\t}else if(lastCardDiscarded != null && Configuration.getTypeRequired(nextPlayer.getPhase(), 0) == Configuration.SET_PHASE){\r\n\t\t\tif(nextPlayer.drewFromDiscard())\r\n\t\t\t\tpickedUpCards.add(lastCardDiscarded); // add the card to picked up card if it was picked up \r\n\t\t}\r\n\t}",
"public Card PlayCard() {\n\t Card ret = null;\n\t Card card;\n\t if (mCardCount > 0) {\n\t\t // To work out what card to play, see what cards can be played\n\t\t \tCard[] playableCards;\n\t\t \tplayableCards = mRules.GetPlayableCards();\n\t\t \tCard[] selectedCards;\n\t\t \tselectedCards = new Card[8];\n\t\t \tint iNumSelectableCards = 0;\n\t\t \tfor (int i = 0; i < 8; i++)\n\t\t \t\tselectedCards[i] = null;\n\t \tfor (int i = 0; i < mCardCount; i++){\n\t \t\tcard = mCard[i];\n\t \t\tswitch (card.GetSuit()){\n\t \t\tcase Card.HEARTS:\n\t \t\t\t\n\t \t\t\t// Card is a heart, can it be played?\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tselectedCards[Rules.HEARTS8] = card;\n\t \t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t// and must be played first\n\t \t\t\t\tplayableCards[Rules.HEARTS8] = new Card(8,Card.HEARTS);\n\t \t\t\t\tplayableCards[Rules.HEARTS6] = new Card(6,Card.HEARTS);\n\t \t\t\t\tplayableCards[Rules.CLUBS8] = new Card(7,Card.CLUBS);\n\t \t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(7,Card.DIAMONDS);\n\t \t\t\t\tplayableCards[Rules.SPADES8] = new Card(7,Card.SPADES);\n\t \n\t \t\t\t\treturn card;\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.HEARTS6])){\n\t \t\t\t\t\tselectedCards[Rules.HEARTS6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t\t//Log.i(\"\",\" Playing card \" + (card.GetValue()) + \" , \" +card.GetSuit());\n\t \t\t\t\t\t//Log.i(\"\",\" Updating playable card \" + (card.GetValue()-1) + \" , \" +Card.HEARTS);\t \t\t\t\t\t\n\t \t\t\t\t\t//playableCards[Rules.HEARTS6] = new Card(card.GetValue()-1,Card.HEARTS);\n\t \t\t\t\t\t//return card;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.HEARTS8])){\n\t \t\t\t\t\tselectedCards[Rules.HEARTS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t\t//Log.i(\"\",\" Playing card \" + (card.GetValue()) + \" , \" +card.GetSuit());\n\t \t\t\t\t\t//Log.i(\"\",\" Updating playable card \" + (card.GetValue()+1) + \" , \" +Card.HEARTS);\t \t\t\t\t\t\n\t \t\t\t\t\t//playableCards[Rules.HEARTS8] = new Card(card.GetValue()+1,Card.HEARTS);\n\t \t\t\t\t\t//return card;\n\t \t\t\t\t}\n\t \t\t\t}\t \t\t\t\n\t \t\t\t\n\t \t\t\tbreak;\n\t \t\tcase Card.DIAMONDS:\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.DIAMONDS8])){\n\t \t\t\t\t\tselectedCards[Rules.DIAMONDS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS6])){\n\t \t\t\t\t\tselectedCards[Rules.DIAMONDS6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS8])){\n\t \t\t\t\t\tselectedCards[Rules.DIAMONDS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\t\t \t\t\t\n\t \t\t\t\n\t \t\t\tbreak;\n\t \t\t\t\n\t \t\tcase Card.CLUBS:\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS8])){\n\t \t\t\t\t\tselectedCards[Rules.CLUBS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\t \t\t\t\t\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS6])){\n\t \t\t\t\t\tselectedCards[Rules.CLUBS6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS8])){\n\t \t\t\t\t\tselectedCards[Rules.CLUBS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\t\t \t\t\t\n\t \t\t\tbreak;\n\t \t\t\t\n\t \t\tcase Card.SPADES:\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.SPADES8])){\n\t \t\t\t\t\tselectedCards[Rules.SPADES8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\t \t\t\t\t\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.SPADES6])){\n\t \t\t\t\t\tselectedCards[Rules.SPADES6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.SPADES8])){\n\t \t\t\t\t\tselectedCards[Rules.SPADES8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\t \t\t\t\n\t \t\t\tbreak;\n\n\t \t\t\t\t \t\t\t\n\t \t\t}\n\t\n\t \t}\t\n\t \t\n\t \t// Now go through the selectable cards and see which is best to be played\n\t \tif (iNumSelectableCards == 0)\n\t \t\treturn ret;\n\t \t\n\t \tint iPos;\n\t \tcard = null;\n\t \tif (iNumSelectableCards == 1){\n\t\t\t \tfor (int i = 0; i < 8; i++)\n\t\t\t \t\tif (selectedCards[i] != null){\n\t\t\t \t\t\tcard = selectedCards[i];\n\t\t\t \t\t\tbreak;\n\t\t\t \t\t}\n\t\t\t \t\t\t \t\n\t \t}\n\t \telse {\n\t\t\t String sDifficulty = mRules.mView.GetSettings().getString(\"Difficulty\", \"0\");// 0 = hard, 1 = easy\n\t\t\t int iDifficulty = Integer.parseInt(sDifficulty);\n\t\t\t if (iDifficulty == EASY){\n\t\t\t \t// Get a random card from the playable ones\n\t\t\t\t\t Random generator = new Random();\n\t\t\t\t\t int randomIndex = generator.nextInt( iNumSelectableCards );\n\t\t\t\t\t int iCount = 0;\n\t\t\t\t\t \tfor (int i = 0; i < 8; i++){\n\t\t\t\t\t \t\tif (selectedCards[i] != null){\n\t\t\t\t\t \t\t\tif (iCount == randomIndex){\n\t\t\t\t\t \t\t\t\tcard = selectedCards[i];\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\telse iCount++;\n\t\t\t\t\t \t\t}\t\n\t\t\t\t\t \t}\n\t\t\t }\n\t\t\t else {\n\t\t\t \tiPos = GetBestCard(selectedCards);\n\t\t\t \tcard = selectedCards[iPos];\n\t\t\t }\n\t \t}\n\t \t\n\t \tswitch (card.GetSuit()){\n \t\tcase Card.HEARTS:\t \t\n \t\t\tif (card.GetValue() == 7){\n \t\t\t\t// and must be played first\n \t\t\t\tplayableCards[Rules.HEARTS8] = new Card(8,Card.HEARTS);\n \t\t\t\tplayableCards[Rules.HEARTS6] = new Card(6,Card.HEARTS);\n \t\t\t\tplayableCards[Rules.CLUBS8] = new Card(7,Card.CLUBS);\n \t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(7,Card.DIAMONDS);\n \t\t\t\tplayableCards[Rules.SPADES8] = new Card(7,Card.SPADES);\n \n \t\t\t\treturn card;\n \t\t\t}\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals(playableCards[Rules.HEARTS6])){\n \t\t\t\t\tplayableCards[Rules.HEARTS6] = new Card(card.GetValue()-1,Card.HEARTS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.HEARTS8])){ \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.HEARTS8] = new Card(card.GetValue()+1,Card.HEARTS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t \t\t\t\n \t\t\t\n \t\t\tbreak; \n \t\tcase Card.DIAMONDS:\n \t\t\t// Is it a seven, it can be played...\n \t\t\tif (card.GetValue() == 7){\n \t\t\t\tif (playableCards[Rules.HEARTS8] != null && playableCards[Rules.HEARTS8].GetValue() > 7){\n\t \t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(8,Card.DIAMONDS);\n\t \t\t\t\tplayableCards[Rules.DIAMONDS6] = new Card(6,Card.DIAMONDS);\t \t\t\t\t\t\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS6])){\t \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.DIAMONDS6] = new Card(card.GetValue()-1,Card.DIAMONDS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS8])){\t \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(card.GetValue()+1,Card.DIAMONDS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t\t \t\t\t\n \t\t\t\n \t\t\tbreak; \n \t\t\t\n \t\tcase Card.CLUBS:\n \t\t\t// Is it a seven, it can be played...\n \t\t\tif (card.GetValue() == 7){\n\n \t\t\t\tif (playableCards[Rules.HEARTS8] != null && playableCards[Rules.HEARTS8].GetValue() > 7){\n\t \t\t\t\tplayableCards[Rules.CLUBS8] = new Card(8,Card.CLUBS);\n\t \t\t\t\tplayableCards[Rules.CLUBS6] = new Card(6,Card.CLUBS);\t \t\t\t\t\t\n \t\t\t\t\treturn card;\n \t\t\t\t}\t \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS6])){\n \t\t\t\t\tplayableCards[Rules.CLUBS6] = new Card(card.GetValue()-1,Card.CLUBS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS8])){\n \t\t\t\t\tLog.i(\"\",\" Updating playable card \" + (card.GetValue()+1) + \" , \" +Card.CLUBS);\n \t\t\t\t\tplayableCards[Rules.CLUBS8] = new Card(card.GetValue()+1,Card.CLUBS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t\t \t\t\t\n \t\t\tbreak; \n \t\tcase Card.SPADES:\n \t\t\t// Is it a seven, it can be played...\n \t\t\tif (card.GetValue() == 7){\n \t\t\t\tif (playableCards[Rules.HEARTS8] != null && playableCards[Rules.HEARTS8].GetValue() > 7){\n\t \t\t\t\tplayableCards[Rules.SPADES8] = new Card(8,Card.SPADES);\n\t \t\t\t\tplayableCards[Rules.SPADES6] = new Card(6,Card.SPADES);\t \t\t\t\t\t\n \t\t\t\t\treturn card;\n \t\t\t\t}\t \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.SPADES6])){ \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.SPADES6] = new Card(card.GetValue()-1,Card.SPADES);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.SPADES8])){\t \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.SPADES8] = new Card(card.GetValue()+1,Card.SPADES);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t \t\t\t\n \t\t\tbreak;\n \t\t\t\n\t \t}\n\t \n\t }\n\t return ret;\n }",
"public void hit() {\n Card c = cards.draw(); //Draws a card\n cardPane.add(c); //Adds card to card panel\n repaint(); //Redraws hand\n revalidate(); //Refreshes hand\n int cardValue = c.getValue(); //Gets value of card\n ArrayList<Integer> newValues = new ArrayList<>(); //Collection of new Integer values\n for (Integer i : values) {\n newValues.add(i + cardValue); //Populates new list with old list + new card value\n }\n values.clear(); //Erases old list\n values.addAll(newValues); //Sets values to newValues\n if (cardValue == 11) { //If card is an ace\n for (Integer i : values) {\n newValues.add(i - 10); //Adds values where ace is value 1\n }\n values.clear();\n values.addAll(newValues);\n }\n updateValue(); //Updates the value of the hand\n }",
"public boolean hit()\n\t{\n\t\taddCardToHand(new BlackJackCard());\n\t\treturn getHandValue() <= 21;\n\t}",
"public int compareByRank(Card otherCard){\n\t\tint num = 0;\n\t\tif (this.rank == otherCard.rank)\n\t\t\tnum = 0;\n\t\telse if (this.rank > otherCard.rank)\n\t\t\tnum = 1;\n\t\telse if (this.rank < otherCard.rank)\n\t\t\tnum = -1;\n\t\treturn num;\n\t}",
"public boolean containsK(List<Integer> selectedCards) \n {\n \tfor(int i=0;i<selectedCards.size();i++)\n \t{\n \t\tif(cardAt(selectedCards.get(i)).rank().equals(\"king\"))\n \t\t{\n \t\t\treturn true;\n \t\t}\n \n \t}\n \treturn false;\n }",
"public boolean isInHand( int x)\n\t{\n\t\tfor(int i=0; i<5;i++)\n\t\t{\n\t\t\tif(x == cardNumbers[i]) // verify that you are not adding the same replacement card twice\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\t\n\t}"
] |
[
"0.71254706",
"0.65811646",
"0.6560994",
"0.6540481",
"0.6526303",
"0.6475853",
"0.646701",
"0.6424434",
"0.6418701",
"0.6418326",
"0.6404011",
"0.6386606",
"0.63773686",
"0.6366489",
"0.6330345",
"0.62996286",
"0.6286657",
"0.6247114",
"0.6231246",
"0.62293357",
"0.6216242",
"0.6200882",
"0.6185716",
"0.61434275",
"0.6114882",
"0.60932666",
"0.60886896",
"0.6082265",
"0.6072646",
"0.6040618",
"0.60195196",
"0.60183036",
"0.6005844",
"0.6001314",
"0.59956247",
"0.59861016",
"0.59780943",
"0.5975894",
"0.597031",
"0.59697247",
"0.5963463",
"0.5954536",
"0.5944266",
"0.5931158",
"0.59279346",
"0.59163177",
"0.59144956",
"0.5899036",
"0.58904916",
"0.5889157",
"0.5881447",
"0.5880948",
"0.5876204",
"0.5870452",
"0.5868789",
"0.58683485",
"0.5855182",
"0.58532655",
"0.58485246",
"0.58406067",
"0.5836961",
"0.58314764",
"0.58211416",
"0.58194137",
"0.5807639",
"0.5805235",
"0.5804258",
"0.5802821",
"0.5793475",
"0.5784294",
"0.5784079",
"0.57770294",
"0.5776284",
"0.5770583",
"0.5769502",
"0.57692844",
"0.5767106",
"0.57579744",
"0.5755042",
"0.57530975",
"0.57448035",
"0.57438284",
"0.57405764",
"0.5733409",
"0.5733132",
"0.57315344",
"0.57296574",
"0.5724196",
"0.5722324",
"0.572058",
"0.5716022",
"0.5711303",
"0.570539",
"0.57053006",
"0.56973404",
"0.5692875",
"0.568297",
"0.56776726",
"0.5675216",
"0.5672981"
] |
0.64226395
|
8
|
/ NOTE: The following contains some thoughts on how a round should be coded, it is not yet complete
|
public void playRound(CuarentaGame game){
Player human = game.getHumanPlayer();
Player computer = game.getComputerPlayer();
Player activePlayer;
for(int i=0; i<10; i++){
// For now, human player starts always. This isn't quite intended, but not important right now
if(i%2==0)
activePlayer = human;
else
activePlayer = computer;
// choose a card to play
// choose next actions
// add points accordingly
// check win condition
}
human.addPoints(calculatePointsFromDiscardPile(game.getHumanPlayer()));
computer.addPoints(calculatePointsFromDiscardPile(game.getComputerPlayer()));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getRound()\r\n\t{\r\n\t\treturn this.round;\r\n\t}",
"public static long kRounding(){\n\t\tScanner kbd = new Scanner(System.in); //see fairgame\n\t\tint input = kbd.nextInt();\n\t\tint Nput = input;\n\t\tint rounding = kbd.nextInt();\n\n\t\tint div2 = 0;\n\t\tint div5 = 0;\n\n\t\twhile (input % 2 == 0){\n\t\t\tdiv2++;\n\t\t\tinput = input/2;\n\t\t}\n\t\twhile (input % 5 == 0){\n\t\t\tdiv5++;\n\t\t\tinput = input/5;\n\t\t}\n\n\t\tint multiplierTwo = 1;\n\t\tint multiplierFive = 1;\n\t\tif(rounding - div2 > 0){\n\t\t\tmultiplierTwo = (int) Math.pow(2, rounding - div2);\n\t\t}\n\t\tif(rounding - div5 > 0){\n\t\t\tmultiplierFive = (int) Math.pow(5, rounding - div5)\n\t\t}\n\n\t\treturn multiplierTwo*(long)multiplierFive*(long)Nput;\n\t}",
"public int getRound() {\n return round;\n }",
"private int round2(double candidate) {\n\tif (candidate > 0.5) {\n\t return(1);\n\t}\n\n\treturn(0);\n }",
"private double roundUnit(double unit)\n {\n double ones = Math.pow(10, Math.ceil(Math.log10(unit)));\n double twos = Math.pow(10, Math.ceil(Math.log10(unit / 2))) * 2;\n double fives = Math.pow(10, Math.ceil(Math.log10(unit / 5))) * 5;\n\n return Math.min(Math.min(ones, twos), fives);\n }",
"private int round1(double candidate) {\n\tif (candidate > 0.85) {\n\t return(1);\n\t} else if (candidate < 0.15) {\n\t return(0);\n\t}\n\t\n\treturn(-1);\n }",
"public int getCurrentRound()\n\t{\n \treturn currentRound;\n\t}",
"public Integer getRound() {\n return round;\n }",
"private double round(double data) {\n\n\t\treturn Math.rint(data / m_Precision) * m_Precision;\n\t}",
"public PaxosRound createRound()\n {\n return createRound(0);\n }",
"private void nextRound() {\n\t\n\t\t\n\t\tcfight++;\n\t\tif(cfight>=maxround)\n\t\t{\n\t\tcfight=0;\n\t\t\n\t\tround++;\n\t\t\tmaxround/=2;\n\t\t}\n\t\t\n\tif(round<4)\n\t{\n\tcontrollPCRound();\n\t}\n\telse\n\t{\n\t\tint sp=0;\n\t\tint round=0;\n\t\tfor(int i=0; i<fighter.length; i++)\n\t\t{\n\t\t\tif(spieler[i]>0)\n\t\t\t{\n\t\t\t\tsp++;\n\t\t\t\tif(fround[i]>round)\n\t\t\t\t{\n\t\t\t\tround=fround[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\tif(geld==false)\n\t{\n\t\tgeld=true;\n\t\tif(sp==1)\n\t\t{\n\t\tZeniScreen.addZenis(round*3500);\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint w=round*4000-500*sp;\n\t\t\tif(w<1)\n\t\t\t{\n\t\t\t\tw=100;\n\t\t\t}\n\t\t\tZeniScreen.addZenis(w);\t\n\t\t}\n\t}\n\t}\n\t\n\t\n\t}",
"public void handleNextRound() {\n\t\t\r\n\t}",
"public int getNround()\n {\n \treturn this.nround;\n }",
"public void setRound(int round) {\r\n this.round = round;\r\n }",
"public void increaseRound() {\n\t\tif(this.activePlayer==this.player1) {\n\t\t\tthis.setScorePlayer1(this.getScorePlayer1()+1);\n\t\t}else {\n\t\t\tthis.setScorePlayer2(this.getScorePlayer2()+1);\n\t\t}\n\t\t//On check si c'est le dernier round\n\t\tif (round != ROUNDMAX) {\n\t\tthis.round++;\n\t\t//On change un round sur deux le premier joueur de la manche\n\t\t\n\t\tif (0==round%2) {\n\t\t\t\n\t\t\tthis.setActivePlayer(player2);\n\t\t}else {\n\t\t\n\t\t\tthis.setActivePlayer(player1);\n\t\t}\n\t\t}else {\n\t\t\t//Sinon la partie est gagne\n\t\t\tdraw.win = true;\n\t\t}\n\t\t}",
"public Round() {\n\t\tthis.niceMoves = null;\n\t\tthis.roundNo = 1;\n\t}",
"public String roundUp(){\n return \"Numero original: \" + this._X + \" numero redondeado hacia arriba \" + (int)Math.ceil(this._X);\n }",
"public Round getRound(){\n return mRound;\n }",
"public int calculate(java.util.List<Round> rounds, int index, Round round);",
"public static void main(String[] args) {\n\t\tdouble d = 302.200;\n\t\tdouble c = 302.700;\n\t\tSystem.out.println(Math.round(d));//retorna 302\n\t\tSystem.out.println(Math.round(c));//retorna 303\n\t}",
"public static double round(double number) {\r\n //MiscStuff.writeToLog(number);\r\n Double d = new Double(number);\r\n String str = d.toString();\r\n str.trim();\r\n \r\n if(str.indexOf('.') + 3 < str.length()) {\r\n if(!str.equals(\"NaN\") && !str.equals(\"Infinity\") \r\n && !str.equals(\"-Infinity\")) {\r\n \r\n \r\n int i = str.indexOf('.');\r\n String str1 = str.substring(0, i + 3);\r\n d = new Double(str1);\r\n \r\n //MiscStuff.writeToLog(\" \" + str + \" \" + d);\r\n \r\n if(!str.substring(i+3).equals(\"\") ) {\r\n int rounder = new Integer(str.substring(i+3, i+4));\r\n \r\n if(5 <= rounder) {\r\n Double d2 = (10 - rounder) * .001;// d + new Float(.01);\r\n d = number + d2;\r\n //MiscStuff.writeToLog(\"Rounder \" + rounder + \" \" + d2);\r\n \r\n String str2 = d.toString();\r\n str2.trim();\r\n \r\n if(str2.indexOf('.') + 3 < str2.length()) \r\n d = Math2.round(d); //don't get stuck....\r\n }\r\n }\r\n \r\n number = d; \r\n }\r\n \r\n else {\r\n //MiscStuff.writeToLog(number); \r\n }\r\n }\r\n \r\n return number;\r\n }",
"private int round(double d){\n double dAbs = Math.abs(d);\n int i = (int) dAbs;\n double result = dAbs - (double) i;\n if(result<0.5){\n return d<0 ? -i : i;\n }else{\n return d<0 ? -(i+1) : i+1;\n }\n }",
"public PaxosRound getRound(int a_round)\n {\n PaxosRound result = (PaxosRound) m_rounds.get(new Integer(a_round));\n return result;\n }",
"public int rConst(int round) {\n\n int rci = 0;\n\n if(round == 1) rci = 1;\n else if(round > 1 && rConst(round-1) < 0x80) rci = ((2 * rConst(round-1)));\n else if(round > 1 && rConst(round-1) >= 0x80) rci = (byte)((2 * rConst(round-1)) ^ 0x1b);\n else rci = 0;\n\n return rci;\n }",
"public int getCurrentRound() {\n\t\treturn roundNumber;\n\t}",
"private double roundToOneDecimal(double num) {\n\t\treturn (int)((10 * num) + 0.5) / 10.0;\n\t}",
"public void roundValues(int dp) {\n /*\n * rounds values to the specified decimal places (dp)\n * in place\n * */\n\n if (dp < 1) {\n return;\n }\n\n dp *= 10;\n realPart = Math.round(realPart * dp) / (double) dp;\n imaginaryPart = Math.round(imaginaryPart * dp) / (double) dp;\n }",
"private int round(double val) {\n return (int) Math.round(val);\n }",
"private double roundNumber(double in_number, int precision) {\r\n\t\tdouble round_precision = Math.pow(10, (double) precision);\r\n\t\treturn Math.round(in_number * round_precision) / round_precision;\r\n\t}",
"public static int round(float a) {\t\n\t\treturn (int)floor(a + 0.5f);\n\t}",
"static double round2(double number) {\n\t\tnumber = (number * 100); \r\n\t\tnumber = (number + .5);\r\n\t\tnumber = (int) number;\r\n\t\tnumber = (number / 100);\r\n\t\tnumber = (double) number;\r\n=======\n\tpublic static double round2(double number) { //we gottem\r\n\t\tnumber = (number*100); \r\n\t\tnumber = (number+.5);\r\n\t\tnumber = (int)number;\r\n\t\tnumber = (number/100);\r\n\t\tnumber = (double)number;\r\n>>>>>>> branch 'master' of https://github.com/henryhoover/APCS4Fall.git\n\t\treturn number;\t\r\n\t}\r\n\r\n<<<<<<< HEAD\n\tpublic static double exponent(double base, int power) { //a call to exponent raises a value to the integer value. accepts double and integer, returns a double\r\n=======\n\tpublic static double exponent(double base, int power) { //mayhaps./????\r\n>>>>>>> branch 'master' of https://github.com/henryhoover/APCS4Fall.git\n\t\tif(power < 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"no negative powers\");\r\n\t\t}\r\n<<<<<<< HEAD\n\t\tif(power == 0) {\r\n\t\t\treturn(1);\r\n\t\t}\r\n\t\tint repeats = 1;\r\n\t\tdouble answer = base;\r\n\t\twhile (repeats != power) {\r\n\t\t\tanswer = base * base;\r\n\t\t\trepeats++;\r\n\t}\r\n\t\treturn(answer);\r\n\r\n=======\n\t\tint repeats = 1;\r\n\t\twhile (repeats < power) {\r\n\t\t\tpower++;\r\n\t\t\treturn(base*base);\r\n\t}\r\n\t\treturn(1);\r\n>>>>>>> branch 'master' of https://github.com/henryhoover/APCS4Fall.git\n\t}\r\n\t\r\n\t\r\n\tpublic static int factorial(int number) { //a call to factorial returns the factorial of the value passed. accepts and returns an int\r\n\t\tint answer = number;\r\n<<<<<<< HEAD\n\t\tint mult = number -1;\r\n=======\n>>>>>>> branch 'master' of https://github.com/henryhoover/APCS4Fall.git\n\t\tif (number < 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"no negative factorials\");\r\n\t\t}\r\n<<<<<<< HEAD\n\t\tdo {\r\n\t\t\tanswer = number;\r\n\t\t\tmult = mult - 1;\r\n\t\t\treturn(answer);\r\n\t\t} while (mult != 1);\r\n\r\n\t\t}\r\n\t\t\r\n\t\r\n=======\n\t\tif(number == 0) {\r\n\t\t\treturn(1);\r\n\t\t}\r\n\t\tfor (answer = number -1; answer <= number; answer++) {\r\n\t\t\tanswer = answer / 1;\r\n\r\n\t\t}\r\n\t\treturn(answer);\r\n\t}\r\n>>>>>>> branch 'master' of https://github.com/henryhoover/APCS4Fall.git\n\t\r\n\tpublic static boolean isPrime(int number) { //call to isPrime determines if an integer is prime. accepts an int and returns a boolean\r\n\t\tint factor = 2;\r\n\t\tif(isDivisibleBy(number, factor) == false) {\r\n\t\t\tfactor++;\r\n\t\t\treturn(true);\r\n\t\t} else {\r\n\t\t\treturn(false);\r\n\t\t}\r\n\t}\r\n\t\r\n<<<<<<< HEAD\n\tpublic static int gcf(int number1, int number2) { //a call to gcf returns the greatest ccommon factor of the 2 values passed. accepts 2 integers, rerturns an int\r\n\t\tint factor = 1;\r\n\t\tdouble larger = max(number1, number2);\r\n\t\tdouble smaller = min(number1, number2);\r\n\t\tfor (int i = 1; i <= (int)larger; i++) {\r\n\t\t\tif (isDivisibleBy((int)larger, i) == true) {\r\n\t\t\t\tif (isDivisibleBy((int)smaller, i) == true) {\r\n\t\t\t\t\tfactor = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn(factor);\r\n\t\t}\r\n=======\n\tpublic static int gcf(int number1, int number2) { //lets find out\r\n>>>>>>> branch 'master' of https://github.com/henryhoover/APCS4Fall.git\n\r\n<<<<<<< HEAD\n=======\n\t\tif(isPrime(number1 | number2) == false) {\r\n\t\t\twhile(number1 != number2) {\r\n\t\t\t\tif(number1 > number2) {\r\n\t\t\t\t\treturn(number1 - number2);\r\n\t\t\t\t}\r\n\t\t\t\tif(number1 < number2) {\r\n\t\t\t\t\treturn(number2 - number1);\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t}\r\n\t\treturn(1);\r\n\t}",
"public static void main(String[] args) {\n// System.out.println(Math.floor(12.34));/\n// System.out.println(Math.(12.34));/\n// System.out.println(Math.ceil(12.34));/\n// System.out.println(Math.ceil(12.34));/\n int start=5;\n int end=66;\n int i=start+(int)(Math.round(Math.random()*(end-start)) );\n System.out.println(i);\n }",
"public static double round1(double n) {\r\n return Math.round(n * 10.0) / 10.0;\r\n }",
"public String roundNear(){\n return \"Numero original: \" + this._X + \" numero redondeado hacia numero mas cercano \" + (int)Math.floor(this._X + 0.5);\n }",
"public static final int round(final double a) {\r\n\r\n if (a < 0) {\r\n return ((int) (a - 0.5d));\r\n } else {\r\n return ((int) (a + 0.5d));\r\n }\r\n }",
"public int getRoundNumber() {\n return roundNumber;\n }",
"public static int round(double a) {\n return (int) Math.floor(a + 0.5f);\n }",
"private static double rundeBetrag(double betrag){\n \tdouble round = Math.round(betrag*10000); \r\n \t\r\n \tround = round / 10000; \r\n \tround = Math.round(round*1000); \r\n \tround = round / 1000; \r\n \tround = Math.round(round*100); \r\n \r\n \treturn round / 100; \r\n }",
"public int getPointsGainedLastRound(){return pointsGainedLastRound;}",
"public static String round() {\n\t\t\n\t\t// Check if inputs are valid, provides a random input if not.\n\t\tif (PlayerBean.PLAYERONE < 1 || PlayerBean.PLAYERONE > 3) {\n\t\t\thandleInput(String.valueOf(PlayerBean.PLAYERONE), \"playerOne\");\n\t\t}\n\t\tif (PlayerBean.PLAYERTWO < 1 || PlayerBean.PLAYERTWO > 3) {\n\t\t\thandleInput(String.valueOf(PlayerBean.PLAYERTWO), \"playerTwo\");\n\t\t}\n\t\t\n\t\t// See if i is a tie or which player wins.\n\t\tif (PlayerBean.PLAYERONE == PlayerBean.PLAYERTWO) {\n\t\t\tScoreBean.addTie();\n\t\t\tresult = \"tie\";\n\t\t} else {\n\t\t\tcheckResult();\n\t\t}\n\t\t\n\t\t// return JSON response.\n\t\tString pattern\t= \"{\\\"Player1\\\":\\\"%s\\\",\\\"Player2\\\":\\\"%s\\\",\\\"Result\\\":\\\"%s\\\"}\";\n\t\treturn String.format(pattern, printChoice[PlayerBean.PLAYERONE-1], printChoice[PlayerBean.PLAYERTWO-1], result);\n\t\t\n\t}",
"public static void testRoundDown(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t wall.explore();\n\t wall.roundDownToMultOf8();\n\t wall.explore();\n }",
"protected double round(double value, int precision) {\n int scale = (int) Math.pow(10, precision);\n return (double) Math.round(value * scale) / scale;\n }",
"private int xRounded(Summit s, PanoramaParameters p) {\n GeoPoint obsPos = p.observerPosition();\n double azimuthToSummit = obsPos.azimuthTo(s.position());\n return (int) round(p.xForAzimuth(azimuthToSummit));\n }",
"public void incrementCurrentRoundNumber() {\n\t\t\n\t\tcurrentRoundnumber = currentRoundnumber +1;\n\t}",
"abstract void startRound();",
"private double roundValue(double x) {\n\t\tx = x * 1000;\n\t\tx = Math.round(x);\n\t\tx = ((double) x) / 1000;\n\t\treturn x;\n\t}",
"public synchronized int getCurrentRoundNumber()\r\n {\r\n return currentRoundNumber;\r\n }",
"public static int numInRound(int round) {\n\t\treturn (int) (Math.pow(2, round - 1));\n\t}",
"public static String nextRound() {\n return \"Starting next round.\";\n }",
"public int getRoundNum(){\n return gameRounds;\n }",
"public void beginRound() {\r\n\t\tnewRound();\r\n\t}",
"public double topInt(double tenths) {\n double rounded = Math.floor(tenths)+1.0;\n\n return rounded;\n}",
"public Round getActualRound() {\n\t\treturn actualRound;\n\t}",
"int getSightRadius(Unit unit);",
"private double roundDecimal(double value, int precision) {\n \tdouble precisionMultiple = Math.pow(10, precision);\n \treturn Math.round(value * precisionMultiple) / precisionMultiple;\n }",
"public double round(double value) {\n\t\treturn round(value, 2);\n\t}",
"static Double round(Double value) {\n BigDecimal bd = new BigDecimal(Double.toString(value));\n bd = bd.setScale(6, RoundingMode.HALF_UP);\n return bd.doubleValue();\n }",
"public static double round(double theVal, int periods)\n {\n\tBigDecimal result = roundToBigDecimal(BigDecimal.valueOf(theVal),periods);\n\treturn result.doubleValue();\n }",
"public String roundDown(){\n return \"Numero original: \" + this._X + \" numero redondeado hacia abajo \" + (int)Math.floor(this._X);\n }",
"public boolean tick() {\n/* 55 */ this.affected = true;\n/* 56 */ if (this.round > 0)\n/* 57 */ this.round--; \n/* 58 */ return (this.round == 0);\n/* */ }",
"double roundOff (double value) {\n\t\treturn Math.floor((value + EPSILON) * 100) / 100;\n\t}",
"private void newRound() {\r\n\t\tballoonsThisRound = currentRoundNumber * balloonsPerRound * 5;\r\n\t\tcurrentRound = new Round(balloonTypes, 0.3f, balloonsThisRound);\r\n\t\tcurrentRoundNumber++;\r\n\r\n\t\tSystem.out.println(\"Begining Round: \" + currentRoundNumber);\r\n\t}",
"public static double round(double value, int places) {\n if (places < 0) \n \tthrow new IllegalArgumentException();\n long factor = (long) Math.pow(10, places);\n value = value * factor;\n long tmp = Math.round(value);\n return (double) tmp / factor;\n}",
"public static double round2(double num1) {\n\t\tnum1=((num1+.005)*100);\r\n\t\tnum1 = (int) num1;\r\n\t\treturn(num1/100);\r\n\t}",
"public PaxosRound createRound(int a_round)\n {\n PaxosRound result = new PaxosRound(this, a_round, getNextRoundLeader(a_round));\n m_rounds.put(new Integer(a_round), result);\n return result;\n }",
"static protected boolean Round3(double s0, double s1, double s2) {\n // To check \"s1 is half-ulp\", s1!=0 and all the mantissa bits=0 only work\n // for normalized numbers. But if s1 is de-normalized, then according to\n // the two places where Round3 gets called, \\hat s_2 must be zero, which\n // means s0 is correctly rounded.\n long is1 = Double.doubleToRawLongBits(s1);\n return (s1 != .0 && (HIGH_MANTISSA_MASK & is1) == 0 && (LOW_MANTISSA_MASK & is1) == 0 && s1 * s2 > 0);\n }",
"double roundTwoDecimals(double d) { \n DecimalFormat twoDForm = new DecimalFormat(\"#.##\"); \n return Double.valueOf(twoDForm.format(d));\n }",
"public static Number step1Rounding(Number value) {\r\n return rounder.performRounding(value);\r\n }",
"public static final int round(final float a) {\r\n\r\n if (a < 0) {\r\n return ((int) (a - 0.5f));\r\n } else {\r\n return ((int) (a + 0.5f));\r\n }\r\n }",
"private void nextRound() {\r\n action = 0;\r\n if (round == GameConstants.ROUNDS) {\r\n round = 0;\r\n if (phase == 0) {\r\n vc = null;\r\n missioncontrollpieces = GameConstants.PIECES_SET;\r\n }\r\n phase++;\r\n } else {\r\n round++;\r\n }\r\n }",
"public static int round(float a) {\n return (int) Math.floor(a + 0.5f);\n }",
"public interface RoundScoreCalculator {\n\n\t/**\n\t * Generic interface used to calculate final score for an specific bowling round\n\t * \n\t * @param rounds List of rounds\n\t * @param index Indicates round number in the list\n\t * @param round Bowling round\n\t * @return int Final score of the round\n\t */\n\tpublic int calculate(java.util.List<Round> rounds, int index, Round round);\n}",
"private float angularRounding(float input) {\n if (input >= 180.0f) {\n return input - 360.0f;\n } else if (input <= -180.0f) {\n return 360 + input;\n } else {\n return input;\n }\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isRoundabout();",
"public Round(ArrayList<Move> niceMoves) {\n\t\tthis.niceMoves = niceMoves;\n\t\tthis.roundNo = 1;\n\t}",
"@Override\r\n\tpublic void setRound(int round) {\n\t\tthis.round = \"Round: \"+round;\r\n\t\tupdate();\r\n\t}",
"private int yRounded(Summit s, PanoramaParameters p) {\n GeoPoint obsPos = p.observerPosition();\n double distanceToSummit = obsPos.distanceTo(s.position());\n double azimuthToSummit = obsPos.azimuthTo(s.position());\n ElevationProfile e = new ElevationProfile(cDEM, obsPos, azimuthToSummit, distanceToSummit);\n DoubleUnaryOperator f = rayToGroundDistance(e, p.observerElevation(), 0);\n double summitElevation = -f.applyAsDouble(distanceToSummit);\n double slope = atan2(summitElevation, distanceToSummit);\n return (int) round(p.yForAltitude(slope));\n }",
"public int getCurrentGameRound(){\n\t\treturn currentGameRound;\n\t}",
"public double round (double value) {\n BigDecimal bd = new BigDecimal(value);\n bd = bd.setScale(2, RoundingMode.HALF_UP);\n return bd.doubleValue();\n }",
"public String run() {\n double n = 100;\n\n // sum of r: n/2(n+1)\n double sumSquared = (1/2.0) * n * (n + 1);\n sumSquared = sumSquared * sumSquared;\n // sum of r^2: n/6(n+1)(2n+1)\n double sumOfSquares = (1/6.0) * n * (n + 1) * (2 * n + 1);\n\n return String.format(\"%.0f\", Math.abs(sumSquared - sumOfSquares));\n }",
"@Test\n public void testCalculateRoundNumber() {\n // key - player size, value - expected value\n Map<Integer, Integer> roundNumDependsOnPlayerNum = new HashMap<>();\n roundNumDependsOnPlayerNum.put(0, 0);\n roundNumDependsOnPlayerNum.put(1, 0);\n roundNumDependsOnPlayerNum.put(2, 1);\n roundNumDependsOnPlayerNum.put(3, 3);\n roundNumDependsOnPlayerNum.put(7, 3);\n roundNumDependsOnPlayerNum.put(8, 4);\n roundNumDependsOnPlayerNum.put(20, 4);\n roundNumDependsOnPlayerNum.put(21, 5);\n for(Map.Entry<Integer, Integer> entry : roundNumDependsOnPlayerNum.entrySet()) {\n final int testData = entry.getKey();\n final int expected = entry.getValue();\n final int actual = mTournament.calculateRoundsNumber(testData);\n assertEquals(expected, actual);\n }\n// for (Iterator iterator = roundNumDependsOnPlayerNum.keySet().iterator(); iterator.hasNext(); ) {\n// final int testData = (int) iterator.next();\n// final int expected = (int) roundNumDependsOnPlayerNum.get(testData);\n// final int actual = mTournament.calculateRoundsNumber(testData);\n// assertEquals(expected, actual);\n// }\n }",
"public static String formatR(double number) {\r\n NumberFormat numberFormatter = NumberFormat.getNumberInstance();\r\n numberFormatter.setMinimumFractionDigits(2);\r\n return numberFormatter.format(Math2.round(number));\r\n //return Math2.round(number); \r\n }",
"abstract GameRound setupRound();",
"public Round(ArrayList<Move> niceMoves, int roundNo) {\n\t\tthis.niceMoves = niceMoves;\n\t\tthis.roundNo = roundNo;\n\t}",
"public Round(int roundNo) {\n\t\tthis.niceMoves = new ArrayList<Move>();\n\t\tthis.roundNo = roundNo;\n\t}",
"public void isRoundOver(){\n if (redTrickScore == 5) {\n redScore += 2;\n } else if (redTrickScore > 2 && whoCalled == 1) {\n redScore += 2;\n } else if (redTrickScore > 2 && whoCalled == 0) {\n redScore += 1;\n } else if (blueTrickScore == 5) {\n blueScore += 2;\n } else if (blueTrickScore > 2 && whoCalled == 0) {\n blueScore += 2;\n } else if (blueTrickScore > 2 && whoCalled == 1) {\n blueScore += 1;\n }\n\n // reset the trick scores\n int trickSum = blueTrickScore + redTrickScore;\n if(trickSum == 5) {\n blueTrickScore = 0;\n redTrickScore = 0;\n }\n }",
"private float getRoundFourDecimals(float priceIndex) {\n\t\t\n\t\tpriceIndex = ((float)(int)(priceIndex * 100000)) / (float)100000;\t\n\t\t\n\t\tpriceIndex = priceIndex * 10000;\n\t\tpriceIndex = ((float)(int)(priceIndex * 10)) / (float)10;\t\t\n\t\tpriceIndex = (float) Math.ceil(priceIndex);\n\n\t\tpriceIndex = priceIndex / 10000;\n\t\t\n\t\treturn priceIndex;\n\t}",
"public void displayRoundScore() {\n\n System.out.println(\"Round stats: \");\n System.out.println(\"Par: \" + parTotal);\n System.out.println(\"Strokes: \" + strokesTotal);\n\n if(strokesTotal > parTotal) {\n System.out.println(strokesTotal-parTotal + \" over par\\n\");\n } \n else if (strokesTotal < parTotal) {\n System.out.println(parTotal-strokesTotal + \" under par\\n\");\n }\n else {\n System.out.println(\"Making par\\n\");\n }\n }",
"double roundThreeDecimals(double d) {\n \tDecimalFormat threeDForm = new DecimalFormat(\"#.###\");\n \treturn Double.valueOf(threeDForm.format(d));\n\t}",
"public static double round(double val, int places) {\n if (places < 0) throw new IllegalArgumentException();\n long factor = (long) Math.pow(10, places);\n val = val*factor;\n long tmp = Math.round(val);\n return (double) tmp/factor;\n }",
"private static int newNumber()\n\t{\n\t\tdouble initial = Math.random();\n\t\tdouble rangeAdjusted = initial * (10000 - 1001) + 1000;\n\t\tint rounded = (int)Math.round(rangeAdjusted);\n\t\treturn rounded;\n\t}",
"private int convertX(double x)\n {\n return (int)Math.round(x);\n }",
"@Override\r\n\tpublic void setRound(int x) {\n\t\troundNum = x;\r\n\t\tupdate();\r\n\t}",
"public int calculateNextRound(Tournament tournament) {\r\n\t\treturn tournament.getRounds().size() + 1;\r\n\t}",
"static int roundUpPower2(int i) {\n i--;\n i |= i >> 1;\n i |= i >> 2;\n i |= i >> 4;\n i |= i >> 8;\n return (i | (i >> 16)) + 1;\n }",
"double getSquareNumber();",
"private RoundOffUtil()\n {\n\n }",
"static double sqrt(double number) {\n\t\tdouble answer = number / 2;\r\n\t\tif (number < 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"no negative square roots\"); \r\n=======\n\tpublic static double sqrt(int number) { //gonna be honest here: idk??\r\n\t\tint div = number*number;\r\n\t\tif(number < 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"no square roots of negative numbers\");\r\n>>>>>>> branch 'master' of https://github.com/henryhoover/APCS4Fall.git\n\t\t}\r\n\t\twhile (((answer * answer) - number) >= .005 || ((answer * answer) - number) <= -.005) {\r\n\t\t\tanswer = 0.5 * (number / answer + answer);\r\n\t\t}\r\n\t\treturn round2(answer);\r\n\t}\r\n\t\r\n\tpublic static String quadForm(int a, int b, int c) { //need round2 so uhhhhh\r\n\t\tif(b == 0) {\r\n\t\t\tSystem.out.println(round2(c));\r\n\t\t}\r\n\r\n\t\tif(discriminant(a, b, c) == 0) {\r\n\t\t\treturn(\"Roots: \" + round2((b * -1) / (2 *a)));\t\r\n\t\t}\r\n\t\t\r\n\t\tif(discriminant(a, b, c) > 0) {\r\n\t\t\treturn(\"Roots: \" + round2(b * -1) + (sqrt(b * b - (4 * a * c))));\r\n\t\t}\r\n\t\t\r\n\t\treturn(\"no real roots\");\r\n\t}\r\n}",
"static double roundDigits(double x, int digits) {\n if(Double.isNaN(x)) return x;\n double sgn = x < 0 ? -1 : 1;\n x = Math.abs(x);\n double power_of_10 = (int)Math.pow(10, digits);\n return sgn*(digits == 0\n // go to the even digit\n ? (x % 1 >= 0.5 && !(Math.floor(x)%2==0))\n ? Math.ceil(x)\n : Math.floor(x)\n : Math.floor(x * power_of_10 + 0.5) / power_of_10);\n }",
"public static double roundDouble(double value, int precision){\n\t\tint rounder = (int)Math.pow(10, precision);\n\t\treturn (double)Math.round(value * rounder) / rounder;\n\t}",
"@Override\r\n\tpublic double basicRates() {\r\n\t\tdouble length = GPScoordinates.distance(getStartingPoint(), getDestinationPoint());\r\n\t\tif(length < 5) {\r\n\t\t\treturn 6.2;\r\n\t\t}else if(length >=5 && length <10) {\r\n\t\t\treturn 5.5;\r\n\t\t}else if (length >=10 && length <20) {\r\n\t\t\treturn 3.25;\r\n\t\t}else {\r\n\t\t\treturn 2.6;\r\n\t\t}\r\n\t}"
] |
[
"0.6701186",
"0.6555147",
"0.6543505",
"0.6409962",
"0.63945895",
"0.63902164",
"0.6377294",
"0.61906403",
"0.61567014",
"0.61549747",
"0.61353374",
"0.6110278",
"0.606895",
"0.606374",
"0.60293394",
"0.602109",
"0.5999496",
"0.5984158",
"0.5941409",
"0.5929794",
"0.5920193",
"0.5897279",
"0.5887503",
"0.58720595",
"0.5846667",
"0.5813774",
"0.58096695",
"0.5781461",
"0.5781274",
"0.57802165",
"0.57796234",
"0.5760194",
"0.57594925",
"0.5751398",
"0.5749925",
"0.5746117",
"0.5727286",
"0.5710314",
"0.5709448",
"0.56848854",
"0.5682608",
"0.56726587",
"0.5667087",
"0.5657799",
"0.56518364",
"0.56480306",
"0.5645647",
"0.56418973",
"0.5634247",
"0.5632463",
"0.56122494",
"0.56103164",
"0.55968684",
"0.55885667",
"0.55884737",
"0.5575617",
"0.55717576",
"0.55536956",
"0.55420536",
"0.553492",
"0.55326736",
"0.55204636",
"0.5518019",
"0.55169207",
"0.5488408",
"0.54824036",
"0.54795605",
"0.54777026",
"0.5468064",
"0.54583114",
"0.54539984",
"0.5449686",
"0.543689",
"0.5430034",
"0.5417376",
"0.539343",
"0.53730375",
"0.53729737",
"0.5369251",
"0.5355626",
"0.53438014",
"0.5338193",
"0.5327299",
"0.53222567",
"0.5308355",
"0.53029233",
"0.5300058",
"0.5299821",
"0.5299748",
"0.5299696",
"0.529396",
"0.5287253",
"0.528",
"0.5278384",
"0.52732027",
"0.52610224",
"0.5258894",
"0.52568835",
"0.52543133",
"0.5248386",
"0.5233111"
] |
0.0
|
-1
|
All outgoing messages are put in a queue.
|
public void put(long na, Message appMsg) {
// Better than having to create map object for every message...
outgoingAddressBuffer.add(na);
outgoingMessageBuffer.add(appMsg.serialize());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private synchronized void flushMessageQueue() {\n\t\tif(peers.size() > 0) {\n\t\t\twhile(!noPeersMessageQueue.isEmpty()) {\n\t\t\t\tpropagateToAllPeers(noPeersMessageQueue.poll());\n\t\t\t}\n\t\t}\n\t}",
"public void writeMessages () {\n try {\n ByteBuffer frame;\n while ((frame = _outq.peek()) != null) {\n // if we've been closed, stop trying to write\n if (!_chan.isOpen()) return;\n _chan.write(frame);\n if (frame.remaining() > 0) {\n // partial write, requeue ourselves and finish the job later\n _cmgr.requeueWriter(this);\n return;\n }\n _outq.poll(); // remove fully written frame\n }\n\n } catch (NotYetConnectedException nyce) {\n // this means that our async connection is not quite complete, just requeue ourselves\n // and try again later\n _cmgr.requeueWriter(this);\n\n } catch (IOException ioe) {\n // because we may still be lingering in the connection manager's writable queue, clear\n // out our outgoing queue so that any final calls to writeMessages NOOP\n _outq.clear();\n // now let the usual suspects know that we failed\n _input.onSendError(ioe);\n onClose(ioe);\n }\n }",
"private void sendMessages(Queue<Message<M>> sendQueue) {\n while (!sendQueue.isEmpty()) {\n context.sendMessage(sendQueue.poll());\n numMessageSent++;\n }\n }",
"private void writeNextMessageInQueue() {\n // This should not happen in practice since this method is private and should only be called\n // for a non-empty queue.\n if (mMessageQueue.isEmpty()) {\n Log.e(TAG, \"Call to write next message in queue, but the message queue is empty.\");\n return;\n }\n\n if (mMessageQueue.size() == 1) {\n writeValueAndNotify(mMessageQueue.remove().toByteArray());\n return;\n }\n\n mHandler.post(mSendMessageWithTimeoutRunnable);\n }",
"public void flush() {\n mMessages.postToServer();\n }",
"public Queue<Object> outboundMessages() {\n/* 272 */ if (this.outboundMessages == null) {\n/* 273 */ this.outboundMessages = new ArrayDeque();\n/* */ }\n/* 275 */ return this.outboundMessages;\n/* */ }",
"private static void send() {\n Map<String, ArrayList<Event>> eventsByStream = new HashMap<>();\n for (Event event : QUEUE) {\n String stream = event.getStream();\n if (!eventsByStream.containsKey(stream) || eventsByStream.get(stream) == null) {\n eventsByStream.put(stream, new ArrayList<>());\n }\n eventsByStream.get(stream).add(event);\n }\n for (String stream : eventsByStream.keySet()) {\n if (Prefs.INSTANCE.isEventLoggingEnabled()) {\n sendEventsForStream(STREAM_CONFIGS.get(stream), eventsByStream.get(stream));\n }\n }\n }",
"public void sendFromMessageQueue() throws IOException {\n Date canSendDate = new Date(lastReceiveMsgDate.getTime() + 2000);\n if (canSendDate.before(new Date())) {\n String msg = messageQueue.poll();\n if (msg == null)\n return;\n\n output.writeBytes(msg + \"\\n\");\n }\n }",
"private void dequeueMessages()\n\t{\n\t\twhile (_msg_queue.size() > 0)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t_ml.messageReceived( (Serializable) _msg_queue.removeFirst());\n\t\t\t}\n\t\t\tcatch (RuntimeException rte)\n\t\t\t{\n\t\t\t\trte.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void sendMessages(List<String> messages) {\n if (!this.isConnectedToClientServer){return;}\n for (String message : messages){\n try {\n outputQueue.put(message);\n break;\n //board is sending a ball message about this ball, which means this ball is leaving the board\n } catch (InterruptedException e) {\n //don't do anything --> queue to server is interrupted, but single-machine play still happens\n }\n }\n }",
"public void onQueue();",
"protected void handleOutboundMessage(Object msg) {\n/* 741 */ outboundMessages().add(msg);\n/* */ }",
"private void sendQueue() {\r\n firePropertyChange(\"boardQueue\", null, myBoardQueue);\r\n firePropertyChange(\"scaleQueue\", null, myScaleDialogQueue);\r\n firePropertyChange(\"gui\", null, this);\r\n }",
"private void logAllMessages() {\r\n HistoricalMessage message;\r\n SessionProvider provider = SessionProvider.createSystemProvider();\r\n while (!logQueue.isEmpty()) {\r\n message = logQueue.poll();\r\n if (message != null) {\r\n this.addHistoricalMessage(message, provider);\r\n }\r\n }\r\n provider.close();\r\n }",
"@Override\n public void flush() {\n new QueueConsumer().run();\n }",
"public void queueMessage(Message message);",
"public void send(IOutMessage msg) {\n\t\tfor (OutMessageListener2 l : listeners) {\n//\t\t\tlog.debug(\"listener \" + l);\n\t\t\tl.handleMessage(msg);\n\t\t}\n\t}",
"public void queueMessage(ByteBuffer bb) {\n queue.add(bb);\n processOut();\n updateInterestOps();\n }",
"public void propagate(XQueue in, XQueue[] out) throws JMSException {\n Message inMessage = null;\n String msgStr = null, ruleName = null;\n StringBuffer strBuf = null;\n Object o;\n Map rule;\n Browser browser;\n MessageFilter[] filters = null;\n Template template = null;\n AssetList taskList = null;\n String[] propertyName = null, propertyValue = null;\n long[] outInfo = null, ruleInfo = null, taskInfo;\n int[] ruleMap;\n long currentTime, sessionTime;\n long count = 0;\n int mask, ii, hbeat, retry;\n int i = 0, id, hid, tid, m, n;\n int cid = -1; // the cell id of the message in input queue\n int rid = 0; // the id of the ruleset\n int oid = 0; // the id of the output queue\n boolean dspBody = false, inDetail = ((debug & DEBUG_REPT) > 0);\n boolean ckBody = false;\n byte[] buffer = new byte[bufferSize];\n\n i = in.getCapacity();\n if (capacity != i) { // assume it only occurs at startup\n new Event(Event.WARNING, name + \": \" + in.getName() +\n \" has the different capacity of \" + i + \" from \" +\n capacity).send();\n capacity = i;\n msgList.clear();\n msgList = new AssetList(name, capacity);\n cells.clear();\n cells = new CollectibleCells(name, capacity);\n }\n\n // initialize patterns\n n = ruleList.size();\n filters = new MessageFilter[n];\n browser = ruleList.browser();\n ruleMap = new int[n];\n i = 0;\n while ((rid = browser.next()) >= 0) {\n rule = (Map) ruleList.get(rid);\n filters[i] = (MessageFilter) rule.get(\"Filter\");\n if (filters[i] != null) {\n if ((!ckBody) && filters[i].checkBody())\n ckBody = true;\n }\n ruleMap[i++] = rid;\n }\n\n // update assetList\n n = out.length;\n for (i=0; i<n; i++) {\n Object[] asset = (Object[]) assetList.get(i);\n asset[ASSET_XQ] = out[i];\n outInfo = assetList.getMetaData(i);\n if (outInfo[OUT_CAPACITY] != out[i].getCapacity())\n outInfo[OUT_CAPACITY] = out[i].getCapacity();\n }\n pool = out[outLinkMap[POOL_OUT]];\n poolInfo = assetList.getMetaData(outLinkMap[POOL_OUT]);\n if (pool.getCapacity() != reqList.getCapacity()) { // rereate reqList\n reqList.clear();\n reqList = new AssetList(name, pool.getCapacity());\n }\n\n n = ruleMap.length;\n strBuf = new StringBuffer();\n // set all groups active at startup but the first\n hid = heartbeat.length - 1;\n hbeat = heartbeat[hid];\n currentTime = System.currentTimeMillis();\n sessionTime = currentTime;\n ii = 0;\n while (((mask = in.getGlobalMask()) & XQueue.KEEP_RUNNING) > 0) {\n if ((mask & XQueue.STANDBY) > 0) // standby temporarily\n break;\n if ((cid = in.getNextCell(waitTime)) >= 0) { // got a new msg\n currentTime = System.currentTimeMillis();\n\n if ((inMessage = (Message) in.browse(cid)) == null) {\n in.remove(cid);\n new Event(Event.WARNING, name + \": \" + Event.traceStack(\n new JMSException(\"null msg from \"+in.getName()))).send();\n continue;\n }\n\n msgStr = null;\n rid = 0;\n i = 0;\n try {\n if (ckBody)\n msgStr = MessageUtils.processBody(inMessage, buffer);\n for (i=1; i<n; i++) {\n if (filters[i].evaluate(inMessage, msgStr)) {\n rid = ruleMap[i];\n break;\n }\n }\n }\n catch (Exception e) {\n String str = name;\n Exception ex = null;\n if (e instanceof JMSException)\n ex = ((JMSException) e).getLinkedException();\n if (ex != null)\n str += \" Linked exception: \" + ex.toString() + \"\\n\";\n new Event(Event.ERR, str + \" failed to apply the filter \"+i+\n \": \" + Event.traceStack(e)).send();\n i = -1;\n }\n\n ruleName = ruleList.getKey(rid);\n ruleInfo = ruleList.getMetaData(rid);\n\n if (i < 0) // failed on filter\n oid = outLinkMap[FAILURE_OUT];\n else if (TYPE_ACTION != (int) ruleInfo[RULE_PID]) // bypass\n oid = (int) ruleInfo[RULE_OID];\n else try { // to init the monitor and to add it to taskList\n rule = (Map) ruleList.get(rid);\n propertyName = (String[]) rule.get(\"PropertyName\");\n template = (Template) rule.get(\"Template\");\n Map<String,Object> task=initTask(template,buffer,inMessage);\n if (task != null && task.size() > 0) {\n String key = (String) task.get(\"Name\");\n TimeWindows tw = (TimeWindows) task.get(\"TimeWindow\");\n if (ruleInfo[RULE_TTL] > 0)\n tw.setStopTime(currentTime + ruleInfo[RULE_TTL]);\n if (propertyName != null) // copy properties over\n copyProperties(propertyName, task, inMessage);\n taskList = (AssetList) rule.get(\"TaskList\");\n id = taskList.add(key, new long[TASK_TIME+1], task);\n if ((debug & DEBUG_UPDT) > 0)\n new Event(Event.DEBUG, name + \" \" + ruleName +\n \" added a new task of \" + key + \" from \" + cid +\n \" to \" + id + \" with \" + taskList.size() + \" \" +\n ruleInfo[RULE_PEND]).send();\n if (id >= 0) {\n taskInfo = taskList.getMetaData(id);\n for (i=0; i<=TASK_TIME; i++)\n taskInfo[i] = 0;\n taskInfo[TASK_ID] = -1;\n taskInfo[TASK_GID] = -1;\n taskInfo[TASK_STATUS] = NODE_READY;\n taskInfo[TASK_TIME] = currentTime;\n ruleInfo[RULE_PEND] ++;\n ruleInfo[RULE_TIME] = currentTime;\n if (ruleInfo[RULE_OPTION] > 0) { // on wait\n // hold the message until it is done \n taskInfo[TASK_GID] = cid;\n continue;\n }\n oid = outLinkMap[BYPASS_OUT];\n }\n else { // failed to add to the list\n MonitorReport report;\n report = (MonitorReport) task.get(\"Report\");\n if (report != null)\n report.destroy();\n task.clear();\n if (taskList.getID(key) < 0) {\n new Event(Event.ERR, name + \": \" + ruleName +\n \" failed to add new task of \" + key +\n \" \" + taskList.size() + \"/\" +\n ruleInfo[RULE_EXTRA]).send();\n oid = outLinkMap[FAILURE_OUT];\n }\n else {\n new Event(Event.WARNING, name +\": \"+ruleName+\n \" has an active task for \" + key).send();\n oid = outLinkMap[BYPASS_OUT];\n }\n }\n }\n else { // failed to init occurrence\n oid = outLinkMap[FAILURE_OUT];\n new Event(Event.ERR, name + \": \" + ruleName +\n \" failed to init a new task\").send();\n }\n }\n catch (Exception e) {\n oid = outLinkMap[FAILURE_OUT];\n new Event(Event.ERR, name + \": \" + ruleName +\n \" failed to create a new task: \" +\n Event.traceStack(e)).send();\n }\n\n if ((debug & DEBUG_PROP) > 0)\n new Event(Event.DEBUG, name+\" propagate: cid=\" + cid +\n \" rid=\" + rid + \" oid=\" + oid).send();\n\n if (displayMask > 0) try {// display message\n if (dspBody)\n msgStr = MessageUtils.processBody(inMessage, buffer);\n new Event(Event.INFO, name+\": \"+ruleName+\" processed msg \"+\n (count + 1)+\":\"+MessageUtils.display(inMessage, msgStr,\n displayMask, displayPropertyName)).send();\n }\n catch (Exception e) {\n new Event(Event.WARNING, name + \": \" + ruleName +\n \" failed to display msg: \" + e.toString()).send();\n }\n\n count += passthru(currentTime, inMessage, in, rid, oid, cid, 0);\n feedback(in, -1L);\n }\n\n currentTime = System.currentTimeMillis();\n if (currentTime < sessionTime) { // session not due yet\n if (pool.collectible() > 0)\n collect(in, outLinkMap[RESULT_OUT]);\n if (msgList.size() > 0)\n feedback(in, -1L);\n continue;\n }\n\n inDetail = ((debug & DEBUG_REPT) > 0);\n m = 0;\n browser.reset();\n while ((rid = browser.next()) >= 0) { // update active rulesets\n ruleInfo = ruleList.getMetaData(rid);\n if (ruleInfo[RULE_PID] != TYPE_ACTION)\n continue;\n if ((hbeat % (int) ruleInfo[RULE_MODE]) != 0) // not active\n continue;\n if (ruleInfo[RULE_PEND] <= 0) // empty rule\n continue;\n\n ruleName = ruleList.getKey(rid);\n rule = (Map) ruleList.get(rid);\n taskList = null;\n if (rule == null || rule.size() <= 0) {\n new Event(Event.WARNING, name + \": \" + ruleName +\n \" is empty\").send();\n continue;\n }\n taskList = (AssetList) rule.get(\"TaskList\");\n if (taskList == null) {\n new Event(Event.WARNING, name + \": \" + ruleName +\n \" has no taskList\").send();\n continue;\n }\n if (inDetail)\n new Event(Event.DEBUG, name + \": \" + ruleName +\n \" is active with \" + taskList.size() + \" tasks\").send();\n if (taskList.size() <= 0)\n continue;\n retry = (int) ruleInfo[RULE_GID];\n Browser b = taskList.browser();\n while ((tid = b.next()) >= 0) { // dispatch tasks\n taskInfo = taskList.getMetaData(tid);\n id = (int) taskInfo[TASK_ID];\n if (id < 0) { // ready for next run\n ObjectEvent msg = new ObjectEvent();\n msg.setPriority(Event.INFO);\n msg.setAttribute(\"name\", taskList.getKey(tid));\n msg.setBody(taskList.get(tid));\n id = pool.reserve(waitTime);\n if (id >= 0) { // reserved\n if (reqList.existsID(id)) { // preoccupied?\n collect(currentTime, id, in,\n outLinkMap[RESULT_OUT]);\n }\n pool.add(msg, id);\n taskInfo[TASK_ID] = id;\n taskInfo[TASK_STATUS] = NODE_RUNNING;\n taskInfo[TASK_TIME] = currentTime;\n taskInfo[TASK_RETRY] = 0;\n reqList.add(String.valueOf(id),\n new long[]{rid, tid}, msg, id);\n poolInfo[OUT_SIZE] ++;\n poolInfo[OUT_TIME] = currentTime;\n poolInfo[OUT_QTIME] = currentTime;\n m ++;\n if (inDetail)\n strBuf.append(\"\\n\\t\" + ruleName + \"/\" +\n taskList.getKey(tid) + \": \" + tid + \" \" +\n id + \" \" + taskInfo[TASK_RC] + \" \" +\n taskInfo[TASK_COUNT]);\n }\n else { // failed to reserve\n new Event(Event.ERR, name + \" \"+ ruleName + \":\" +\n taskList.getKey(tid) + \" failed to reserve \"+\n \"from \" + pool.getName() + \" \" + pool.depth()+\n \":\" + pool.size() + \"/\" + id).send();\n }\n }\n else if (ruleInfo[RULE_GID] > 0 &&\n taskInfo[TASK_RETRY] >= ruleInfo[RULE_GID]) { // stuck\n taskInfo[TASK_RETRY] ++;\n if (taskInfo[RULE_STATUS] == NODE_RUNNING ||\n taskInfo[RULE_STATUS] == NODE_READY)\n taskInfo[RULE_STATUS] = NODE_RETRYING;\n new Event(Event.ERR, name + \" \"+ ruleName + \":\" +\n taskList.getKey(tid) + \" timed out and stuck \"+\n taskInfo[TASK_RETRY] + \" times at \" + id).send();\n }\n else {\n taskInfo[TASK_RETRY] ++;\n new Event(Event.WARNING, name + \" \"+ ruleName + \":\" +\n taskList.getKey(tid) + \" timed out and stuck \"+\n taskInfo[TASK_RETRY] + \" times at \" + id).send();\n }\n }\n }\n\n if (pool.collectible() > 0)\n collect(in, outLinkMap[RESULT_OUT]);\n if (msgList.size() > 0)\n feedback(in, -1L);\n\n if (inDetail && strBuf.length() > 0) {\n new Event(Event.DEBUG, name + \" RULE/KEY: TID ID RC COUNT - \" +\n m + \" \" + hid + \" \" + hbeat + \" \" + pool.size() + \":\" +\n pool.depth() + \" \" + reqList.size() +\n strBuf.toString()).send();\n strBuf = new StringBuffer();\n }\n\n hid ++;\n if (hid >= heartbeat.length) { // reset session\n hid = 0;\n sessionTime += heartbeat[hid];\n }\n else {\n sessionTime += heartbeat[hid] - hbeat;\n }\n hbeat = heartbeat[hid];\n currentTime = System.currentTimeMillis();\n if (currentTime > sessionTime) // reset sessionTime\n sessionTime = currentTime;\n }\n }",
"private void sendResultQueue() {\n\t\tfor (PluginResult pluginResult : resultQueue) {\n\t\t\tmainCallback.sendPluginResult(pluginResult);\n\t\t}\n\t\tresultQueue.clear();\n\t}",
"public void queueMessage(ByteBuffer bb) {\n\t\tqueue.add(bb);\n\t\tprocessOut();\n\t\tupdateInterestOps();\n\t}",
"private void workOnQueue() {\n }",
"private void send(Iterable<T> aMessages) {\n for (Listener<T> myL : _listeners)\n myL.arrived(aMessages);\n }",
"public void sendMessage(Event event){\n // find the last queue and add the message to that\n // if the last queue is full then create a new queue and add to that\n if(messageQueues.size() <= 0){\n Queue<Event> newQueue = new LinkedList<>();\n Queue<Event> newBackupQueue = new LinkedList<>();\n messageQueues.add(newQueue);\n backupMessageQueues.add(newBackupQueue);\n// System.out.println(\"Size of new Q: \" + messageQueues.size());\n }\n\n // getting hold of the working queue and the backup queue.\n Queue<Event> queue = messageQueues.get(messageQueues.size() - 1);\n Queue<Event> backupQueue = backupMessageQueues.get(backupMessageQueues.size() - 1);\n\n try{\n if(queue.size() >= queueSize){\n Queue<Event> newQueue = new LinkedList<>();\n Queue<Event> newBackupQueue = new LinkedList<>();\n // throw an excpetion for a certain message\n if(event.payload.trim().equals(\"CrashQueue\"))\n // this is done to simulate the queue crashing when it tries to add messages\n throw new Exception(\"Queue has been crashed\");\n // adding the message to both the backup and the main queue\n newQueue.add(event);\n messageQueues.add(newQueue);\n\n newBackupQueue.add(event);\n backupMessageQueues.add(newBackupQueue);\n } else {\n if(event.payload.trim().equals(\"CrashQueue\"))\n // this is done to simulate the queue crashing when it tries to add messages\n throw new Exception(\"Queue has been crashed\");\n queue.add(event);\n backupQueue.add(event);\n }\n }catch(Exception e){\n System.out.println(\"Queue crashed, switching it with the backup queue\");\n // if the queue fails then switch it with the backup queue and create a new backup\n messageQueues = backupMessageQueues;\n // create a duplicate backup message queue\n }\n// System.out.println(\"The message queuesss are : \" + messageQueues);\n }",
"private void processOut() {\n while (!queue.isEmpty()) {\n var bb = queue.peek();\n if (bb.remaining() <= bbout.remaining()) {\n queue.remove();\n bbout.put(bb);\n } else {\n break;\n }\n }\n }",
"private void processOut() {\n while (!queue.isEmpty()) {\n var bb = queue.peek();\n if (bb.remaining() <= bbout.remaining()) {\n queue.remove();\n bbout.put(bb);\n } else {\n break;\n }\n }\n }",
"private void processAndPublishMessage(byte[] body) {\n Map<String, Object> props = Maps.newHashMap();\n props.put(CORRELATION_ID, correlationId);\n MessageContext mc = new MessageContext(body, props);\n try {\n msgOutQueue.put(mc);\n String message = new String(body, \"UTF-8\");\n log.debug(\" [x] Sent '{}'\", message);\n } catch (InterruptedException | UnsupportedEncodingException e) {\n log.error(ExceptionUtils.getFullStackTrace(e));\n }\n manageSender.publish();\n }",
"void addToQueue(WebhookMessage msg);",
"protected void deliverMessages()\n {\n Set<Envelope> envelopes = messengerDao.getEnvelopes();\n\n Map<String, Set<Envelope>> peerEnvelopesMap = Maps.newHashMap();\n int maxTimeToLive = 0;\n //distribute envelops to peers\n for ( Envelope envelope : envelopes )\n {\n if ( envelope.getTimeToLive() > maxTimeToLive )\n {\n maxTimeToLive = envelope.getTimeToLive();\n }\n Set<Envelope> peerEnvelopes = peerEnvelopesMap.get( envelope.getTargetPeerId() );\n if ( peerEnvelopes == null )\n {\n //sort by createDate asc once more\n peerEnvelopes = new TreeSet<>( new Comparator<Envelope>()\n {\n @Override\n public int compare( final Envelope o1, final Envelope o2 )\n {\n return o1.getCreateDate().compareTo( o2.getCreateDate() );\n }\n } );\n peerEnvelopesMap.put( envelope.getTargetPeerId(), peerEnvelopes );\n }\n\n peerEnvelopes.add( envelope );\n }\n\n\n //try to send messages in parallel - one thread per peer\n try\n {\n for ( Map.Entry<String, Set<Envelope>> envelopsPerPeer : peerEnvelopesMap.entrySet() )\n {\n Peer targetPeer = messenger.getPeerManager().getPeer( envelopsPerPeer.getKey() );\n if ( targetPeer.isLocal() )\n {\n completer.submit(\n new LocalPeerMessageSender( messenger, messengerDao, envelopsPerPeer.getValue() ) );\n }\n else\n {\n completer.submit(\n new RemotePeerMessageSender( messengerDao, targetPeer, envelopsPerPeer.getValue() ) );\n }\n }\n\n //wait for completion\n try\n {\n for ( int i = 0; i < peerEnvelopesMap.size(); i++ )\n {\n Future<Boolean> future = completer.take();\n future.get();\n }\n }\n catch ( InterruptedException | ExecutionException e )\n {\n LOG.warn( \"ignore\", e );\n }\n }\n catch ( PeerException e )\n {\n LOG.error( e.getMessage(), e );\n }\n }",
"public boolean writeOutbound(Object... msgs) {\n/* 381 */ ensureOpen();\n/* 382 */ if (msgs.length == 0) {\n/* 383 */ return isNotEmpty(this.outboundMessages);\n/* */ }\n/* */ \n/* 386 */ RecyclableArrayList futures = RecyclableArrayList.newInstance(msgs.length);\n/* */ try {\n/* 388 */ for (Object m : msgs) {\n/* 389 */ if (m == null) {\n/* */ break;\n/* */ }\n/* 392 */ futures.add(write(m));\n/* */ } \n/* */ \n/* 395 */ flushOutbound0();\n/* */ \n/* 397 */ int size = futures.size();\n/* 398 */ for (int i = 0; i < size; i++) {\n/* 399 */ ChannelFuture future = (ChannelFuture)futures.get(i);\n/* 400 */ if (future.isDone()) {\n/* 401 */ recordException(future);\n/* */ } else {\n/* */ \n/* 404 */ future.addListener((GenericFutureListener)this.recordExceptionListener);\n/* */ } \n/* */ } \n/* */ \n/* 408 */ checkException();\n/* 409 */ return isNotEmpty(this.outboundMessages);\n/* */ } finally {\n/* 411 */ futures.recycle();\n/* */ } \n/* */ }",
"public void ClearSentQueue() {\n \t\tjobsent.clear();\n \t}",
"final protected void sendAll() {\n\t\tsendAllBut(null);\n\t}",
"private void sendNewPackets() {\n\t\twhile(alive && (sendQueue.size() != 0)) {\n\t\t\tNetPacket send = sendQueue.peek();\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"(NetAPI) Sending a \" + send.getClass().getName() + \" packet\");\n\t\t\t\toos.writeObject(send);\n\t\t\t\toos.flush();\n\t\t\t\tsendQueue.poll();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"(NetAPI) Could not send packet: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t}",
"private void sendCmdToHandler(List<Object> out, AbstractMsg<?> msg) {\n out.add(msg);\n }",
"String addReceiveQueue();",
"private void addOutgoing(String to, String subject, String text, Message m){\n\t\tMyMessage mess = new MyMessage(m, \"Eddian\", to, subject, text,\n\t\t\t\t\t\t\t\t\t\tCalendar.getInstance().getTime());\n\t\toutgoingList.add(mess);\n\t}",
"void sendMessage(long[] queueIds, byte[] content, int prio) throws IOException, MlmqException;",
"public void setQueue ( Queue queue )\r\n {\r\n setDestination ( queue );\r\n }",
"private void flushOutbound0() {\n/* 454 */ runPendingTasks();\n/* */ \n/* 456 */ flush();\n/* */ }",
"@Override\n\tpublic void addToQueue() {\n\t}",
"@Override\n\tpublic void onMessage(Message msg) {\n\t\tSystem.out.println(\"[INFO] [HANDLE ACL MSG] Received ACL message in QueueMDB\");\n\t\ttry {\n\t\t\tACLMessage receivedMessage = (ACLMessage) ((ObjectMessage) msg).getObject();\n\t\t\tAID[] receivers = receivedMessage.getReceivers();\n\t\t\tSet<String> ipAddresses = new HashSet<String>();\n\t\t\t\n\t\t\tSystem.out.println(\"[INFO] [HANDLE ACL MSG] Forwarding messages to agents on this host\");\n\t\t\tfor (AID a: receivers) {\n\t\t\t\tif(a.getHost().getIpAddress().equals(this.hostManagerBean.getCurrentSlaveHost().getIpAddress())) {\n\t\t\t\t\tAgent at = HostService.findAgentWithAID(this.hostManagerBean.getRunningAgents().get(this.hostManagerBean.getCurrentSlaveHost().getIpAddress()), a);\n\t\t\t\t\tat.handleMessage(receivedMessage);\n\t\t\t\t} else {\n\t\t\t\t\tipAddresses.add(a.getHost().getIpAddress());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"[INFO] [HANDLE ACL MSG] Forwarding messages to agents on other hosts\");\n\t\t\tfor(String receivingHostIp: ipAddresses) {\n\t\t\t\tSystem.out.println(\"[INFO] [HANDLE ACL MSG] Forwarding message to {\" + receivingHostIp + \"}\");\n\t\t\t\tRestHostBuilder.sendACLMessageBuilder(this.hostManagerBean.getCurrentSlaveHost(), receivingHostIp, receivedMessage);\n\t\t\t}\n\t\t\t\n\t\t\t//TODO Update socket\n\t\t\t//TODO kad se sve poruke posalju, potrebno je azurirati spisak ACL poruka\n\t\t\t\n\t\t\tSystem.out.println(\"[INFO] [HANDLE ACL MSG] FINISHED\");\n\t\t\t//ws.echoTextMessage(tmsg.getText());\n\t\t} catch (JMSException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void processOut() {\n\t\tsynchronized (lock){\n\t\twhile (!queue.isEmpty()) {\n\t\t\tvar bb = queue.peek();\n\t\t\tif (bb.remaining() <= bbout.remaining()) {\n\t\t\t\tqueue.remove();\n\t\t\t\tbbout.put(bb);\n\t\t\t}\n\t\t}}\n\t}",
"public void run() {\r\n while(true) { // outer loop\r\n if(first) // we already have the queue CAS acquired\r\n first=false;\r\n else {\r\n if(!queue.acquire())\r\n return;\r\n }\r\n\r\n try {\r\n Message msg_to_deliver;\r\n while((msg_to_deliver=queue.remove()) != null) { // inner loop\r\n try {\r\n up_prot.up(new Event(Event.MSG, msg_to_deliver));\r\n }\r\n catch(Throwable t) {\r\n log.error(\"couldn't deliver message \" + msg_to_deliver, t);\r\n }\r\n }\r\n }\r\n finally {\r\n queue.release();\r\n }\r\n\r\n // although ConcurrentLinkedQueue.size() iterates through the list, this is not costly,\r\n // as at this point, the queue is almost always empty, or has only a few elements\r\n if(queue.size() == 0) // prevents a concurrent add() (which returned) to leave a dangling message in the queue\r\n break;\r\n }\r\n }",
"private void processMessageQueue(){\n\t\tKIDSGUIAlert m = null;\n\t\tStringBuilder newText = new StringBuilder(logLines.getText());\n\t\twhile ((m = this.logMessages.poll()) != null){\n\t\t\tnewText.append(String.format(\"%s\\n\", m.toString()));\n\t\t}\n\t\tlogLines.setText(newText.toString());\n\t}",
"void processQueue();",
"private void sendTransactionQueue(final List<TransactionData> queue, final Path path) {\n List<Long> setsToIgnore = new ArrayList<Long>();\n for (TransactionData txn : queue) {\n setsToIgnore.add(txn.currentWriteId);\n }\n\n Node latestState = this.getLatestState(path, setsToIgnore);\n Node snapToSend = latestState;\n String latestHash = \"badhash\";\n if (!hijackHash) {\n latestHash = latestState.getHash();\n }\n\n for (TransactionData txn : queue) {\n hardAssert(\n txn.status\n == TransactionStatus.RUN); // sendTransactionQueue: items in queue should all be run.'\n txn.status = TransactionStatus.SENT;\n txn.retryCount++;\n Path relativePath = Path.getRelative(path, txn.path);\n // If we've gotten to this point, the output snapshot must be defined.\n snapToSend = snapToSend.updateChild(relativePath, txn.currentOutputSnapshotRaw);\n }\n\n Object dataToSend = snapToSend.getValue(true);\n\n final Repo repo = this;\n\n // Send the put.\n connection.compareAndPut(\n path.asList(),\n dataToSend,\n latestHash,\n new RequestResultCallback() {\n @Override\n public void onRequestResult(String optErrorCode, String optErrorMessage) {\n DatabaseError error = fromErrorCode(optErrorCode, optErrorMessage);\n warnIfWriteFailed(\"Transaction\", path, error);\n List<Event> events = new ArrayList<Event>();\n\n if (error == null) {\n List<Runnable> callbacks = new ArrayList<Runnable>();\n for (final TransactionData txn : queue) {\n txn.status = TransactionStatus.COMPLETED;\n events.addAll(\n serverSyncTree.ackUserWrite(\n txn.currentWriteId, /*revert=*/ false, /*persist=*/ false, serverClock));\n\n // We never unset the output snapshot, and given that this\n // transaction is complete, it should be set\n Node node = txn.currentOutputSnapshotResolved;\n final DataSnapshot snap =\n InternalHelpers.createDataSnapshot(\n InternalHelpers.createReference(repo, txn.path), IndexedNode.from(node));\n\n callbacks.add(\n new Runnable() {\n @Override\n public void run() {\n txn.handler.onComplete(null, true, snap);\n }\n });\n // Remove the outstanding value listener that we added\n removeEventCallback(\n new ValueEventRegistration(\n Repo.this,\n txn.outstandingListener,\n QuerySpec.defaultQueryAtPath(txn.path)));\n }\n\n // Now remove the completed transactions\n pruneCompletedTransactions(transactionQueueTree.subTree(path));\n\n // There may be pending transactions that we can now send\n sendAllReadyTransactions();\n\n repo.postEvents(events);\n\n // Finally, run the callbacks\n for (int i = 0; i < callbacks.size(); ++i) {\n postEvent(callbacks.get(i));\n }\n } else {\n // transactions are no longer sent. Update their status appropriately\n if (error.getCode() == DatabaseError.DATA_STALE) {\n for (TransactionData transaction : queue) {\n if (transaction.status == TransactionStatus.SENT_NEEDS_ABORT) {\n transaction.status = TransactionStatus.NEEDS_ABORT;\n } else {\n transaction.status = TransactionStatus.RUN;\n }\n }\n } else {\n for (TransactionData transaction : queue) {\n transaction.status = TransactionStatus.NEEDS_ABORT;\n transaction.abortReason = error;\n }\n }\n\n // since we reverted mergedData, we should re-run any remaining\n // transactions and raise events\n rerunTransactions(path);\n }\n }\n });\n }",
"private void push() {\n ImmutableSortedSet<T> myAvailable = _outstanding.apply(\n new Syncd.Transformer<ImmutableSortedSet<T>, ImmutableSortedSet<T>>() {\n public Tuple<ImmutableSortedSet<T>, ImmutableSortedSet<T>> apply(ImmutableSortedSet<T> aBefore) {\n final SortedSet<T> myRemaining = new TreeSet<>(new MessageComparator<T>());\n\n // Identify those messages that are sequentially contiguous from _floor and can be passed on\n //\n ImmutableSortedSet<T> myAccessible =\n new ImmutableSortedSet.Builder<>(new MessageComparator<T>()).addAll(\n Iterables.filter(aBefore, new Predicate<T>() {\n public boolean apply(T aMessage) {\n Long myCurrent = _floor.get();\n\n if (aMessage.getSeq() == myCurrent) {\n // This message can be sent out to listeners so long as we're first to try\n //\n if (_floor.testAndSet(myCurrent, myCurrent + 1))\n return true;\n } else\n // This message must remain\n //\n myRemaining.add(aMessage);\n\n // Couldn't send message out or it must remain\n //\n return false;\n }\n })\n ).build();\n\n return new Tuple<>(new ImmutableSortedSet.Builder<>(\n new MessageComparator<T>()).addAll(myRemaining).build(),\n myAccessible);\n }\n }\n );\n\n send(myAvailable);\n archive(myAvailable);\n }",
"public void queueMessage(String message) {\r\n\t\tthis.queueMessage(new Message(Message.ALL_CLIENTS, message));\r\n\t}",
"public void handleIncomingMessages(BlockingQueue<Delta> incoming, BlockingQueue<Delta> outgoing) throws InterruptedException {\n\t\t\n\t\tfor (int i = 0; i < currentList.size(); i++){\n\t\t\tPlayer player = currentList.get(i);\n\t\t\tSystem.out.print(\"Player ID is\" + player.id + \",\");\n\t\t\tSystem.out.println(\"Player czar status is\" + player.czar);\n\t\t}\n\t\t\n\t\twhile( go.get() ) {\n\t\t\t// This will block until something comes in.\n\t\t\tDelta incoming_message = incoming.take(); \n\t\t\t\n\t\t\t// Print out debug information\n\t\t\tSystem.out.println(\"in handleIncomingMessages(): \" + incoming_message.toString());\n\t\t\tthis.showDebugText(incoming_message.toString());\n\n\t\t\tClass<? extends Delta> c = incoming_message.getClass();\n\t\t\tif(c == TableDelta.class){\n\t\t\t\t//TODO: Implement this type of delta.\n\t\t\t\tTableDelta delta = (TableDelta) incoming_message;\n\t\t\t\tif(delta.Command.equals(\"ok\")) {\n\t\t\t\t\tthis.tableID = delta.Id;\n\t\t\t\t\t//ask for an id\n\t\t\t\t\toutgoing.put(new PlayerDelta(0, \"my-id?\"));\n\t\t\t\t}\n\t\t\t} else if (c == DeckDelta.class){\n\t\t\t\t//TODO: Implement this type of delta.\n\t\t\t\tfinal DeckDelta delta = (DeckDelta) incoming_message;\n\t\t\t\tif(delta.DeckTo.equals(\"hand\") && delta.DeckFrom.equals(\"white-draw\")) {\n\t\t\t\t\t// Add the card to our hand\n\t\t\t\t\tfor(Card card : delta.Cards) {\n\t\t\t\t\t\taddCardToHand(new Card(Card.Color.WHITE, card.text));\n\t\t\t\t\t}\n\t\t\t\t} else if (delta.DeckTo.equals(\"play\") && delta.DeckFrom.equals(\"black-draw\") && this.playerIsCzar.get() == true) {\n\t\t\t\t\t// Show AlertDialog showing only the black card.\n\t\t\t\t\tcahActivity.runOnUiThread(new Runnable() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tCahPlayer.this.playerIsCzar.set(true);\n\t\t\t\t\t\t\tAlertDialog.Builder dialogBuilder = new AlertDialog.Builder(cahActivity);\n\t\t\t\t\t\t\tdialogBuilder.setView(CzarActivity.getBlackCardView(delta.Cards[0], cahActivity));\n\t\t\t\t\t\t\tdialogBuilder.setCancelable(false);\n\t\t\t\t\t\t\tczarDialog = dialogBuilder.show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\t//TODO: Dismiss the dialog when we recieve all player's white cards.\n\t\t\t\t} else if (delta.DeckTo.equals(\"play\") && this.playerIsCzar.get() == true) {\n\t\t\t\t\t\n\t\t\t\t\tfor(Card card : delta.Cards){\n\t\t\t\t\t\tczarWhiteCards.add(new Pair<Integer, String>(delta.Player, card.text));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(czarWhiteCards.size() == numberOfPlayers-1) {\n\t\t\t\t\t\t// All players have played a card. Czar should now choose best card.\n\t\t\t\t\t\tSystem.out.println(\"SHOWING WHITE CARD CHOOSER\");\n\t\t\t\t\t\tshowWhiteCardChooser(czarWhiteCards, cahActivity);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} else if (delta.DeckTo.equals(\"winner\") && delta.Player == playerId){\n\t\t\t\t\tcahActivity.runOnUiThread(new Runnable() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tnumberOfRoundsWon++;\n\t\t\t\t\t\t\tAlertDialog.Builder dialogBuilder = new AlertDialog.Builder(cahActivity);\n\t\t\t\t\t\t\tdialogBuilder.setMessage(\"Congratulations! You won that round! You have won a total of \" + numberOfRoundsWon + \" rounds.\");\n\t\t\t\t\t\t\tdialogBuilder.setPositiveButton(\"Ok\", null);\n\t\t\t\t\t\t\tdialogBuilder.show();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t} else if (c == PlayerDelta.class) {\n\t\t\t\t//TODO: Implement this type of delta.\n\t\t\t\tPlayerDelta delta = (PlayerDelta) incoming_message;\n\t\t\t\tif(delta.Message.equals(\"your-id\")) {\n\t\t\t\t\tthis.playerId = delta.Id;\n\t\t\t\t\toutgoing.put(new PlayerDelta(this.playerId, \"join\"));\n\t\t\t\t\tplayerJoined(this.playerId, false);\n\t\t\t\t\tnumberOfPlayers++;\n\t\t\t\t} else if (delta.Id != this.playerId && delta.Message.equals(\"join\")){\n\t\t\t\t\t// Another player has joined the table\n\t\t\t\t\tplayerJoined(delta.Id, false);\n\t\t\t\t\tcahActivity.runOnUiThread(new Runnable() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tcahActivity.playerCanPlayCard(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tnumberOfPlayers++;\n\t\t\t\t} else if (delta.Message.equals(\"leave\")) {\n\t\t\t\t\t//TODO: Remove player from table here\n\t\t\t\t\tplayerLeft(delta.Id);\n\t\t\t\t\tnumberOfPlayers--;\n\t\t\t\t} else if (delta.Message.equals(\"is-czar\")) {\n\t\t\t\t\tcahActivity.runOnUiThread(new Runnable() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tcahActivity.playerCanPlayCard(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\tif(delta.Id == this.playerId){\n\t\t\t\t\t\tthis.playerIsCzar.set(true);\n\t\t\t\t\t\tplayerBecomesCzar(delta.Id);\n\t\t\t\t\t\tcahActivity.runOnUiThread(new Runnable() {\n\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\tcahActivity.playerCanPlayCard(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tthis.playerIsCzar.set(false);\n\t\t\t\t}\n\t\t\t\t// When joining table, client should send a player delta with a 0 Id and message \"join\".\n\t\t\t\t// Server should send a reply delta with next Id and message \"you\"\n\t\t\t\t// followed by zero or more player deltas that are the other people\n\t\t\t} else if (c == ActionDelta.class) {\n\t\t\t\t//TODO: Implement this type of delta.\n\t\t\t}\n\t\t}\n\t}",
"private void sendQueuedNotifications() {\n Notification n;\n while ((n = pendingNotifs.poll()) != null) {\n broadcaster.sendNotification(n);\n }\n }",
"public int getOutgoingQueueSize();",
"@Override\n public synchronized List<Message> receiveMessages() {\n ArrayList<Message> temp = new ArrayList<>(queuedMessages);\n queuedMessages.clear();\n return temp;\n }",
"void processAllMessages() {\n ArrayList<HdmiCecMessage> copiedBuffer = new ArrayList<>(mBuffer);\n mBuffer.clear();\n for (HdmiCecMessage message : copiedBuffer) {\n mDevice.onMessage(message);\n HdmiLogger.debug(\"Processing message:\" + message);\n }\n }",
"public void enqueue(Message msg){\n\t\tqueue.add(msg);\n\t}",
"public int publishToAll(Message message);",
"public void sendDataToCrQueue() {\n List<Shares> sharesList = new ArrayList<>();\n amqpTemplate.convertAndSend(\"queueTestKey\", sharesList);\n }",
"public TcpOutgoing(EventQueue eventQueue, AsyncPipe<Object> pipe, int mss, int winSize, long seqNum, Queue<ByteChunker> sendQ) {\n\t\tthis.eventQueue = eventQueue;\n\t\tthis.pipe = pipe;\n\t\tthis.mss = mss;\n\t\tthis.winSize = winSize;\n\t\tthis.seqNum = (int)seqNum;\n\t\tthis.sendQ = (sendQ == null) ? new ConcurrentLinkedQueue<ByteChunker>() : sendQ;\n\t}",
"public void sendToManager(){\n String receiveMessage;\n while((receiveMessage=receiveFrom(messageReader)) != null){\n manager.manage(receiveMessage);\n }\n }",
"@Override\n\t\t\tpublic IAMQPPublishAction replyTo(IAMQPQueue queue) {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n\t\t\tpublic IAMQPPublishAction replyTo(IAMQPQueue queue) {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n public void sendMessage(Message m)\n {\n messages.put(m);\n }",
"public void broadcast() {\n for (int i = 1; i <= nbMessagesToBroadcast; i++) {\n Message broadcastMsg = new Message(pid, pid, i,false, null);\n lcb.broadcast(broadcastMsg);\n logs.add(String.format(\"b %d\\n\",i));\n }\n }",
"public void setReplyToQueue ( Queue queue )\r\n {\r\n setReplyToDestination ( queue );\r\n }",
"public void declareQueue() {\n try {\n mChannel.queueDeclare();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n }",
"void sendMessage(long queueId, byte[] content, int prio) throws IOException, MlmqException;",
"@Override\n\tpublic void run() {\t\n\t\tint maxNum = (maxCustomerNumOnline > maxCustomerNumShop) ? maxCustomerNumOnline : maxCustomerNumShop;\n\t\t\n\t\tfor(int i = 0; i < maxNum; i++) {\n\t\t\t// every number of milliseconds, add customer to end of queue \n\t\t\ttry {\t\t\t\n\t\t\t\t// if online queue exists add to it \n\t\t\t\tif (i < maxCustomerNumOnline) {\n\t\t\t\t\tCustomerQueueOutput out = onlineQueue.addToQueue();\n\t\t\t\t\tCoffeeShop.customerList.put(out.getCustomer().getId(), out.getCustomer());\n\t\t\t\t\t\n\t\t\t\t\tlog.updateLog(\"[QueueHandler]: \"+ \"Queue Handler added customer \" + out.getCustomer().getName() + \n\t\t\t\t\t\t\t\" (ID: \" + out.getCustomer().getId() + \") to online queue -> updated size: \" \n\t\t\t\t\t\t\t+ out.getUpdatedSize());\n\t\t\t\t}\n\n\t\t\t\tif (i < maxCustomerNumShop) {\n\t\t\t\t\t// add to in-shop queue \n\t\t\t\t\tCustomerQueueOutput out = shopQueue.addToQueue();\n\t\t\t\t\tCoffeeShop.customerList.put(out.getCustomer().getId(), out.getCustomer());\n\t\t\t\t\t\n\t\t\t\t\tlog.updateLog(\"[QueueHandler]: \"+ \"Queue Handler added customer \" + out.getCustomer().getName() + \n\t\t\t\t\t\t\t\" (ID: \" + out.getCustomer().getId() + \") to in-shop queue -> updated size: \" \n\t\t\t\t\t\t\t+ out.getUpdatedSize());\n\t\t\t\t}\t\t\t\t\t\t\n\n\t\t\t\t// delay for visualization purposes \n\t\t\t\tThread.sleep(onlineQueue.getDelay());\n\t\t\t\t\n\t\t\t// catch exception for calling sleep() function\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlog.updateLog(\"[QueueHandler]: \"+ \"Interuption in queueHandler\");\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\t\t\n\t}",
"public void flush() {\n // all getAndSet will not be synchronous but it's ok since metrics will\n // be spread out among processor worker and we flush every 5s by\n // default\n\n processor.send(new TelemetryMessage(this.metricsSentMetric, this.metricsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.eventsSentMetric, this.eventsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.serviceChecksSentMetric, this.serviceChecksSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.bytesSentMetric, this.bytesSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.bytesDroppedMetric, this.bytesDropped.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsSentMetric, this.packetsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsDroppedMetric, this.packetsDropped.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsDroppedQueueMetric, this.packetsDroppedQueue.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.aggregatedContextsMetric, this.aggregatedContexts.getAndSet(0), tags));\n }",
"private void createMessagesForPhones() {\n int msgQtd = getMessageQuantityInterval().randomValue();\n getEvents().forEach((event)->{\n Phone originPhone = event.getOriginPhone();\n \n Message message = new Message(originPhone, event.getDestinationPhone(), MessageStatus.PHONE_TO_ANTENNA);\n if ( msgQtd > 0 ) {\n message.setSendQuantity(msgQtd);\n message.setSendAgain(false);\n \n originPhone.addMessageToOutbox(message);\n }\n });\n }",
"private synchronized void flush() {\r\n\t\tif (!buffer.isEmpty()) {\r\n\t\t\tfor (final LoggingRecord record : buffer) {\r\n\t\t\t\thandler.handle(record);\r\n\t\t\t}\r\n\t\t\tbuffer.clear();\r\n\t\t}\r\n\t}",
"@Override\n public void run()\n {\n while (true)\n {\n\n // create output stream attached to the socket\n\n // read message from client.\n try\n {\n Message message = (Message) inFromClient.readObject();\n System.out.println(\"Message from Client: \" + message);\n\n // Send reply to client.\n Message replyMessage = new Message(message.getId(), message.getBody().toUpperCase());\n\n for (int i = 0; i < mb.numberofclients(); i++)\n {\n mb.getConnection(i).returnMessage().writeObject(message);\n\n }\n list.add(message);\n db2.Write(list);\n\n }\n catch (Exception ex)\n {\n \n }\n }\n\n }",
"Consumer<VoidMessage> outgoingConsumer();",
"private void sendInternal(Payload payload) {\n synchronized (internalLock) {\n outBuffer.addLast(payload);\n pendingMessages = true;\n internalLock.notify();\n }\n }",
"public synchronized void sendMessage(OutputStream out, Message msg) throws IOException {\n if (msg.getPayload() == null) {\n //System.out.println(sdf.format(Calendar.getInstance().getTime()) + \" The payload is null\");\n msg.setLength(1);\n } else {\n msg.setLength(msg.getPayload().length + 1);\n }\n out.write(intToByteArray(msg.getLength()));\n //System.out.println(sdf.format(Calendar.getInstance().getTime()) + \" in sendMessage: length: \" + msg.getLength() + \" & Message Type \" + msg.getType());\n out.write(msg.getType());\n\n\n if (msg.getPayload() != null) {\n out.write(msg.getPayload());\n }\n out.flush();\n }",
"private void addFromQueue()\n\t{\n\t\twhile( humanQueue.size()>0 )\n\t\t\thumans.add(humanQueue.remove(0));\n\t\twhile( zombieQueue.size()>0 )\n\t\t\tzombies.add(zombieQueue.remove(0));\n\t}",
"public void flush() throws IOException {\n if (firstMessage != null) {\n writer.messageWrite(firstMessage);\n }\n firstMessage = null;\n }",
"private Queue(){\r\n\t\tgenerateQueue();\r\n\t}",
"@Override\n public void finishMessageSending() {\n for (int i = 0; i < fragNum; ++i) {\n long bytesWriten = cacheOut[i].bytesWriten();\n cacheOut[i].finishSetting();\n cacheOut[i].writeLong(0, bytesWriten - SIZE_OF_LONG);\n\n if (bytesWriten == SIZE_OF_LONG) {\n logger.debug(\n \"[Finish msg] sending skip msg from {} -> {}, since msg size: {}\",\n fragId,\n i,\n bytesWriten);\n continue;\n }\n if (i == fragId) {\n nextIncomingMessageStore.digest(cacheOut[i].getVector());\n logger.info(\n \"In final step, Frag [{}] digest msg to self of size: {}\",\n fragId,\n bytesWriten);\n } else {\n grapeMessager.sendToFragment(i, cacheOut[i].getVector());\n logger.info(\n \"In final step, Frag [{}] send msg to [{}] of size: {}\",\n fragId,\n i,\n bytesWriten);\n }\n }\n // if (maxSuperStep > 0) {\n // grapeMessager.ForceContinue();\n // maxSuperStep -= 1;\n // }\n\n // logger.debug(\"[Unused res] {}\", unused);\n // logger.debug(\"adaptor hasNext {}, grape hasNext{}\", adaptorHasNext, grapeHasNext);\n // logger.debug(\"adaptor next {}, grape next {}\", adaptorNext, grapeNext);\n // logger.debug(\"adaptor neighbor {}, grape neighbor {}\", adaptorNeighbor,\n // grapeNeighbor);\n }",
"public int onEnd() {\n\t\t\t\tflushMessageQueue();\n\t\t\t\treturn 0;\n\t\t\t}",
"@Override\n\t\t\tpublic IAMQPPublishAction messages(Collection<byte[]> messages) {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n\t\t\tpublic IAMQPPublishAction messages(Collection<byte[]> messages) {\n\t\t\t\treturn null;\n\t\t\t}",
"public synchronized void enqueue(Object msg) {\n\t\tqueue.add(msg);\n\n\t\t// if any threads wait on empty queue then wake them up\n\t\tnotifyAll();\n\t}",
"public void multiReceivePackage(Queue<String> inQueue) {\n InputStream in = null;\n\n try {\n byte[] receiveBuf = new byte[BUFSIZE];\n //socket = server.accept();\n //System.out.println(\"Receive: Connected to socket:\" + socket.getRemoteSocketAddress() + \"...sending echo string\");\n //System.out.println(socket.getRemoteSocketAddress());\n logger.info(\"Receive: Connected to socket:\" + socket.getRemoteSocketAddress().toString() + \"...sending echo string\");\n in = socket.getInputStream();\n String temp = \"\";\n while (in.read(receiveBuf) != -1) {\n temp += new String(receiveBuf);\n receiveBuf = new byte[BUFSIZE];\n if (temp.indexOf(\"#E\") >= 0) {\n break;\n }\n }\n logger.info(\"Message received: \" + temp.trim());\n\n inQueue.offer(temp.trim() + \"|\" + socket.getRemoteSocketAddress().toString());\n //System.out.println(\"Message and IP received: \" + temp.trim() + \"|\" + socket.getRemoteSocketAddress().toString());\n logger.debug(\"Message and IP received: \" + temp.trim() + \"|\" + socket.getRemoteSocketAddress().toString());\n socket.close();\n //Thread.sleep(500);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n\n }\n }",
"public boolean releaseOutbound() {\n/* 510 */ return releaseAll(this.outboundMessages);\n/* */ }",
"public void toQueueMode() {\n\t\t// TODO Write me!\n\t\t\n\t}",
"public void run() {\n\t\ttry {\n\t\t\twhile (!abort) {\n\t\t\t\tlong dest = outgoingAddressBuffer.take();\n\t\t\t\tbyte[] msg = outgoingMessageBuffer.take();\n\t\t\t\tif (dest == 0) // Break signal\n\t\t\t\t{\n\t\t\t\t\tLog.d(TAG, \"Dest is 0\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\twhile (rm.isDiscovering()) {\n\t\t\t\t\tThread.sleep(1000); // sleep while it is discovering\n\t\t\t\t}\n\n\t\t\t\tif (!dl.sendPacket(dest, msg)) { // Returns false if the route\n\t\t\t\t\t// is broken\n\t\t\t\t\t// FIXME: Same thread goes back and removes the destination.\n\t\t\t\t\t// un cool\n\t\t\t\t\tLog.d(TAG, \"A route is down - remove the entry \");\n\t\t\t\t\trm.BroadcastRouteDown(dest);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t\tLog\n\t\t\t\t\t.e(\n\t\t\t\t\t\t\tTAG,\n\t\t\t\t\t\t\t\"Error in PacketHandlerOut - no outgoing messages will be sent!\",\n\t\t\t\t\t\t\te);\n\t\t}\n\t\tLog.d(TAG, \"PacketHandlerOut aborting\");\n\n\t}",
"@RabbitListener(queues = MessagingConfig.QUEUE)\n public void consumeMessageFromQueue(Traveller journey) {\n\t\t\n\t\ttravellerService.save(journey);\n System.out.println(\"Message recieved from queue : \" + journey);\n }",
"private void addMessageToQueue( byte[] buffer ){\n \tsynchronized (this.messages) {\n byte message[] = new byte[buffer.length\n - Constants.MESSAGE_ID_LEN - 1];\n for (int i = Constants.MESSAGE_ID_LEN + 1; i < buffer.length; i++) {\n message[i - Constants.MESSAGE_ID_LEN - 1] = buffer[i];\n }\n messages.add(message);\n }\n }",
"@Override\n\tprotected void encode(ChannelHandlerContext ctx, Object msg, List<Object> out) throws Exception {\n\t\tif (msg instanceof Message) {\n\t\t\tout.add(msg);\n\t\t}\n\t\t\n\t\t/*\n\t\t * Look for the correct serializer and bamboozle it\n\t\t */\n\t\telse {\n\t\t\tSet<OutgoingMessageDefinition> definitions = repository.outgoingTypedDefinition(msg.getClass());\n\t\t\tif (definitions == null || definitions.size() == 0) {\n\t\t\t\tlogger.warn(\"no serializer found for {}\", msg.getClass().getName());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlogger.debug(\"sending message {} to {}\", msg.getClass().getName(), ctx.channel().remoteAddress());\n\t\t\t\tdefinitions.forEach(definition -> out.add(definition.getSerializer().serialize(msg, definition)));\n\t\t\t}\n\t\t}\n\t}",
"private int sendAll( \n Hashtable<Object,Vector<Message>> my_message_table,\n Hashtable<Object,Vector<IReceiveMessage>> my_receiver_table ) \n {\n // get all messages from the message table\n // in an array, and sort based on time\n int num_messages = 0;\n Enumeration<Vector<Message>> lists = my_message_table.elements();\n Vector<Message> list;\n while ( lists.hasMoreElements() )\n {\n list = lists.nextElement();\n num_messages += list.size();\n }\n\n Message messages[] = new Message[ num_messages ];\n lists = my_message_table.elements();\n int index = 0;\n while ( lists.hasMoreElements() )\n {\n list = lists.nextElement();\n for ( int i = 0; i < list.size(); i++ )\n {\n messages[index] = list.elementAt(i);\n index++;\n }\n }\n\n Arrays.sort( messages, new MessageComparator() );\n\n // now route the ordered messages\n // to the receivers, and increment\n // the number of messages sent, if\n // there were any receivers.\n int num_true = 0;\n for ( int i = 0; i < messages.length; i++ )\n if ( sendMessage( messages[i], my_receiver_table ) )\n num_true++;\n // Send the MESSAGES_PROCESSED \n // message, if sending some\n // messages returned true\n if ( num_true > 0 || always_notify )\n sendMessage( MESSAGES_PROCESSED, my_receiver_table );\n\n return num_true;\n }",
"public void flush(int maxSize) throws IOException\n\t{\n\t\tint flushSize=4;\n\t\tByteBuffer buffer=ByteBuffer.allocate(maxSize+4);\n\t\tbuffer.putInt(buffer.capacity());\n\t\t//System.out.println(\"buffer capacity: \"+buffer.capacity());\n\t\twhile(messages.peek()!=null&&flushSize+messages.peek().size()<=buffer.capacity())\n\t\t{\n\t\t\t//System.out.println(\"Messgae written.\");\n\t\t\tflushSize+=messages.peek().size();\n\t\t\tbuffer.put(messages.pop().bytes());\n\t\t}\n\t\tbuffer.putInt(0,flushSize-4);\n\t\tout.write(buffer.array(),0,flushSize);\n\t\tsize-=flushSize;\n\t\t//System.out.println(\"flush size: \"+size);\n\t\tout.flush();\n\t}",
"private void sendToAll(String msg){\r\n for(ClientHandler ch: clientThreads){\r\n try{\r\n //Get the client's ObjectOutputStream\r\n ObjectOutputStream oos = ch.getOOS();\r\n //Print the message to the client\r\n oos.writeObject(new DataWrapper(DataWrapper.STRINGCODE, msg, false));\r\n } catch(IOException ioe) {\r\n System.out.println(\"IOException occurred: \" + ioe.getMessage());\r\n ioe.printStackTrace();\r\n }\r\n }\r\n }",
"private void sendGMToAll(String msg){\r\n for(ClientHandler ch: clientThreads){\r\n try{\r\n //Get the client's ObjectOutputStream\r\n ObjectOutputStream oos = ch.getOOS();\r\n //Print the message to the client\r\n oos.writeObject(new DataWrapper(0, msg, true));\r\n } catch(IOException ioe) {\r\n System.out.println(\"IOException occurred: \" + ioe.getMessage());\r\n ioe.printStackTrace();\r\n }\r\n }\r\n }",
"public void run() {\n\n\t\t// produce messages\n\t\twhile (isConnected) {\n\n\t\t\ttry {\n\t\t\t\t// receive message\n\t\t\t\tMessage m = qreceiver.receive();\n\t\t\t\t// process message -- add message to the data holder\n\t\t\t\tprocessMessage(m);\n\t\t\t\t// check if the commit flag is set in the message property\n\t\t\t\tif (shouldCommit(m)) {\n\t\t\t\t\t// commit the transaction\n\t\t\t\t\tcommit(m);\n\t\t\t\t}\n\t\t\t\tThread.sleep(1000);\n\t\t\t\t\n\t\t\t} catch (TransactionRolledBackException trbe) {\n\t\t\t\tlog(\"transaction rolled back by MQ ...\");\n\t\t\t\t// rollback application data\n\t\t\t\trollBackApplication();\n\t\t\t} catch (JMSException jmse) {\n\t\t\t\t// The exception can happen when receiving messages\n\t\t\t\t// and the connected broker is killed.\n\t\t\t\tif (isConnected == true) {\n\t\t\t\t\t// rollback MQ and application data\n\t\t\t\t\trollBackAll();\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog(e);\n\n\t\t\t\t// application may decide NOT to close the connection\n\t\t\t\t// when an unexpected Exception occurred.\n\t\t\t\tclose();\n\t\t\t}\n\t\t}\n\t}",
"private void addToMoveQueue() {\n\t\tSimulation.INSTANCE.getMoveQueue().offer(new Move(prevNode, currentNode));\n\t}",
"public synchronized void send(Object obj)\r\n\t{\r\n\t\tclientQueue.offer(obj);\r\n\t}",
"@Override\n\tpublic Future<Integer> write(ByteBuffer bb) {\n\t\tthis.outcomingMessageQ.offer(bb);\n\n\t\t/*\n\t\t * Read the Q and send the packet util the Q is empty.\n\t\t * \n\t\t * This method will for ever called after the offer call on the Q to\n\t\t * make sure write will be triggered if the Q isn't empty.\n\t\t */\n\t\treturn sendOne();\n\n\t}",
"public void ClearUnsentQueue() {\n \t\tjobqueue.clear();\n \t}",
"public void run() {\n\t\tString line = null;\n\t\tMessage message;\n\t\tBufferQueueElement<Message> messageList = new BufferQueueElement<Message>();\n\t\tlong t1 = System.nanoTime();\n\t long t2 = 0;\n\t\ttry {\n\t\t\twhile ((line = messageIO.readMessage()) != null) {\n\t\t\t\tt2 = System.nanoTime();\n\t\t\t\t/* Ok, we can close the stream. But process the last message list. */\n\t\t\t\tif (CLOSE_STREAM.equals(line)) {\n\t\t\t\t\tmessageList.setStreamClosed(true);\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tbreak;\n\t\t\t\t} else if((t2 - t1) < ONE_SECOND) {\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t} else {\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tmessageList = new BufferQueueElement<Message>();\n\t\t\t\t\tt1 = System.nanoTime();\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"private void send() {\n vertx.eventBus().publish(GeneratorConfigVerticle.ADDRESS, toJson());\n }",
"@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"AddToQueue Thread Running\");\n\t\t//Create passenger creator\n\t\tCreatePassenger creator = new CreatePassenger();\n\t\t//Start time\n\t\tint start = LocalDateTime.now().getSecond();\n\t\tint time = 0;\n\t\tcounter = 0;\n\t\t//Loop until counter reaches max passengers or time equals max time\n\t\twhile(counter <= MAX_PASSENGERS && time < MAX_TIME) {\n\t\t\t//Create new passenger\n\t\t\tPassenger arrived = creator.create();\n\t\t\t//Add passenger to order array\n\t\t\tthis.arrivedAdd(arrived);\n\t\t\t//Clear line\n\t\t\tSystem.out.print(\"\\033[2K\");\n\t\t\t//Add passenger to queue\n\t\t\tqueue.offer(arrived);\n\t\t\t//Incremement counter\n\t\t\tcounter++;\n\t\t\t//Print out new queue\n\t\t\tSystem.out.print(\"\\r\" + queue);\n\t\t\tint now = LocalDateTime.now().getSecond();\n\t\t\tif(now >= start) {\n\t\t\t\t\ttime = now - start;\n\t\t\t} else {\n\t\t\t\ttime = (now + 59) - start;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(300); \n\t\t\t} catch(InterruptedException e) {\n\t\t\t\tSystem.out.println(\"Error! Thread was interrupted!\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"protected void onQueued() {}"
] |
[
"0.68076587",
"0.66716236",
"0.65339184",
"0.65086305",
"0.6464855",
"0.63668567",
"0.63364893",
"0.6308251",
"0.62708706",
"0.6219864",
"0.62074214",
"0.6205874",
"0.617826",
"0.61310625",
"0.61070615",
"0.6011575",
"0.5997202",
"0.5940055",
"0.5934591",
"0.5897946",
"0.589042",
"0.5874013",
"0.5856886",
"0.58351433",
"0.5833826",
"0.5833826",
"0.5822137",
"0.58150095",
"0.581229",
"0.5809552",
"0.5804079",
"0.5777463",
"0.5750531",
"0.5740593",
"0.5736594",
"0.5733106",
"0.5713143",
"0.56809175",
"0.5674264",
"0.5667656",
"0.56665415",
"0.5666419",
"0.5647618",
"0.56304574",
"0.5621221",
"0.55746794",
"0.5574662",
"0.55746585",
"0.5556681",
"0.55502665",
"0.5538094",
"0.5533166",
"0.553204",
"0.5530066",
"0.55238235",
"0.55215317",
"0.55065054",
"0.55055946",
"0.549863",
"0.549863",
"0.54978997",
"0.5497071",
"0.5493817",
"0.5470793",
"0.54498374",
"0.5442271",
"0.5432628",
"0.5432615",
"0.54320997",
"0.54312843",
"0.5430697",
"0.5428805",
"0.54199344",
"0.5417063",
"0.5411043",
"0.540488",
"0.53985536",
"0.53942215",
"0.5384207",
"0.5384207",
"0.53835666",
"0.53771204",
"0.5374376",
"0.53705645",
"0.53678364",
"0.53635406",
"0.53608096",
"0.53510916",
"0.5339435",
"0.5339146",
"0.53253883",
"0.5313852",
"0.5303492",
"0.529925",
"0.5293021",
"0.5292987",
"0.52899307",
"0.5288981",
"0.52747977",
"0.52575177",
"0.525499"
] |
0.0
|
-1
|
This thread picks up a message from the queue and processes it
|
public void run() {
try {
while (!abort) {
long dest = outgoingAddressBuffer.take();
byte[] msg = outgoingMessageBuffer.take();
if (dest == 0) // Break signal
{
Log.d(TAG, "Dest is 0");
break;
}
while (rm.isDiscovering()) {
Thread.sleep(1000); // sleep while it is discovering
}
if (!dl.sendPacket(dest, msg)) { // Returns false if the route
// is broken
// FIXME: Same thread goes back and removes the destination.
// un cool
Log.d(TAG, "A route is down - remove the entry ");
rm.BroadcastRouteDown(dest);
}
}
} catch (InterruptedException e) {
Log
.e(
TAG,
"Error in PacketHandlerOut - no outgoing messages will be sent!",
e);
}
Log.d(TAG, "PacketHandlerOut aborting");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void run() {\n\t\tString line = null;\n\t\tMessage message;\n\t\tBufferQueueElement<Message> messageList = new BufferQueueElement<Message>();\n\t\tlong t1 = System.nanoTime();\n\t long t2 = 0;\n\t\ttry {\n\t\t\twhile ((line = messageIO.readMessage()) != null) {\n\t\t\t\tt2 = System.nanoTime();\n\t\t\t\t/* Ok, we can close the stream. But process the last message list. */\n\t\t\t\tif (CLOSE_STREAM.equals(line)) {\n\t\t\t\t\tmessageList.setStreamClosed(true);\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tbreak;\n\t\t\t\t} else if((t2 - t1) < ONE_SECOND) {\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t} else {\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tmessageList = new BufferQueueElement<Message>();\n\t\t\t\t\tt1 = System.nanoTime();\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"@Override\n\tprotected void doAction(Object message) {\n\t\tlogger.info(\"File Scanner Fetch message Name -->:\"+message.toString());\n\t\ttry {\n\t\t\tFileParser.queue.put(message);\n\t\t} catch (InterruptedException e) {\n\t\t\tlogger.error(\"Error on add message to Parser\");\n\t\t}\n\t}",
"@Override\n public void run() {\n try {\n boolean busy = true;\n while (busy) {\n AbstractBasicMessage msg = readMsg();\n if (msg != null) {\n busy = msg.operate(this.persistor, this.pushServer);\n }\n }\n } catch (IOException e) {\n // Treat an IOException as a termination of the message\n // exchange, and let this message-processing thread die.\n\n // CODE VON DOZENTEN...\n } catch (OperationNotSupportedException ex) {\n System.out.println(\"Error while reading incoming message\");\n ex.printStackTrace();\n }\n }",
"private void receive() {\n\t\tMQGetMessageOptions gmo = new MQGetMessageOptions();\n\t\tif (keepMessages) {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t| MQConstants.MQGMO_BROWSE_FIRST;\n\t\t} else {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2;\n\t\t\tif (syncPoint) {\n\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t}\n\t\t}\n\t\tgmo.matchOptions = MQConstants.MQMO_NONE;\n\t\tgmo.waitInterval = this.waitInterval;\n\n\t\ttry {\n\t\t\tint lastSeqNo = 0;\n\t\t\tlong lastTs = 0;\n\t\t\tint messagecounter = 0;\n\t\t\twhile (true) {\n\t\t\t\tif (!(qmgr.isConnected())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\tif (!(queue.isOpen())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\thaltFileExists();\n\t\t\t\tif (haltStatus) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t} else {\n\t\t\t\t\treadQueue = true;\n\t\t\t\t}\n\t\t\t\tint queueNotInhibited = queue.getInhibitGet();\n\t\t\t\tif (queueNotInhibited == MQConstants.MQQA_GET_INHIBITED) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t}\n\t\t\t\tproduceCounts();\n\t\t\t\tif (readQueue) {\n\t\t\t\t\tqueueDepth = queue.getCurrentDepth();\n\t\t\t\t\tif (queueDepth != 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\trcvMessage = new MQMessage();\n\t\t\t\t\t\t\tif (mqccsid != 0) {\n\t\t\t\t\t\t\t\trcvMessage.characterSet = mqccsid;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tqueue.get(rcvMessage, gmo);\n\t\t\t\t\t\t\trecordCountsRcvd++;\n\t\t\t\t\t\t\tstrLen = rcvMessage.getMessageLength();\n\t\t\t\t\t\t\tstrData = new byte[strLen];\n\t\t\t\t\t\t\trcvMessage.readFully(strData);\n\t\t\t\t\t\t\tmessagePutMs = rcvMessage.putDateTime.getTimeInMillis();\n\t\t\t\t\t\t\tseqNo = rcvMessage.messageSequenceNumber;\n\t\t\t\t\t\t\tif (lastTs == messagePutMs && seqNo == 1) {\n\t\t\t\t\t\t\t\tseqNo = lastSeqNo + seqNo;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmsgText = new String(strData);\n\t\t\t\t\t\t\tjsonOut = new JSONArray();\n\t\t\t\t\t\t\tjsonKey = new JSONObject();\n\t\t\t\t\t\t\tjsonValue = new JSONObject();\n\t\t\t\t\t\t\tjsonKey.put(\"key\", Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tjsonValue.put(\"value\", msgText);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgKey: \" + Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgValue: \" + msgText);\n\t\t\t\t\t\t\tjsonOut.put(jsonKey);\n\t\t\t\t\t\t\tjsonOut.put(jsonValue);\n\t\t\t\t\t\t\tmsgList.add(jsonOut.toString());\n\t\t\t\t\t\t\tlastTs = messagePutMs;\n\t\t\t\t\t\t\tlastSeqNo = seqNo;\n\t\t\t\t\t\t\tmessagecounter++;\n\t\t\t\t\t\t\t// move cursor to next message\n\t\t\t\t\t\t\tif (msgList.size() > maxUMsg / 2) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (msgList.size() > queueDepth) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (keepMessages) {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT | MQConstants.MQGMO_BROWSE_NEXT;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT;\n\t\t\t\t\t\t\t\tif (syncPoint) {\n\t\t\t\t\t\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (MQException e) {\n\t\t\t\t\t\t\tif (e.reasonCode == MQConstants.MQRC_NO_MSG_AVAILABLE) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else if (e.reasonCode == MQConstants.MQRC_SYNCPOINT_LIMIT_REACHED) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\tCalendar.getInstance().getTime() + \" - MQ Reason Code: \" + e.reasonCode);\n\t\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\t\t\tSystem.out.println(Calendar.getInstance().getTime() + \" - Error: \" + ioe.getMessage());\n\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t}\n\t\t\t\t\tthreadWait();\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Throwable t) {\n\t\t\t// restart if there is any other error\n\t\t\trestart(Calendar.getInstance().getTime() + \" - Error receiving data from Queue or QMGR\", t);\n\t\t}\n\n\t}",
"public void run() {\r\n while(true) { // outer loop\r\n if(first) // we already have the queue CAS acquired\r\n first=false;\r\n else {\r\n if(!queue.acquire())\r\n return;\r\n }\r\n\r\n try {\r\n Message msg_to_deliver;\r\n while((msg_to_deliver=queue.remove()) != null) { // inner loop\r\n try {\r\n up_prot.up(new Event(Event.MSG, msg_to_deliver));\r\n }\r\n catch(Throwable t) {\r\n log.error(\"couldn't deliver message \" + msg_to_deliver, t);\r\n }\r\n }\r\n }\r\n finally {\r\n queue.release();\r\n }\r\n\r\n // although ConcurrentLinkedQueue.size() iterates through the list, this is not costly,\r\n // as at this point, the queue is almost always empty, or has only a few elements\r\n if(queue.size() == 0) // prevents a concurrent add() (which returned) to leave a dangling message in the queue\r\n break;\r\n }\r\n }",
"public void queueMessage(Message message);",
"@Override\r\n public void handleMessage(Message msg) {\n mThreadPool.execute(getTask());\r\n try {\r\n mSemaphoreThreadPool.acquire();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"@Override\r\n\tpublic void run() {\n\t\twhile (true) {\r\n\t\t\tsynchronized (this.queue) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tqObj = queue.getQueue().peek();\r\n\t\t\t\t\tif (qObj != null && qObj instanceof String) {\r\n\t\t\t\t\t\tString t = (String) queue.getQueue().poll();\r\n\t\t\t\t\t\tSystem.out.println(\"TextProcessor:\" + t + \"\\tsize: \" + queue.getQueue().size());\r\n\t\t\t\t\t\tqueue.notifyAll();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tqueue.wait();\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public void run()\n {\n while (true) {\n if (isReadyToStop && (buffer.poll() == null)) {\n System.out.println(\"Thread stop\");\n producerClient.close();\n return;\n }\n try {\n Message msg = buffer.poll(config.getBufferPollTimeout());\n if (msg == null) {\n // ignore it\n continue;\n }\n System.out.println(\"Sent out: [\" + msg + \"]\");\n if (msg.getTopic().isPresent()) {\n String topic = msg.getTopic().get();\n Optional<Function<String, Integer>> function = funcMapBuffer.get(topic);\n function.ifPresent(stringLongFunction -> {\n int fiberId = stringLongFunction.apply(msg.getKey());\n msg.setFiberId(fiberId);\n producerClient.send(topic, fiberId, msg);\n });\n // else ignore this message\n }\n // else ignore this message\n }\n catch (InterruptedException ignored) {\n // if poll nothing, enter next loop\n }\n }\n }",
"@Override\n\tpublic void run() {\n\t\twhile(true) {\n\t\t\tqueue.get();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void run() {\n reprocessPendingMessage();\n }",
"@Override\n public void run() {\n Message message;\n while(true){\n logger.debug(\"SMS Reader Thread is waiting for incoming messages\");\n message = messageQueue.getInputSMS().poll() ;\n logger.debug(\"SMS message has been received from \"+ message.getFromWhom());\n view.receivedMessages.append(message.getFromWhom().toString() +\" :\");\n view.receivedMessages.append(message.getData() + \"\\n\");\n view.setPreferredSize(new Dimension(view.getSize().height+10, view.getSize().width));\n view.jScrollPaneReceivedMessages.getVerticalScrollBar().setValue(view.jScrollPaneReceivedMessages.getVerticalScrollBar().getMaximum());\n view.revalidate();\n }\n }",
"private void consume()\r\n\t{\r\n\t\twhile (true)\r\n\t\t{\r\n\t\t\tSubscriberMessage sifMsg = queue.blockingPull();\t\t\t\t\r\n\t\t\tif (sifMsg != null)\r\n\t\t\t{\r\n\t\t\t\tlogger.debug(consumerID+\" has receive a message from its SubscriberQueue.\");\r\n\t\t\t\tif (sifMsg.isEvent())\r\n\t\t\t\t{\r\n\t\t\t\t\tSIFEvent sifEvent = new SIFEvent(sifMsg.getSIFObject(), sifMsg.getEventAction());\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubscriber.processEvent(sifEvent, sifMsg.getZone(), sifMsg.getMappingInfo(), consumerID);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception ex)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.error(\"Failed processing SIF Event for subscriber \"+subscriber.getId()+\": \"+ex.getMessage()+\"\\nEvent Data:\\n\"+sifEvent, ex);\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSIFDataObject sifObj = sifMsg.getSIFObject();\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubscriber.processResponse(sifObj, sifMsg.getZone(), sifMsg.getMappingInfo(), consumerID);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception ex)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.error(\"Failed processing SIF Object for subscriber \"+subscriber.getId()+\": \"+ex.getMessage()+\"\\nSIF Object Data:\\n\"+((sifObj == null) ? \"null\" : sifObj.toXML()), ex);\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\telse\r\n\t\t\t{\r\n\t\t\t\tlogger.error(consumerID+\" has encountered a problem receiving a message from its SubscriberQueue.\");\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"public void run() {\n\t\twhile (!isFinished) {\n\t\t\tString msg;\n\t\t\ttry {\n\t\t\t\tmsg = messages.take();\n\t\t\t\tSystem.out.println(serverId + \" says: \" + msg);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void run() {\n while (connected) {\n Message message = getMessage();\n if (!connected)\n break;\n Executors.newCachedThreadPool().execute(() -> {\n try {\n message.handle(messageHandler);\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }\n }",
"@Override\n public void run() {\n message.synchronizedInstance();\n }",
"void onMessageProcessingAttempt(String internalQueueName);",
"@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"Waiting for input\");\n\t\t// Handle reading data until we exit\n\t\tByteBuffer buf = ByteBuffer.allocate(2048);\n\t\twhile (!stopper && socketChannel.isOpen()) {\n\t\t\tSystem.out.println(\"Reading the socket\");\n\t\t\ttry {\n\t\t\t\t// No input from the user in 60 seconds results in kicking them\n\t\t\t\t// out\n\t\t\t\tint bytesRead = socketChannel.read(buf).get(60, TimeUnit.SECONDS);\n\t\t\t\t// ByteBuffer dst = ByteBuffer.allocate(bytesRead);\n\t\t\t\t// engine.unwrap(buf, dst);\n\t\t\t\tSystem.out.println(\"Got data of size: \" + bytesRead);\n\t\t\t\t// convert to proto\n\t\t\t\tcommonUIElements.MessageProtos.Message msg = commonUIElements.MessageProtos.Message\n\t\t\t\t\t\t.parseFrom(Arrays.copyOf(buf.array(), bytesRead));\n\t\t\t\tSystem.out.println(\"RXed: \" + msg.toString());\n\t\t\t\tif (!msg.getName().equals(name)) {\n\t\t\t\t\tname = msg.getName();\n\t\t\t\t}\n\t\t\t\t// add data to the message queue\n\t\t\t\tif (SignatureSystem.verifySignature(msg.getSignature(), msg.getMessage(), msg.getName(), trustStore)) {\n\t\t\t\t\tmessages.put(\n\t\t\t\t\t\t\tnew Message(msg.getSender(), msg.getMessage(), msg.getSignature(), msg.getClearance()));\n\t\t\t\t} else {\n\t\t\t\t\tMessage error = new Message(msg.getSender(), \"Error: signture is invalid\", msg.getSignature(),\n\t\t\t\t\t\t\tmsg.getClearance());\n\t\t\t\t\terror.error = true;\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t}\n\t\t\t\t// clear the buffer for the next message\n\t\t\t\tbuf.clear();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tSystem.err.println(\"Failed to add message to the queue: \" + e.getMessage());\n\t\t\t\tMessage error = new Message(this.name, \"Disconnected\", \"\", 1);\n\t\t\t\terror.error = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (TimeoutException e) {\n\t\t\t\tSystem.err.println(\"Timeout hit, waiting again\");\n\t\t\t\tMessage error = new Message(this.name, \"Client: \" + this.name + \" has timed out\", \"\", 1);\n\t\t\t\terror.kill = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\tSystem.err.println(\"Execution error, breaking out of loop\");\n\t\t\t\tbreak;\n\t\t\t} catch (InvalidProtocolBufferException e) {\n\t\t\t\tSystem.err.println(\"Invalid protobuf received: \" + e.getMessage());\n\t\t\t\t// } catch(SSLException e) {\n\t\t\t\t// System.err.println(\"SSL Failed: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tsocketChannel.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Failed to close socket while exiting\");\n\t\t}\n\t\tSystem.out.println(\"Exiting thread...\");\n\t}",
"@Override\n public void run() {\n\n while(true) {\n String incomingMessage = getSocketController().receive();\n getMessages().lock();\n System.out.println(incomingMessage);\n getMessages().addElement(incomingMessage);\n getMessages().unlock();\n try {\n Thread.sleep(10);\n }catch(InterruptedException e) {\n throw new RuntimeException(e);\n }\n }\n }",
"public void run() {\n\t\twhile (true) {\n\t\t\tif (queue.size() > 0) {\n\t\t\t\ttry {\n\t\t\t\t\tconsume();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tqueueEfficency.set(0);\n\t\t\t\temptyQueueTime = 0;\n\t\t\t}\n\t\t}\n\t}",
"public void sendFromMessageQueue() throws IOException {\n Date canSendDate = new Date(lastReceiveMsgDate.getTime() + 2000);\n if (canSendDate.before(new Date())) {\n String msg = messageQueue.poll();\n if (msg == null)\n return;\n\n output.writeBytes(msg + \"\\n\");\n }\n }",
"private void sendCommand(String msg) throws InterruptedException {\n commandQueue.put(msg);\n selector.wakeup();\n }",
"public void receiveMessage() throws InterruptedException, ExecutionException {\n ReceiveMessageRequest request = createReceiveMessageRequest();\n ReceiveMessageResult messageResult = amazonSQS.receiveMessage(request);\n\n logger.info(\"Total of messages retrieved: {}\", messageResult.getMessages().size());\n LinkedList<Future<Result>> results = messageResult.getMessages().stream()\n .map(this::processMessageFunction)\n .collect(CustomCollectors.collectAsLinkedList());\n\n resultChecker.checkAll(results);\n }",
"@Override\n public void run() {\n ICBlock currentBlock = null;\n\n while (running) {\n try {\n currentBlock = mQueue.take();\n currentBlock.doAction();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n\n }\n\n\n }",
"public void run() {\n JabberPacket packet=null;\n\n do {\n try {\n packet=queue.pull();\n\n if (packet!=null) {\n PacketHandler h=null;\n if (((JabberSkypeSettings) Main.Settings()).getDebug()) {\n \tSystem.out.println(\"Client: \" + packet.generateXML());\n }\n String e=packet.getElement();\n if (e!=null) {\n String key=null;\n\n if (e.equals(\"iq\")) {\n JabberPacket pQuery=packet.getFirstChild(\"query\");\n\n if (pQuery!=null) {\n key=pQuery.getAttribute(\"xmlns\");\n } else {\n \tJabberPacket pVcard=packet.getFirstChild(\"vcard\");\n \tif (pVcard!= null) {\n \t\tkey=pVcard.getAttribute(\"xmlns\");\n \t\t//need to do difference between setting vcard, and getting it for a user\n \t}\n }\n } else\n key=e;\n\n if (key!=null) {\n h=(PacketHandler)mHandlers.get(key);\n\n if (h==null)\n h=getDefaultHandler();\n\n h.processPacket(packet);\n } //key!=null\n } //e!=null\n } //packet!=null\n } //try\n catch (Exception e) {\n server.getLogger().severe(\"Caught exception: \"+e.getMessage());\n }\n } while (packet!=null && server.getRunning());\n }",
"@Override\n public void run() {\n Message message = mHandler.obtainMessage(1);\n mHandler.sendMessage(message);\n }",
"@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tconsume();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tprotected void doReceiveMessage(Message msg) {\n\t\tdeliverMessage(msg);\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\twhile (true) {\n\n\t\t\t\ttry {\n\t\t\t\t\tfor (Message message : pending) {\n\t\t\t\t\t\tif (canLCBdeliver(message)) {\n\t\t\t\t\t\t\tfifoBC.canDeliver(message);\n\t\t\t\t\t\t\tp.Pendinglock.lock();\n\t\t\t\t\t\t\tpending.remove(message);\n\t\t\t\t\t\t\tp.Pendinglock.unlock();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tSystem.out.println(\"Failed to sleep in deliver thread.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Override\n\tpublic void run() {\n\t\tDate message;\n\t\t//Loop infinito\n\t\twhile(true) {\n\t\t\t//Coloca a thread para dormir durante um tempo.\n\t\t\tSleepUtilities.nap();\n\t\t\t//Instancia a message com o Date.\n\t\t\tmessage = new Date();\n\t\t\t//Printa a mensagem com o conteudo do Date.\n\t\t\tSystem.out.println(\"Producer produced \"+message);\n\t\t\t//Adiciona a mensagem no vetor.\n\t\t\tmbox.send(message);\n\t\t}\n\t}",
"private void dequeueMessages()\n\t{\n\t\twhile (_msg_queue.size() > 0)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t_ml.messageReceived( (Serializable) _msg_queue.removeFirst());\n\t\t\t}\n\t\t\tcatch (RuntimeException rte)\n\t\t\t{\n\t\t\t\trte.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void run ()\n {\n // Retrieve the iterator object of the linesInput\n Iterator <Line> linesIterator = linesInput.iterator () ;\n \n // Iterator through the iterator until all entries have been accounted for\n while ( linesIterator.hasNext () ) \n { \n // Grab the next entry in the iterator\n Line lineChange = linesIterator.next() ;\n \n /*\n * Make sure that the users know was is going on by printing that the producer is \n * doing something.\n */\n System.out.println ( \"Line Producer is Producing: \" + lineChange.content ) ;\n \n // Store the line into the messagingQueue\n Program.messagingQueue.putMessage ( lineChange ) ;\n \n // Once the iterator had finished with the entry remove it as it is no longer needed.\n linesIterator.remove () ;\n }\n \n // Add end of file message to the queue showing that we have finished producing the messages.\n Line endOfFileMessage = new Line ( \"END-OF-FILE\", -1 ) ;\n Program.messagingQueue.putMessage ( endOfFileMessage ) ;\n }",
"@Override\r\n\t\tpublic void run() {\n\t\t\ttry {\r\n\t\t\t\twhile (mClient.mSelector.select() > 0) {\r\n\t\t\t\t\tif (DEBUG) Log.e(TAG, \" In while 135\");\r\n\t\t\t\t\tfor (SelectionKey next : mClient.mSelector.selectedKeys()) {\r\n\t\t\t\t\t\tif (next.isReadable()) {\r\n\t\t\t\t\t\t\tSocketChannel socketChannel = (SocketChannel) next.channel();\r\n\t\t\t\t\t\t\tByteBuffer buffer = ByteBuffer.allocate(500);\r\n\t\t\t\t\t\t\tbuffer.clear();\r\n\t\t\t\t\t\t\tint length = socketChannel.read(buffer);\r\n//\t\t\t\t\t\t\tif (DEBUG) Log.e(TAG, Arrays.toString(buffer.array()));\r\n\t\t\t\t\t\t\tif (length == -1) continue;\r\n\t\t\t\t\t\t\tbuffer.flip();\r\n\t\t\t\t\t\t\tif (buffer.get(0) == MessageBean.MESSAGE_TYPE_TEXT) {\r\n\t\t\t\t\t\t\t\tMessageBean messageBean = MessageBean.createMessage(buffer.array());\r\n\t\t\t\t\t\t\t\t// send message to activity\r\n\t\t\t\t\t\t\t\tIntent intent = new Intent(ReceiveReceiver.ACTION);\r\n\t\t\t\t\t\t\t\tintent.putExtra(\"data\", messageBean.getByteArray());\r\n\t\t\t\t\t\t\t\tsendBroadcast(intent);\r\n\t\t\t\t\t\t\t\tnext.interestOps(SelectionKey.OP_READ);\r\n\t\t\t\t\t\t\t\tif (DEBUG) \r\n\t\t\t\t\t\t\t\t\tLog.e(TAG, \"message : \" + messageBean.getSendId() + \" \" + \r\n\t\t\t\t\t\t\t\t\t\t\tmessageBean.getReceiveId() + \" \" + messageBean.getSendMessageLength() + \" \" +\r\n\t\t\t\t\t\t\t\t\t\t\tmessageBean.getMessageText());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tmClient.mSelector.selectedKeys().remove(next);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}",
"public void run() {\t\t\t\n\t\tItem item = null;\n\t\twhile (isAlive) {\n\t\t\ttry {\n\t\t\t\titem = queue.take();\n\t\t\t\tif (item == null) {\n\t\t\t\t\t_logger.error(\"Item is null.\");\n\t\t\t\t} \n\t\t\t\telse {\n\t\t\t\t\tlastAction = 1;\n\t\t\t\t\tlastAccess = System.currentTimeMillis();\n\t\t\t\t\titemsConsumed++;\n\t\t\t\t\t\n\t\t\t\t\tprocess(item);\n\t\t\t\t}\n\t\t\t} catch(IOException e) {\n\t\t\t\t_logger.error(e);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t_logger.error(e);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//empty queue before exit \n\t\twhile ((item = queue.poll()) != null) {\n\t\t\ttry {\n\t\t\t\tprocess(item);\n\t\t\t} catch (IOException e) {\n\t\t\t\t_logger.error(e);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tBitmap bit = InputStream2Bimap( taskModel.hostInputStreamResult ) ; \n\t\t\t\t\tMessage msg = new Message(); \n\t\t\t\t\tmsg.obj = bit ; \n\t\t\t\t\tmsg.what = 3 ; \n\t\t\t\t\thandler.sendMessage(msg) ;\n\t\t\t\t}",
"@Override\n\tpublic void run() {\n\t\ttarget.call(msg);\n\t}",
"private void workOnQueue() {\n }",
"@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\t//让改线程可以接受到客户端的信息;\n\t\t\ttry {\n//\t\t\t\tThread.sleep(2000);\n\t\t\tObjectInputStream ois=new ObjectInputStream(s.getInputStream());\n\t\t\tMessage message=(Message) ois.readObject();\n\t\t\tSystem.out.println(message.getSender()+\"给\"+message.getGetter()+\"说\"+message.getCon());\n\t\t\t//这里进行转发;\n\t\t\t/*\n\t\t\t * 转发时出现错误;???????????已解决;\n\t\t\t */\n\t\t\t//取得接收人的通讯线程;\n\t\t\tServerConnectClient scClient=ManageQQClientTh.getClientThread(message.getGetter());\n\t\t\tObjectOutputStream oos=new ObjectOutputStream(scClient.s.getOutputStream());\n\t\t\t\toos.writeObject(message);\n\t\t\n\t\t\t\t} catch (IOException | ClassNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"void processQueue();",
"@Override\n\t\tpublic void run() {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1000);// 线程暂停2秒,单位毫秒\n\t\t\t\t\tMessage message = new Message();\n\t\t\t\t\tmessage.arg1 = 1;\n\t\t\t\t\thandler.sendMessage(message);// 发送消息\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void run() {\n // Check if the specified connector is null\n //\n if(this.connector == null) {\n System.out.println(\"[ERROR] connector is null aborting\");\n return;\n }\n\n //\n // Keep reading messages\n //\n while (true) {\n AeMessage inMsg = connector.read();\n if(inMsg == null) {\n System.out.println(\"[ERROR] Received an invalid message\");\n connector.reconnect();\n try {\n Thread.sleep(10000);\n }\n catch(Exception e) {\n }\n }\n else {\n //\n // Reject messages over two minutes old\n //\n if(inMsg.checkMessageOlderThan(120) == 1) {\n System.out.println(\"[INFO] Message has expired: \" + inMsg.toString());\n }\n else if(inMsg.getMessageType().equals(\"22\")) {\n System.out.println(\"[INFO] Received message:\" + inMsg.toString());\n if(messageStore.reportMessage(inMsg)) {\n System.out.println(\"[INFO] Successfully added message to the store\");\n }\n else {\n System.out.println(\"[ERROR] Failed to add message to the store\");\n }\n }\n }\n }\n }",
"public void run() {\n\n\t\t// produce messages\n\t\twhile (isConnected) {\n\n\t\t\ttry {\n\t\t\t\t// receive message\n\t\t\t\tMessage m = qreceiver.receive();\n\t\t\t\t// process message -- add message to the data holder\n\t\t\t\tprocessMessage(m);\n\t\t\t\t// check if the commit flag is set in the message property\n\t\t\t\tif (shouldCommit(m)) {\n\t\t\t\t\t// commit the transaction\n\t\t\t\t\tcommit(m);\n\t\t\t\t}\n\t\t\t\tThread.sleep(1000);\n\t\t\t\t\n\t\t\t} catch (TransactionRolledBackException trbe) {\n\t\t\t\tlog(\"transaction rolled back by MQ ...\");\n\t\t\t\t// rollback application data\n\t\t\t\trollBackApplication();\n\t\t\t} catch (JMSException jmse) {\n\t\t\t\t// The exception can happen when receiving messages\n\t\t\t\t// and the connected broker is killed.\n\t\t\t\tif (isConnected == true) {\n\t\t\t\t\t// rollback MQ and application data\n\t\t\t\t\trollBackAll();\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog(e);\n\n\t\t\t\t// application may decide NOT to close the connection\n\t\t\t\t// when an unexpected Exception occurred.\n\t\t\t\tclose();\n\t\t\t}\n\t\t}\n\t}",
"public void run() {\n while (true) { \n \t\ttry {\n \t\t\tString line=br.readLine();\n\t\t\t\t\t\t\th.obtainMessage(RECIEVE_MESSAGE, line).sendToTarget();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n \n }\n }",
"public void queueMessage(ByteBuffer bb) {\n queue.add(bb);\n processOut();\n updateInterestOps();\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tBitmap bit = InputStream2Bimap( taskModel.domainInputStreamResult ) ; \n\t\t\t\t\tMessage msg = new Message(); \n\t\t\t\t\tmsg.obj = bit ; \n\t\t\t\t\tmsg.what = 4 ; \n\t\t\t\t\thandler.sendMessage(msg) ;\n\t\t\t\t}",
"public void run(){\n\t\t\tObjectReader readerClient = new ObjectReader(in, clientInetAddress);\r\n\t\t\treaderClient.start();\r\n\t\t\t\r\n\t\t\t// Constantly checks msgToSend for messages and sends them\r\n\t\t\twhile(true){\r\n\t\t\t\ttry{\r\n\t\t\t\t\t// Send message\r\n\t\t\t\t\tif(msgToSend.length() != 0){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tout.writeObject(new DataObject(DataObject.STRING, msgToSend.toString()));\r\n\t\t\t\t\t\tout.flush();\r\n\t\t\t\t\t\tmsgToSend.setLength(0);\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\tcatch(IOException ioe){\r\n\t\t\t\t\tioe.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}",
"public synchronized void available (A_MessageThread aMessageThread)\n\t{\n\t\tif (!aMessageThread.isQueued ())\n\t\t{\n\t\t\tthreads.add (aMessageThread);\n\t\t\taMessageThread.setQueued (true);\n\t\t}\n\t\t\n\t\tif (messages.size () > 0)\n\t\t{\n\t\t\tpostMessageToThread (messages.remove ());\n\t\t}\n\t}",
"@Override\n public void run() {\n while (!bShutDown || !messageCache.isEmpty()) {\n try {\n while (!messageCache.isEmpty()) {\n HttpMessage httpMessage = messageCache.poll();\n if (httpMessage != null) {\n SendResult result = sendMessageWithHostInfo(\n httpMessage.getBodies(), httpMessage.getGroupId(),\n httpMessage.getStreamId(), httpMessage.getDt(),\n httpMessage.getTimeout(), httpMessage.getTimeUnit());\n httpMessage.getCallback().onMessageAck(result);\n }\n }\n TimeUnit.MILLISECONDS.sleep(proxyClientConfig.getAsyncWorkerInterval());\n } catch (Exception exception) {\n logger.error(\"exception caught\", exception);\n }\n }\n }",
"private void postMessageToThread (Object aMessage)\n\t{\n\t\t//System.err.println (\"Posting message to thread\");\n\t\tif (aMessage instanceof DispatchMessage)\n\t\t{\n\t\t\tSystem.err.println (\"Handling message # \" + ((DispatchMessage) aMessage).sequenceNumber);\n\t\t\tif (((DispatchMessage) aMessage).deferred)\n\t\t\t{\n\t\t\t\tSystem.err.println (\"Deferred message\");\n\t\t\t}\n\t\t\taMessage = ((DispatchMessage) aMessage).object;\n\t\t\t\n\t\t}\n\t\tA_MessageThread theTargetThread = (A_MessageThread) threads.removeTail ();\n\t\ttheTargetThread.setQueued (false);\n\t\ttheTargetThread.handleMessage (aMessage);\n\t}",
"@Override\n public void run() {\n while (queue.num < 100) {\n try {\n queue.producer();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n }",
"private void run()\n\t\t{\n\t\tObjectItemBuf<JobSchedulerMessage> buf =\n\t\t\tObjectBuf.buffer ((JobSchedulerMessage) null);\n\t\tStatus status = null;\n\t\tJobSchedulerMessage message = null;\n\t\tJobFrontendRef frontend = null;\n\n\t\treceiveloop : for (;;)\n\t\t\t{\n\t\t\t// Receive a message from any channel.\n\t\t\ttry\n\t\t\t\t{\n\t\t\t\tstatus = myChannelGroup.receive (null, null, buf);\n\t\t\t\t}\n\t\t\tcatch (ChannelGroupClosedException exc)\n\t\t\t\t{\n\t\t\t\t// Normal termination.\n\t\t\t\tbreak receiveloop;\n\t\t\t\t}\n\t\t\tcatch (Throwable exc)\n\t\t\t\t{\n\t\t\t\tmyLog.log (\"Exception while receiving message\", exc);\n\t\t\t\tbreak receiveloop;\n\t\t\t\t}\n\t\t\tmessage = buf.item;\n\n\t\t\t// Get job frontend proxy associated with channel.\n\t\t\tfrontend = (JobFrontendRef) status.channel.info();\n\n\t\t\t// Process message.\n\t\t\ttry\n\t\t\t\t{\n\t\t\t\tmessage.invoke (this, frontend);\n\t\t\t\t}\n\t\t\tcatch (Throwable exc)\n\t\t\t\t{\n\t\t\t\tmyLog.log (\"Exception while processing message\", exc);\n\t\t\t\t}\n\n\t\t\t// Enable garbage collection of no-longer-needed objects while\n\t\t\t// waiting to receive next message.\n\t\t\tbuf.item = null;\n\t\t\tstatus = null;\n\t\t\tmessage = null;\n\t\t\tfrontend = null;\n\t\t\t}\n\t\t}",
"void recive() throws IOException, TimeoutException, InterruptedException, Exception\n {\n ConnectionFactory connfac = new ConnectionFactory();\n connfac.setHost(hostName);\n connfac.setUsername(\"student\");\n connfac.setPassword(\"cph\");\n \n //make the connection\n Connection conn = connfac.newConnection();\n //make the channel for messaging\n Channel chan = conn.createChannel();\n \n //Declare a queue\n chan.exchangeDeclare(ExchangeName.OUTPUT_LOAN_REQUEST, \"fanout\");\n String queueName = chan.queueDeclare().getQueue();\n chan.queueBind(queueName,ExchangeName.OUTPUT_LOAN_REQUEST,\"\");\n \n\t System.out.println(\" [*] Waiting for messages on \"+ ExchangeName.OUTPUT_LOAN_REQUEST +\". To exit press CTRL+C\");\n \n\t QueueingConsumer consumer = new QueueingConsumer(chan);\n\t chan.basicConsume(queueName, true, consumer);\n\t \n //start polling messages\n\t while (true) {\n\t QueueingConsumer.Delivery delivery = consumer.nextDelivery();\n\t String m = new String(delivery.getBody());\n\t System.out.println(\" [x] Received '\" + m + \"'\");\n Gson gson = new GsonBuilder().create();\n Message fm = gson.fromJson(m, Message.class);\n int creditScore = creditScore(fm.getSsn());\n fm.setCreditScore(creditScore);\n fm.setSsn(fm.getSsn().replace(\"-\", \"\"));\n send(fm);\n \n \n\t }\n \n \n }",
"private void sendMessage()\n\t{\n\t\tfinal String message = messageTextArea.getText(); \n\t\tif(message.length() == 0)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tmessageTextArea.setText(\"\");\n\t\ttry\n\t\t{\n\t\t\teventsBlockingQueue.put(new MessageEvent(message));\n\t\t}\n\t\tcatch (final InterruptedException e1)\n\t\t{\n\t\t}\n\t}",
"public void processMessage(String message);",
"@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\twhile(isrun&&handler!=null){\n\t\t\ttry {\n\t\t\t\tMessage msg=handler.obtainMessage(timeupdate, new Date());\n\t\t\t\thandler.sendMessage(msg);\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public synchronized void bufferMessage() throws Exception\r\n {\r\n\r\n System.out.println(\"BUFFER: Message from future round received. Buffering message.\");\r\n // Wait until node moves to next round.\r\n wait();\r\n\r\n }",
"private synchronized void processMessage(Message m) throws JMSException {\n\n\t\t// get message counter. this value is set by the FailoverQSender.\n\t\tint ct = m.getIntProperty(FailoverQSender.MESSAGE_COUNTER);\n\t\t// log the message\n\t\t//log(\"received message: \" + ct +\", current connected broker: \" + this.getCurrentConnectedBrokerAddress());\n\t\t\n\t\t// saved the data in data holder.\n\t\tdata.addElement(new Integer(ct));\n\t}",
"void onMessageProcessingSuccess(String internalQueueName);",
"@Override\n public void run() {\n Message message = new Message();\n message.what=1;\n handler.sendMessage(message);\n }",
"@Override\n\tpublic void run() {\n\t\twhile (running) {\n\t\t\tif (debug)\n\t\t\t\tSystem.out.println(\"WORKER THREAD \" + threadID + \" Waiting for new task\");\n\n\t\t\t// get the next task from the blocking queue\n\t\t\tSelectionKey newTask = manager.nextTask();\n\n\t\t\t// if(debug)\n\t\t\t// System.out.println(\"Worker Thread \" + threadID + \" received new task\");\n\n\t\t\tif (newTask != null) {\n\t\t\t\tif (debug)\n\t\t\t\t\tSystem.out.println(\"Worker Thread \" + threadID + \" received new task: \" + newTask.toString());\n\t\t\t\tSocketChannel channel = (SocketChannel) newTask.channel();\n\t\t\t\tByteBuffer buffer = ByteBuffer.allocate(8000);\n\t\t\t\ttry {\n\t\t\t\t\tchannel.read(buffer);\n\t\t\t\t\tbyte[] packet = buffer.array();\n\t\t\t\t\tif (debug)\n\t\t\t\t\t\tSystem.out.println(\"Worker Thread \" + threadID + \" received new message: \" + packet.toString());\n\t\t\t\t\tMessage message = Serializer.deserializeMessage(packet);\n\t\t\t\t\tif (debug)\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Worker Thread \" + threadID + \" received new message: \" + message.toString());\n\t\t\t\t\tString messageCode = message.getType();\n\t\t\t\t\tbuffer.flip();\n\t\t\t\t\tbuffer.clear();\n\t\t\t\t\tnewTask.interestOps(SelectionKey.OP_WRITE);\n\t\t\t\t\tswitch (messageCode) {\n\t\t\t\t\t/**\n\t\t\t\t\t * This switch statement should be the only thing that has to get edited from\n\t\t\t\t\t * here on out. When we want to add functionality, it should always either be\n\t\t\t\t\t * adding a new case, if a new wireform is needed, or by altering code in the\n\t\t\t\t\t * case of the message being responded to.\n\t\t\t\t\t */\n\t\t\t\t\tcase (USER_REGISTRATION): {\n\t\t\t\t\t\tUserRegistration registrationMessage = (UserRegistration) message;\n\t\t\t\t\t\tString username = registrationMessage.getUsername();\n\t\t\t\t\t\tString password = registrationMessage.getPasswordHash();\n\n\t\t\t\t\t\tboolean created = sql.addUser(new Account(username, password));\n\t\t\t\t\t\tMessage outgoing = null;\n\n\t\t\t\t\t\tif (created) {\n\t\t\t\t\t\t\toutgoing = new UserRegistrationResponse(true, \"User was created successfully\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\toutgoing = new UserRegistrationResponse(false,\n\t\t\t\t\t\t\t\t\t\"Most likely a duplicated username, could also be a failed SQL connection\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsend(outgoing, buffer, channel, debug);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase (USER_LOGON): {\n\t\t\t\t\t\tUserLogon logonMessage = (UserLogon) message;\n\n\t\t\t\t\t\tString username = logonMessage.getUsername();\n\t\t\t\t\t\tString password = logonMessage.getPasswordHash();\n\t\t\t\t\t\t// Returns true if the user is validated\n\t\t\t\t\t\tboolean loggedIn = sql.checkLogin(username, password);\n\t\t\t\t\t\tMessage outgoing = null;\n\n\t\t\t\t\t\tif (loggedIn) {\n\t\t\t\t\t\t\tAccount acc = sql.getAccount(username, password);\n\t\t\t\t\t\t\toutgoing = new UserLogonResponse(true, \"User was verified and logged in\", acc);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\toutgoing = new UserLogonResponse(false, \"User was not Verified.\", null);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Outgoing is the reply to the client program\n\t\t\t\t\t\tsend(outgoing, buffer, channel, debug);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase (RECORDS_REQUEST): {\n\t\t\t\t\t\tRecordsRequest requestMessage = (RecordsRequest) message;\n\t\t\t\t\t\tString requestUser = requestMessage.getUsername();\n\n\t\t\t\t\t\t// done, but relies on methods that are themselves TODO\n\t\t\t\t\t\tAccount update = sql.getAccount(requestUser);\n\t\t\t\t\t\tSystem.out.println(\"ACC: \" + update.getUsername());\n\t\t\t\t\t\tList<Game> games = sql.getGames(update);\n\n\t\t\t\t\t\tfor (Game g : games) {\n\t\t\t\t\t\t\tSystem.out.println(g.toString());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tsend(new RecordsRequestResponse(games, update), buffer, channel, debug);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase (CREATE_INVITATION): {\n\t\t\t\t\t\tCreateInvitation inviteMessage = (CreateInvitation) message;\n\t\t\t\t\t\tString inviter = inviteMessage.getInviter();\n\t\t\t\t\t\tString invitee = inviteMessage.getInvitee();\n\n\t\t\t\t\t\tAccount inviteeAccount = sql.getAccount(invitee);\n\t\t\t\t\t\tinviteeAccount.addInvite(new Invitation(inviter, invitee));\n\t\t\t\t\t\tsql.setAccount(inviteeAccount);\n\n\t\t\t\t\t\tsend(new CreateInvitationResponse(true, \"Invitation Sent\"), buffer, channel, debug);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase (RESPOND_TO_INVITATION): {\n\t\t\t\t\t\tRespondToInvitation respondMessage = (RespondToInvitation) message;\n\t\t\t\t\t\tInvitation acceptedInvite = respondMessage.getInvitation();\n\t\t\t\t\t\tString recipient = acceptedInvite.getRecipient();\n\t\t\t\t\t\tString sender = acceptedInvite.getSender();\n\t\t\t\t\t\tAccount updateRecipient = sql.getAccount(recipient);\n\t\t\t\t\t\tAccount updateSender = sql.getAccount(sender);\n\n\t\t\t\t\t\tif (updateRecipient.getInvites().remove(acceptedInvite)) {\n\t\t\t\t\t\t\tSystem.out.println(\"----------------------------- Removed invite from account: \" + updateRecipient.getUsername());\n\t\t\t\t\t\t\tsql.setAccount(updateRecipient);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (respondMessage.isAccept()) {\n\t\t\t\t\t\t\tPlayer attacker = new Player(updateSender, \"black\");\n\t\t\t\t\t\t\tPlayer defender = new Player(updateRecipient, \"white\");\n\n\t\t\t\t\t\t\tupdateSender.addPlayer(attacker);\n\t\t\t\t\t\t\tupdateRecipient.addPlayer(defender);\n\n\t\t\t\t\t\t\tsql.setAccount(updateSender);\n\t\t\t\t\t\t\tsql.setAccount(updateRecipient);\n\n\t\t\t\t\t\t\tGame g1 = new Game(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\").toString(), attacker,\n\t\t\t\t\t\t\t\t\tdefender);\n\t\t\t\t\t\t\tsql.addGame(sender, recipient, g1);\n\n\t\t\t\t\t\t\tsend(new RespondToInvitationResponse(true, \"Game Added to Account\"), buffer, channel,\n\t\t\t\t\t\t\t\t\tdebug);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsend(new RespondToInvitationResponse(true, \"Invited Rejected\"), buffer, channel, debug);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase (SUBMIT_MOVE): {\n\t\t\t\t\t\tSubmitMove moveMessage = (SubmitMove) message;\n\t\t\t\t\t\tGame gameUpdate = moveMessage.getGameUpdate();\n\t\t\t\t\t\tGame oldGame = sql.getGame(gameUpdate.getAttacker(), gameUpdate.getDefender());\n\n\t\t\t\t\t\tGameResult status;\n\t\t\t\t\t\tif(gameUpdate.getResult() ==GameResult.CONTINUE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tgameUpdate = rules.processCaptures(oldGame, gameUpdate);\n\t\t\t\t\t\t\tstatus = rules.gameHasEnded(gameUpdate);\n\t\t\t\t\t\t\tgameUpdate.setResult(status);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tstatus = gameUpdate.getResult();\n\t\t\t\t\t\tif (status != GameResult.CONTINUE) {\n\t\t\t\t\t\t\tgameUpdate.setEndTime(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\").toString());\n\t\t\t\t\t\t\tAccount defender = gameUpdate.getDefender().getAccount();\n\t\t\t\t\t\t\tAccount attacker = gameUpdate.getAttacker().getAccount();\n\t\t\t\t\t\t\tif (status == GameResult.WHITE) {\n\t\t\t\t\t\t\t\tattacker.getStats().addLoss();\n\t\t\t\t\t\t\t\tdefender.getStats().addWin();\n\t\t\t\t\t\t\t} else if (status == GameResult.BLACK) {\n\t\t\t\t\t\t\t\tattacker.getStats().addWin();\n\t\t\t\t\t\t\t\tdefender.getStats().addLoss();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tattacker.getStats().addLoss();\n\t\t\t\t\t\t\t\tdefender.getStats().addLoss();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsql.setAccount(defender);\n\t\t\t\t\t\t\tsql.setAccount(attacker);\n\t\t\t\t\t\t\tsql.deleteGame(attacker, defender);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\tgameUpdate.changeTurns();\n\t\t\t\t\t\tsql.updateGame(gameUpdate.getAttacker(), gameUpdate.getDefender(), gameUpdate);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsend(new SubmitMoveResponse(true, \"Move Submitted\"), buffer, channel, debug);\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tbuffer.flip();\n\t\t\t\t\tbuffer.clear();\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tnewTask.cancel();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchannel.close();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnewTask.interestOps(SelectionKey.OP_READ);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"THREAD \" + threadID + \" terminating\");\n\t}",
"protected abstract long waitOnQueue();",
"public Message receiveMessage() {\r\n\t\treturn messages.poll();\r\n\t}",
"public void loop() {\n try {\n Mail<T> mail = mailBox.remove();\n\n actor.setSender(mail.getSender());\n actor.receive(mail.getMessage());\n } catch (InterruptedException e) {\n }\n }",
"public void queueMessage(ByteBuffer bb) {\n\t\tqueue.add(bb);\n\t\tprocessOut();\n\t\tupdateInterestOps();\n\t}",
"public void enqueue(Message msg){\n\t\tqueue.add(msg);\n\t}",
"@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tproduce();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void run()\r\n {\r\n System.out.println(\"I am here\");\r\n while (_keepGoing && datagramSocket!=null)\r\n {\r\n DatagramPacket packet = null;\r\n try { packet = getMessage(); }\r\n catch (Exception e) { /* ignore */ }\r\n if (packet == null) continue;\r\n\r\n String message = new String( packet.getData(), 0, packet.getLength(), UTF_16BE);\r\n System.out.println(\"Message :\"+message);\r\n InetAddress senderAddress = packet.getAddress();\r\n int senderPort = packet.getPort();\r\n\r\n if (_processor!=null)\r\n _processor.process(message, senderAddress, senderPort);\r\n }\r\n }",
"public void onMessage(Message msg) {\n try {\r\n synchronized (threadWaitLock) {\r\n // Increment the counter\r\n ++messagesReceived;\r\n\r\n // Display the message that just arrived\r\n DisplayMessage(msg);\r\n\r\n // Notify main thread we've received a message\r\n threadWaitLock.notify();\r\n\r\n // Sleep for a while to allow the user to see the output on the screen\r\n Thread.sleep(Options.Interval.ValueAsNumber() * 1000);\r\n }\r\n } // end try\r\n catch (Exception e) {\r\n System.out.println(\"Exception caught in onMessage():\\n\" + e);\r\n // We have atleast two choices now - (1) rethrow the exception. In this case the\r\n // control passes back to JMS client and which may attempt to redeliver the message,\r\n // depending on session's acknowledge mode, or (2) terminate the process.\r\n // Orthogonally, we may divert the message to an application-specific destination.\r\n\r\n // Terminate the current process\r\n System.exit(-1);\r\n }\r\n return;\r\n }",
"private void receiveMessage() {\n ParseQuery<ParseObject> refreshQuery = ParseQuery.getQuery(\"Group\");\n\n refreshQuery.getInBackground(mGroupId, new GetCallback<ParseObject>() {\n @Override\n public void done(ParseObject parseObject, ParseException e) {\n if (e == null) {\n chatMessageArray = parseObject.getList(\"groupMessageArray\");\n\n messageArrayList.clear();\n messageArrayList.addAll(chatMessageArray);\n chatListAdapter.notifyDataSetChanged();\n chatLV.invalidate();\n } else {\n System.out.println(e.getMessage());\n }\n }\n });\n }",
"final public void run() {\n connectionEstablished();\n\n // The message from the server\n int msg;\n\n // Loop waiting for data\n\n try {\n // messageTimer.schedule(new TimerTask() {\n // @Override\n // public void run() {\n // try {\n // sendFromMessageQueue();\n // } catch (IOException e) {}\n // }\n // }, 0, 100);\n while (!readyToStop) {\n // Get data from Server and send it to the handler\n // The thread waits indefinitely at the following\n // statement until something is received from the server\n\n try { // added in version 2.31\n\n // String cur = input.readLine();\n // handleBig5String(cur + \"\\n\");\n readByte();\n\n } catch (RuntimeException ex) { // thrown by handleMessageFromServer\n\n connectionException(ex);\n }\n }\n } catch (Exception exception) {\n if (!readyToStop) {\n try {\n closeAll();\n } catch (Exception ex) {\n }\n\n clientReader = null;\n connectionException(exception);\n }\n } finally {\n\n clientReader = null;\n connectionClosed(); // moved here in version 2.31\n }\n }",
"private void processMessageQueue(){\n\t\tKIDSGUIAlert m = null;\n\t\tStringBuilder newText = new StringBuilder(logLines.getText());\n\t\twhile ((m = this.logMessages.poll()) != null){\n\t\t\tnewText.append(String.format(\"%s\\n\", m.toString()));\n\t\t}\n\t\tlogLines.setText(newText.toString());\n\t}",
"private void publishMessage() throws InterruptedException {\n\t\tDatagramPacket[] packets = moveReceivedPacketsToArray();\r\n\t\t// get packet info\r\n\t\tDatagramPacket packet = packets[0];\r\n\t\tbyte[] packetData = packet.getData();\r\n\t\tbyte[] topicNumberInBytes = new byte[4];\r\n\t\tfor (int index = 2; index < 6; index++) {\r\n\t\t\ttopicNumberInBytes[index - 2] = packetData[index];\r\n\t\t}\r\n\t\tByteBuffer wrapped = ByteBuffer.wrap(topicNumberInBytes);\r\n\t\tint topicNumber = wrapped.getInt();\r\n\r\n\t\t// check if the topic exists\r\n\t\tif (topicNumbers.containsKey(topicNumber)) {\r\n\t\t\tString topicName = topicNumbers.get(topicNumber);\r\n\t\t\tif (subscriberMap.containsKey(topicName)) {\r\n\t\t\t\tArrayList<Integer> topicSubscribers = subscriberMap.get(topicName);\r\n\t\t\t\tfor (int index = 0; index < topicSubscribers.size(); index++) {\r\n\t\t\t\t\t// make an array\r\n\t\t\t\t\tDatagramPacket[] packetsToSendToSub = new DatagramPacket[packets.length];\r\n\t\t\t\t\t// change the destination of all the packets\r\n\t\t\t\t\tfor (int i = 0; i < packets.length; i++) {\r\n\t\t\t\t\t\tDatagramPacket tempPacket = packets[i];\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * String pubMessage = processMessageFromPacket(tempPacket); byte[]\r\n\t\t\t\t\t\t * messagePacketBytes = createPacketData(Constants.PUBLICATION, message[2],\r\n\t\t\t\t\t\t * topicNumber, pubMessage.getBytes()); byte[] packetContent =\r\n\t\t\t\t\t\t * tempPacket.getData();\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tInetSocketAddress subAddress = new InetSocketAddress(Constants.DEFAULT_DST_NODE,\r\n\t\t\t\t\t\t\t\ttopicSubscribers.get(index));\r\n\t\t\t\t\t\ttempPacket.setSocketAddress(subAddress);\r\n\t\t\t\t\t\tpacketsToSendToSub[i] = tempPacket;\r\n\t\t\t\t\t}\r\n\t\t\t\t\taddItemsToQueue(packetsToSendToSub);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void run() {\n synchronized(target) { // synchronized block 同步块 //锁住target\n target.call(msg);\n }\n }",
"void runQueue();",
"@Override\n public void run() {\n Message message = new Message();\n message.what = 4;\n handler.sendMessage(message);\n }",
"public Message<?> receiveSelected(MessageSelector selector) {\n Object[] array = this.queue.toArray();\n for (Object o : array) {\n Message<?> message = (Message<?>) o;\n if (selector.accept(message) && this.queue.remove(message)) {\n return message;\n }\n }\n \n return null;\n }",
"@Override\n public void run() {\n //gets messages\n byte[] b = new byte[65000];\n try {\n multicastSocket = new MulticastSocket(mcastPort);\n multicastSocket.joinGroup(InetAddress.getByName(mscastAdress));\n\n while (true) {\n try {\n DatagramPacket received = new DatagramPacket(b, b.length);\n multicastSocket.receive(received);\n DealWithPacketBackup deal = new DealWithPacketBackup(received , multicastSocket , Peer.getPeerId());\n Peer.getExecutor().execute(deal);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void run()\r\n {\r\n\t\tconsume();\r\n }",
"@Override\r\n\tpublic void run() {\n\t\twhile(true) {\r\n\t\t\tfor(String data:queueData) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public void run() {\n while (isRun) {\n try {\n Thread.sleep(1000); // sleep 1000ms\n Message message = Message.obtain();\n message.what = 1;\n handler.sendMessage(message);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"public void sendBack(SelectionKey key, String message) {\r\n\t\tsocketChannel = (SocketChannel) key.channel(); \r\n\t\tmessage += \"\\r\\n\";\r\n\t\tbuffer = CharBuffer.wrap(message);\r\n\t\twhile (buffer.hasRemaining()) {\r\n\t\t\ttry {\r\n\t\t\t\tsocketChannel.write(Charset.defaultCharset().encode(buffer));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tLong x = System.nanoTime();\r\n\t\tserviceTime = x - pollTime;\r\n\t\tresponseTime = x - currentJob.queueEntranceTime;\r\n\t\ttimeInSystem = x - currentJob.timeOfArrival;\r\n\t\t\r\n\t\ttimes.add(myNumber + \"\\t\" + type + \"\\t\" + queueTime + \"\\t\" + workerTime +\"\\t\" + processingTime +\"\\t\" + serviceTime +\"\\t\" + responseTime +\"\\t\" + timeInSystem );\r\n\t\tnumOfRequests.incrementAndGet();\r\n\t\tmyNumOfRequests++;\r\n\t}",
"private void startConsumeMsg() {\n try {\n ConsumerRecords<byte[], byte[]> records;\n while (true) {\n records = kafkaConsumer.poll(Long.MAX_VALUE);\n for (ConsumerRecord<byte[], byte[]> record : records) {\n processMsg(record);\n kafkaConsumer.commitSync();\n LOG.info(\"Single consumer consume the message {}th\", counter.incrementAndGet());\n }\n\n }\n } catch (Exception ex) {\n LOG.error(\"Consumer get message error {}\", ex);\n } finally {\n LOG.info(\"Shutting down consumer ...\");\n shutdown();\n }\n }",
"public void run()\n\t{\n\t\t// while we have this stream\n\t\twhile(m_keyboardStream != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// only if someone is requesting us to read do we do so...\n\t\t\t\tif (m_keyboardReadRequest)\n\t\t\t\t{\n\t\t\t\t\t// block on keyboard input and put it onto the end of the queue\n\t\t\t\t\tString s = m_keyboardStream.readLine();\n\t\t\t\t\tm_keyboardInput.add(s);\n\n\t\t\t\t\t// fullfilled request, now notify blocking thread.\n\t\t\t\t\tm_keyboardReadRequest = false;\n\t\t\t\t\tsynchronized(this) { notifyAll(); }\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttry { Thread.sleep(50); } catch(InterruptedException ie) {}\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n//\t\t\t\tio.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private synchronized Message popMessage() throws InterruptedException {\n log.trace(\"MessageListenerImpl.popMessage() start ...\");\n notify();\n while (!messagesAvail()) {\n log.info(\"MessageListenerImpl.popMessage() messages not available. Wait...\");\n wait();\n }\n log.trace(\"MessageListenerImpl.popMessage() continuing ...\");\n Message message;\n synchronized(messages) {\n message = (Message) messages.get(0);\n log.debug(\"MessageListenerImpl.popMessage() retrieved \" + message.getDestinationState().name + \" state.\");\n log.trace(\"MessageListenerImpl.popMessage() Before size=\" + messages.size() + \".\");\n messages.remove(0);\n }\n\n log.trace(\"MessageListenerImpl.popMessage() After size=\" + messages.size() + \".\");\n log.trace(\"MessageListenerImpl.popMessage() ... end\");\n return message;\n }",
"private void writeNextMessageInQueue() {\n // This should not happen in practice since this method is private and should only be called\n // for a non-empty queue.\n if (mMessageQueue.isEmpty()) {\n Log.e(TAG, \"Call to write next message in queue, but the message queue is empty.\");\n return;\n }\n\n if (mMessageQueue.size() == 1) {\n writeValueAndNotify(mMessageQueue.remove().toByteArray());\n return;\n }\n\n mHandler.post(mSendMessageWithTimeoutRunnable);\n }",
"public Message receive() {\n\t\t\n\t\tsynchronized(recvQueue) {\n\t\t\tif(!recvQueue.isEmpty()) {\n\t\t\t\tMessage popMsg = recvQueue.remove();\n\t\t\t\t/* add ClockService */\n\t\t\t\tTimeStampedMessage msg = (TimeStampedMessage)popMsg;\n//System.out.println(\"new Debug sentence\");\n//msg.dumpMsg();\n\t\t\t\tthis.clockSer.updateTS(msg.getMsgTS());\n\t\t\t\tthis.clockSer.addTS(this.localName);\n\t\t\t\t/* */\n\n\t\t\t\treturn popMsg;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"void consumeMessage(String message);",
"public DatagramPacket receive() {\n\t\treturn messageQueue.poll();\n\t}",
"private void extractProcessMessagesFromBufferIntoQueue(ByteBuffer byteBuffer){\n // when this function is called, byte buffer is ready for being read\n // i.e. position should point to the last byte written\n ProcessMessage procMsg;\n while((procMsg = extractProcessMessageFromByteBuffer(byteBuffer)) != null){\n // put procMsg into queue\n receivedMessagesQueue.add(procMsg);\n }\n\n // compact buffer for further reading new data\n byteBuffer.compact();\n\n }",
"@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"AddToQueue Thread Running\");\n\t\t//Create passenger creator\n\t\tCreatePassenger creator = new CreatePassenger();\n\t\t//Start time\n\t\tint start = LocalDateTime.now().getSecond();\n\t\tint time = 0;\n\t\tcounter = 0;\n\t\t//Loop until counter reaches max passengers or time equals max time\n\t\twhile(counter <= MAX_PASSENGERS && time < MAX_TIME) {\n\t\t\t//Create new passenger\n\t\t\tPassenger arrived = creator.create();\n\t\t\t//Add passenger to order array\n\t\t\tthis.arrivedAdd(arrived);\n\t\t\t//Clear line\n\t\t\tSystem.out.print(\"\\033[2K\");\n\t\t\t//Add passenger to queue\n\t\t\tqueue.offer(arrived);\n\t\t\t//Incremement counter\n\t\t\tcounter++;\n\t\t\t//Print out new queue\n\t\t\tSystem.out.print(\"\\r\" + queue);\n\t\t\tint now = LocalDateTime.now().getSecond();\n\t\t\tif(now >= start) {\n\t\t\t\t\ttime = now - start;\n\t\t\t} else {\n\t\t\t\ttime = (now + 59) - start;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(300); \n\t\t\t} catch(InterruptedException e) {\n\t\t\t\tSystem.out.println(\"Error! Thread was interrupted!\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"abstract protected void receiveMessage(Message m);",
"private void receiveMessage() throws InterruptedException {\n Map<Integer, Integer> transTimeMap = new HashMap<>();\n for (int i = 0; i < incomingLinks.size(); i++) {\n int transTime= new Random().nextInt(11);\n transTimeMap.put(i, transTime);\n }\n\n // Sort the random transmission time for the message in the channel.\n List<Map.Entry<Integer, Integer>> timeInfo = new ArrayList<>(transTimeMap.entrySet());\n timeInfo.sort((t1, t2) -> t1.getValue() - t2.getValue());\n\n int time = 0;\n for(int i = 0; i < timeInfo.size(); i++) {\n int index = timeInfo.get(i).getKey();\n int value = timeInfo.get(i).getValue();\n\n // After transmission time units, receive the message.\n Thread.sleep((value - time) * timeUnit);\n time += value - time;\n Message message = incomingLinks.get(index).receive();\n\n\n if (message != null) {\n String type = message.type;\n if (type.equals(\"init\")) {\n // If the process receives a larger id, it let the sender as its parent and broadcast this new\n // max id to all its neighbor except for its new parent.\n if (this.maxId < message.maxId) {\n this.maxId = message.maxId;\n this.parent = message.uid;\n this.listOfChild.clear();\n broadcast(new Message(this.uid, this.maxId, \"init\"), this.parent);\n numOfAck = 0;\n //If the process receives a smaller id, it will reply the sender a nack message.\n } else {\n sendTo(new Message(this.uid, message.maxId, \"nack\"), message.uid);\n }\n } else if (type.equals(\"ack\")) {\n // After receiving the ack message, it adds the number of ack and let the sender as its child.\n if (this.maxId == message.maxId) {\n numOfAck++;\n listOfChild.add(message.uid);\n }\n } else if (type.equals(\"nack\")) {\n // After receiving the nack message, it adds the number of ack.\n if (this.maxId == message.maxId) {\n numOfAck++;\n }\n }\n }\n }\n checkResult();\n }",
"@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\ttry {\n\t\t\tSystem.out.println(\"run\");\n\t\t\tsleep(2000);\n\t\t\tcontrol_device.publish(\"nct_control_\"+this.did, (this.msg).getBytes(), 0, true);\n\t\t\tSystem.out.println(\"done\");\n\t\t} catch (MqttPersistenceException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (MqttException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tisTaken = true;\n\t\t}",
"public void run(){\r\n TaggedData d;\r\n try{\r\n dos = new DataOutputStream(new BufferedOutputStream(socket.getOutputStream()));\r\n while(true){\r\n synchronized(sendLock){\r\n if(queue.size() <= 0) sendLock.wait();\r\n try{ d = queue.removeLast(); }\r\n catch(NoSuchElementException e){ d = null; }\r\n }\r\n if(quit){\r\n cleanup();\r\n break;\r\n }\r\n if(d != null) send(d);\r\n }\r\n }\r\n catch(InterruptedException ie){ ie.printStackTrace(); cleanup(false); } // for now\r\n catch(IOException ioe){ ioe.printStackTrace(); cleanup(false); }\r\n finally{ cleanup(false); }\r\n \r\n if(dos != null){\r\n try{ dos.close(); } catch(IOException ioe){ ioe.printStackTrace(); }\r\n dos = null;\r\n }\r\n }",
"@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }",
"@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }",
"@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }",
"@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }",
"public void processMessage()\n {\n \tif(messageContents.getMessage().containsCommand())\n {\n \tCommand command = new Command(messageContents);\n CommandProcessor commandProcessor = new CommandProcessor(joeBot, command);\n commandProcessor.processCommand();\n }\n else\n {\n Speech speech = new Speech(messageContents);\n SpeechProcessor speechProcessor = new SpeechProcessor(joeBot, speech);\n speechProcessor.processSpeech();\n }\n }",
"@Test\n\tpublic void sendMessage() {\n\n\t\tExecutorService executorService = Executors.newFixedThreadPool(1);\n\t\tCountDownLatch endSignal = new CountDownLatch(100);\n\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tfinal int num = i;\n\t\t\t// Runnable run;\n\t\t\texecutorService.execute(() -> {\n\t\t\t\ttry {\n\t\t\t\t\tmessageSender = new MessageSender();\n\t\t\t\t\tmessageSender.sendMessage(\"bitchin' badass\" + num);\n\t\t\t\t\tendSignal.countDown();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"exception\", e);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\ttry {\n\t\t\tendSignal.await();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tmessageSender.closeAll();\n\n\t\t}\n\t\texecutorService.shutdown();\n\n\n\t\tval consumeFlag = messageConsumer.consume(\"trans_logs_record\");\n\n\t\ttry {\n\t\t\tThread.sleep(5000l);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tAssert.assertEquals(true, consumeFlag);\n\n\t}"
] |
[
"0.71671057",
"0.7121475",
"0.6976647",
"0.67578036",
"0.6721035",
"0.6606733",
"0.6581826",
"0.6580705",
"0.6505998",
"0.648625",
"0.64533556",
"0.6413352",
"0.64098024",
"0.63655907",
"0.6365335",
"0.62452245",
"0.6227163",
"0.62117445",
"0.6184111",
"0.6163624",
"0.61622834",
"0.6157637",
"0.6153934",
"0.61506563",
"0.61491334",
"0.61469036",
"0.6119872",
"0.61191505",
"0.61106914",
"0.61096877",
"0.6097339",
"0.6091417",
"0.60906875",
"0.6075881",
"0.60702264",
"0.6069082",
"0.606814",
"0.6066361",
"0.6063177",
"0.60534835",
"0.60514253",
"0.6040549",
"0.6034705",
"0.6031287",
"0.60259664",
"0.6022668",
"0.6019366",
"0.6016324",
"0.5995486",
"0.59938496",
"0.59765697",
"0.59568393",
"0.5956171",
"0.5948686",
"0.5948001",
"0.59409344",
"0.5935181",
"0.59254074",
"0.5922522",
"0.591924",
"0.59103805",
"0.59044003",
"0.5903226",
"0.59024656",
"0.5902172",
"0.58973557",
"0.5895265",
"0.5892141",
"0.5888083",
"0.58868676",
"0.58817047",
"0.5877548",
"0.5876483",
"0.58746445",
"0.5873639",
"0.5870166",
"0.58623075",
"0.58546036",
"0.58508176",
"0.5849231",
"0.5848509",
"0.5848049",
"0.5846763",
"0.58454263",
"0.5839707",
"0.58387285",
"0.583716",
"0.5837006",
"0.5829063",
"0.58217996",
"0.5818979",
"0.58087164",
"0.5802172",
"0.57984",
"0.57945895",
"0.57919943",
"0.57919943",
"0.57919943",
"0.57919943",
"0.57864416",
"0.57806456"
] |
0.0
|
-1
|
todo: check if exists
|
public Appointment addAppointment(Appointment appointment) {
return appointmentRepository.save(appointment);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void exist() {\n\t\t\n\t}",
"@Override\r\n\tpublic boolean isExist() {\n\t\treturn false;\r\n\t}",
"public abstract boolean doesExist();",
"@Override\r\n\tpublic boolean exists() {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean exists() {\n\t\treturn false;\n\t}",
"public abstract boolean exists();",
"boolean hasExists();",
"@Override\n\tpublic boolean exists(String arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isExist(String name) {\n\t\treturn false;\n\t}",
"boolean exists();",
"boolean exists();",
"public boolean exist() {\n\t\treturn false;\n\t}",
"public boolean exists()\n\t{\n\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean isExisting() {\n\t\treturn false;\r\n\t}",
"public abstract boolean exists() throws AccessException;",
"public abstract boolean exists() throws VlException;",
"@Override\n public boolean isExist(Object o) {\n return true;\n }",
"boolean getExists();",
"boolean getIfNotExist();",
"boolean getIfNotExist();",
"abstract public boolean exists() throws VlException;",
"@Override\n public boolean exists()\n {\n return orig.exists();\n }",
"@Override\r\n\tpublic boolean exists(String id) {\n\t\treturn false;\r\n\t}",
"public boolean getExists();",
"@Override\npublic boolean existsById(String id) {\n\treturn false;\n}",
"@Override\n public boolean exists(File file) {\n\treturn false;\n }",
"@Override\r\n\tpublic boolean exists(Long arg0) {\n\t\treturn false;\r\n\t}",
"boolean _non_existent();",
"@Override\n\tpublic boolean exists(Long arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean exists(Long arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean exists(Long arg0) {\n\t\treturn false;\n\t}",
"ExistsOper createExistsOper();",
"@Override\r\n\tpublic boolean exists(Integer arg0) {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean exists(Integer arg0) {\n\t\treturn false;\n\t}",
"@Override\n public boolean exists(Long id) {\n return false;\n }",
"@Override\n public boolean exists(Long id) {\n return false;\n }",
"@Override\n\tprotected boolean itemExists() {\n\t\treturn false;\n\t}",
"boolean exists(Curso curso) throws BusinessException;",
"@Override\n\tprotected boolean isExist(AbnormalDevice record) {\n\t\treturn false;\n\t}",
"public boolean exists(String name) throws IOException;",
"@Override\n\tpublic void visitXexists(Xexists p) {\n\n\t}",
"private void foundNonExistent() {\n\t\tstate = BridgeState.NON_EXISTENT;\n\t}",
"@Override\n\tpublic boolean existId(String id) {\n\t\treturn false;\n\t}",
"public boolean exists(String arg0) {\n\t\treturn false;\n\t}",
"public boolean exists(String arg0) {\n\t\treturn false;\n\t}",
"public boolean exists(String arg0) {\n\t\treturn false;\n\t}",
"@Test\n @Ignore\n public void testExists() throws Exception {\n System.out.println(\"exists\");\n Identifier identifier = null;\n IndexDaoImpl instance = null;\n boolean expResult = false;\n boolean result = instance.exists(identifier);\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 }",
"@java.lang.Override\n public boolean getExists() {\n return exists_;\n }",
"public boolean exists (java.lang.String userClassName) { throw new RuntimeException(); }",
"Object getTargetexists();",
"@java.lang.Override\n public boolean getExists() {\n return exists_;\n }",
"boolean existsByName(String name);",
"public abstract boolean isNatureExist(long id);",
"public boolean isExist(Serializable id);",
"public boolean exists(String id) {\n\t\treturn false;\n\t}",
"@Override\n public boolean contains(final String id) {\n return sidecarFile(id).exists();\n }",
"@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}",
"boolean nameExists(Key name);",
"abstract public boolean exists( String path )\r\n throws Exception;",
"public boolean isExists() {\n\t\treturn exists();\n\t}",
"@Override\n\tpublic Boolean exists(Integer id) {\n\t\treturn null;\n\t}",
"protected boolean Exists()\n\t{\n\t\tif (identity<1) return false;\n\t\tNodeReference nodeReference = getNodeReference();\n\t\treturn (nodeReference.exists() || nodeReference.hasSubnodes());\n\t}",
"@Override\r\n\tpublic boolean itemExists(String absPath) throws RepositoryException {\n\t\treturn false;\r\n\t}",
"private boolean isIndexExist(int index) {\n return index >= 0 && index < size();\n }",
"@Override\n\tpublic boolean existsById(UUID id) {\n\t\treturn false;\n\t}",
"boolean exists(String label) throws IOException;",
"@Override\n\tpublic boolean exists(String msgid) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean existsById(Integer id) {\n\t\treturn false;\n\t}",
"public boolean isExisting() throws Exception\r\n\t\t{\r\n\t\tRouteGroup myR = (RouteGroup) myRouteGroup.get();\r\n\t\tthis.UUID = myR.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}",
"@Override\n\tpublic synchronized boolean exists(String key) {\n\t\treturn getFile(key).exists();\n\t}",
"public boolean exists( Integer idConge ) ;",
"public abstract boolean oidExists(String oid);",
"@Override\n\tpublic boolean exists() {\n\t\treturn Files.exists(this.path);\n\t}",
"public static boolean exists(){\n \t\treturn everbie != null;\n \t}",
"private synchronized boolean existeIndice() {\r\n\t\tboolean indiceExiste = new File(pastaDoIndice, \"segments.gen\")\r\n\t\t\t\t.exists();\r\n\r\n\t\treturn indiceExiste;\r\n\t}",
"private boolean existsSubResource()\r\n {\r\n return ((subResource_ != null) && subResource_.exists());\r\n }",
"public boolean exists( Conge conge ) ;",
"public boolean existsInstance(String name)\r\n\t{\r\n\t\treturn obtainOntResource(name) != null;\r\n\t}",
"@Override\r\n\tpublic boolean nodeExists(String absPath) throws RepositoryException {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean exists(T key) {\r\n\t\treturn existsRec(raiz, key);\r\n\t}",
"public boolean sourceExists(String name) {\n \treturn mTemplates.containsKey(name);\n }",
"Object getPropertyexists();",
"public boolean doesDataExist(String repository,String id){\n boolean result = true;\n\n //Check if the repository is there\n HashMap<String,Data> repositoryData = storage.get(repository);\n\n if(repositoryData!=null){\n\n //Try to get the data with that id\n Data temp = repositoryData.get(id);\n\n if(temp==null){\n //Object doesn't exist\n result = false;\n }\n\n } else {\n //Repository doesn't exist\n result = false;\n }\n\n return result;\n }",
"@SuppressWarnings(\"unchecked\")\n public boolean stillExists(Object obj) {\n \treturn true;\n }",
"public boolean exist(String fileName) throws DataAccessException;",
"@Override\n\tpublic boolean resourceExist(URI uri) throws StorageSecuirtyException {\n\t\treturn false;\n\t}",
"public Boolean isExist() {\n\t\tif(pfDir.exists())\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean isIsExist() {\n return isExist;\n }",
"@Override\n\tpublic boolean pathExists(String path) {\n\t\treturn false;\n\t}",
"public boolean exists(String id);",
"public boolean fileExists(Context context, String filename)\r\n{\r\n File file = context.getFileStreamPath(filename);\r\n if(file == null || !file.exists())\r\n {\r\n return false;\r\n }\r\nreturn true;\r\n}",
"public boolean check_ab_exist(String ab_name){\n if(ab_store.get(ab_name) != null)\n return true;\n else\n return false;\n }",
"boolean hasFileLoc();",
"private static boolean checkCwpNameExists(String name, Object value) {\r\n\t\tList<?> boIds = QueryUtil.executeQuery(\r\n\t\t\t\t\"select bo.id from \" + Cwp.class.getSimpleName() + \" bo\", null, new FilterParams(\r\n\t\t\t\t\t\tname, value), AhRestoreNewMapTools.getonlyDomain().getId());\r\n\t\treturn !boIds.isEmpty();\r\n\t}",
"public boolean _non_existent() {\n return false;\n }",
"public void testExistsSyn() {\n\n String\tsql\t= \"SELECT t.AD_Table_ID, t.TableName \" + \"FROM AD_Table t \" + \"WHERE EXISTS (SELECT * FROM AD_Column c WHERE t.AD_Table_ID=c.AD_Table_ID)\";\n AccessSqlParser\tfixture\t= new AccessSqlParser(sql);\n\n assertEquals(\"AccessSqlParser[AD_Column=c|AD_Table=t|1]\", fixture.toString());\n }",
"boolean existsByNameAndId(String name, int id);",
"public boolean doesIDExist(String id)\n {\n return idReferences.containsKey(id);\n }",
"@Override\n\tpublic void visit(ExistsExpression arg0) {\n\t\t\n\t}",
"@Override\n\tpublic <S extends Translator> boolean exists(Example<S> example) {\n\t\treturn false;\n\t}"
] |
[
"0.72057676",
"0.6870053",
"0.67516345",
"0.6744181",
"0.6710996",
"0.669488",
"0.64863217",
"0.6429784",
"0.6422631",
"0.630227",
"0.630227",
"0.6298145",
"0.62817603",
"0.6262123",
"0.62522197",
"0.62506855",
"0.624881",
"0.6244594",
"0.62265587",
"0.62265587",
"0.6216565",
"0.615751",
"0.609442",
"0.60872096",
"0.60532755",
"0.59873664",
"0.59866947",
"0.5984753",
"0.5976103",
"0.5976103",
"0.5976103",
"0.596322",
"0.58930165",
"0.5877078",
"0.58550173",
"0.58550173",
"0.58350796",
"0.5829085",
"0.5786106",
"0.5778596",
"0.5743736",
"0.5726721",
"0.5720404",
"0.57033575",
"0.57033575",
"0.57033575",
"0.5694636",
"0.56931067",
"0.568273",
"0.56533307",
"0.564145",
"0.5633109",
"0.5626343",
"0.55785567",
"0.5574716",
"0.55710787",
"0.5567463",
"0.5567463",
"0.5566116",
"0.55650264",
"0.5564274",
"0.55632395",
"0.55552423",
"0.55544823",
"0.55407786",
"0.55365497",
"0.5532998",
"0.55296636",
"0.5512506",
"0.5510956",
"0.55052346",
"0.5477763",
"0.54709953",
"0.54703134",
"0.54584306",
"0.5440792",
"0.54381335",
"0.54352295",
"0.5422373",
"0.5418887",
"0.5416571",
"0.54107255",
"0.54078704",
"0.54060763",
"0.54037726",
"0.5376281",
"0.53733325",
"0.53568596",
"0.53551865",
"0.5354604",
"0.5349788",
"0.53477097",
"0.5342444",
"0.53221023",
"0.53077596",
"0.5306731",
"0.5305792",
"0.5304381",
"0.5296018",
"0.5290187",
"0.52814144"
] |
0.0
|
-1
|
Returns true if there exists a subsequence of array `A` with the given sum
|
public static boolean subsetSum(int[] A, int sum) {
int n = A.length;
// `T[i][j]` stores true if subset with sum `j` can be attained
// using items up to first `i` items
boolean[][] T = new boolean[n + 1][sum + 1];
// if the sum is zero
for (int i = 0; i <= n; i++) {
T[i][0] = true;
}
// do for i'th item
for (int i = 1; i <= n; i++) {
// consider all sum from 1 to sum
for (int j = 1; j <= sum; j++) {
// don't include the i'th element if `j-A[i-1]` is negative
if (A[i - 1] > j) {
T[i][j] = T[i - 1][j];
} else {
// find the subset with sum `j` by excluding or including
// the i'th item
T[i][j] = T[i - 1][j] || T[i - 1][j - A[i - 1]];
}
}
}
// return maximum value
return T[n][sum];
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"static boolean find3Numbers(int A[], int arr_size, int sum) {\n\t\t// Fix the first element as A[i] \n\t\tfor (int i = 0; i < arr_size - 2; i++) {\n\t\t\t// Find pair in subarray A[i+1..n-1] \n\t\t\t// with sum equal to sum - A[i] \n\t\t\tHashSet<Integer> s = new HashSet<Integer>();\n\t\t\tint curr_sum = sum - A[i];\n\t\t\tfor (int j = i + 1; j < arr_size; j++) {\n\t\t\t\tif (s.contains(curr_sum - A[j])) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\ts.add(A[j]);\n\t\t\t}\n\t\t}\n\n\t\t// If we reach here, then no triplet was found \n\t\treturn false;\n\t}",
"boolean SubArraySum( int arr[] , int n , int sum ){\n HashSet<Integer> s = new HashSet<Integer>();\n int pre_sum = 0 ;\n for( int i = 0 ; i < n ; i++ ){\n pre_sum += arr[i];\n if( pre_sum == sum ) // Corner case if pre-sum is equal to sum.\n return true;\n if( s.contains(pre_sum - sum))\n return true;\n s.add(pre_sum);\n }\n return false;\n }",
"public static void main(String[] args) {\n int[] A = {7, 3, 2, 5, 8};\n int sum = 18;\n\n if (subsetSum(A, sum)) {\n System.out.println(\"Subsequence with the given sum exists\");\n } else {\n System.out.println(\"Subsequence with the given sum does not exist\");\n }\n }",
"static boolean hasArrayTwoCandidates(int A[], \n\t\t\t\t\t\tint arr_size, int sum) \n\t{ \n\t\tint l, r; \n\t\n\t\t/* Sort the elements */\n\t\tArrays.sort(A); \n\t\n\t\t/* Now look for the two candidates \n\t\tin the sorted array*/\n\t\tl = 0; \n\t\tr = arr_size-1; \n\t\twhile (l < r) \n\t\t{ \n\t\t\tif(A[l] + A[r] == sum) \n\t\t\t\treturn true; \n\t\t\telse if(A[l] + A[r] < sum) \n\t\t\t\tl++; \n\t\t\telse // A[i] + A[j] > sum \n\t\t\t\tr--; \n\t\t} \n\t\treturn false; \n\t}",
"boolean bruteForce(int A[], int sum) {\n\n\t\t// Fix the first element as A[i]\n\t\tfor (int i = 0; i < A.length - 2; i++) {\n\n\t\t\t// Fix the second element as A[j]\n\t\t\tfor (int j = i + 1; j < A.length - 1; j++) {\n\n\t\t\t\t// Now look for the third number\n\t\t\t\tfor (int k = j + 1; k < A.length; k++) {\n\t\t\t\t\tif (A[i] + A[j] + A[k] == sum) {\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\t\t// If we reach here, then no triplet was found\n\t\treturn false;\n\t}",
"boolean lessThanSearch(int A[], int sum) {\n\t\tint l, r;\n\n\t\tint arr_size = A.length;\n\n\t\t/* Sort the elements */\n\t\tquickSort(A, 0, arr_size - 1);\n\n\t\t/*\n\t\t * Now fix the first element one by one and find the other two elements\n\t\t */\n\t\tfor (int i = 0; i < arr_size - 2; i++) {\n\n\t\t\t// To find the other two elements, start two index variables\n\t\t\t// from two corners of the array and move them toward each\n\t\t\t// other\n\t\t\tl = i + 1; // index of the first element in the remaining elements\n\t\t\tr = arr_size - 1; // index of the last element\n\t\t\twhile (l < r) {\n\t\t\t\tif (A[i] + A[l] + A[r] == sum) {\n\t\t\t\t\treturn true;\n\t\t\t\t} else if (A[i] + A[l] + A[r] < sum)\n\t\t\t\t\tl++;\n\n\t\t\t\telse // A[i] + A[l] + A[r] > sum\n\t\t\t\t\tr--;\n\t\t\t}\n\t\t}\n\n\t\t// If we reach here, then no triplet was found\n\t\treturn false;\n\t}",
"private static boolean tripletWithSumExists(int[] arr, int expectedSum){\n Set<Integer> observedElems = new HashSet<>();\n int size = arr.length;\n\n observedElems.add(arr[0]);\n\n for(int i=1; i<size-1; ++i){\n for(int j=i+1; j<size; ++j){\n int complement = expectedSum - (arr[i] + arr[j]);\n if(observedElems.contains(complement))\n return true;\n }\n observedElems.add(arr[i]);\n }\n return false;\n }",
"private static boolean canPartion_rec(int[] nums, int i, int sum) {\n if (/*i<nums.length*/ sum == 0) return true;\n if (nums.length == 0 || i>=nums.length /*&& sum!= 0*/) return false;\n\n boolean a, b;\n if (sum>=nums[i]) {\n if (canPartion_rec(nums, i + 1, sum - nums[i]))\n return true;\n }\n return canPartion_rec(nums, i+1, sum);\n }",
"public boolean canThreePartsEqualSum(int[] A) {\r\n \tint totalSum = 0, partCount = 0, sum = 0;\r\n \t\r\n \tfor (int n : A)\r\n \t\ttotalSum += n;\r\n \t\r\n \t// When two groups of A make totalSum / 3, \r\n \t// the sum of remaining group is automatically totalSum / 3\r\n \t// x + x + y = 3x -> y = x;\r\n \tfor (int i = 0; i < A.length; i++) {\r\n \t\tsum += A[i];\r\n \t\t\r\n \t\tif (sum == totalSum / 3) {\r\n \t\t\tsum = 0;\r\n \t\t\tpartCount++;\r\n \t\t\t\r\n \t\t\tif (partCount >= 3)\r\n \t\t\t\treturn true;\r\n \t\t}\r\n \t}\r\n \treturn false;\r\n }",
"public boolean isSubSetSumProblem(int [] set, int n , int sum){\n\t\tif (sum == 0)\n\t\t\treturn true;\n\t\t\n\t\tif(n == 0 && sum != 0)\n\t\t\treturn false;\n\t\tif(set[n-1] > sum)\n\t\t\treturn isSubSetSumProblem(set, n-1, sum);\n\t\t\n\t\treturn isSubSetSumProblem(set, n-1, sum) || isSubSetSumProblem(set, n-1, sum-set[n-1]);\n\t}",
"public static void findSubarrays(int[] arr, int sum)\n {\n for (int i = 0; i < arr.length; i++)\n {\n int sum_so_far = 0;\n \n // consider all sub-arrays starting from i and ending at j\n for (int j = i; j < arr.length; j++)\n {\n // sum of elements so far\n sum_so_far += arr[j];\n \n // if sum so far is equal to the given sum\n if (sum_so_far == sum) {\n print(arr, i, j);\n }\n }\n }\n }",
"static boolean subSetSumProblem(int[] arr,int sum){\n// init\n int n = arr.length;\n boolean[][] dp = new boolean[n+1][sum+1];\n\n for (int j = 0;j<=sum;j++){\n dp[0][j] = false;\n }\n\n for (int i = 0;i<=n;i++){\n dp[i][0] = true;\n }\n\n for (int i = 1;i<=n;i++){\n for (int j = 1;j<=sum;j++){\n if (arr[i-1] <= j){\n dp[i][j] = dp[i-1][j] || dp[i-1][j-arr[i-1]];\n }else{\n dp[i][j] = dp[i-1][j];\n }\n }\n }\n return dp[n][sum];\n }",
"public static boolean tripletSum(int[] arr, int sum) {\n //first we will sort the array O(n*log(n)).\n\n Arrays.sort(arr);\n\n int currentSum;\n int left = 0;\n int right = arr.length - 1;\n\n HashSet<Integer> hashSet = new HashSet<>();\n\n //use the outer loop to fix an index of the array, i, as one of the pairs\n\n for (int i = 0; i < arr.length; i++) {\n\n currentSum = sum -arr[i];\n\n //this is the pair sum algorithm with an updated sum\n\n for (int j = 0; j < arr.length; j++) {\n if (left == i) {\n left++;\n }\n if (right == i) {\n right--;\n }\n if (hashSet.contains(arr[left] + arr[right])) {\n return true;\n } else {\n hashSet.add(currentSum - (arr[left] + arr[right]));\n if (arr[left] + arr[right] > currentSum) {\n right--;\n } else if (arr[left] + arr[right] < currentSum) {\n left++;\n } else {\n return true;\n }\n }\n if (left >= right) {\n break;\n }\n }\n\n left = 0;\n right = arr.length - 1;\n hashSet.clear();\n\n }\n return false;\n\n }",
"static boolean isSubsetSum(int set[], int n, int sum)\n\t {\n\t // The value of subset[i][j] will be true if there \n\t // is a subset of set[0..j-1] with sum equal to i\n\t boolean subset[][] = new boolean[n+1][sum+1];\n\t \n\t \n\t for(int i=1;i<=sum;i++)\n\t \tsubset[0][i]=false;\n\t \n\t for(int i=0;i<=n;i++)\n\t \tsubset[i][0]=true;\n\t \n\t \n\t\n\t for(int i=1;i<=n;i++) {\n\t \tfor(int j=1;j<=sum;j++) {\n\t \t\t\n\t \t\tsubset[i][j]=subset[i-1][j];\n\t \t\tif(subset[i][j] ==false && j>=set[i-1])\n\t \t\t\tsubset[i][j]=subset[i][j] || subset[i-1][j-set[i-1]];\n\t \t\t\n\t \t}\n\t }\n\t \t\n\t \t\n\t return subset[n][sum];\n\t }",
"static int subArraySum(int arr[], int sum) {\n int n = arr.length;\n int curr_sum = arr[0], start = 0, i;\n\n // Pick a starting point\n for (i = 1; i <= n; i++) {\n // If curr_sum exceeds the sum, then remove the starting elements\n while (curr_sum > sum && start < i - 1) {\n curr_sum = curr_sum - arr[start];\n start++;\n }\n\n // If curr_sum becomes equal to sum, then return true\n if (curr_sum == sum) {\n int p = i - 1;\n System.out.println(\"Sum found between indexes \" + start\n + \" and \" + p);\n return 1;\n }\n\n // Add this element to curr_sum\n if (i < n)\n curr_sum = curr_sum + arr[i];\n\n }\n\n System.out.println(\"No subarray found\");\n return 0;\n }",
"public static int findSubsequencesThatSumUpTo(int[] arr, int neededSum) {\n int total = 0;\n\n Set<Integer> set = new HashSet<>();\n\n int acc = 0;\n for (int i = 0; i < arr.length; i++) {\n acc += arr[i];\n set.add(acc);\n }\n\n for (Integer x: set) {\n if (x == neededSum) {\n total++;\n }\n\n int required = x + neededSum;\n if (set.contains(required)) {\n total++;\n }\n }\n\n return total;\n }",
"static boolean isSubsetPossible(int[] nums, int sum) {\t\n\t\tboolean[][] dp = new boolean[nums.length][sum + 1];\n\t\tfor(int row = 0; row < dp.length; row++) {\n\t\t\tdp[row][0] = true;\n\t\t}\n \n\t\tfor(int row = 0; row < dp.length; row++) {\n\t\t\tint num = nums[row];\n\t\t\tfor(int col = 1; col < dp[0].length; col++) {\n\t\t\t\tif( col < num ) {\n\t\t\t\t\tdp[row][col] = (row == 0) ? false : dp[row - 1][col];\n\t\t\t\t}else if(num == col) {\n\t\t\t\t\tdp[row][col] = true;\n\t\t\t\t}else {\n\t\t\t\t\tdp[row][col] = dp[row - 1][col] || dp[row - 1][col - num];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(dp[row][sum]){\n\t\t\t\tSystem.out.println(\"breaked at row \" + row);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"all the way end\");\n\t\treturn dp[nums.length - 1][sum];\n\t}",
"static boolean equalSumPartition(int[] arr){\n int sum = 0;\n for (int i = 0;i<arr.length;i++){\n sum+=arr[i];\n }\n if (sum%2==0){\n return subSetSumProblem(arr,sum/2);\n }\n return false;\n }",
"static boolean isSubsetSum(int set[], \n\t\t\t\t\t\t\tint n, int sum)\n\t{\n\t\tboolean dp[][] = new boolean[n + 1][sum + 1];\n\t\tfor(int i = 1; i <= sum; i++)\n\t\t dp[0][i] = false;\n\t\tfor(int i = 0; i <= n; i++)\n\t\t dp[i][0] = true;\n\t\t \n\t\tfor(int i = 1; i <= n; i++) {\n\t\t for(int j = 1; j <= sum; j++) {\n\t\t //System.out.println(i + \" \" + j);\n\t\t try {\n\t\t if(j >= set[i - 1])\n\t\t dp[i][j] = dp[i - 1][j] || dp[i - 1][j - set[i - 1]];\n\t\t else\n\t\t dp[i][j] = dp[i - 1][j];\n\t\t }\n\t\t catch(ArrayIndexOutOfBoundsException exception) {\n\t\t System.out.println(\"here\");\n\t\t System.out.println(i + \" \" + j);\n\t\t }\n\t\t }\n\t\t}\n\t\treturn dp[n][sum];\n\t}",
"public boolean checkSubarraySum(int[] nums, int k) {\n int N = nums.length;\n if (N == 0)\n return false;\n Map<Integer, Integer> m = new HashMap();\n int sum = 0;\n m.put(0, -1);\n for (int i = 0; i < N; i++) {\n sum += nums[i];\n if (k != 0 )\n sum %= k;\n if (m.containsKey(sum)) {\n if (i - m.get(sum) >= 2)\n return true;\n } else {\n m.put(sum, i);\n }\n }\n return false;\n }",
"public boolean checkSubarraySum(int[] nums, int k) {\n\n if (nums == null) {\n return false;\n }\n\n Map<Integer, Integer> sums = new HashMap<>();\n\n int runningSum = 0;\n\n // sums.put(0, -1);\n for (int i = 0; i < nums.length; i++) {\n int n = nums[i];\n runningSum += n;\n if (k != 0) {\n runningSum %= k;\n }\n\n\n // if a number is followed by 6 or 0, the next modulo does not change, which is okay\n // however, if there are several 0s in sequence, it is still fine to have consecutive zeroes and the solution should still work\n // e.g. consider 5, 2, 4 and k = 6. The moduloes look like 5, 1, 5 and there need to be atleast 2 numbers processed between both moduloes\n // in the case of 0, 0 and k = 0, the moduloes are 0,0 but the solution is still valid, even though the indexes are next to each other. so we add 0,-1 to fix this condition\n sums.put(0, -1);\n if (sums.containsKey(runningSum)) {\n\n // the modulo numbers cannot be adjacent to each other, so difference in indexes must be at least 2.\n // special conditions are 6 and 0/\n if (i - sums.get(runningSum) >= 2) {\n return true;\n }\n } else {\n sums.put(runningSum, i);\n }\n }\n\n return false;\n }",
"private static boolean tripletWithSumExistsNoExtraSpace(int[] arr, int expectedSum){\n Arrays.sort(arr);\n int size = arr.length;\n for(int i=0; i<size-2; ++i){\n int complement = expectedSum - arr[i];\n int lidx = i+1, ridx = size-1;\n while (lidx < ridx){\n if(arr[lidx]+arr[ridx] == complement)\n return true;\n else if(arr[lidx]+arr[ridx] < complement)\n ++lidx;\n else\n --ridx;\n }\n }\n return false;\n }",
"public boolean checkSubarraySum(int[] nums, int k){\n\t\tif(nums == null || nums.length == 0)\n\t\t\treturn false;\n\t\tint sum = 0;\n\t\tHashMap<Integer, Integer> map = new HashMap<>();\n\t\tmap.put(0,-1);\n\t\tfor( int i = 0; i<nums.length; i++){\n\t\t\tsum+=nums[i];\n\t\t\tif(k!=0)\n\t\t\t\tsum = sum % k;\n\t\t\tif(map.containsKey(sum)){\n\t\t\t\tif(i - map.get(sum) > 1)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmap.put(sum,i);\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"int subArraySum(int arr[], int n, int sum) \r\n { \r\n int curr_sum, i, j; \r\n \r\n // Pick a starting point \r\n for (i = 0; i < n; i++) \r\n { \r\n curr_sum = arr[i]; \r\n \r\n // try all subarrays starting with 'i' \r\n for (j = i + 1; j <= n; j++) \r\n { \r\n if (curr_sum == sum) \r\n { \r\n int p = j - 1; \r\n System.out.println(\"Sum found between indexes \" + i \r\n + \" and \" + p); \r\n return 1; \r\n } \r\n if (curr_sum > sum || j == n) \r\n break; \r\n curr_sum = curr_sum + arr[j]; \r\n } \r\n } \r\n \r\n System.out.println(\"No subarray found\"); \r\n return 0; \r\n }",
"boolean checkThreeSum(List<Integer> a, int threeSum) {\n\t\tCollections.sort(a); // n log n\n\t\t\n\t\tfor (int index = 0; index <= a.size() - 1; index++) {// o [n square]\n\t\t\tint current = a.get(index);\n\t\t\tif (checkTwoSum(a, threeSum - current, index)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean existSum(int[] array, int target) {\n Set<Integer> set = new HashSet<>();\n for (int num : array) {\n \tif (set.contains(target - num)) {\n \treturn true;\n }\n set.add(num);\n }\n return false;\n }",
"public static boolean canThreePartsEqualSum(int[] arr) {\n int sum=0;\n int cumulative[]=new int[arr.length];\n for(int i=0;i<arr.length;i++){\n sum+=arr[i];\n cumulative[i]=sum;\n }\n for(int i=0;i<cumulative.length;i++){\n for(int j=i+1;j<cumulative.length;j++){\n if(cumulative[i]==cumulative[j]-cumulative[i]){\n if(cumulative[i]==cumulative[cumulative.length-1]-cumulative[j] && (cumulative.length-1) !=j){\n return true;\n }\n }\n }\n }\n return false;\n}",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint a[] = {2,1,3,-4,-2};\n\t\t//int a[] = {1 ,2, 3, 7, 5};\n\t\tboolean found = false;\n\t\t\n\t\t//this will solve in o n^2\n\t\tfor(int i = 0 ; i < a.length ; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = i ; j< a.length ; j++){\n\t\t\t\tsum += a[j] ;\n\t\t\t\tif(sum == 0){\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(found)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t// link : https://www.youtube.com/watch?v=PSpuM9cimxA&list=PLKKfKV1b9e8ps6dD3QA5KFfHdiWj9cB1s&index=49\n\t\tSystem.out.println(found + \" found\");\n\t\tfound = false;\n\t\t//solving with O of N with the help sets\n\t\t// x + 0 = y\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint sum = 0;\n\t\tfor(int element : a){\n\t\t\tset.add(sum);\n\t\t\tsum += element;\n\t\t\tif(set.contains(sum)){\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(set);\n\t\t\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t\tfound = false;\n\t\t// when the sum of subarray is K\n\t\t\n\t\t//solving with O of N with the help sets\n\t\t//x + k = y >>>\n\t\tSet<Integer> set1 = new HashSet<>();\n\t\tint k = 12;\n\t\tint summ = 0;\n\t\tfor(int element : a){\n\t\t\tset1.add(summ);\n\t\t\tsumm += element;\n\t\t\tif(set1.contains(summ - k)){ // y - k = x(alredy presnt or not)\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(set1);\n\t\tSystem.out.println();\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t}",
"public static boolean findNumbers(double Array[], int arraySize, double sum) {\n //outter loop keeps first number unless it has to change\n for (int i = 0; i < arraySize - 2; i++) {\n //middle loop keeps second number unless it has to change \n for (int j = i + 1; j < arraySize - 1; j++) {\n //changes the every time and will break function if sum is found\n for (int k = j + 1; k < arraySize; k++) {\n //conditional staement if found print and return true \n if (Array[i] + Array[j] + Array[k] == sum) {\n System.out.print(\"Triplet is \" + Array[i] + \" ,\" + Array[j] + \" ,\" + Array[k]);\n return true;\n }\n }\n }\n }\n\n // If we reach here then nothing was found \n return false;\n }",
"public static boolean sumsTo(int[] A, int[] B, int m) {\n\t\t// REPLACE WITH YOUR ANSWER\n\t\tA = Arrays.copyOf(A, A.length);\n Arrays.sort(A);\n for (int b : B) {\n int k = Arrays.binarySearch(A, m - b);\n if (k >= 0 && k < A.length && A[k] + b == m) {\n return true;\n }\n }\n return false;\n }",
"public int solution(int[] A) {\n\n\t\tHashSet<Integer> set = new HashSet<>();\n\n\t\tfor (int i = 0; i < A.length; i++)\n\t\t\tset.add(A[i]);\n\n\t\tfor (int i = 1; i < A.length + 1; i++) \n\t\t\tif (!set.contains(i)) return 0;\n\n\t\treturn 1;\n\t}",
"private static boolean findEqualSumBottomUp(int[] arr, int n, int sum) {\n boolean subset[][] = \n new boolean[sum+1][n+1]; \n \n // If sum is 0, then answer is true \n for (int i = 0; i <= n; i++) \n subset[0][i] = true; \n \n // If sum is not 0 and set is empty, \n // then answer is false \n for (int i = 1; i <= sum; i++) \n subset[i][0] = false; \n \n // Fill the subset table in botton \n // up manner \n for (int i = 1; i <= sum; i++) \n { \n for (int j = 1; j <= n; j++) \n { \n subset[i][j] = subset[i][j-1]; \n if (i >= arr[j-1]) \n subset[i][j] = subset[i][j] || \n subset[i - arr[j-1]][j-1]; \n } \n } \n \n // uncomment this code to print table \n /*for (int i = 0; i <= sum; i++) \n { \n for (int j = 0; j <= n; j++) \n System.out.print (subset[i][j]+\" \"); \n } */\n \n return subset[sum][n];\n\t}",
"private boolean canPartitionDP(int[] array, int sum) {\n int len = array.length;\n boolean[][] dp = new boolean[len + 1][sum + 1];\n\n for (int i = 0; i < len + 1; i++) dp[i][0] = true;\n\n for (int i = 1; i < len + 1; i++) {\n for (int j = 1; j < sum + 1; j++) {\n if (array[i - 1] <= j) dp[i][j] = dp[i - 1][j] || dp[i - 1][j - array[i - 1]];\n else dp[i][j] = dp[i - 1][j];\n }\n }\n\n return dp[len][sum];\n }",
"private boolean checkTwoSum(List<Integer> a, int twoSum, int start) {\n\t\t\n\t\tfor (int i = start, j = a.size() - 1; i <=j;) {\n\t\t\tif (a.get(i) + a.get(i) == twoSum || \n\t\t\t\ta.get(j) + a.get(j) == twoSum ||\n\t\t\t\ta.get(i) + a.get(j) == twoSum) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tif (a.get(i) + a.get(j) > twoSum) {\n\t\t\t\t\tj--;\n\t\t\t\t} else if (a.get(i) + a.get(j) < twoSum) {\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean existII(TreeNode root, int sum) {\n if (root == null) {\n return false;\n }\n Set<Integer> prefixSums = new HashSet<>();\n prefixSums.add(0);\n return helperII(root, prefixSums, 0, sum);\n }",
"public static void main (String args[])\n\t {\n\t int set[] = {3, 34, 4, 12, 5, 2};\n\t int sum = 9;\n\t int n = set.length;\n\t if (isSubsetSum(set, n, sum) == true)\n\t System.out.println(\"Found a subset with given sum\");\n\t else\n\t System.out.println(\"No subset with given sum\");\n\t }",
"public static boolean findSum3Bool(int[] a, int x){\r\n\t\tint begin = 0, end = a.length -1, sum;\r\n\t\twhile(begin < a.length -1 && (end >= 0)){\r\n\t\t\tsum = a[begin] + a[end];\r\n\t\t\tif(sum < x){\r\n\t\t\t\tbegin++;\r\n\t\t\t}else if(sum > x){\r\n\t\t\t\tend--;\r\n\t\t\t}else {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"boolean hasComputeSum();",
"public static void hasPairWithSum(int[] input, int sum) {\n\t\tMap<Integer, Integer> map = new Hashtable<>();\n\t\tint occurence = 0;\n\t\tfor (int num : input) {\n\t\t\toccurence = 1;\n\t\t\tif (map.containsKey(num)) {\n\t\t\t\toccurence = map.get(num);\n\t\t\t\toccurence++;\n\t\t\t}\n\t\t\tmap.put(num, occurence);\n\t\t}\n\n\t\tfor (int first : input) {\n\t\t\tint second = sum - first;\n\t\t\tif (map.containsKey(second)) {\n\t\t\t\toccurence = map.get(second);\n\t\t\t\tif (occurence > 0) {\n\t\t\t\t\tif (second == first) {\n\t\t\t\t\t\tif (occurence > 1) {\n\t\t\t\t\t\t\tSystem.out.println(\"[\" + first + \",\" + second + \"]\");\n\t\t\t\t\t\t\toccurence -= 2;\n\t\t\t\t\t\t\tmap.put(first, occurence);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tint firstOccurence = map.get(first);\n\t\t\t\t\t\tfirstOccurence--;\n\t\t\t\t\t\tint secondOccurence = map.get(second);\n\t\t\t\t\t\tsecondOccurence--;\n\t\t\t\t\t\tmap.put(first, firstOccurence);\n\t\t\t\t\t\tmap.put(second, secondOccurence);\n\t\t\t\t\t\tSystem.out.println(\"[\" + first + \",\" + second + \"]\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"static int countOfSubsetsOfSum(int[] arr,int sum){\n int n = arr.length;\n int[][] dp = new int[n + 1][sum + 1];\n\n for (int j = 0;j<=sum; j++){\n dp[0][j] = 0;\n }\n\n for (int i = 0;i<=n;i++){\n dp[i][0] = 1;\n }\n\n for (int i=1;i<=n;i++){\n for (int j = 1;j<=sum;j++){\n if (arr[i-1] <= j){\n dp[i][j] = dp[i-1][j] + dp[i-1][j - arr[i-1]];\n }else{\n dp[i][j] = dp[i-1][j];\n }\n }\n }\n return dp[n][sum];\n }",
"public static boolean hasPathSum_032(TreeNode root, int sum) {\n if (root == null) {\n return false;\n }\n\n if (sum == root.val && root.left == null && root.right == null) {\n return true;\n }\n\n return hasPathSum_032(root.left, sum - root.val) ||\n hasPathSum_032(root.right, sum - root.val);\n }",
"public boolean hasPathSum(TreeNode root, int sum) {\n if (null == root) {\n return false;\n }\n if (root.left == null && null == root.right) {\n return root.val == sum;\n }\n\n return hasPathSum(root.left, sum - root.val) || hasPathSum(root.right, sum - root.val);\n\n }",
"boolean hasSeq();",
"public boolean contains(int total) {\n \t \n \tint sum=0;\n \tfor (int j=(stack.size()-3);j<stack.size();j++){\n \t\tsum=sum+stack.peek();\n \t}\n \tif(total==sum){\n \t\treturn true;\n \t}\n\t\treturn false;\n \n }",
"public int solution(int[] A) {\n Arrays.sort(A);\n int hasTriangular = 0;\n // System.out.print(Arrays.toString(A));\n \n if (A.length < 3) {\n hasTriangular = 0;\n }\n else {\n int P = 0;\n int Q = 1;\n int R = 2;\n \n for(int i= 2; i<A.length; i++) {\n if((long) A[P]+ (long) A[Q]> (long)A[R]) {\n hasTriangular = 1;\n break;\n }\n else {\n P++;\n Q++;\n R++;\n } \n }\n }\n \n return hasTriangular;\n }",
"public boolean hasPathSum(TreeNode root, int sum) {\n if(root == null){\n return false;\n }\n \n //if value of root is equal to the sum, if it is and no child, return true\n if(root.val == sum){\n if(root.left == null && root.right == null){\n return true;\n }\n }\n \n //all is not equal, then start to recursive to judge the left or right tree equal to sum-val\n return hasPathSum(root.left, sum-root.val) || hasPathSum(root.right, sum-root.val);\n }",
"public int solution(int[] A) {\n Set<Integer> set = new HashSet<>();\n\n for(int i=1; i < A.length+1; i++)\n set.add(i);\n\n for(int i=0; i < A.length; i++)\n {\n if(set.contains(A[i]))\n set.remove(A[i]);\n\n else\n set.add(A[i]); \n }\n\n if(set.isEmpty())\n return 1;\n\n return 0;\n }",
"public boolean hasPathSum (TreeNode root, int sum) {\n if (root == null)\n return false;\n if (root.val == sum && root.left == null && root.right == null)\n return true;\n else {\n return hasPathSum (root.left, sum - root.val) || hasPathSum (root.right, sum - root.val);\n }\n }",
"public static boolean check(int[][] arr, int n, int value){\n if(value >= -arrsum && value <= arrsum){\r\n return arr[n][arrsum + value] == 1 || arr[n][arrsum + value] == 2 || arr[n][arrsum + value] == -1;\r\n }\r\n else{\r\n return false;\r\n }\r\n }",
"static ArrayList<Integer> subarraySum(int[] arr, int n, int S){\r\n \r\n ArrayList<Integer> list = new ArrayList<>();\r\n \r\n int first = 0;\r\n int last = 0;\r\n int sum = 0;\r\n \r\n while(last < n || first < n){\r\n \r\n if(sum < S && last < n){\r\n sum = sum + arr[last]; \r\n ++last;\r\n }\r\n else if(sum == S){\r\n list.add(first+1);\r\n list.add(last);\r\n return list;\r\n }\r\n else if(first < n){\r\n sum = sum - arr[first];\r\n ++first;\r\n }\r\n }\r\n \r\n if(list.isEmpty()){\r\n list.add(-1);\r\n }\r\n return list;\r\n \r\n }",
"public static void subArraySum(int[] input, int sum) {\n System.out.println(\"Evaluating: \");\n for(int i : input) {\n System.out.print(i + \" \");\n }\n System.out.println(\"\\nTarget Sum: \" + sum + \"\\n\");\n \n Map<Integer, Integer> subArrayMap = new HashMap<Integer, Integer>();\n for (int i : input) {\n int diff = sum - i;\n if (subArrayMap.containsKey(diff)) {\n System.out.println(\"Pair of subArray adding upto the sum: [\" + i + \", \" + diff + \"]\");\n return;\n }\n if (diff > 0) {\n subArrayMap.put(i, diff);\n }\n }\n \n }",
"private static boolean findEqualSumSubsetBottomUp(int[] arr, int n) {\n\t\tint sum=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tsum+=arr[i];\n\t\t}\n\t\tif(sum%2==1) {\n\t\t\treturn false;\n\t\t}\n \t\treturn findEqualSumBottomUp(arr,n,sum/2);\n\t}",
"public boolean isSolution(int sol[], Square adjacents[], int s) {\n\t\tint accumulated=0,total=0; \n\t\tfor (int k = 0; k < sol.length; k++) {\n\t\t\taccumulated += sol[k];\n\t\t\ttotal += posibleAmount(getSquare(adjacents[k]));\n\t\t} \n\t\treturn (accumulated==Integer.min(total, s));\n\t}",
"public static boolean find3Numbers(int A[], int n, int X) { \n \n // Your code \n for(int i=0;i<n-2;i++)\n {\n HashSet<Integer> set = new HashSet<>();\n int toFind=X-A[i];\n for(int j=i+1;j<n;j++)\n {\n if(set.contains(toFind-A[j]))\n {\n return true;\n }\n set.add(A[j]);\n }\n }\n return false;\n }",
"public static Boolean isSumGtrThan100(int array[])\n\t{\n\t\tint sum = 0;\n\t\t\n\t\t// Sum array\n\t\tfor (int i = 0; i < array.length; i++)\n\t\t\tsum += array[i];\n\t\t\n\t\t// Check if more than 100\n\t\treturn sum > 100;\n\t}",
"public int solution(int[] A) {\n\t \n\t int n = A.length;\n\t int N =0;\n\t for(int i=0;i<n;i++){\n\t N += A[i];\n\t }\n\t boolean[][] P = new boolean[N/2+1][n+1];\n\t for(int i=0;i<n;i++){\n\t P[0][i] = true;\n\t }\n\t \n\t for(int i = 1;i<=N/2;i++)\n\t for(int j = 1;j<=n;j++)\n\t if(A[j-1]<=i)\n\t P[i][j] = P[i][j-1] || P[i - A[j - 1]][ j - 1];\n\t else\n\t P[i][j] = P[i][j-1];\n\t if (P[N/2][n] == true)\n\t return 1;\n\t else \n\t return 0;\n\t }",
"static boolean isValid(int a[], int n, int k, int max)\r\n\t {\r\n\t int painter = 1, sum = 0;\r\n\t \r\n\t for(int i = 0; i < n; i++)\r\n\t {\r\n\t if(sum + a[i] > max)\r\n\t {\r\n\t painter++;\r\n\t sum = a[i];\r\n\t \r\n\t if(painter > k)\r\n\t return false;\r\n\t }\r\n\t else\r\n\t sum += a[i];\r\n\t }\r\n\t \r\n\t return true;\r\n\t }",
"public boolean splitArraySameAverage(int[] A) {\n\t\tArrays.sort(A);\n int sum = 0;\n for (int a : A) sum += a;\n for (int i = 1; i <= A.length / 2; i++) {\n \tif ((sum * i) % A.length == 0 \n \t\t\t&& existsSubset(A, (sum * i) / A.length, i, 0)) return true;\n }\n return false;\n }",
"static void check(int arr[],int sum)\r\n {\r\n boolean binmap[] = new boolean[max]; /* by default this is array of false as {false,false,false,false,......,false} */\r\n for(int i=0;i<arr.length;i++)\r\n {\r\n int temp=sum-arr[i];\r\n if(temp>0 && binmap[temp]){ /* in condition , we can use binmap[temp] which means binmap[temp]==true */\r\n System.out.println(\"two numbers in given array whose sum is equal to given sum are :\"+temp+ \" and \" +arr[i]);\r\n }\r\n binmap[arr[i]]=true;\r\n }\r\n }",
"public boolean checkIfExist(int[] arr) {\n int len = arr.length;\n\n Set<Integer> set = new HashSet<>();\n for (int num : arr) {\n if (set.contains(num*2) || (num%2==0 && set.contains(num/2))) return true;\n set.add(num);\n }\n\n return false;\n }",
"static boolean contains(int[] a, int value){\n int i;\n\n for(i = 0; i < a.length; i++){\n if(a[i] == value) {\n return true;\n }\n }\n\n return false;\n }",
"static ArrayList<Integer> subarraySum(int[] arr, int n, int s) {\n ArrayList<Integer> res = new ArrayList<>();\n int i = 0;\n int j = 1;\n int sum = arr[0];\n while(i < n) {\n if(sum < s && j < n) {\n sum += arr[j++];\n }\n else if(sum == s) {\n res.add(i + 1);\n res.add(j);\n return res;\n }\n else {\n sum -= arr[i++];\n }\n }\n res.add(-1);\n return res;\n }",
"public static boolean solution1(int[] nums, int numToAddTo){\n for (int i = 0; i < nums.length; i++){\n for (int j = i+1; j < nums.length; j++){\n if (nums[i] + nums[j] == numToAddTo){\n return true;\n }\n }\n }\n return false;\n }",
"public boolean isPossible(int i, int stage, int[] sol, int s) {\n\t\tint accumulated = 0;\n\t\tfor (int k = 0; k < stage; k++) \n\t\t\taccumulated += sol[k];\n\t\treturn ((accumulated+i)<=s);\n\t}",
"public int solution(int[] A)\n {\n \n if(A.length == 0 && A.length == 1)\n return 0;\n \n int currentOneSum = 0;\n int totalOneSum = 0;\n int currentZeros = 0;\n \n for (int i = 0; i < A.length; i++)\n \n if(A[i] == 1)\n \n currentOneSum++;\n \n if(A[i] == 0 || i == A.length-1)\n \n totalOneSum += currentZeros * currentOneSum;\n currentOneSum = 0;\n currentZeros++;\n \n return Math.abs(totalOneSum) <= Math.pow(10,9) ? totalOneSum : -1;\n \n }",
"private static void printPairs(int[] a, int sum) {\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t//for (int j = 0; j < n; j++) {/Is the reverse of pair is acceptable\n\t\t\tfor(int j=i+1;j<a.length;j++) {\n\t\t\t\tif(a[i]+a[j]==sum) {\n\t\t\t\t\tSystem.out.println(\"(\"+a[i]+\"+\"+a[j]+\") = \"+sum);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public boolean hasPathSum(TreeNode n, int sum) {\r\n\t\t\tif (n == null)\r\n\t\t\t\treturn false;\r\n\t\t\telse\r\n\t\t\t\treturn hasSum(n, sum);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t}",
"public boolean canPartition(int startIndex, int currentSum, int currentBucket) {\n\t\tif (currentBucket == 1) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif (currentSum > target)\n\t\t\treturn false;\n\n\t\tif (currentSum == target) {\n\t\t\treturn canPartition(0, 0, currentBucket - 1);\n\t\t} else {\n\t\t\tfor (int index = startIndex; index < arr.length; index++) {\n\t\t\t\tif (!visited[index]) {\n\t\t\t\t\tvisited[index] = true;\n\t\t\t\t\tif (canPartition(index + 1, currentSum + arr[index], currentBucket)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tvisited[index] = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean hasSubMatrixEqualToTarget(int[][] nums, int target) {\n int m = nums.length, n = nums[0].length;\n int[][] partialSum = new int[m][n];\n for (int i = 0; i < m; ++i) {\n for (int j = 0; j < n; ++j) {\n if (i == 0 && j == 0) {\n partialSum[i][j] = nums[i][j];\n } else if (i == 0) {\n partialSum[i][j] = partialSum[i][j-1] + nums[i][j];\n } else if (j == 0) {\n partialSum[i][j] = partialSum[i-1][j] + nums[i][j];\n } else {\n partialSum[i][j] = partialSum[i-1][j] + partialSum[i][j-1] - partialSum[i-1][j-1] + nums[i][j];\n }\n }\n }\n\n int[] partialRowSum = new int[m];\n SubarraySumTarget1D app = new SubarraySumTarget1D();\n for (int leftCol = 0; leftCol < n; ++leftCol) {\n for (int rightCol = leftCol; rightCol < n; ++rightCol) {\n for (int i = 0; i < m; ++i) {\n partialRowSum[i] = (leftCol == 0 ? partialSum[i][rightCol]\n : partialSum[i][rightCol] - partialSum[i][leftCol - 1]);\n if (i > 0) {\n partialRowSum[i] = (leftCol == 0? partialSum[i][rightCol]-partialSum[i-1][rightCol]\n : partialSum[i][rightCol]-partialSum[i-1][rightCol]\n -partialSum[i][leftCol-1]+partialSum[i-1][leftCol-1]);\n }\n }\n if (app.hasSubarraySumEqualToTarget(partialRowSum, target)) return true;\n }\n }\n return false;\n }",
"private boolean isSubSequence(String s, String word){\n int startPointer = 0;\n for(int i=0; i<word.length(); i++){\n int location = s.indexOf(word.charAt(i), startPointer);\n if(location < 0)\n return false;\n startPointer = location+1;\n }\n return true;\n }",
"public boolean hasPathSum(TreeNode root, int sum) {\n if (root == null) {\n return false;\n }\n if (root.left == null && root.right == null) {\n return sum == root.val;\n }\n return hasPathSum(root.left, sum - root.val) || hasPathSum(root.right, sum - root.val);\n\n// 作者:LeetCode-Solution\n// 链接:https://leetcode-cn.com/problems/path-sum/solution/lu-jing-zong-he-by-leetcode-solution/\n// 来源:力扣(LeetCode)\n// 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。\n }",
"public static void main(String[] args) {\n\n boolean isTrue = false;\n int[] numbers = { 10, 15, 3, 1, 6, 16, 8 };\n int k = 17;\n\n for (int i = 0; i < (numbers.length-1); i++) {\n for (int j = (i+1); j < numbers.length; j++) {\n if (numbers[i] + numbers[j] == k) {\n isTrue = true;\n break;\n }\n }\n }\n System.out.println(isTrue);\n }",
"public boolean solution(int[] A) {\n int target = 0 ;\n int length = A.length;\n for(int i =0;i< length -1 ; i++){\n if(target == 0){\n target = Integer.compare(A[i],A[i+1]);\n continue;\n }\n if(target > 0){\n if(A[i] < A[i+1]){\n return false;\n }\n }\n if (target < 0){\n if(A[i] >A[i+1]){\n return false;\n }\n }\n }\n return true;\n }",
"public static void main (String args[])\n\t{\n\t\tint set[] = {3, 34, 4, 12, 5, 2};\n\t\tint sum = 9;\n\t\tint n = set.length;\n\t\tif (isSubsetSum(set, n, sum) == true)\n\t\t\tSystem.out.println(\"Found a subset\"\n\t\t\t\t\t\t+ \" with given sum\");\n\t\telse\n\t\t\tSystem.out.println(\"No subset with\"\n\t\t\t\t\t\t\t+ \" given sum\");\n\t}",
"static boolean sumChecker( int[] arrayOfNumbers) {\n\t\tint intArraySum = 0; \n\t\tfor (int i : arrayOfNumbers) { \n\t\t\tintArraySum += arrayOfNumbers[i];\n\t\t}\n\t\tif (intArraySum >= 100) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t\t \n\t\t}\n\t}",
"public int subarraySumLeetCode(int[] nums, int k) {\n int count = 0;\n for (int start = 0; start < nums.length; start++) {\n for (int end = start + 1; end <= nums.length; end++) {\n int sum = 0;\n for (int i = start; i < end; i++) {\n sum += nums[i];\n }\n if (sum == k) {\n count++;\n }\n }\n }\n return count;\n }",
"public static boolean sumTo(int[] values, int n) {\n // TODO\n // /** construnc a hashset and when we iterate through the array, we find if curr is in the set and insert n-curr into the set\n return false;\n }",
"public static boolean isSigned_sum_a() {\n return true;\n }",
"public boolean canJump(int[] A) {\n if (A.length <= 1) {\n return true;\n }\n \n int curr = 0;\n int max = 0;\n \n for (int i = 0; i < A.length - 1; i++) {\n //If i is faster than max, that means curr falls into 0, return false.\n if (i > max) return false;\n \n curr = i + A[i];\n max = Math.max(max, curr);\n if (max >= A.length - 1) {\n return true;\n }\n }\n return false;\n }",
"public static boolean isArray_sum_a() {\n return false;\n }",
"public static boolean isSubsequence(String s, String t) {\n int pos = -1;\n for(int i=0; i<s.length(); i++){\n pos = t.indexOf(s.charAt(i), pos+1);\n if(pos == -1){\n return false;\n }\n }\n return true;\n }",
"public int solution(int[] A) {\n int L = A.length;\n int[] B = new int[L+1];\n for(int i=0; i<L; i++) {\n int t = A[i];\n B[t-1] = t;\n }\n for(int j=0; j<L; j++) {\n if(B[j] == 0) {\n return j+1;\n }\n }\n return 0;\n }",
"private static void subarraysum(int[] a, int target) {\n\t\t\n\t\t\tint cursum=0;\n\t\t\tfor(int i=0;i<a.length;i++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tcursum=0;\n\t\t\t\tfor(int j=i;j<a.length;j++)\n\t\t\t\t{\n\t\t\t\t\tcursum+=a[j];\n\t\t\t\t\t//System.out.println(i+\" \"+(j));\n\t\t\t\t\t\n\t\t\t\t\t\tif(cursum==target)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(i+\" \"+(j));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(cursum>target)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(i+\" \"+j+\" \");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(cursum);\n\t\t\t}\n\t\t}",
"static boolean question3(int target, int[] arr) {\r\n\t\tfor(int i=0;i<arr.length;i++) {\r\n\t\t\tfor(int j=0;j<arr.length;j++) {\r\n\t\t\t\tif(i!=j) {\r\n\t\t\t\t\tif(arr[i]+arr[j]==target) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public int solution(int[] A) {\n int res = 1;\n HashMap<Integer> map = HashMap<Integer>();\n for(int i = 0; i < A.length; i++){\n if(!map.contains(A[i])){\n map.put(A[i]);\n }\n }\n while(map.contains(res){\n res++;\n }\n return res;\n }",
"private static boolean areOverlapping( int a[], int sz, int pos, int len )\n {\n \tfor( int i=0; i<sz; i++ ){\n \t if( areOverlapping( a[i], pos, len ) ){\n \t\treturn true;\n \t }\n \t}\n \treturn false;\n }",
"public boolean contains(String sequence) {\r\n return (depthFirstSearch(sequence).size() != 0);\r\n }",
"public int solution(int[] A) {\n int sumRange = 0;\n for (int i = 1; i <= A.length+1; i++){\n sumRange+=i;\n }\n \n int sumArray = 0;\n for(int a : A) {\n sumArray+=a;\n }\n\n\t//Take the total without the missing number, and subtract the total with the missing number\n return sumRange-sumArray;\n }",
"private static boolean check(int[] data) {\n int a[]=new int[8];\n a[0]=data[0]+data[1]+data[2];\n a[1]=data[3]+data[4]+data[5];\n a[2]=data[8]+data[7]+data[6];\n a[3]=data[0]+data[3]+data[6];\n a[4]=data[1]+data[4]+data[7];\n a[5]=data[2]+data[5]+data[8];\n a[6]=data[0]+data[4]+data[8];\n a[7]=data[2]+data[4]+data[6];\n for (int i = 0; i <a.length ; i++) {\n for (int j = i+1; j <a.length; j++) {\n if (a[i]==a[j]){\n return false;\n }\n }\n }\n return true;\n }",
"public int[] twoSum(int[] num, int sum)\n {\n int[] onlyOneValidAnswer = new int[]{-1,-1};\n for(int i = 0; i < num.length; i++)\n {\n for(int j = 0; j < num.length; j++)\n {\n if(num[i] != num[j])\n {\n if((num[i] + num[j]) == sum)\n {\n onlyOneValidAnswer[0] = j;\n onlyOneValidAnswer[1] = i;\n }\n }\n }\n }\n\n return onlyOneValidAnswer;\n }",
"public static boolean isSubsequence(String s, String t) {\n if (s.length() == 0)\n return true;\n else if (t.length() == 0)\n return false;\n\n int indexS = 0;\n int indexT = 0;\n\n // Step2 - Traverse String t\n while (indexT < t.length() && indexS < s.length()) {\n char currentT = t.charAt(indexT);\n char currentS = s.charAt(indexS);\n System.out.println(\"currentS:\" + currentS + \" currentT: \" + currentT );\n\n // Step3 - If match, increment indexS\n if (currentS == currentT) {\n ++indexS;\n }\n\n ++indexT;\n }\n\n return indexS == s.length(); // indexS HAS to the same length as String s for a match\n }",
"private boolean pathSum(TreeNode root, int i, int sum) {\n\t\tif(root==null)\n\t\t return false;\n\t\tif(root.left==null&&root.right==null)\n\t\t\treturn sum == (root.val + i);\n\t\treturn pathSum(root.left,root.val+i,sum)||pathSum(root.right,root.val+i,sum);\n\t}",
"public static int solution(int[] A) {\n\t\tList<Integer> list = new ArrayList<>();\n\t\tString one;\n\t\tfor(int num : A) {\n\t\t\tone = num+\"\";\n\t\t\tint splitedSum = 0;\n\t\t\tfor(String n : one.split(\"\")) {\n\t\t\t\tsplitedSum += Integer.parseInt(n);\n\t\t\t}\n\t\t\tlist.add(splitedSum);\n\t\t}\n\t\t\n\t\tList<Integer> sumList = new ArrayList<>();\n\t\t\n\t\tfor(int i =0; i < list.size(); i++) {\n\t\t\tfor(int j=0; j < list.size(); j++) {\n\t\t\t\tif( i!=j && list.get(i) == list.get(j) ) {\n\t\t\t\t\tsumList.add(A[i] + A[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif( sumList.size()==0 ) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\treturn Collections.max(sumList);\n\t\t}\n }",
"public boolean isIdealPermutation(int[] A) {\n int numLocalInvrtions = 0, numGlobalInvertions = 0;\n for(int i = 0; i< A.length; i++){\n if(A[i] > A[i+1]) numLocalInvrtions++;\n }\n\n for(int i = 0; i < A.length-1; i++){\n for(int j = i+1; j < A.length;j++){\n if(A[i] > A[j]) numGlobalInvertions++;\n }\n }\n return numLocalInvrtions == numGlobalInvertions;\n }",
"static void subsetSums(int[] arr, int l, int r, int sum)\n {\n \n // Print current subset\n if (l > r) {\n System.out.print(sum + \" \");\n return;\n }\n \n // Subset including arr[l]\n subsetSums(arr, l + 1, r, sum + arr[l]);\n \n // Subset excluding arr[l]\n subsetSums(arr, l + 1, r, sum);\n }",
"static void maxSubArraySum1(int a[], int size)\n {\n int max_so_far = Integer.MIN_VALUE,\n max_ending_here = 0,start = 0,\n end = 0, s = 0;\n\n for (int i = 0; i < size; i++)\n {\n max_ending_here += a[i];\n\n if (max_so_far < max_ending_here)\n {\n max_so_far = max_ending_here;\n start = s;\n end = i;\n }\n\n if (max_ending_here < 0)\n {\n max_ending_here = 0;\n s = i + 1;\n }\n }\n System.out.println(\"Maximum contiguous sum is \" + max_so_far);\n System.out.println(\"Starting index \" + start);\n System.out.println(\"Ending index \" + end);\n }",
"public boolean canPartition(int[] nums) {\n\t\tint sum = 0;\n\t\tfor (int num : nums) {\n\t\t\tsum += num;\n\t\t}\n\n\t\tif ((sum & 1) == 1) {\n\t\t\treturn false;\n\t\t}\n\t\tsum /= 2;\n\n\t\tint n = nums.length;\n\t\tboolean[][] dp = new boolean[n + 1][sum + 1];\n\t\tfor (int i = 0; i < dp.length; i++) {\n\t\t\tArrays.fill(dp[i], false);\n\t\t}\n\n\t\tdp[0][0] = true;\n\n\t\tfor (int i = 1; i < n + 1; i++) {\n\t\t\tdp[i][0] = true;\n\t\t}\n\t\tfor (int j = 1; j < sum + 1; j++) {\n\t\t\tdp[0][j] = false;\n\t\t}\n\n\t\tfor (int i = 1; i < n + 1; i++) {\n\t\t\tfor (int j = 1; j < sum + 1; j++) {\n\t\t\t\tif (j >= nums[i - 1]) {\n\t\t\t\t\tdp[i][j] = (dp[i - 1][j] || dp[i - 1][j - nums[i - 1]]);\n\t\t\t\t} else {\n\t\t\t\t\tdp[i][j] = dp[i - 1][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn dp[n][sum];\n\t}",
"private boolean isSubSequence(char str1[], char str2[]) {\n int j = 0;\n int m = str1.length;\n int n = str2.length;\n for (int i=0; i<n&&j<m; i++)\n if (str1[j] == str2[i])\n j++;\n return (j==m);\n }",
"public static boolean contains(final String string, final String sub) {\n final int tl = sub.length();\n if(tl == 0) return true;\n final int sl = string.length() - tl;\n for(int s = 0; s <= sl; s++) {\n int t = 0;\n while(equals(string.charAt(s + t), sub.charAt(t))) {\n if(++t == tl) return true;\n }\n }\n return false;\n }",
"public int solution(int[] A) {\n int len = A.length;\n Set<Integer> intSet= new HashSet<>();\n for (int i=0; i<len; i++){\n if(!intSet.contains(A[i])){\n intSet.add(A[i]);\n }\n }\n return intSet.size();\n }"
] |
[
"0.73496306",
"0.7297065",
"0.7164601",
"0.7116648",
"0.7097549",
"0.69075644",
"0.6818925",
"0.67253256",
"0.66102374",
"0.6575393",
"0.6521407",
"0.6500475",
"0.6477559",
"0.6469071",
"0.64505124",
"0.6424172",
"0.6402291",
"0.6388113",
"0.63766474",
"0.630725",
"0.62912524",
"0.6289105",
"0.62581325",
"0.6230563",
"0.6133039",
"0.6125011",
"0.60555756",
"0.60495436",
"0.6027303",
"0.59615105",
"0.5910784",
"0.5891487",
"0.58644354",
"0.5854302",
"0.5840778",
"0.58093023",
"0.5802404",
"0.5787186",
"0.57493895",
"0.57422566",
"0.5713496",
"0.569561",
"0.56878126",
"0.5656958",
"0.56414145",
"0.5622621",
"0.5618432",
"0.5617918",
"0.55733615",
"0.5550244",
"0.5541335",
"0.5522233",
"0.54450446",
"0.5436332",
"0.5418882",
"0.5414981",
"0.54045165",
"0.53983194",
"0.53972006",
"0.5396079",
"0.53852755",
"0.5370704",
"0.5357216",
"0.5325765",
"0.53181154",
"0.529532",
"0.5287297",
"0.52838546",
"0.52783215",
"0.5273862",
"0.526156",
"0.5258586",
"0.52525353",
"0.5250669",
"0.5245128",
"0.5228358",
"0.52277154",
"0.5210863",
"0.5210573",
"0.5192557",
"0.51918703",
"0.5191436",
"0.5190145",
"0.5158969",
"0.51433796",
"0.51421064",
"0.51373696",
"0.5136096",
"0.5135365",
"0.5116615",
"0.511528",
"0.5112008",
"0.51010996",
"0.509466",
"0.5091776",
"0.5090583",
"0.5086283",
"0.50818515",
"0.50673014",
"0.50650805"
] |
0.74480665
|
0
|
Input: a set of items and a sum
|
public static void main(String[] args) {
int[] A = {7, 3, 2, 5, 8};
int sum = 18;
if (subsetSum(A, sum)) {
System.out.println("Subsequence with the given sum exists");
} else {
System.out.println("Subsequence with the given sum does not exist");
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Integer sumNumbers(List<Integer> numbers) throws Exception;",
"public int addItem(Itemset i);",
"static int calculateTotalOf(Set<Fruit> basket) {\n\t\tint totalPrice = 0;\n\t\tint Qty = 0;\n\t\tfor (Fruit fruit : basket) {\n\t\t\tQty = getQuantityOf(fruit);\n\t\t\tQty = Qty <= 0 ? 1 : Qty;\n\t\t\ttotalPrice = totalPrice + (fruit.price * Qty);\n\t\t}\n\t\tSystem.out.println(\"Total Price = \" + totalPrice);\n\t\treturn totalPrice;\n\t}",
"private static int sum(List<Integer> counts) {\n int total = 0;\n for (int count : counts) {\n total += count;\n }\n return total;\n }",
"public int getAddItems(int totalCollected, int totalItemInGame);",
"double calculateTotalPrice(Map<String, Item> itemMap, List<String> itemList);",
"public int sumListeForEach(ArrayList<Integer> list) {\r\n int resultat = 0;\r\n for (int tal : list) {\r\n resultat = resultat + tal;\r\n }\r\n return resultat;\r\n }",
"@Override\n public Integer reduce(Integer value, Integer sum) {\n return value + sum;\n }",
"private boolean verifyTotal(ArrayList<Integer> oneSetOfChoices, ArrayList<Integer> listAllIntegers, int target) {\n\t\t\tboolean matchFound = false;\n\t\t\tint currentTotal = 0;\n\t\t\tint valueInList = 0;\n\t\t\t for (Integer positionInteger: oneSetOfChoices) {\n\t\t\t\t valueInList = listAllIntegers.get(positionInteger.intValue()).intValue();\n\t\t\t\t currentTotal += valueInList;\n\t\t\t }\n\t\t\t\n\t\t\t if (target == currentTotal) {\n\t\t\t\t matchFound = true;\n\t\t\t }\n\t\t\treturn matchFound;\n\t}",
"double getSum();",
"double getSum();",
"@Override\n public int summarizeQuantity() {\n int sum = 0;\n\n for ( AbstractItem element : this.getComponents() ) {\n sum += element.summarizeQuantity();\n }\n\n return sum;\n }",
"private int syuneri_gumar(ArrayList<Integer> syun) {\n int summa = 0;\n for (int i = 0; i < syun.size(); i++)\n summa += syun.get(i);\n return summa;\n }",
"public int getSum(List<Integer> a){\n\n int sum = 0;\n\n for(int i = 0; i<a.size(); i++){\n if(a.get(i)<0){\n continue;\n } else{\n sum +=a.get(i);\n }\n }\n return sum;\n }",
"protected int sumList(ArrayList<Integer> list){\r\n\t\tint result =0;\r\n\t\tfor(int i: list){\r\n\t\t\tresult = result + i;\r\n\t\t}\r\n\t\treturn result;\r\n\t\t\r\n\t}",
"int countSusbset(int n, int w){\n //i.e target sum achieved\n if(w == 0){\n return 1;\n }\n \n //if sum not achieved and no items left\n if(n == 0){\n return 0;\n }\n \n //if item is gretart than target weight, we have to exclude it\n if(arr[n-1] > w){\n return countSusbset(n-1, w)\n }else{ \n return countSusbset(n-1, w) + countSusbset(n-1, w - arr[n-1]);\n }\n}",
"public int sumEquipmentPrice(){\n int sum = 0;\n for (Equipment e: equipment){\n sum += e.getPrice();\n }\n return sum;\n }",
"public int getSumOfMultiples(int i, int[] set) {\n\t\tint min = set[0];\n\t\tint sum = 0;\n\t\t\n\t\tfor(int k = 0; k < set.length; k++) {\n\t\t\tif(set[k] < min) {\n\t\t\t\tmin = set[k];\n\t\t\t}\n\t\t}\n\t\tfor(int x = min; x < i; x++) {\n\t\t\tboolean multiplefound = false;\n\t\t\tfor(int y = 0; y < set.length; y++) {\n\t\t\t\tif(x % set[y] == 0) {\n\t\t\t\t\tmultiplefound = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(multiplefound == true) {\n\t\t\t\tsum += x;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t//System.out.println(sum);\n\t\treturn sum;\n\t}",
"public T sum(T first, T second);",
"@Override\n public USMoney calculatePrice() {\n USMoney sumPrice = new USMoney();\n for (int i = 0; i < curArrayIndex; i++) {\n sumPrice = sumPrice.add(items[i].getPrice());\n if (items[i].isFragile()) {\n sumPrice.addTo(10, 0);\n }\n }\n sumPrice.addTo(100, 0);\n return sumPrice;\n }",
"@Override\n\tpublic int sum() {\n\t\treturn this.first + this.second + this.third;\n\t}",
"void reduceStarsBy(final int amount);",
"public String getSum();",
"public List<Integer> sumLists(List<Integer> state,List<Integer> action) {\n\t\tList<Integer> out = new ArrayList<Integer>();\n\t\tfor (int i = 0;i<state.size();i++) {\n\t\t\tout.add(state.get(i)+action.get(i));\n\t\t}\n\t\treturn out;\n\t}",
"public void addTotal() {\n for (int i = 0; i < itemsInOrder.size(); i++) {\n this.dblTotal += itemsInOrder.get(i).getPrice();\n }\n }",
"public int singleNumber_Math(int[] nums) {\n \n Set<Integer> set = new HashSet<Integer>();\n \n int sumOfnums = 0;\n int setSum = 0;\n \n for(int a : nums){\n set.add(a);\n sumOfnums += a;\n }\n \n for(int a : set)\n setSum += a;\n \n \n return 2*(setSum)-sumOfnums;\n \n }",
"public BigDecimal getTotal() {\n BigDecimal total = new BigDecimal(0);\n for (Item item : items){\n int quantity = item.getQuantity();\n BigDecimal subtotal = item.getPrice().multiply(new BigDecimal(quantity));\n total = total.add(subtotal);\n }\n return total;\n }",
"private static int sumIntegerList(List<Integer> superGrowingList) {\r\n\t\tint sum = 0;\r\n\t\tIterator<Integer> iterator = superGrowingList.iterator();\r\n\t\twhile (iterator.hasNext()) {\r\n\t\t\tInteger integer = (Integer) iterator.next();\r\n\t\t\tsum += (int)integer;\r\n\t\t}\r\n\t\treturn sum;\r\n\t}",
"public int sumItems(double[] source) {\n int sum = 0;\n System.out.println(\"double array is called\");\n for(int i=0; i < source.length; i++) {\n sum += source[i];\n }\n return sum;\n }",
"private float getSubSum(){\n float sum = 0;\n for(int i = 0; i < subList.size(); i++){\n sum = sum + subList.get(i).getCost();\n }\n return sum;\n }",
"public int sumListeFor(ArrayList<Integer> list) {\r\n int resultat = 0;\r\n for (int i = 0; i < list.size(); i++) {\r\n resultat = resultat + list.get(i);\r\n }\r\n return resultat;\r\n }",
"public int getSumOfMultiples(int i, int[] set) {\n\t\t/*\n\t\t * Variables:\t\n\t\t * \t\tsum is the sum of all unique multiples. sum is returned at the end\n\t\t * \t\tmax is the number we want to stay under with the multiples\n\t\t * \t\tmultiple is the value of the multiple we have at any given time as an element of the array is added to itself\n\t\t * \t\tduplicates is an array that will store each multiple. This is to ensure we are not adding duplicates to the\n\t\t * \t\t\toverall sum.\n\t\t */\n\t\tint sum = 0;\n\t\tint max = i;\n\t\tint multiple;\t\n\t\tList<Integer> duplicates = new ArrayList<>();\n\n\t\t/*\n\t\t * for each value in the array, add its multiples to the sum as long as it's both unique per our duplicates array\n\t\t * \t\tand less than the max\n\t\t */\n\t\tfor (int j = 0; j < set.length; j++) { \n\t\t\tmultiple = set[j];\n\t\t\twhile (multiple < max) {\n\t\t\t\t\n\t\t\t\tif (!duplicates.contains(multiple)){\n\t\t\t\t\tduplicates.add(multiple);\n\t\t\t\t\t//System.out.println(multiple);\n\t\t\t\t\tsum = sum + multiple;\t\n\t\t\t\t}\n\t\t\t\tmultiple += set[j];\n\t\t\t}\n\t\t}\n\t\treturn sum;\n\t}",
"public int sum (List<? extends Number> numbers){\n\t\tif (numbers.size() > 0) {\n\t\t\tint sum = 0;\n\n\t\t\tfor ( int i = 0 ; i < numbers.size() ; i++) {\n\t\t\t\tif (numbers.get(i) instanceof Double ) {\n\t\t\t\t\tsum += numbers.get(i).intValue();\n\t\t\t\t} else {\n\t\t\t\t\tsum += (int) numbers.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn sum;\n\t\t}\n\t\treturn 0;\n\t}",
"public void totalBill(){\r\n\t\tint numOfItems = ItemsList.size();\r\n\t\t\r\n\t\tBigDecimal runningSum = new BigDecimal(\"0\");\r\n\t\tBigDecimal runningTaxSum = new BigDecimal(\"0\");\r\n\t\t\r\n\t\tfor(int i = 0;i<numOfItems;i++){\r\n\t\t\t\r\n\t\t\trunningTaxSum = BigDecimal.valueOf(0);\r\n\t\t\t\r\n\t\t\tBigDecimal totalBeforeTax = new BigDecimal(String.valueOf(this.ItemsList.get(i).getPrice()));\r\n\t\t\t\r\n\t\t\trunningSum = runningSum.add(totalBeforeTax);\r\n\t\t\t\r\n\t\t\tif(ItemsList.get(i).isSalesTaxable()){\r\n\t\t\t\r\n\t\t\t BigDecimal salesTaxPercent = new BigDecimal(\".10\");\r\n\t\t\t BigDecimal salesTax = salesTaxPercent.multiply(totalBeforeTax);\r\n\t\t\t \r\n\t\t\t salesTax = round(salesTax, BigDecimal.valueOf(0.05), RoundingMode.UP);\r\n\t\t\t runningTaxSum = runningTaxSum.add(salesTax);\r\n\t\t\t \r\n \r\n\t\t\t} \r\n\t\t\t\r\n\t\t\tif(ItemsList.get(i).isImportedTaxable()){\r\n\r\n\t\t\t BigDecimal importTaxPercent = new BigDecimal(\".05\");\r\n\t\t\t BigDecimal importTax = importTaxPercent.multiply(totalBeforeTax);\r\n\t\t\t \r\n\t\t\t importTax = round(importTax, BigDecimal.valueOf(0.05), RoundingMode.UP);\r\n\t\t\t runningTaxSum = runningTaxSum.add(importTax);\r\n\t\t\t \r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\tItemsList.get(i).setPrice(runningTaxSum.floatValue() + ItemsList.get(i).getPrice());\r\n\t\t\r\n\t\t\ttaxTotal += runningTaxSum.doubleValue();\r\n\t\t\t\r\n\t\t\trunningSum = runningSum.add(runningTaxSum);\r\n\t\t}\r\n\t\t\ttaxTotal = roundTwoDecimals(taxTotal);\r\n\t\t\ttotal = runningSum.doubleValue();\r\n\t}",
"@Override\r\n public boolean add(Item item){\r\n if(item.stackable&&contains(item)){\r\n stream().filter(i -> i.name.endsWith(item.name)).forEach(i -> {\r\n i.quantity += item.quantity;\r\n });\r\n }else if(capacity<=size()) return false;\r\n else super.add(item);\r\n return true;\r\n }",
"public boolean addAll(Collection<? extends T> arg0, double prob) {\n\t\tif ((arg0 == null) || (arg0.size() == 0))\n\t\t\treturn false;\n\t\tboolean result = false;\n\t\tfor (T item : arg0) {\n\t\t\tresult = result | add(item, prob);\n\t\t}\n\t\treturn result;\n\t}",
"public int robTotal(int[] nums, int sums[],int start, int end) {\n\t\tfor (int i = start; i< end+1; i++) {\n\t\t\trobRecAtIndex(i, nums, sums);\n\t\t}\n\t\treturn sums[end];\n\t}",
"public int totalValue() {\r\n\t\tint total = 0;\r\n\t\tfor(Item item: items) {\r\n\t\t\ttotal = total + item.getValue();\r\n\t\t}\r\n\t\treturn total;\r\n\t}",
"public void addItems(K[] items) {\n\n\t\tfor (K item : items) {\n\t\t\tInteger count = (duplicates.get(item));\n\t\t\tduplicates.put(item, ((count != null) ? count += 1 : 1));\n\t\t}\n\t}",
"private void getSum() {\n\t\tint sum =0;\r\n\t\t\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i] != null)\r\n\t\t\t\tsum += products[i].getPrice();\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t}",
"public int getSumofElements(ArrayList<Integer> input)\n\t\t\tthrows RemoteException;",
"MultiSet<X> add(X x);",
"@Test\n public void testSumAllNumbersWithManyNumbers(){\n assertEquals(Integer.valueOf(15), calculator.sumAllNumbers(new Integer[]{1, 2, 3, 4, 5}));\n }",
"public T sum();",
"@Test\r\n public void DoubleAggregatorSumTest() {\r\n DoubleAggregator t = DoubleAggregator.create(AggregationMode.SUM);\r\n t.init();\r\n for (int i = 0; i <= 10; i++) {\r\n t.consider((double)(i*i));\r\n }\r\n t.finish();\r\n t.finish();\r\n assert t.get() == 385;\r\n }",
"public static void main (String args[])\n\t {\n\t int set[] = {3, 34, 4, 12, 5, 2};\n\t int sum = 9;\n\t int n = set.length;\n\t if (isSubsetSum(set, n, sum) == true)\n\t System.out.println(\"Found a subset with given sum\");\n\t else\n\t System.out.println(\"No subset with given sum\");\n\t }",
"public void addItemset(Itemset itemset) {\n itemsets.add(itemset);\n numberOfItems += itemset.size();\n }",
"@Test\n\tpublic void testSum() {\n\t\tassertEquals(155, g1.sum(), .0001);\n\t\tassertEquals(226, g2.sum(), .0001);\n\t\tassertEquals(298, g3.sum(), .0001);\n\t}",
"static int sum(int... args) {\n\t\tint sum = 0;\n\t\tfor (int arg : args)\n\t\t\tsum += arg;\n\t\treturn sum;\n\t}",
"private Double calculateSupport(final List<Order> orders, final ItemSet itemSet) {\n\t\tdouble support = 0;\n\n\t\tfor (Order order : orders) {\n\t\t\tif (order.getItems().containsAll(itemSet)) {\n\t\t\t\tsupport++;\n\t\t\t}\n\t\t}\n\n\t\treturn support / orders.size();\n\t}",
"private static int sum(int[] coins,int coinsCount,int startIndex){\n int sum = 0;\n for(int c1=startIndex;c1<startIndex+coinsCount;c1++){\n sum += coins[c1];\n }\n return sum;\n }",
"public int sumEquipmentWeight(){\n int sum = 0;\n for (Equipment e: equipment){\n sum += e.getWeight();\n }\n return sum;\n }",
"default int sumOfAll(int a, int b) {\n\t\t\treturn 0;\n\t\t}",
"public Integer calculateSum() {\n logger.debug(\"Calculating and returning the sum of expenses.\");\n return listOfTargets.stream().map(T::getAmount).reduce(0, Integer::sum);\n }",
"private void arraySum(MyArrayList myArrayList, Results results) {\r\n int old_sum = myArrayList.sum();\r\n myArrayList.insertSorted(511);\r\n int new_sum = myArrayList.sum();\r\n if(old_sum < new_sum) {\r\n results.storeNewResult(\"ArraySum test case: PASSED\");\r\n }\r\n else { \r\n results.storeNewResult(\"ArraySum test case: FAILED\");\r\n }\r\n }",
"public void setSum(Integer sum) {\n this.sum = sum;\n }",
"public static void main(String[] args) {\n Item item1=new Item(\"cucumber\",2,5);\n Item item2=new Item(\"appl\",3,6);\n Item item3=new Item(\"orange\",3,5);\n Item item4=new Item(\"bananas\",2,6);\n\n ArrayList<Item>shoppingList=new ArrayList<>();\n shoppingList.addAll(Arrays.asList(item1,item2,item3,item4));\n double totalCost=0;\n for (Item each:shoppingList){\n totalCost +=each.calCost();\n }\n for(int i=0;i<shoppingList.size();i++){\n totalCost+=shoppingList.get(i).calCost();\n }\n System.out.println(\"total:\"+totalCost);\n\n\n\n\n //System.out.println(item1.calCost());\n\n // System.out.println(item1);\n\n\n\n\n\n }",
"public void add(int add){\n if (!elementOf(add)) {\n int[] added = new int[set.length + 1];\n for(int element = 0; element < set.length; element++){\n added[element] = set[element];\n }\n added[set.length] = add; \n setSet(added);\n added = null;\n }\n }",
"public int sum()\n {\n return sum(0,0,size);\n }",
"public void setSum(String sum) {\n this.sum = sum;\n }",
"public void setSUM(double value) {\n this.sum = value;\n }",
"public static int sumList(ArrayList<Integer> list)\n {\n int sum = 0;\n for (int value: list)\n {\n \n sum+=value;\n \n //list.add(7);\n }\n \n return sum;\n }",
"private static int addListOfNumbers(List<Integer> numbers) {\n\t\t/*\n\t\t * Approach 1: Use reduce method and make a call to sum method explicitly\n\t\t */\n\t\t// return numbers.stream().reduce(0, StreamReduce::sum);\n\n\t\t/*\n\t\t * Approach 2 : Replace explicit call with Lambda expression\n\t\t */\n\t\t// return numbers.stream().reduce(0, (x,y)->x+y);\n\n\t\t/*\n\t\t * Approach 3: Replace Lambda expression with Integer sum methods\n\t\t *\n\t\t */\n\n\t\treturn numbers.stream().reduce(0, Integer::sum);\n\t}",
"public static boolean sumsTo(int[] A, int[] B, int m) {\n\t\t// REPLACE WITH YOUR ANSWER\n\t\tA = Arrays.copyOf(A, A.length);\n Arrays.sort(A);\n for (int b : B) {\n int k = Arrays.binarySearch(A, m - b);\n if (k >= 0 && k < A.length && A[k] + b == m) {\n return true;\n }\n }\n return false;\n }",
"private int addTax(Iterable<TransactionItem> items) {\r\n\t\tint tax = 0;\r\n\r\n\t\tfor (TransactionItem item : items) {\r\n\t\t\tint newTax = (int) Math.round(item.getPriceInCents()\r\n\t\t\t\t\t* (this.tax.getPercentage() / 100.0));\r\n\t\t\ttax += newTax;\r\n\t\t}\r\n\t\treturn tax;\r\n\t}",
"void addEmergingSymbols(Set<Integer> acc);",
"public static void main(String[] args)\n\t{\n\t\tArrayList set = new ArrayList(); \n\t\tdouble productSum = 0;\t\n\t\t\n\t\tfor (int i = 0 ; i < 355000 ; i++)\n\t\t{\n\t\t\tproductSum = 0;\n\t\t\t//Can only be a 5 digit number or a 4 digit number\t\t\t\t\t\t\n\t\t\tint value = i;\n\t\t\twhile (value != 0)\n\t\t\t{\n\t\t\t\tproductSum += Math.pow((value % 10), 5);\n\t\t\t\tvalue /= 10;\n\t\t\t}\n\t\t\t\n\t\t\tif (i == productSum)\n\t\t\t{\n\t\t\t\tset.add(i);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tint sum = 0;\n\t\tfor (int i = 0 ; i < set.size(); i++)\n\t\t{\n\t\t\tsum += (int)set.get(i);\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}",
"public long sum() {\n\t\tlong result = 0;\n\t\tfor (int i=0; i<numElements; i++) {\n\t\t\tresult += theElements[i];\n\t\t}\n\t\treturn result;\n\t}",
"private static int findSum(int[] nums, int start, int end) {\n int sum = 0;\n for ( int i = start ; i < end ; i++ ) {\n sum = sum + nums[i];\n }\n return sum;\n }",
"public static int p_sum(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"please put the how many numbers you want to sum:\");\n int v_sum_numbers = keyboard.nextInt();\n int v_total_sum= 0;\n for (int i=1; i<=v_sum_numbers;i=i+1){\n System.out.println(\"please input the \"+i+\" number: \");\n int v_sum_num = keyboard.nextInt();\n v_total_sum= v_total_sum+v_sum_num;\n }\n return v_total_sum;\n }",
"static long productPandigitalSum() {\n // Create a long to return\n long sum = 0;\n HashSet<Integer> products = new HashSet<>();\n\n // Has to be a product between a two and three digit number\n for(int a = 1; a < 100; a++) {\n for(int b = 100; b < 10000; b++) {\n // If pandigital, add to the set\n if(arePandigital(a, b, (a*b))) products.add(a*b);\n }\n }\n\n // Go through the set and add it to the set\n for(Integer i : products) sum += i;\n\n return sum;\n }",
"public boolean addContainsAll(Collection<? extends T> arg0, double prob) {\n\t\tboolean val = false;\n\t\tfor (T t : arg0) {\n\t\t\tif (!contains(t))\n\t\t\t\tval |= add(t, prob);\n\t\t}\n\t\treturn val;\n\t}",
"public Integer addStuffTogether(ArrayList<Integer> original1, ArrayList<Integer> original2) {\n Integer sum = 0;\n for (Integer i : original1) {\n sum += i;\n }\n for (Integer i : original2) {\n sum += i;\n }\n return sum;\n }",
"boolean isValidForBasket(Collection<Item> items);",
"protected double t_weight_sum(int t) throws Exception\n\t{\n\t\tdouble sum = 0;\n\t\tint i, j;\n\t\tfor (i = 0; i < user_num; i++)\n\t\t{\n\t\t\tsum += weight_ut.at(i, t);\n\t\t}\n\t\tfor (j = 0; j < item_num; j++)\n\t\t{\n\t\t\tsum += weight_ti.at(t, j);\n\t\t}\n\t\treturn sum;\n\t}",
"public void addItems() {\r\n\t\tproductSet.add(new FoodItems(1000, \"maggi\", 12.0, 100, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1001, \"Pulses\", 55.0, 50, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1004, \"Meat\", 101.53, 5, new Date(), new Date(), \"no\"));\r\n\t\tproductSet.add(new FoodItems(1006, \"Jelly\", 30.0, 73, new Date(), new Date(), \"no\"));\r\n\t\t\r\n\t\tproductSet.add(new Apparels(1005, \"t-shirt\", 1000.0, 10, \"small\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1002, \"sweater\", 2000.0, 5,\"medium\", \"woolen\"));\r\n\t\tproductSet.add(new Apparels(1003, \"cardigan\", 1001.53,22, \"large\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1007, \"shirt\", 500.99, 45,\"large\",\"woolen\"));\r\n\t\t\r\n\t\tproductSet.add(new Electronics(1010, \"tv\", 100000.0, 13, 10));\r\n\t\tproductSet.add(new Electronics(1012, \"mobile\", 20000.0, 20,12));\r\n\t\tproductSet.add(new Electronics(1013, \"watch\", 1101.53,50, 5));\r\n\t\tproductSet.add(new Electronics(1009, \"headphones\", 300.0, 60,2));\r\n\t\t\r\n\t}",
"private Item mergeItem(Item newItem, List<Item> items) throws ItemException{\r\n \t\tfor (Item item2 : items) {\r\n \t\t\tif (!item2.isBought() && item2.getName().equals(newItem.getName())) {\r\n\t\t\t\t// sum price\r\n\t\t\t\titem2.setPrice(newItem.getPrice().add(item2.getPrice()));\r\n \t\t\t\tif (newItem.getUnit() == null && item2.getUnit() == null) {\r\n \t\t\t\t\t// Both have no unit --> item has now 2 pieces.\r\n \t\t\t\t\titem2.setQuantity(BigDecimal.valueOf(2), ItemUnit.PIECE);\r\n \t\t\t\t\treturn item2;\r\n \t\t\t\t} else if (newItem.getUnit() == null && item2.getUnit() == ItemUnit.PIECE) {\r\n \t\t\t\t\t// new Item has no unit, existing item has PIECE as unit. add one piece to the existing item.\r\n \t\t\t\t\titem2.setQuantity(item2.getQuantity().add(BigDecimal.ONE), ItemUnit.PIECE);\r\n \t\t\t\t\treturn item2;\r\n \t\t\t\t} else if (newItem.getUnit() != null && newItem.getUnit() == item2.getUnit()) {\r\n \t\t\t\t\t// Both have same unit --> add them together\r\n \t\t\t\t\tBigDecimal newQuantity = newItem.getQuantity().add(item2.getQuantity());\r\n \t\t\t\t\titem2.setQuantity(newQuantity, item2.getUnit());\r\n \t\t\t\t\treturn item2; // we want to save only one item.\r\n \t\t\t\t} else if (ItemUnit.MASSES.contains(newItem.getUnit()) && ItemUnit.MASSES.contains(item2.getUnit())) {\r\n \t\t\t\t\t// Both units are masses. Convert it first to grams and then add them.\r\n \t\t\t\t\tBigDecimal mass1 = newItem.getUnit()==ItemUnit.GRAM ? newItem.getQuantity():newItem.getQuantity().multiply(THOUSAND);\r\n \t\t\t\t\tBigDecimal mass2 = item2.getUnit()==ItemUnit.GRAM ? item2.getQuantity():item2.getQuantity().multiply(THOUSAND);\r\n \t\t\t\t\tBigDecimal finalMass = mass1.add(mass2);\r\n \t\t\t\t\tItemUnit unit = ItemUnit.GRAM;\r\n \t\t\t\t\tif (finalMass.compareTo(THOUSAND) > 0){\r\n \t\t\t\t\t\tfinalMass = finalMass.divide(THOUSAND);\r\n \t\t\t\t\t\tunit = ItemUnit.KILO_GRAM;\r\n \t\t\t\t\t}\r\n \t\t\t\t\titem2.setQuantity(finalMass, unit);\r\n \t\t\t\t\treturn item2;\r\n \t\t\t\t} else {\r\n \t\t\t\t\tthrow new ItemException();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn newItem;\r\n \t}",
"@Test\r\n public void addAllFromSet() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n assertTrue(s.contains(1));\r\n assertTrue(s.contains(2));\r\n assertTrue(s.contains(3));\r\n assertTrue(s.contains(4));\r\n assertTrue(s.contains(5));\r\n }",
"public static void main(String[] args) {\n\t\tint [] a= {1,1,3,4};\n\t\tfor(int i : sum(a)){\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}",
"public static int sumAll(Scanner input){\n int total = 0;\n while(input.hasNext()){\n int num = input.nextInt();\n total += num;\n }\n return total;\n }",
"@Override\n public BigDecimal calculate(List<String> skuIds) {\n Collection<PricingRule> items = pricingRulesReader.fetchPricingRules();\n Map<String, PricingRule> pricingRuleMap = items.stream().collect(Collectors.toMap(PricingRule::getSkuId, Function.identity()));\n\n // Step 2: Map of SKUID and number of items for the SKUID\n Map<String, Long> itemsSkuAndQuantity = skuIds.stream().collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));\n\n // Step 3: Calculate total price of items based on pricing rule and the number of items in the list\n return itemsSkuAndQuantity.entrySet().stream().reduce(BigDecimal.ZERO, (currentSum, entry) ->\n currentSum.add(pricingRuleMap.get(entry.getKey()).calculatePriceFor(entry.getValue())), BigDecimal::add);\n }",
"private static int[] union(int[] items1, int[] items2) {\n\t\tSet<Integer> itemSet = new HashSet<Integer>();\n\t\tfor(int i : items1) {\n\t\t\titemSet.add(i);\n\t\t}\n\t\tfor(int i : items2){\n\t\t\titemSet.add(i);\n\t\t}\n\t\tint[] items = new int[itemSet.size()];\n\t\tint i = 0;\n\t\tfor(int val : itemSet){\n\t\t\titems[i++] = val; \n\t\t}\n\t\treturn items;\n\t}",
"public static void main (String args[])\n\t{\n\t\tint set[] = {3, 34, 4, 12, 5, 2};\n\t\tint sum = 9;\n\t\tint n = set.length;\n\t\tif (isSubsetSum(set, n, sum) == true)\n\t\t\tSystem.out.println(\"Found a subset\"\n\t\t\t\t\t\t+ \" with given sum\");\n\t\telse\n\t\t\tSystem.out.println(\"No subset with\"\n\t\t\t\t\t\t\t+ \" given sum\");\n\t}",
"@Override\n\tpublic boolean addAll(Collection<? extends T> elements) {\n\t\tif ((elements == null) || (elements.size() == 0))\n\t\t\treturn false;\n\t\tboolean result = false;\n\t\tdouble prob = 1.0 / elements.size();\n\t\tfor (T item : elements) {\n\t\t\tresult = result | add(item, prob);\n\t\t}\n\t\treturn result;\n\t}",
"private int calculateInputStock_Items() {\n\t\tint total = 0;\n\t\tArrayList<Integer> stock = getAllStockValues();\n\t\tif (!stock.isEmpty()) {\n\t\t\t// get for all K\n\t\t\ttotal += (stock.get(0) * getSetUpMachine().getVending_item().get(\"K\"));\n\t\t\t// get for all S\n\t\t\ttotal += (stock.get(1) * getSetUpMachine().getVending_item().get(\"S\"));\n\t\t\t// get for all F\n\t\t\ttotal += (stock.get(2) * getSetUpMachine().getVending_item().get(\"F\"));\n\t\t\t// get for all N\n\t\t\ttotal += (stock.get(3) * getSetUpMachine().getVending_item().get(\"N\"));\n\t\t}\n\t\treturn total;\n\t}",
"public static void main(String[] args) {\n\t\tint arr[] = {-3,8,-2,4,-5,6};\n\t\tint ans = sum(arr);\n\t\tSystem.out.println(ans);\n\t}",
"static void subsetSums(int[] arr, int l, int r, int sum)\n {\n \n // Print current subset\n if (l > r) {\n System.out.print(sum + \" \");\n return;\n }\n \n // Subset including arr[l]\n subsetSums(arr, l + 1, r, sum + arr[l]);\n \n // Subset excluding arr[l]\n subsetSums(arr, l + 1, r, sum);\n }",
"public Knapsack bruteForceCalc (ArrayList <Item> items,int capacity, int num_items) {\n\t\tif (num_items <= 0) {\n\t\t\tKnapsack knapsack = new Knapsack(0);\n\t\t\treturn knapsack;\n\t\t} \n\t\telse if (items.get(num_items -1).getWeight() > capacity) {\n\t\t\treturn bruteForceCalc(items, capacity, num_items - 1);\n\t\t} else {\n\n\t\t\tKnapsack ignore = bruteForceCalc(items,capacity, num_items - 1);\n\t\t\tKnapsack take = bruteForceCalc(items,capacity - items.get(num_items -1).getWeight(), num_items - 1);\n\t\t\t\n\t\t\tint ignoreVal = ignore.getValue();\n\t\t\tint takeVal = items.get(num_items - 1).getValue() + take.getValue();\n\t\t\t \n\t\t\tif( Math.max(ignoreVal, takeVal) == ignoreVal ) \n\t\t\t\treturn ignore;\n\t\t\telse {\n\t\t\t\ttake.addItem(items.get(num_items - 1));\n\t\t\t\treturn take;\n\t\t\t}\n\t\t}\n\t}",
"public int calcSum() {\n\t\tint sum = 0;\n\t\tfor (int count = 0; count < data.size(); count++)\n\t\t\tsum += (int)data.get(count);\n\t\treturn sum;\n\t}",
"@Override\n public BinaryOperator<List<Integer>> combiner() {\n return (resultList1, resultList2) -> {\n Integer currentTotal1 = resultList1.get(0);\n Integer currentTotal2 = resultList2.get(0);\n currentTotal1 += currentTotal2;\n resultList1.set(0, currentTotal1);\n return resultList1;\n };\n }",
"@Test\n public void subtotal_isCorrect() {\n\n MainActivity.items.add(new Item(\"food\", 20.99, 2, 0));\n MainActivity.items.add(new Item(\"games\", 10, 1, 10));\n\n Cart.update_total();\n assert (Cart.sub_sum == 20.99 * 2 + 10 * 0.9);\n }",
"public static void calculateTotal(){\n int i=0;\n total=0;\n while(i<CustomAdapter.selecteditems.size()){\n total+= CustomAdapter.selecteditems.get(i).getPrice() * CustomAdapter.selecteditems.get(i).getQuantity();\n i++;\n }\n String s=\"Rs \"+String.valueOf(total);\n tv_total.setText(s);\n }",
"@Override\n\tpublic void execute(Tuple input, BasicOutputCollector collector) {\n\t\tString[] numbers = (String[]) input.getString(1).split(\"\\\\+\");\n\t\tInteger added = 0;\n\t\ttry{\n\t\t\tif(numbers.length<2){\n\t\t\t\tthrow new InvalidParameterException(\"Should be at least 2 numbers\");\n\t\t\t}\n\t\t\tfor(String num : numbers){\n\t\t\t\t//Add each member\n\t\t\t\tadded += Integer.parseInt((java.lang.String) num);\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\t//On error emit null\n\t\t\tcollector.emit(new Values(input.getValue(0),NULL));\n\t\t}\n\t\t//Emit the result\n\t\tcollector.emit(new Values(input.getValue(0),added));\n\t}",
"@Test\n\tpublic void when_provided_maximum_size_list_with_all_elements_that_can_be_added_then_return_sum_in_allowable_amount_of_time() {\n\t\tfinal int[] elements = Fixture.initializeRandomList(MAX_NUM_ELEMENTS, MIN_ELEMENT_SIZE, 5);\n\t\tfinal int elementSum = IntStream.of(elements).sum();\n\t\tfinal long startTime = System.currentTimeMillis();\n\n\t\tfinal int result = Knapsack.getOptimalWeight(elementSum, elements);\n\n\t\tassertThat(result, is(elementSum));\n\t\tassertThat(System.currentTimeMillis() - startTime < Fixture.MAX_ALLOWABLE_CALCULATION_TIME, is(true));\n\t}",
"protected abstract void solve(Items items,Knapsack knapsack);",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n n = in.nextInt();\n m = in.nextLong();\n initFactorSets();\n long total = 0;\n\n boolean add = true;\n for (ArrayList<Integer> factorSet : factorSets) {\n for (int factor : factorSet) {\n if (add) {\n total += m / factor;\n } else {\n total -= m / factor;\n }\n }\n add = !add;\n }\n System.out.println(total);\n }",
"void add(Set<Card> cards);",
"public Quantity<Q> getSum(Unit<Q> unit) {\n return sum.to(unit);\n }",
"private double calculateTotal(){\r\n double total = 0;\r\n\r\n for(Restaurant restaurant: restaurantMap.getRestaurantMap().values()){\r\n total += restaurant.getRevenue();\r\n }\r\n\r\n return total;\r\n }",
"public double sum() {\n double sum = x;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n sum += iter.next.x;\n iter = iter.next;\n }\n return sum;\n }",
"public static int simpleArraySum() { //(List<Integer> ar)\n \n Integer []ar = {1,2,3}; \n\n Integer sum =0;\n for(Integer i : ar){\n sum +=i;\n }\n return sum; \n }"
] |
[
"0.62105644",
"0.60722333",
"0.6059607",
"0.59542984",
"0.5935131",
"0.5930839",
"0.5802606",
"0.5774655",
"0.5709909",
"0.56854177",
"0.56854177",
"0.5663457",
"0.56157875",
"0.5587315",
"0.55819416",
"0.5573765",
"0.55630475",
"0.5551348",
"0.5522715",
"0.5508139",
"0.55052745",
"0.55",
"0.54699135",
"0.545586",
"0.5446311",
"0.54448277",
"0.543875",
"0.5425046",
"0.54210746",
"0.5420344",
"0.54199356",
"0.5414941",
"0.5403685",
"0.53911275",
"0.5377602",
"0.5376181",
"0.5371002",
"0.53697574",
"0.53664076",
"0.5359877",
"0.5358912",
"0.5358151",
"0.53574985",
"0.53573185",
"0.5353868",
"0.53529996",
"0.53529876",
"0.5348332",
"0.5331151",
"0.5316275",
"0.53008026",
"0.52994657",
"0.52925783",
"0.52802336",
"0.5275914",
"0.52732974",
"0.52648747",
"0.5259365",
"0.525165",
"0.5242786",
"0.5240305",
"0.5236347",
"0.5231326",
"0.5223422",
"0.52145326",
"0.52130795",
"0.5201237",
"0.5201047",
"0.5193717",
"0.519086",
"0.5189617",
"0.5181583",
"0.5177575",
"0.51766634",
"0.51753277",
"0.5171363",
"0.5169082",
"0.516792",
"0.5161648",
"0.51345223",
"0.513272",
"0.51283604",
"0.51214284",
"0.5119715",
"0.51186836",
"0.51126397",
"0.5112248",
"0.5109969",
"0.5109653",
"0.51029474",
"0.51020294",
"0.5100994",
"0.5080786",
"0.5078993",
"0.507388",
"0.50664455",
"0.50561005",
"0.5052039",
"0.50504243",
"0.5049911",
"0.5048001"
] |
0.0
|
-1
|
out.println("\nSrc>Dst Argument:"); printStats(out, srcDstPredicateMap, 5); out.println("\nDst>Src Argument:"); printStats(out, dstSrcPredicateMap, 5); out.println("\nSrc>Dst Argument:"); printStats(out, srcDstArgTypeMap, 5); out.println("\nDst>Src Argument:"); printStats(out, dstSrcArgTypeMap, 5);
|
public void printStats(PrintStream out)
{
out.println("\np(a_e|P_c,P_e,a_c):");
printProb(out, srcDstPredicateArgMap, 10, 0.05f);
out.println("\np(a_c|P_e,P_c,a_e):");
printProb(out, dstSrcPredicateArgMap, 10, 0.05f);
//printMatrix(out, srcDstArgTypeMap, dstSrcArgTypeMap);
//out.printf("one-to-one: %d, total: %d, %f\n", oneToOne, total, oneToOne*1.0/total);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void printStats();",
"public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {\n synchronized (mLock) {\n pw.println(\"RTT Metrics:\");\n pw.println(\"mNumStartRangingCalls:\" + mNumStartRangingCalls);\n pw.println(\"mOverallStatusHistogram:\" + mOverallStatusHistogram);\n pw.println(\"AP:\" + mPerPeerTypeInfo[PEER_AP]);\n pw.println(\"AWARE:\" + mPerPeerTypeInfo[PEER_AWARE]);\n }\n }",
"public void printStats() {\n\t\t\n\t\tif(grafo==null) {\n\t\t\t\n\t\t\tthis.createGraph();\n\t\t}\n\t\t\n\t\tConnectivityInspector <Airport, DefaultWeightedEdge> c = new ConnectivityInspector<>(grafo);\n\t\t\n\t\tSystem.out.println(c.connectedSets().size());\n\n\t}",
"private static void printStats(Stats stats) {\n long elapsedTime = (System.nanoTime() - startTime) / 1000000;\n System.out.println(\"Analysis completed - \" + keyCount + \" keys processed in \" + elapsedTime + \" ms\");\n getConsole().println(\"Analysis completed - \" + keyCount + \" keys processed in \" + elapsedTime + \" ms\");\n stats.print();\n }",
"private static void printStats()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords found: \" + keywordHits);\r\n\t\tSystem.out.println(\"Links found: \" + SharedLink.getLinksFound());\r\n\t\tSystem.out.println(\"Pages found: \" + SharedPage.getPagesDownloaded());\r\n\t\tSystem.out.println(\"Failed downloads: \" + SharedPage.getFailedDownloads());\r\n\t\tSystem.out.println(\"Producers: \" + fetchers);\r\n\t\tSystem.out.println(\"Consumers: \" + parsers);\r\n\t}",
"public void printPersonStats(String fullName)\n\t{\n\t\tSystem.out.println(\"\\n\"+fullName);\n\t\t\n\t\t//assuming person exists in graph\n\t\tfor(String relationship: personMap.get(fullName).inRelationships.keySet())\n\t\t\tSystem.out.println(\"-\"+relationship+\" to \"+personMap.get(fullName).inRelationships.get(relationship));\n\t\t\n\t\tfor(String relationship: personMap.get(fullName).outRelationships.keySet())\n\t\t\tSystem.out.println(\"-\"+personMap.get(fullName).outRelationships.get(relationship)+\" is the \"+relationship);\n\t}",
"private void printStats()\n\t{\n\t\t// X\n\t\tSystem.out.println(\"X:\");\n\t\tfor(int i = 0; i < xPosList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(xPosList.get(i));\n\t\t}\n\n\t\t// Y\n\t\tSystem.out.println(\"Y:\");\n\t\tfor(int i = 0; i < yPosList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(yPosList.get(i));\n\t\t}\n\n\t\t// Time\n\t\tSystem.out.println(\"Time:\");\n\t\tfor(int i = 0; i < timeList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(timeList.get(i));\n\t\t}\n\t}",
"public void printMapping() {\n LogDumper.out(sourceOutputMap);\n }",
"public String getStatistics() {\n return \"Bounds = (\" + x1 + \", \" + y1 + \"), (\" + x2 + \", \" + y2 + \")\\n\" +\n \"Number of Nodes = \" + numNodes + \"\\n\";\n }",
"public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {\n if (args != null && args.length > 0) {\n boolean z = false;\n String str = args[0];\n int hashCode = str.hashCode();\n if (hashCode != -1953159389) {\n if (hashCode == 950313125 && str.equals(\"--metricsproto\")) {\n z = true;\n switch (z) {\n case false:\n printAllMetrics(pw);\n return;\n case true:\n pw.println(convertProtoToBase64String(buildProto()));\n reset();\n return;\n default:\n return;\n }\n }\n }\n z = true;\n switch (z) {\n case false:\n break;\n case true:\n break;\n }\n }\n }",
"protected void dumpStats() {\n\t\t// Print the header.\n\t\tSystem.out.println(\"\\n\"+phCode+\" \"+minDelta+\" \"+maxDelta);\n\t\t\n\t\t// Print the data.\n\t\tSystem.out.println(\"Bias:\");\n\t\tfor(int j=0; j<bias.size(); j++) {\n\t\t\tSystem.out.format(\" %3d range = %6.2f, %6.2f fit = %11.4e, \"+\n\t\t\t\t\t\"%11.4e\\n\",j,bias.get(j).minDelta,bias.get(j).maxDelta,\n\t\t\t\t\tbias.get(j).slope,bias.get(j).offset);\n\t\t}\n\t\tSystem.out.println(\"Spread:\");\n\t\tfor(int j=0; j<spread.size(); j++) {\n\t\t\tSystem.out.format(\" %3d range = %6.2f, %6.2f fit = %11.4e, \"+\n\t\t\t\t\t\"%11.4e\\n\",j,spread.get(j).minDelta,spread.get(j).maxDelta,\n\t\t\t\t\tspread.get(j).slope,spread.get(j).offset);\n\t\t}\n\t\tSystem.out.println(\"Observability:\");\n\t\tfor(int j=0; j<observ.size(); j++) {\n\t\t\tSystem.out.format(\" %3d range = %6.2f, %6.2f fit = %11.4e, \"+\n\t\t\t\t\t\"%11.4e\\n\",j,observ.get(j).minDelta,observ.get(j).maxDelta,\n\t\t\t\t\tobserv.get(j).slope,observ.get(j).offset);\n\t\t}\n\t}",
"public void printDistance(int runNum, String dir){\n\n List<String[]> destinations = parseFileByName(dir+\"/destinations.\"+readExtention);\n List<Point2D> destination = new ArrayList<>();\n List<List<Double>> distances = new ArrayList<>();\n for(String[] strings : destinations)\n destination.add(new Point2D(Double.parseDouble(strings[0]),Double.parseDouble(strings[1])));\n\n for(int i = 0; i < runNum; i++) {\n List<String[]> receiverContent = parseFileByName(dir+\"/receivers_placement_\"+i+\".\"+readExtention);\n List<Point2D> receiverValues = new ArrayList<>();\n for(String[] strings : receiverContent)\n receiverValues.add(new Point2D(Double.parseDouble(strings[1]),Double.parseDouble(strings[2])));\n List<Double> distanceFromDestination = new ArrayList<>();\n for(Point2D receiverPosition : receiverValues)\n distanceFromDestination.add(receiverPosition.distance(destination.get(i)));\n distances.add(distanceFromDestination);\n }\n\n try {\n PrintWriter resWriter = new PrintWriter(dir+\"/A_results/distances\"+\".\"+writeExtention, \"UTF-8\");\n for(int i = 0;i < distances.get(0).size(); i++){\n String s = \"\";\n for(List<Double> distanceFromDestination : distances)\n s = s + distanceFromDestination.get(i) + \",\";\n int n = i+1;\n\n int nLastChar = numberOfTests%26;\n\n char lastChar = 'A';\n\n lastChar+=nLastChar-1;\n int nFirstChar = 0;\n if(numberOfTests>26){\n nFirstChar= numberOfTests/26;\n }\n\n String avg;\n String var;\n\n if(nFirstChar==0){\n avg = \"=AVERAGE(A\"+n+(\":\"+lastChar)+n+\"),\";\n var = \"=VAR(A\"+n+(\":\"+lastChar)+n+\")\";\n }\n else {\n char firstChar = 'A';\n firstChar += nFirstChar;\n avg = \"=AVERAGE(A\"+n+(\":\"+firstChar+\"\"+lastChar)+n+\"),\";\n var = \"=VAR(A\"+n+(\":A\"+firstChar+\"\"+lastChar)+n+\")\";\n }\n\n s += avg + var;\n resWriter.println(s);\n resWriter.flush();\n\n }\n\n resWriter.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n }",
"public void printMiniMap() { }",
"public static void main(String args[]){\r\n\t\t\r\n\t\tMap<Integer, String> map = new HashMap<Integer, String>();\r\n\t\tMap<Integer, String> linkedmap = new LinkedHashMap<Integer, String>();\r\n\t\tMap<Integer, String> treemap = new TreeMap<Integer, String>();\r\n\r\n\t\t//testMap(map);\r\n\t\t//testMap(linkedmap);\r\n\t\ttestMap(treemap);\r\n\t\t\r\n\t}",
"private void statsOutput(long startTime, long endTime ,Stat stat, int taskSize, List<Stat> listStat) {\n\n System.out.println();\n System.out.println(\" !!! END OF REQUEST !!!\");\n System.out.println();\n System.out.println(\"----------------------------------\");\n System.out.println(\" STATISTICS\");\n System.out.println(\"----------------------------------\");\n System.out.println(\"1. Number of threads: \" + taskSize);\n System.out.println(\"2. Total run time: \" + (endTime - startTime));\n System.out.println(\"3. Total request sent: \" + stat.getSentRequestsNum());\n System.out.println(\"4. Total successful request: \" + stat.getSuccessRequestsNum());\n System.out.println(\"5. Mean latency: \" + stat.getMeanLatency());\n System.out.println(\"6. Median latency: \" + stat.getMedianLatency());\n System.out.println(\"7. 95th percentile latency: \" + stat.get95thLatency());\n System.out.println(\"8. 99th percentile latency: \" + stat.get99thLatency());\n\n if(listStat!=null){\n OutputChart outputChart = new OutputChart(listStat);\n outputChart.generateChart(\"Part 1\");\n }\n\n }",
"public static void main(String[] args) {\n\t\tif(args.length > 0) {\n\t\t\ttry {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(args[0]));\n\t\t\t\tint cmd = parseCommands(br.readLine());\n\t\t\t\tPrintStream ps = new PrintStream(\"Output Stats for input \" + args[0]);\n\t\t\t\tAllStats as = new AllStats();\n\t\t\t\tif(cmd == 3) {\n\t\t\t\t\tps.println(\"Given edges:\");\n\t\t\t\t\tArrayList<Edge> e = new ArrayList<Edge>();\n\t\t\t\t\t// Read in the lines and parse them to edges\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\twhile(s != null){\n\t\t\t\t\t\tEdge temp = parseToEdge(s);\n\t\t\t\t\t\tif(temp == null){\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\te.add(temp);\n\t\t\t\t\t\tps.println(temp);\n\t\t\t\t\t\ts = br.readLine();\n\t\t\t\t\t}\n\t\t\t\t\tps.println();\n\t\t\t\t\t// Make a grid with default initial edge and given sequence\n\t\t\t\t\tGrid grid = new Grid();\n\t\t\t\t\tgrid.addInitialEdge(new Edge(new Point(0, 1, 0), new Point(1, 0, 0)));\n\t\t\t\t\tgrid.addInitialSeq(e.toArray(new Edge[e.size()]));\n\t\t\t\t\t// Run algorithm and print results\n\t\t\t\t\tgrid.runAlgorithm(1);\n\t\t\t\t\tas.display(new DataStructure2(grid), e.size(), 1, ps);\n\t\t\t\t\tdrawFan(grid.lastFan(), \"Final fan for input \" + args[0]);\n\t\t\t\t\tdrawFan(grid.initialFan(), \"Initial fan for input \" + args[0]);\n\t\t\t\t\tdrawGridPart(grid, \"Grid for input: \" + args[0], new PreciseNumber(0), new PreciseNumber(0), 1);\n\t\t\t\t\t//drawGrid(grid, \"Grid for input: \" + args[0]);\n\t\t\t\t} else if(cmd > 0) {\n\t\t\t\t\tint distance = Integer.parseInt(br.readLine().trim());\n\t\t\t\t\tif(cmd == 1) {\n\t\t\t\t\t\tps.println(\"Exhaustive search for \"+ distance + \" divisions\");\n\t\t\t\t\t\tps.println();\n\t\t\t\t\t\texhaustiveSearch(distance, as, 1, ps);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tps.println(\"Random grid of \"+ distance + \" divisions\");\n\t\t\t\t\t\tps.println();\n\t\t\t\t\t\tGrid grid = solveRandGrid(distance, 1);\n\t\t\t\t\t\tas.display(new DataStructure2(grid), distance, 1, ps);\n\t\t\t\t\t\tdrawFan(grid.lastFan(), \"Final fan for input \" + args[0]);\n\t\t\t\t\t\tdrawFan(grid.initialFan(), \"Initial fan for input \" + args[0]);\n\t\t\t\t\t\tdrawGrid(grid, \"Grid for input: \" + args[0]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tps.close();\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (java.io.FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not valid\");\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Input error\");\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tSystem.out.println(\"Invalid distance\");\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\t\t\t// Start the interactive visualizer\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tDrawingPanel d = new DrawingPanel();\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tAggregateSummaryStatistics aggregate = new AggregateSummaryStatistics();\n\t\tSummaryStatistics setOneStats = aggregate.createContributingStatistics();\n\t\tSummaryStatistics setTwoStats = aggregate.createContributingStatistics();\n\n\t\t \n\t\tfor( int i = 1; i <= 10; i++) {\n\t\t\tsetOneStats.addValue(i);\n\t\t\tsetTwoStats.addValue(i);\n\t\t}\n\t\t\n\t\t// Full sample data is reported by the aggregate\n\t\tdouble totalSampleSum = aggregate.getSum();\n\t\tSystem.out.println(\"totalSampleSum=\"+totalSampleSum);\n\t\tSystem.out.println(\"Count=\"+aggregate.getN());\n\t\tSystem.out.println(\"mean=\"+aggregate.getMean());\n\t\tSystem.out.println(\"std=\"+aggregate.getStandardDeviation());\n\t\t\n\t}",
"@Override\n public void printStatistics(\n PrintStream out, Result result, ReachedSet reached) {\n Preconditions.checkNotNull(out);\n Preconditions.checkNotNull(result);\n // reached set can be NULL\n\n if (analysisTime.isRunning()) {\n analysisTime.stop();\n }\n if (programTime.isRunning()) {\n programTime.stop();\n }\n if (memStats != null) {\n memStatsThread.interrupt(); // stop memory statistics collection\n }\n\n // print CFA statistics\n printCfaStatistics(out);\n\n // print global time statistics\n printTimeStatistics(out);\n\n // print global memory statistics\n printMemoryStatistics(out);\n\n }",
"public void dumpStats(PrintStream out, int postCount, int totalSingleCorrect, int totalHalfCorrect) {\n out.println(\"evaluated \" + postCount + \" posts; \" \n + totalSingleCorrect + \" with one correct tag, \" \n + totalHalfCorrect + \" with half correct\");\n\n out.print(\"\\t %single correct: \" + nf.format((totalSingleCorrect * 100) / (float) postCount));\n out.println(\", %half correct: \" + nf.format((totalHalfCorrect * 100) / (float) postCount));\n out.println();\n out.flush();\n }",
"public void printStats() {\n\t\tSystem.out.println(\"============= RULEGROWTH - STATS ========\");\n\t\tSystem.out.println(\"Sequential rules count: \" + ruleCount);\n\t\tSystem.out.println(\"Total time: \" + (timeEnd - timeStart) + \" ms\");\n\t\tSystem.out.println(\"Max memory: \" + MemoryLogger.getInstance().getMaxMemory());\n\t\tSystem.out.println(\"==========================================\");\n\t}",
"void statistics();",
"public void reportStats() {\n System.out.println(\"Number of requests: \" + (requestCount - warmUpRequests));\n System.out.println(\"Number of hits: \" + hitCount);\n System.out.println(\"hit ratio: \" + (double) hitCount / (requestCount - warmUpRequests));\n System.out.println(\"Average hit cost: \" + (double) hitCost / hitCount);\n }",
"public void statsOut(PrintWriter out) throws IOException {\n\t\t\n\t\tanalyze(); //see the above method\n\t\tint i;\n\t\t\n\t\tif (bundle.getString(\"otherStatsToggle\").equals(\"true\") || bundle.getString(\"groupsToggle\").equals(\"true\") \n\t\t\t\t|| bundle.getString(\"percentToggle\").equals(\"true\") || bundle.getString(\"diffToggle\").equals(\"true\")) {\n\t\t\t\n\t\t\tSystem.out.println(\"|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-| \\n\");\n\t\t\tout.println(\"|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-| \\n\");\n\t\t}\n\t\t\n\t\tif (lowestRating == 2) { //implies no data was ever given since no rating will ever be above 1, let alone at 2\n\t\t\tSystem.out.println(\"Nothing here to give statistics on \\n\");\n\t\t\tout.println(\"Nothing here to give statistics on \\n\");\n\t\t}\n\t\t\n\t\telse {\n\t\t\t\n\t\t\tif (bundle.getString(\"otherStatsToggle\").equals(\"true\")) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Relevant Segment of Revision History: \" + then + \" to \" + now + \" \\n\");\n\t\t\t\tout.println(\"Relevant Segment of Revision History: \" + then + \" to \" + now + \" \\n\");\n\t\t\t\tSystem.out.println(\"Total Number of Relevant Revisions: \" + revisionTotal);\n\t\t\t\tout.println(\"Total Number of Relevant Revisions: \" + revisionTotal);\n\t\t\t\tSystem.out.println(\"\\t Average Number of relevant files per revision: \" + Math.round(relevantAverage) + \"\\n\");\n\t\t\t\tout.println(\"\\t Average Number of relevant files per revision: \" + Math.round(relevantAverage) + \"\\n\");\n\t\t\t\t\n\t\t\t\tfor (i = 0; i < args.length; i++) {\n\t\t\t\t\tSystem.out.println(\"\\t Number of Revisions Changing \" + (i + 1) + \" of the Relevant Files: \" + relevantPresent[i]);\n\t\t\t\t\tout.println(\"\\t Number of Revisions Changing \" + (i + 1) + \" of the Relevant Files: \" + relevantPresent[i]);\n\t\t\t\t\tSystem.out.println(\"\\t\\t Number of these revisions with under \" + (10 * (i + 1)) + \" irrelevant extra files: \" + irrelevantPresent[i] + \"\\n\");\n\t\t\t\t\tout.println(\"\\t\\t Number of these revisions with under \" + (10 * (i + 1)) + \" irrelevant extra files: \" + irrelevantPresent[i] + \"\\n\");\n\t\t\t\t}\n\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t\tout.println();\n\t\t\t\t\n\t\t\t\ttimeStats(\"Average\", timeDiffAverage, \"\", out);\n\t\t\t\ttimeStats(\"\\t Lowest\", timeDiffLow, revisionReference[5], out);\n\t\t\t\ttimeStats(\"\\t Highest\", timeDiffHigh, revisionReference[4], out);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\nAverage Rating: \" + ratingAverage);\n\t\t\t\tout.println(\"\\nAverage Rating: \" + ratingAverage);\n\t\t\t\tSystem.out.println(\"\\t Lowest Rating: \" + lowestRating + \" for Revision \" + revisionReference[1]);\n\t\t\t\tout.println(\"\\t Lowest Rating: \" + lowestRating + \" for Revision \" + revisionReference[1]);\n\t\t\t\tSystem.out.println(\"\\t Highest Rating: \" + highestRating + \" for Revision \" + revisionReference[0] + \"\\n\");\n\t\t\t\tout.println(\"\\t Highest Rating: \" + highestRating + \" for Revision \" + revisionReference[0] + \"\\n\");\n\t\t\n\t\t\t\tSystem.out.println(\"Average Number of Changed files: \" + nFilesAverage);\n\t\t\t\tout.println(\"Average Number of Changed files: \" + nFilesAverage);\n\t\t\t\tSystem.out.println(\"\\t Lowest Number of Changed Files: \" + lowestFileNumber + \" changed at Revision \" + revisionReference[3]);\n\t\t\t\tout.println(\"\\t Lowest Number of Changed Files: \" + lowestFileNumber + \" changed at Revision \" + revisionReference[3]);\n\t\t\t\tSystem.out.println(\"\\t Highest Number of Changed Files: \" + highestFileNumber + \" changed at Revision \" + revisionReference[2] + \"\\n\");\n\t\t\t\tout.println(\"\\t Highest Number of Changed Files: \" + highestFileNumber + \" changed at Revision \" + revisionReference[2] + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tif (bundle.getString(\"groupsToggle\").equals(\"true\")) {\n\t\t\t\tgrouping.currentOutput(out);\n\t\t\t}\n\t\t\t\n\t\t\tif (args.length > 1) {\n\t\t\t\t\n\t\t\t\tif (bundle.getString(\"percentToggle\").equals(\"true\")) {\n\t\t\t\t\tpercentages(args, out);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (bundle.getString(\"CSVToggle\").equals(\"true\")) {\n\t\t\t\tcsv();\n\t\t\t}\n\t\t\t\n\t\t\tif (bundle.getString(\"diffToggle\").equals(\"true\") && revisionTotal > 1) {\t\t\n\t\t\t\tdiff(out);\n\t\t\t}\n\t\t\t\n\t\t\tif (bundle.getString(\"commentToggle\").equals(\"true\")) {\n\t\t\t\tSystem.out.println(\"\\nRevision Comments (IMPORTANT DISCLAIMER: all commas have been replaced with semi-colons to allow insertion into a csv file): \\n\");\n\t\t\t\tout.println(\"Revision Comments (IMPORTANT DISCLAIMER: all commas have been replaced with semi-colons to allow insertion into a csv file): \\n\");\n\t\t\t\t\n\t\t\t\tfor (i = 0; i < commenting.size(); i++) {\n\t\t\t\t\tSystem.out.println(\"\\t\" + revisions[i] + \":\");\n\t\t\t\t\tout.println(\"\\t\" + revisions[i] + \":\");\n\t\t\t\t\tSystem.out.println(commenting.get(i) + \"\\n\");\n\t\t\t\t\tout.println(commenting.get(i) + \"\\n\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tif (bundle.getString(\"otherStatsToggle\").equals(\"true\") || bundle.getString(\"groupsToggle\").equals(\"true\") || \n\t\t\t\tbundle.getString(\"percentToggle\").equals(\"true\") || bundle.getString(\"diffToggle\").equals(\"true\")) {\n\t\t\t\n\t\t\tSystem.out.println(\"|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-| \\n\");\n\t\t\tout.println(\"|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-| \\n\");\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\t\tAnalyse ana = new Analyse(20, 5);\r\n//\t\tArrayList<Map.Entry<Integer, Double>> current = ana.getNeighbor(\"\")\r\n//\t\tfor(int i = 0; i < ana.average.length; i++){\r\n//\t\t\tSystem.out.println(ana.average[i]);\r\n//\t\t}\r\n//\t\tfor (int i = 0; i < 5; i++) {\r\n//\t\t\tSystem.out.println(ana.heap.get(i).getValue());\r\n//\t\t}\r\n\t\tSystem.out.println(ana.similarity.size());\r\n//\t\tArrayList<Map.Entry<Integer, Double>> record = ana.getNeighbor(\"0155061224\");\r\n//\t\tSystem.out.println(ana.heap.size());\r\n//\t\tSystem.out.println(record.size());\r\n//\t\tfor(int i = 0; i < record.size(); i++){\r\n//\t\t\tSystem.out.println(record.get(i).getKey());\r\n//\t\t\tSystem.out.println(record.get(i).getValue());\r\n////\t\t\tSystem.out.println(ana.matrix[record.get(i).getKey()][ana.read.getItems().indexOf(3149)]);\r\n//\t\t}\r\n\t\tlong start = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"score\" + ana.predictionBaseline(\"100\"));\r\n\t\tlong end = System.currentTimeMillis();\r\n\t\tSystem.out.println(end - start);\r\n//\t\tSystem.out.println(ana.predictionBaseline(\"0155061224\"));\r\n\t}",
"public void printOut() {\n System.out.println(\"\\t\" + result + \" = icmp \" + cond.toLowerCase() + \" \" + type + \" \" + op1 + \", \" + op2 );\n\n // System.out.println(\"\\t\" + result + \" = bitcast i1 \" + temp + \" to i32\");\n }",
"public static void main(String[] args) {\n String filename = null;\n for (String s : args) {\n filename = s;\n }\n\n // ...or use a default file name\n if (filename == null)\n filename = \"neighbor-dump.txt\";\n\n // Open a file stream and process each line (Java 8+ only)\n try (Stream<String> lines = Files.lines(Paths.get(filename), Charset.defaultCharset())) {\n lines.forEachOrdered(line -> process(line));\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n // Print the required output\n System.out.println(\"Results are as follows:\");\n System.out.println(\"- List of PAN IDs (Total of \" + Integer.toString(panIds.size()) + \")\");\n for (String s : panIds) {\n System.out.println(\"PANID = \" + s);\n }\n\n System.out.println(\"- List of MAC Addresses (Total of \" + Integer.toString(macAdresses.size()) + \")\");\n for (String key : macAdresses.keySet()) {\n System.out.println(key);\n }\n\n System.out.println(\"- List of RF_RSSI_M values for each MAC address\");\n for (String key : macAdresses.keySet()) {\n System.out.println(key + \" \" + macAdresses.get(key));\n }\n\n }",
"public void print()\n/* */ {\n/* 226 */ boolean emptyTarget = true;\n/* 227 */ Iterator it; if ((this.subjects != null) && (this.subjects.size() > 0)) {\n/* 228 */ System.out.println(\"\\nSubjects ---->\");\n/* 229 */ emptyTarget = false;\n/* 230 */ for (it = this.subjects.iterator(); it.hasNext();)\n/* 231 */ ((MatchList)it.next()).print();\n/* */ }\n/* 234 */ if ((this.resources != null) && (this.resources.size() > 0)) {\n/* 235 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Resources ---->\");\n/* 236 */ emptyTarget = false;\n/* 237 */ for (it = this.resources.iterator(); it.hasNext();)\n/* 238 */ ((MatchList)it.next()).print();\n/* */ }\n/* 241 */ if ((this.actions != null) && (this.actions.size() > 0)) {\n/* 242 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Actions ---->\");\n/* 243 */ emptyTarget = false;\n/* 244 */ for (it = this.actions.iterator(); it.hasNext();)\n/* 245 */ ((MatchList)it.next()).print();\n/* */ }\n/* 248 */ if ((this.environments != null) && (this.environments.size() > 0)) {\n/* 249 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Environments ---->\");\n/* 250 */ emptyTarget = false;\n/* 251 */ for (it = this.environments.iterator(); it.hasNext();) {\n/* 252 */ ((MatchList)it.next()).print();\n/* */ }\n/* */ }\n/* 255 */ if (emptyTarget) System.out.print(\"EMPTY\");\n/* */ }",
"public Object[] printPctCorrectStream(Object... rhs) throws RemoteException;",
"public void statistics(){\n System.out.println(this.scoreboard.toString());\n }",
"void dumpStats() {\n long wallTimeNanos = totalStopwatch.elapsed(TimeUnit.NANOSECONDS);\n long dbtime = 0;\n for (String name : methodCalls.keySet()) {\n long calls = methodCalls.get(name);\n long time = methodTotalTime.get(name);\n dbtime += time;\n long average = time / calls;\n double proportion = (time + 0.0) / (wallTimeNanos + 0.0);\n log.info(name + \" c:\" + calls + \" r:\" + time + \" a:\" + average + \" p:\" + String.format(\"%.2f\", proportion));\n }\n double dbproportion = (dbtime + 0.0) / (wallTimeNanos + 0.0);\n double hitrate = (hit + 0.0) / (hit + miss + 0.0);\n log.info(\"Cache size:\" + utxoCache.size() + \" hit:\" + hit + \" miss:\" + miss + \" rate:\"\n + String.format(\"%.2f\", hitrate));\n bloom.printStat();\n log.info(\"hasTxOut call:\" + hasCall + \" True:\" + hasTrue + \" False:\" + hasFalse);\n log.info(\"Wall:\" + totalStopwatch + \" percent:\" + String.format(\"%.2f\", dbproportion));\n String stats = db.getProperty(\"leveldb.stats\");\n System.out.println(stats);\n\n }",
"public void print_metrics(){\n\t\tHashMap<Integer, HashSet<Integer>> pairs=return_pairs();\n\t\tint total=gold.data.getTuples().size();\n\t\ttotal=total*(total-1)/2;\n\t\tSystem.out.println(\"Reduction Ratio is: \"+(1.0-(double) countHashMap(pairs)/total));\n\t\tint count=0;\n\t\tfor(int i:pairs.keySet())\n\t\t\tfor(int j:pairs.get(i))\n\t\t\tif(goldContains(i,j))\n\t\t\t\tcount++;\n\t\tSystem.out.println(\"Pairs Completeness is: \"+(double) count/gold.num_dups);\n\t}",
"public void printStacks (int diskSize, LinkedList<Integer> src, LinkedList<Integer> dst, LinkedList<Integer> aux){\n numOfDisks = diskSize;\n Iterator itA = src.iterator();\n Iterator itB = dst.iterator();\n Iterator itC = aux.iterator();\n for (int i=numOfDisks ; i >= 0; --i) {\n if (src.size() > i) {\n System.out.printf(\"%s\\t\", itA.next());\n } else\n System.out.printf(\"\\t\");\n if(dst.size() > i)\n System.out.printf(\"%s\\t\",itB.next());\n else\n System.out.printf(\"\\t\");\n if (aux.size() > i)\n System.out.printf(\"%s\\n\",itC.next());\n else\n System.out.printf(\"\\n\");\n }\n System.out.printf(\"\\n\");\n }",
"private void printSubStatistics(\n PrintStream out, Result result, ReachedSet reached,\n Configuration pConfig) {\n\n Preconditions.checkArgument(result == Result.NOT_YET_STARTED || reached != null);\n\n for (Statistics s : subStats) {\n String name = s.getName();\n if (!Strings.isNullOrEmpty(name)) {\n name = name + \" statistics\";\n out.println(name);\n out.println(Strings.repeat(\"-\", name.length()));\n }\n\n try {\n pConfig.inject(s);\n } catch (InvalidConfigurationException e) {\n logger.logUserException(Level.WARNING, e,\n \"Cannot inject the new configuration into statistics object\");\n } catch (Exception e) {\n // this class cannot be injected because it does not have @Option annotation\n }\n\n try {\n s.printStatistics(out, result, reached);\n } catch (OutOfMemoryError e) {\n logger.logUserException(Level.WARNING, e,\n \"Out of memory while generating statistics and writing output files\");\n }\n\n if (!Strings.isNullOrEmpty(name)) {\n out.println();\n }\n }\n }",
"public static void main(String[] args) {\n\n\t\tLinkedHashMap<Integer, String> linkedhashmap = new LinkedHashMap<Integer, String>();\n\t\t//Linked hash Map maintains the insertion oder\n\t\tTreeMap<Integer, String> treemap = new TreeMap<Integer, String>();\n\t\t//Tree maps maintains the Natural order\n\t\tSystem.out.println(\"Tthe Linked hash map is \");\n\t\tdosomeactivity(linkedhashmap);\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Tthe tree map is \");\n\t\tdosomeactivity(treemap);\n\t\t}",
"public void printSummary() {\n\t\tSystem.out.println(MessageFormat.format(\"\\nSummary:\\n Name: {0}\\n Range: 1 to {1}\\n\", this.name, this.numSides));\n\t}",
"static int printUsage() {\n\t System.out.println(\"netflix1Driver [-m <maps>] [-r <reduces>] <input> <output>\");\n\t ToolRunner.printGenericCommandUsage(System.out);\n\t return -1;\n\t }",
"public static void main(String[] args) {\n\t\tString fopIdenIfer=PathConstanct.PATH_PROJECT_TRAIN_TEST_NAME;\n\t\tString fopStatType=PathConstanct.PATH_PROJECT_STATTYPE_DATA;\n\t\t\n\t\tString[] allProjectCurrent=FileIO.readStringFromFile(fopIdenIfer+\"all.project.txt\").split(\"\\n\");\n\t\tString[] arrStatType=FileIO.readStringFromFile(fopStatType+\"allProjectName.txt\").split(\"\\n\");\n\t\tint countAppear=0;\n\t\t\n\t\tHashSet<String> setST=new LinkedHashSet<String>();\n\t\tfor(int i=0;i<arrStatType.length;i++){\n\t\t\tsetST.add(arrStatType[i]);\n\t\t\n\t\t}\n\t\t\n\t\tHashSet<String> setNLPLInference=new LinkedHashSet<String>();\n\t\tfor(int i=0;i<allProjectCurrent.length;i++){\n\t\t\tsetNLPLInference.add(allProjectCurrent[i]);\n\t\t\n\t\t}\n\t\t\n\t\tStringBuilder sbResult=new StringBuilder();\n\t\tfor(int i=0;i<allProjectCurrent.length;i++){\n\t\t\tboolean exist=setST.contains(allProjectCurrent[i]);\n\t\t\tif(exist){\n\t\t\t\tcountAppear++;\n\t\t\t}\n\t\t\tsbResult.append(allProjectCurrent[i]+\"\\t\"+exist+\"\\n\");\n\t\t}\n\t\t\n\t\tint countInStatType=0;\n\t\tStringBuilder sbR2=new StringBuilder();\n\t\tfor(int i=0;i<arrStatType.length;i++){\n\t\t\tboolean exist=setNLPLInference.contains(arrStatType[i]);\n\t\t\tif(exist){\n\t\t\t\tcountInStatType++;\n\t\t\t}\n\t\t\tsbR2.append(arrStatType[i]+\"\\t\"+exist+\"\\n\");\n\t\t}\n\t\t\n\t\t\n\t\tFileIO.writeStringToFile(sbResult.toString(), fopIdenIfer+\"overlapInNLPLInference.txt\");\n\t\tFileIO.writeStringToFile(sbR2.toString(), fopIdenIfer+\"overlapInST.txt\");\n\t\tSystem.out.println(\"count overlap in NLPL: \"+countAppear);\n\t\tSystem.out.println(\"count overlap in StatType: \"+countInStatType);\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n System.out.println(\"-------------------------\");\n //maze.print();\n // int count= obj.getnonVisits();\n // int percent=obj.getSizeTotal();\n // System.out.println(\"Cells: \"+percent+ \" Unvisited:\"+count);\n //if(count>0)\n // System.out.println(\"Percent unvisited: \"+((count*100)/percent)+\"%\");\n }",
"static int addModelGroups (List<List<Integer>> groupSources, List<List<Integer>> sourceOutputs, Map<Integer, Boolean> tupleTruth, String type) {\n\t\tif (type.equals(\"1All\")) {\n\t\t\tList<Integer> allSources = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < sourceOutputs.size(); i++) {\n\t\t\t\tallSources.add(i);\n\t\t\t}\n\t\t\tgroupSources.add(allSources);\n\t\t\treturn 1;\n\t\t}\n\t\tif (type.equals(\"1All2Most\")) {\n\t\t\tList<Integer> allSources = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < sourceOutputs.size(); i++) {\n\t\t\t\tallSources.add(i);\n\t\t\t}\n\t\t\tgroupSources.add(allSources);\n\t\t\tMap<Integer, List<Integer>> outputSources = new HashMap<Integer, List<Integer>>();\n\t\t\tfor (Integer sourceId = 0; sourceId < sourceOutputs.size(); sourceId++) {\n\t\t\t\tfor (Integer tupleId : sourceOutputs.get(sourceId)) {\n\t\t\t\t\tif (!outputSources.containsKey(tupleId)) {\n\t\t\t\t\t\toutputSources.put(tupleId, new ArrayList<Integer>());\n\t\t\t\t\t}\n\t\t\t\t\toutputSources.get(tupleId).add(sourceId);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSet<Integer> commonSourceSet = new HashSet<Integer>();\n\t\t\tList<Integer> commonSources = new ArrayList<Integer>();\n\t\t\tint threshold = 49;\n\t\t\tfor (Integer tupleId : outputSources.keySet()) {\n\t\t\t\tif (outputSources.get(tupleId).size() > threshold) {\n\t\t\t\t\tcommonSourceSet.addAll(outputSources.get(tupleId));\n\t\t\t\t}\n\t\t\t}\n\t\t\tcommonSources.addAll(commonSourceSet);\n\t\t\tgroupSources.add(commonSources);\n\t\t\t//allSources.removeAll(commonSources);\n\t\t\tout.println(commonSources.size());\n\t\t\treturn groupSources.size();\n\t\t}\n\t\tif (type.equals(\"ManyTupleBased\")) {\n\t\t\tList<Integer> allSources = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < sourceOutputs.size(); i++) {\n\t\t\t\tallSources.add(i);\n\t\t\t}\n\t\t\tgroupSources.add(allSources);\n\t\t\tMap<Integer, List<Integer>> outputSources = new HashMap<Integer, List<Integer>>();\n\t\t\tfor (Integer sourceId = 0; sourceId < sourceOutputs.size(); sourceId++) {\n\t\t\t\tfor (Integer tupleId : sourceOutputs.get(sourceId)) {\n\t\t\t\t\tif (!outputSources.containsKey(tupleId)) {\n\t\t\t\t\t\toutputSources.put(tupleId, new ArrayList<Integer>());\n\t\t\t\t\t}\n\t\t\t\t\toutputSources.get(tupleId).add(sourceId);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSet<Integer> commonSourceSet = new HashSet<Integer>();\n\t\t\tList<Integer> commonSources = new ArrayList<Integer>();\n\t\t\tint threshold = 49;\n\t\t\tfor (Integer tupleId : outputSources.keySet()) {\n\t\t\t\tif (outputSources.get(tupleId).size() > threshold) {\n\t\t\t\t\tgroupSources.add(outputSources.get(tupleId));\n\t\t\t\t}\n\t\t\t}\n\t\t\t//allSources.removeAll(commonSources);\n\t\t\tout.println(groupSources.size());\n\t\t\treturn groupSources.size();\n\t\t}\n\t\tif (type.equals(\"ManyFull\")) {\n\t\t\tint numGroups = 4;\n\t\t\tList<Integer> allSources = new ArrayList<Integer>();\n\t\t\tfor (int i = 0; i < sourceOutputs.size(); i++) {\n\t\t\t\tallSources.add(i);\n\t\t\t}\n\t\t\tfor (int k = 0; k < numGroups; k++) {\n\t\t\t\tgroupSources.add(allSources);\n\t\t\t}\n\t\t\treturn numGroups;\t\n\t\t}\n\t\tif (type.equals(\"ManyRandom\")) {\n\t\t\tint numGroups = 5;\n\t\t\tdouble density = 0.5;\n\t\t\tfor (int k = 0; k < numGroups; k++) {\n\t\t\t\tList<Integer> sources = new ArrayList<Integer>();\n\t\t\t\tfor (int i = 0; i < sourceOutputs.size(); i++) {\n\t\t\t\t\tif (Math.random() < density) {\n\t\t\t\t\t\tsources.add(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tgroupSources.add(sources);\n\t\t\t}\n\t\t\treturn numGroups;\t\n\t\t}\n\t\treturn -1;\t\n\t}",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n @Test\n\tpublic void testNodeProcessing()\n\t{\n\t\tLogicalCompareToConstant<Integer> oper = new LogicalCompareToConstant<Integer>()\n\t\t{\n\t\t};\n\t\tCollectorTestSink eSink = new CollectorTestSink();\n\t\tCollectorTestSink neSink = new CollectorTestSink();\n\t\tCollectorTestSink gtSink = new CollectorTestSink();\n\t\tCollectorTestSink gteSink = new CollectorTestSink();\n\t\tCollectorTestSink ltSink = new CollectorTestSink();\n\t\tCollectorTestSink lteSink = new CollectorTestSink();\n\n\t\toper.equalTo.setSink(eSink);\n\t\toper.notEqualTo.setSink(neSink);\n\t\toper.greaterThan.setSink(gtSink);\n\t\toper.greaterThanOrEqualTo.setSink(gteSink);\n\t\toper.lessThan.setSink(ltSink);\n\t\toper.lessThanOrEqualTo.setSink(lteSink);\n\t\toper.setConstant(2);\n\n\t\toper.beginWindow(0); //\n\t\toper.input.process(1);\n\t\toper.input.process(2);\n\t\toper.input.process(3);\n\n\t\toper.endWindow(); //\n\n\t\tAssert.assertEquals(\"number emitted tuples\", 1,\n\t\t\t\teSink.collectedTuples.size());\n\t\tAssert.assertEquals(\"tuples were\", eSink.collectedTuples.get(0).equals(2),\n\t\t\t\ttrue);\n\n\t\tAssert.assertEquals(\"number emitted tuples\", 2,\n\t\t\t\tneSink.collectedTuples.size());\n\t\tAssert.assertEquals(\"tuples were\", neSink.collectedTuples.get(0).equals(1),\n\t\t\t\ttrue);\n\t\tAssert.assertEquals(\"tuples were\", neSink.collectedTuples.get(1).equals(3),\n\t\t\t\ttrue);\n\n\t\tAssert.assertEquals(\"number emitted tuples\", 1,\n\t\t\t\tgtSink.collectedTuples.size());\n\t\tAssert.assertEquals(\"tuples were\", gtSink.collectedTuples.get(0).equals(1),\n\t\t\t\ttrue);\n\n\t\tAssert.assertEquals(\"number emitted tuples\", 2,\n\t\t\t\tgteSink.collectedTuples.size());\n\t\tAssert.assertEquals(\"tuples were\",\n\t\t\t\tgteSink.collectedTuples.get(0).equals(1), true);\n\t\tAssert.assertEquals(\"tuples were\",\n\t\t\t\tgteSink.collectedTuples.get(1).equals(2), true);\n\n\t\tAssert.assertEquals(\"number emitted tuples\", 1,\n\t\t\t\tltSink.collectedTuples.size());\n\t\tAssert.assertEquals(\"tuples were\", ltSink.collectedTuples.get(0).equals(3),\n\t\t\t\ttrue);\n\n\t\tAssert.assertEquals(\"number emitted tuples\", 2,\n\t\t\t\tlteSink.collectedTuples.size());\n\t\tAssert.assertEquals(\"tuples were\",\n\t\t\t\tlteSink.collectedTuples.get(0).equals(2), true);\n\t\tAssert.assertEquals(\"tuples were\",\n\t\t\t\tlteSink.collectedTuples.get(1).equals(3), true);\n\t}",
"protected static int printUsage ()\n {\n\t\tSystem.out.println(\"VecarrmatCache <left edge_path> <# of reducers> <right edge file> <m> <n>\");\n\n\t\tToolRunner.printGenericCommandUsage(System.out);\n\n\t\treturn -1;\n }",
"Map<String, Set<String>> stat(String arg);",
"public static void performStatistics(AnnotatedSequencesReader reader, File dir, final PrintStream out, final boolean nStats, final boolean pStats, final boolean quality) throws IOException {\n out.append(\"Location : \");\n out.append(dir.getAbsolutePath());\n out.append(StringUtils.LS);\n if (reader.commandLine() != null) {\n out.append(\"Parameters : \");\n out.append(reader.commandLine());\n out.append(StringUtils.LS);\n }\n if (reader.comment() != null) {\n out.append(\"Comment : \");\n out.append(reader.comment());\n out.append(StringUtils.LS);\n }\n if (reader.samReadGroup() != null) {\n out.append(\"SAM read group : \");\n out.append(reader.samReadGroup());\n out.append(StringUtils.LS);\n }\n out.append(\"SDF Version : \");\n out.append(Long.toString(reader.sdfVersion()));\n out.append(StringUtils.LS);\n\n if (!pStats) {\n out.append(\"Type : \");\n out.append(reader.type().toString());\n out.append(StringUtils.LS);\n out.append(\"Source : \");\n out.append(reader.getPrereadType().toString());\n out.append(StringUtils.LS);\n out.append(\"Paired arm : \");\n out.append(reader.getArm().toString());\n out.append(StringUtils.LS);\n final SdfId sdfId = reader.getSdfId();\n if (sdfId.available()) {\n out.append(\"SDF-ID : \");\n out.append(sdfId.toString());\n out.append(StringUtils.LS);\n }\n out.append(\"Number of sequences: \");\n out.append(Long.toString(reader.numberSequences()));\n out.append(StringUtils.LS);\n final long max = reader.maxLength();\n final long min = reader.minLength();\n if (max >= min) {\n out.append(\"Maximum length : \");\n out.append(Long.toString(max));\n out.append(StringUtils.LS);\n out.append(\"Minimum length : \");\n out.append(Long.toString(min));\n out.append(StringUtils.LS);\n }\n out.append(\"Sequence names : \");\n out.append(reader.hasNames() ? \"yes\" : \"no\");\n out.append(StringUtils.LS);\n out.append(\"Sex metadata : \");\n out.append(ReferenceGenome.hasReferenceFile(reader) ? \"yes\" : \"no\");\n out.append(StringUtils.LS);\n out.append(\"Taxonomy metadata : \");\n out.append(TaxonomyUtils.hasTaxonomyInfo(reader) ? \"yes\" : \"no\");\n out.append(StringUtils.LS);\n final long[] counts = reader.residueCounts();\n long sum = 0;\n for (int i = 0 ; i < counts.length; ++i) {\n out.append((reader.type() == SequenceType.DNA) ? DNA.values()[i].toString() : Protein.values()[i].toString());\n out.append(\" : \");\n out.append(Long.toString(counts[i]));\n out.append(StringUtils.LS);\n sum += counts[i];\n }\n out.append(\"Total residues : \");\n out.append(Long.toString(sum));\n out.append(StringUtils.LS);\n if (quality) {\n printQualityHistogram(reader, out);\n }\n out.append(\"Residue qualities : \");\n out.append(reader.hasQualityData() && reader.hasHistogram() ? \"yes\" : \"no\");\n out.append(StringUtils.LS);\n if (nStats) {\n printNBlocks(reader, out);\n }\n out.append(StringUtils.LS);\n } else {\n printPositionBlock(reader, out);\n }\n printReadMe(reader, out);\n }",
"private static void writeStats(String[] args, Connection conn)\n\t\t\tthrows ArgumentNumberException {\n\t\tif (args.length != 2 && args.length != 1) {\n\t\t\thandleWrongSizeException();\n\t\t}\n\t\tString statToOrderBy = getStatToOrderBy(args);\n\t\tResultSet rs = generateResultSetForAllChaos(conn, statToOrderBy);\n\t\twriteStatsToFile(rs);\n\t}",
"public static void main(String[] args) throws IOException{\n\t\tBufferedReader in = new BufferedReader (new InputStreamReader(System.in));\n\t\tint num_tests = Integer.parseInt(in.readLine());\n\t\tBufferedWriter out = new BufferedWriter (new OutputStreamWriter(System.out));\n\n\t\tStringBuilder buf = new StringBuilder();\n\t\tfor(int j=0; j<num_tests; ++j)\n\t\t{\n\t\t\tString[] data_overview = in.readLine().split(\" \");\n\n\t\t\t// the variables\n\t\t\tint d = Integer.parseInt(data_overview[0]);\n\t\t\tint p = Integer.parseInt(data_overview[1]);\n\t\t\tint u = Integer.parseInt(data_overview[2]);\n\t\t\tint v = Integer.parseInt(data_overview[3]);\n\t\t\t\n\t\t\tdouble left = 0, right = d/(p-1);\n\t\t\twhile(right-left>0.0001){\n\t\t\t\tdouble middle = (left+right)/2;\n\t\t\t\tif(putPosts(d, u, v, p, middle)){\n\t\t\t\t\tleft = middle;\n\t\t\t\t} else {\n\t\t\t\t\tright = middle;\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\t// print\n\t\t\tbuf.append(\"Case #\");\n\t\t\tbuf.append(j+1);\n\t\t\tbuf.append(\": \");\n\t\t\tbuf.append(right);\n\t\t\tbuf.append(\"\\n\");\n\t\t}\n\t\tSystem.out.println(buf);\t\n\t}",
"public static void main(String[] args) {\r\n\t\tfor( String s : findRelativeRanks(new int[]{5,4,3,2,1})){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\tfor( String s : findRelativeRanksPriorityQueue(new int[]{5,4,3,2,1})){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\tfor( String s : findRelativeRanksTreeMap(new int[]{5,4,3,2,1})){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t}",
"public void statistics(){\n\t\tSystem.out.println(\"heads: \"+ heads+\"\\ttails: \"+tails);\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\ttestStreamMapReduce();\r\n\t\t//testMethodReference();\r\n\t}",
"public void printStats() {\n\t\tSystem.out.println(\"QuickSort terminates!\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Duration: \" + getDuration() + \" seconds\");\n\t\tSystem.out.println(\"Comparisons: \" + this.comparisonCounter);\n\t\tSystem.out.println(\"Boundary: \" + this.b);\n\t}",
"public static void main(String[] args){\n if (args.length != 4){\n System.out.println(\"Please provide a file name, source and destination node and an output file.\");\n System.exit(0);\n }\n\n findShortestRoadMap(args[0], args[1], args[2], args[3]);\n }",
"public static void main(String[] args) {\n//\t\ttest1dOutput();\n\t\ttestMultimensionalOutput();\n\t}",
"public void printStatistics() {\r\n\t\tLog.info(\"*** Statistics of Sequence Selector ***\");\r\n\r\n\t\t// chains\r\n\t\tLog.info(String.format(\"Chains: %d\", chains.size()));\r\n\t\tLog.info(String.format(\"Executable Chains: %d\", execChains.size()));\r\n\t\tLog.info(String.format(\"Causal Executable Chains: %d\",\r\n\t\t\t\tcausalExecChains.size()));\r\n\r\n\t\t// bushes\r\n\t\tLog.info(String.format(\"Bushes: %d\", bushes.size()));\r\n\t\tLog.info(String.format(\"Executable Bushes: %d\", execBushes.size()));\r\n\t\tLog.info(String.format(\"Required Bushes: %d\", requiredExecBushes.size()));\r\n\t\tLog.info(String.format(\"Redundant Bushes: %d\",\r\n\t\t\t\tredundantExecBushes.size()));\r\n\r\n\t\t// total\r\n\t\tLog.info(String.format(\"Bushes in Chains: %d\", bushesInChains.size()));\r\n\t\tLog.info(String.format(\"Total Sequences: %d\", totalSequences.size()));\r\n\r\n\t\t// time\r\n\t\tLog.info(String.format(\"Total Time: %d ms\", stopWatch.getTime()));\r\n\t\tLog.info(String.format(\"Time per Event: %d ms\", stopWatch.getTime()\r\n\t\t\t\t/ events.size()));\r\n\t}",
"public void printAllPlayerStats(List<Player> players);",
"private void output(FileWriter outputFile, Map<Query, List<Evaluation>> evalData, FactDatabase source, FactDatabase target) {\n\t\tPrintWriter out = new PrintWriter(outputFile, true);\n\t\tif(source != null && target != null){\n\t\t\tfor(Query rule: evalData.keySet()){\n\t\t\t\tfor(Evaluation eval: evalData.get(rule)){\n\t\t\t\t\tout.print(rule.getRuleString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.first);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.second);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.third);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tdetermineSource(eval, source, target);\n\t\t\t\t\tout.print(eval.source.toString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.println(eval.result.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\tfor(Query rule: evalData.keySet()){\n\t\t\t\tfor(Evaluation eval: evalData.get(rule)){\n\t\t\t\t\tout.print(rule.getRuleString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.first);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.second);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.println(eval.fact.third);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tout.close();\n\t}",
"private void writeAllMatchedMappings(HttpServletResponse response, String name, String src, String dest) throws IOException {\r\n int matches = 0;\r\n PrintWriter pw = response.getWriter();\r\n pw.println(Messages.getMappingCount(data.size()));\r\n\r\n for (Map.Entry<String, Airline> entry : this.data.entrySet()) {\r\n if (entry.getKey().equals(name)) {\r\n pw.println(entry.getKey());\r\n for (Object flight : entry.getValue().getFlights()) {\r\n Flight flight1 = (Flight) flight;\r\n if (flight1.getSource().equals(src.toUpperCase()) && flight1.getDestination().equals(dest.toUpperCase())) {\r\n pw.println(\"\\t\" + flight.toString() + \" Duration(minutes) \" + flight1.getDuration());\r\n ++matches;\r\n }\r\n }\r\n }\r\n }\r\n if (matches == 0) {\r\n pw.println(\"There are direct flights between the specified airports\");\r\n }\r\n\r\n pw.flush();\r\n\r\n response.setStatus(HttpServletResponse.SC_OK);\r\n }",
"public void printPlayerStats(PlayerStats statistics) {\r\n\t\tSystem.out.print(statistics.playerStatsToString());\r\n\t}",
"public static void computeSummary() {\r\n\r\n String text = \"\\n\";\r\n\r\n //print the rank matrix\r\n\r\n text += \"\\\\begin{sidewaystable}[!htp]\\n\\\\centering\\\\scriptsize\\n\"\r\n + \"\\\\resizebox{\\\\textwidth}{!}{\\\\begin{tabular}{\\n\";\r\n text += \"|c\";\r\n for (int i = 0; i < columns; i++) {\r\n text += \"|r\";\r\n }\r\n text += \"|}\\n\\\\hline\\n\";\r\n\r\n for (int i = 0; i < columns; i++) {\r\n text += \"&(\" + (i + 1) + \") \";\r\n }\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n for (int i = 0; i < columns; i++) {\r\n text += algorithms[i] + \" (\" + (i + 1) + \")\";\r\n for (int j = 0; j < columns; j++) {\r\n if (i != j) {\r\n text += \"& \" + wilcoxonRanks[i][j];\r\n } else {\r\n text += \"& -\";\r\n }\r\n }\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n }\r\n\r\n text += \"\\n\" + \"\\\\end{tabular}}\\n\" + \"\\\\caption{Ranks computed by the Wilcoxon test}\\n\";\r\n text += \"\\n\\\\end{sidewaystable}\\n\";\r\n text += \"\\n \\\\clearpage \\n\\n\";\r\n\r\n Files.addToFile(outputSummaryFileName, text);\r\n\r\n //print the p-value matrix\r\n\r\n text = \"\\n\";\r\n\r\n text += \"\\\\begin{sidewaystable}[!htp]\\n\\\\centering\\\\scriptsize\\n\"\r\n + \"\\\\resizebox{\\\\textwidth}{!}{\\\\begin{tabular}{\\n\";\r\n text += \"|c\";\r\n for (int i = 0; i < columns; i++) {\r\n text += \"|c\";\r\n }\r\n text += \"|}\\n\\\\hline\\n\";\r\n\r\n for (int i = 0; i < columns; i++) {\r\n text += \"&(\" + (i + 1) + \") \";\r\n }\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n\r\n if (rows <= 50) {\r\n for (int i = 0; i < columns; i++) {\r\n text += algorithms[i] + \" (\" + (i + 1) + \")\";\r\n for (int j = 0; j < columns; j++) {\r\n \r\n if (i < j) {//0.1\r\n text += \"& \" + getSymbol(i,j,exactPValues[i][j], exactPValues[j][i], 0.1) + \" \";\r\n }\r\n if (i == j) {\r\n text += \"& -\";\r\n }\r\n if (i > j) {//0.05\r\n text += \"& \" + getSymbol(i,j,exactPValues[i][j], exactPValues[j][i], 0.05) + \" \";\r\n }\r\n }\r\n \r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n }\r\n } else {\r\n for (int i = 0; i < columns; i++) {\r\n text += algorithms[i] + \" (\" + (i + 1) + \")\";\r\n for (int j = 0; j < columns; j++) {\r\n if (i < j) {//0.1\r\n text += \"& \" + getSymbol(i,j,asymptoticPValues[i][j], asymptoticPValues[j][i], 0.1) + \" \";\r\n }\r\n if (i == j) {\r\n text += \"& -\";\r\n }\r\n if (i > j) {//0.05\r\n text += \"& \" + getSymbol(i,j,asymptoticPValues[i][j], asymptoticPValues[j][i], 0.05) + \" \";\r\n }\r\n }\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n }\r\n }\r\n\r\n text += \"\\n\" + \"\\\\end{tabular}}\\n\" + \"\\\\caption{Summary of the Wilcoxon test. \\\\textbullet = \"\r\n + \"the method in the row improves the method of the column. \\\\textopenbullet = \"\r\n + \"the method in the column improves the method of the row. Upper diagonal of level significance $\\\\alpha=0.9$,\"\r\n + \"Lower diagonal level of significance $\\\\alpha=0.95$}\\n\";\r\n text += \"\\n\\\\end{sidewaystable}\\n\";\r\n text += \"\\n \\\\clearpage \\n\\n\";\r\n\r\n Files.addToFile(outputSummaryFileName, text);\r\n\r\n text = \"\\n\";\r\n\r\n //print the summary table\r\n\r\n text += \"\\\\begin{table}[!htp]\\n\\\\centering\\\\scriptsize\\n\"\r\n + \"\\\\begin{tabular}{\\n\";\r\n text += \"|c|c|c|c|c|}\\n\\\\hline\\n\";\r\n text += \"&\\\\multicolumn{2}{c|}{$\\\\alpha=0.9$} & \\\\multicolumn{2}{c|}{$\\\\alpha=0.95$}\\\\\\\\\\\\hline\\n\";\r\n text += \"Method & + & $\\\\pm$ & + & $\\\\pm$ \";\r\n\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n for (int i = 0; i < columns; i++) {\r\n text += algorithms[i]+\" & \"+wins90[i]+\" & \"+draw90[i]+\" & \"+wins95[i]+\" & \"+draw95[i];\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n }\r\n\r\n text += \"\\n\" + \"\\\\end{tabular}\\n\" + \"\\\\caption{Wilcoxon test summary results}\\n\";\r\n text += \"\\n\\\\end{table}\\n\";\r\n text += \"\\n \\\\clearpage \\n\\n\";\r\n\r\n Files.addToFile(outputSummaryFileName, text);\r\n\r\n }",
"private void dumpResultMapping ()\r\n {\r\n for (Entry<Result, Set<Candidate>> entry : connection.getResultMap().\r\n entrySet()) {\r\n logger.debug(\"Result: {}\", entry.getKey());\r\n\r\n for (Candidate candidate : entry.getValue()) {\r\n logger.debug(\"* candidate: {}\", candidate);\r\n }\r\n }\r\n }",
"private void printInfo() {\n for (Coordinate c1 : originCells) {\n System.out.println(\"Origin: \" + c1.toString());\n }\n for (Coordinate c2 : destCells) {\n System.out.println(\"destination: \" + c2.toString());\n }\n for (Coordinate c3 : waypointCells) {\n System.out.println(\"way point: \" + c3.toString());\n }\n }",
"private static void LogOverall() throws IOException {\n\t\tBufferedWriter out;\n\t\tIterator entries = allPatternOne.entrySet().iterator();\n\t\t\n\t\t out = new BufferedWriter(new FileWriter(singlePatternPath+\"allPatternOne.txt\"));\n\t\t int count1 = 0;\n\t\t entries = allPatternOne.entrySet().iterator();\n\t\t\twhile (entries.hasNext()) {\n\t\t\t Map.Entry entry = (Map.Entry) entries.next();\n\t\t\t Integer value = (Integer)entry.getKey();\n\t\t\t HashSet<SequencePair> set = (HashSet<SequencePair>) entry.getValue();\n\t\t\t count1+=set.size();\n\t\t\t out.write(\"!size \" + value + \" \" + set.size() + \"\\n\");\n\t\t\t Iterator itr = set.iterator();\n\t\t\t while(itr.hasNext()) {\n\t\t\t \tSequencePair current = (SequencePair) itr.next();\n\t\t\t \t//System.out.println(\"[\" + current.firstSeq +\":\"+current.secondSeq +\"]\");\n\t\t\t out.write(\"[\" + current.firstSeq +\":\"+current.secondSeq +\"]\"+\"\\n\");\n\t\t\t }\n\t\t\t}\n\t\t\tout.write(\"! total \" + count1);\n\t\t\t//System.out.println(count2);\n\t\t\tif(out!=null)\n\t\t\t\tout.close();\n\t\t\n\t\n\t\t\n\t\t\n\t out = new BufferedWriter(new FileWriter(newSinglePatternPath+\"allPatternTwo.txt\"));\n\t int count2 = 0;\n\t entries = allPatternTwo.entrySet().iterator();\n\t\twhile (entries.hasNext()) {\n\t\t Map.Entry entry = (Map.Entry) entries.next();\n\t\t Integer value = (Integer)entry.getKey();\n\t\t HashSet<SequencePair> set = (HashSet<SequencePair>) entry.getValue();\n\t\t count2+=set.size();\n\t\t out.write(\"!size \" + value + \" \" + set.size() + \"\\n\");\n\t\t Iterator itr = set.iterator();\n\t\t while(itr.hasNext()) {\n\t\t \tSequencePair current = (SequencePair) itr.next();\n\t\t \t\n\t\t out.write(\"[\" + current.firstSeq +\":\"+current.secondSeq +\"]\"+\"\\n\");\n\t\t }\n\t\t}\n\t\tout.write(\"! total \" + count2);\n\t\t//System.out.println(count2);\n\t\tif(out!=null)\n\t\t\tout.close();\n\t\t\n\t\t\n\t}",
"public void printDetailedMap(GameMap map, List<String> playersNames);",
"public static void main(String[] args) {\n\t\t\n\t\t List<Result> outputK = new ArrayList<Result>();\n\n\t\t\t\n\t\t\tint alignment_type = Integer.parseInt(args[0]);\n\t\t\t\n\t\t\tif(alignment_type==1){\n\t\t\t\t\n\t\t\t\tGlobalAlignment gb = new GlobalAlignment();\n\n\t\t\t\toutputK = \tgb.PerformGlobalAlignment(args[1],args[2],args[3],args[4],Integer.parseInt(args[5]),Integer.parseInt(args[6]));\n\t\t\t\t\n \n\t\t\t\t\n\t\t\t\tfor(int i=0;i<outputK.size();i++){\n\t\t\t\t\tResult r = outputK.get(i);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(r.score);\n \tSystem.out.println(\"id1 \"+r.id1+\" \"+r.startpos1+\" \"+r.seq1);\n\t\t\t\t\tSystem.out.println(\"id2 \"+r.id2+\" \"+r.startpos2+\" \"+r.seq2);\n//\t\t\t\t\t\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else if(alignment_type==2){\n\t\t\t\t\n\t\t\t\tLocalAlignment loc = new LocalAlignment();\n\t\t\t\toutputK = \tloc.PerformLocalAlignment(args[1],args[2],args[3],args[4],Integer.parseInt(args[5]),Integer.parseInt(args[6]));\n\t\t\t\t\n \n\t\t\t\t\n\t\t\t\tfor(int i=0;i<outputK.size();i++){\n\t\t\t\t\tResult r = outputK.get(i);\n\n\t\t\t\t\tSystem.out.println(r.score);\n System.out.println(\"id1 \"+r.id1+\" \"+r.startpos1+\" \"+r.seq1);\n\t\t\t\t\tSystem.out.println(\"id2 \"+r.id2+\" \"+r.startpos2+\" \"+r.seq2);\n\n\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}else if(alignment_type==3){\n\t\t\t\t\n\t\t \tDoveTail dt = new DoveTail();\t\t\n\t\t\t\toutputK = \tdt.PerformDoveTailAlignment(args[1],args[2],args[3],args[4],Integer.parseInt(args[5]),Integer.parseInt(args[6]));\n\t\t\t\t\n \n\t\t\t\t\n\t\t\t\tfor(int i=0;i<outputK.size();i++){\n\t\t\t\t\tResult r = outputK.get(i);\n\n\t\t\t\t\tSystem.out.println(r.score);\n System.out.println(\"id1 \"+r.id1+\" \"+r.startpos1+\" \"+r.seq1);\n\t\t\t\t\tSystem.out.println(\"id2 \"+r.id2+\" \"+r.startpos2+\" \"+r.seq2);\n\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Enter 1,2 or 3\");\n\t\t\t}\n\t\t\n\t\n\t}",
"public static void main(String[] args)\r\n\t\t\t{\n\t\t\t\tprintLowerAndUpperBound();\r\n\t\t\t}",
"public void printStats() {\n\n System.out.println(\"Number of Users Arrived: \" + numIn);\n System.out.println(\"Number of Users Exited: \" + numOut);\n System.out.println(\"Average Time Spent Waiting for Cab: \" + (totTimeWait / numIn));\n if (numOut != 0) {\n System.out.println(\"Average Time Spent Waiting and Travelling: \" + (totTime / numOut));\n }\n }",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public void printMap(GameMap map);",
"public static void main(String args[]) throws Exception {\n\n String sourceFile = args[0]; //source file has supervised SRL tags\n String targetFile = args[1]; //target file has supervised SRL tags\n String alignmentFile = args[2];\n String sourceClusterFilePath = args[3];\n String targetClusterFilePath = args[4];\n String projectionFilters = args[5];\n double sparsityThresholdStart = Double.parseDouble(args[6]);\n double sparsityThresholdEnd = Double.parseDouble(args[6]);\n\n\n Alignment alignment = new Alignment(alignmentFile);\n HashMap<Integer, HashMap<Integer, Integer>> alignmentDic = alignment.getSourceTargetAlignmentDic();\n\n final IndexMap sourceIndexMap = new IndexMap(sourceFile, sourceClusterFilePath);\n final IndexMap targetIndexMap = new IndexMap(targetFile, targetClusterFilePath);\n ArrayList<String> sourceSents = IO.readCoNLLFile(sourceFile);\n ArrayList<String> targetSents = IO.readCoNLLFile(targetFile);\n\n System.out.println(\"Projection started...\");\n DependencyLabelsAnalyser dla = new DependencyLabelsAnalyser();\n for (int senId = 0; senId < sourceSents.size(); senId++) {\n if (senId % 100000 == 0)\n System.out.print(senId);\n else if (senId % 10000 == 0)\n System.out.print(\".\");\n\n Sentence sourceSen = new Sentence(sourceSents.get(senId), sourceIndexMap);\n Sentence targetSen = new Sentence(targetSents.get(senId), targetIndexMap);\n int maxNumOfProjectedLabels = dla.getNumOfProjectedLabels(sourceSen, alignmentDic.get(senId));\n double trainGainPerWord = (double) maxNumOfProjectedLabels/targetSen.getLength();\n\n if (trainGainPerWord >= sparsityThresholdStart && trainGainPerWord< sparsityThresholdEnd) {\n dla.analysSourceTargetDependencyMatch(sourceSen, targetSen, alignmentDic.get(senId),\n sourceIndexMap, targetIndexMap, projectionFilters);\n }\n }\n System.out.print(sourceSents.size() + \"\\n\");\n dla.writeConfusionMatrix(\"confusion_\"+sparsityThresholdStart+\"_\"+sparsityThresholdEnd+\".out\", sourceIndexMap, targetIndexMap);\n }",
"public static void main(String[] args) {\n\t\tStream<Integer> stream = Stream.of(1, 2, 3, 4, 5, 6);\n\t\tstream.forEach(System.out::print);\n\t\t//:: is called method refrence \n\t\tStream<Integer> stream1 = Stream.of(new Integer[]{1,2,3,4});\n\t\tstream1.forEach(System.out::println);\n\t\t\n\t\tStream<String> names2 = Stream.of(\"D\", \"A\", \"Z\", \"R\");\n names2.sorted(Comparator.naturalOrder()).forEach(System.out::println);\n\t\t \n \n\t}",
"public void printPlayerStat(Player player);",
"public void printInfo() {\n System.out.println(\"\\n\\n---------------------BASIC RESULTS-----------------------\\n\");\n System.out.println(\"Most positive article: \" + mostPositiveDoc + \"\\nwith positivity \" + mostPositive + \"\\n\");\n System.out.println(\"Most negative article: \" + mostNegativeDoc + \"\\nwith negativity \" + mostNegative + \"\\n\");\n if (biggestDifference >= 0) {\n System.out.println(\"Biggest difference: \" + biggestDifferenceDoc + \"\\nwith more positivity by \" + biggestDifference);\n } else {\n System.out.println(\"Biggest difference: \" + biggestDifferenceDoc + \"\\nwith more negativity by \" + Math.abs(biggestDifference));\n }\n \n System.out.println(\"\\nAverage positivity: \" + avgPositive);\n System.out.println(\"Average negativity: \" + avgNegative);\n System.out.println(\"\\n-----------------------------------------------------------\\n\");\n System.out.println(\"\\n---------------------ADVANCED RESULTS----------------------\");\n \n System.out.println(\"\\nAverage positivity for PUBLISHERS:\");\n for (String s : publisherOptimism.keySet()) {\n LinkedList<Double> positives = publisherOptimism.get(s);\n int size = positives.size();\n double total = 0;\n for (double d : positives) {\n total += d;\n }\n System.out.println(s + \", positivity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage negativity for PUBLISHERS:\");\n for (String s : publisherPessimism.keySet()) {\n LinkedList<Double> negatives = publisherPessimism.get(s);\n int size = negatives.size();\n double total = 0;\n for (double d : negatives) {\n total += d;\n }\n System.out.println(s + \", negativity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage positivity for REGIONS:\");\n for (String s : regionOptimism.keySet()) {\n LinkedList<Double> positives = regionOptimism.get(s);\n int size = positives.size();\n double total = 0;\n for (double d : positives) {\n total += d;\n }\n System.out.println(s + \", positivity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage negativity for REGIONS:\");\n for (String s : regionPessimism.keySet()) {\n LinkedList<Double> negatives = regionPessimism.get(s);\n int size = negatives.size();\n double total = 0;\n for (double d : negatives) {\n total += d;\n }\n System.out.println(s + \", negativity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage positivity for DATES:\");\n for (LocalDate s : dayOptimism.keySet()) {\n LinkedList<Double> positives = dayOptimism.get(s);\n int size = positives.size();\n double total = 0;\n for (double d : positives) {\n total += d;\n }\n System.out.println(s + \", positivity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage negativity for DATES:\");\n for (LocalDate s : dayPessimism.keySet()) {\n LinkedList<Double> negatives = dayPessimism.get(s);\n int size = negatives.size();\n double total = 0;\n for (double d : negatives) {\n total += d;\n }\n System.out.println(s + \", negativity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage positivity for WEEKDAYS:\");\n for (DayOfWeek s : weekdayOptimism.keySet()) {\n LinkedList<Double> positives = weekdayOptimism.get(s);\n int size = positives.size();\n double total = 0;\n for (double d : positives) {\n total += d;\n }\n System.out.println(s + \", positivity = \" + total / size);\n }\n \n System.out.println(\"\\nAverage negativity for WEEKDAYS:\");\n for (DayOfWeek s : weekdayPessimism.keySet()) {\n LinkedList<Double> negatives = weekdayPessimism.get(s);\n int size = negatives.size();\n double total = 0;\n for (double d : negatives) {\n total += d;\n }\n System.out.println(s + \", negativity = \" + total / size);\n }\n \n System.out.println(\"\\n-----------------------------------------------------------\\n\");\n \n }",
"public static void dumpAS(Map<String, Integer[]> map) {\n\t\tif (map == null) return;\n\t\tint total = 0; int hits=0;\n\t\tfor (String key : map.keySet()) {\n\t\t\tInteger[] val = map.get(key);\n\t\t\ttotal += val[1];\n\t\t\tboolean hit =Ciphers.realHomophone(key);\n\t\t\tif (hit) hits++;\n\t\t\tSystem.out.println(val[1] + \" for \" + key + \": \" + val[0] + \", \" + (hit ? \" HIT \" : \" MISS \")); \n\t\t}\n\t\tSystem.out.println(\"Total: \" + total + \", hits \" + hits + \" ratio \" + (float)hits/total);\n\t}",
"public static void main(String[] args) {\r\n\t\t\r\n\t\tmapName = \"\";\r\n\t\ttrack = false;\r\n\t\tdrawingDataLines = false;\r\n\t\tLog.getLog().setFilter(Log.NONE);\r\n\t\tint argindex = \t0;\r\n\t\twhile(argindex<args.length) {\r\n\t\t\tString arg = args[argindex];\r\n\t\t\tif(arg.compareTo(\"-map\")==0) {\r\n\t\t\t\tmapName = args[argindex+1];\r\n\t\t\t\targindex+=2;\r\n\t\t\t}\r\n\t\t\telse if(arg.compareTo(\"-pigeon\")==0) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpigeonCt = Integer.parseInt(args[argindex+1]);\r\n\t\t\t\t}catch (NumberFormatException e) {\r\n\t\t\t\t\tSystem.out.println(\"Illegal argument: '\"+args[argindex+1]+\"'\");\r\n\t\t\t\t\tSystem.exit(1);\r\n\t\t\t\t}\r\n\t\t\t\targindex+=2;\r\n\t\t\t}\r\n\t\t\telse if(arg.compareTo(\"-sparrow\")==0) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsparrowCt = Integer.parseInt(args[argindex+1]);\r\n\t\t\t\t}catch (NumberFormatException e) {\r\n\t\t\t\t\tSystem.out.println(\"Illegal argument: '\"+args[argindex+1]+\"'\");\r\n\t\t\t\t\tSystem.exit(1);\r\n\t\t\t\t}\r\n\t\t\t\targindex+=2;\r\n\t\t\t}\r\n\t\t\telse if(arg.compareTo(\"-hawk\")==0) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\thawkCt = Integer.parseInt(args[argindex+1]);\r\n\t\t\t\t}catch (NumberFormatException e) {\r\n\t\t\t\t\tSystem.out.println(\"Illegal argument: '\"+args[argindex+1]+\"'\");\r\n\t\t\t\t\tSystem.exit(1);\r\n\t\t\t\t}\r\n\t\t\t\targindex+=2;\r\n\t\t\t}\r\n\t\t\telse if(arg.compareTo(\"-track\")==0) {\r\n\t\t\t\ttrack=true;\r\n\t\t\t\targindex+=1;\r\n\t\t\t}\r\n\t\t\telse if(arg.compareTo(\"-draw\")==0) {\r\n\t\t\t\tdrawingDataLines=true;\r\n\t\t\t\targindex+=1;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"Unknown Argument: '\"+arg+\"'\");\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(mapName.compareTo(\"\")!=0) {\r\n\t\t\ttry {\r\n\t\t\t\tloadmap(mapName);\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\tSystem.out.println(\"Could not load: '\"+mapName+\"'\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tRandomBoids(pigeonCt,sparrowCt,hawkCt);\r\n\t\t\r\n\t\tSystem.out.println(\"Welcome to Boids!\");\r\n\t\tWindow = graphics.Screen.initScreen(1000,800); \r\n\t\tTimer clock = new Timer(\"Clock\",20);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//add birds to screen\r\n\t\tfor(int i=0;i<Bird.getAllBirds().size();i++) {\r\n\t\t\tWindow.getToDraw().add((Drawable)Bird.getAllBirds().get(i));\r\n\t\t}\r\n\t\t//add map objecst\r\n\t\tfor(int i=0;i<mapobjects.size();i++) {\r\n\t\t\tWindow.getToDraw().add(mapobjects.get(i));\r\n\t\t}\r\n\t\t\r\n\t\t//main loop\r\n\t\tboolean done = false;\r\n\t\twhile(!done) {\r\n\t\t\t\r\n\t\t\t//clear for calculations\r\n\t\t\tfor(int i=0;i<Bird.getAllBirds().size();i++) {\r\n\t\t\t\tBird.getAllBirds().get(i).preBehaviour();\r\n\t\t\t}\r\n\t\t\t//see each bird\r\n\t\t\tfor(int i=0;i<Bird.getAllBirds().size()-1;i++) {\r\n\t\t\t\tfor(int ii=i+1;ii<Bird.getAllBirds().size();ii++) {\r\n\t\t\t\t\tBoid.sight(Bird.getAllBirds().get(i), Bird.getAllBirds().get(ii));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//run formula\r\n\t\t\tfor(int i=0;i<Bird.getAllBirds().size();i++) {\r\n\t\t\t\tBird.getAllBirds().get(i).behaviour();\r\n\t\t\t}\r\n\t\t\t//move birds\r\n\t\t\tfor(int i=0;i<Bird.getAllBirds().size();i++) {\r\n\t\t\t\tBird.getAllBirds().get(i).movement();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//myLog.println(a, DEBUG_CODE);\r\n\t\t\tif(track) {\r\n\t\t\t\tWindow.getViewPoint().copy(Bird.getAllBirds().get(0).getPositionVector());\r\n\t\t\t}\r\n\t\t\tWindow.updateFrameBuffer();\r\n\t\t\tWindow.repaint();\r\n\t\t\ttry {\r\n\t\t\t\tclock.sleep();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tdone = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public void printStatistics() {\n\t// Skriv statistiken samlad så här långt\n stats.print();\n }",
"public static void main(String args[]){\n\n\t\t/* Directories of all SSH Flows */\n\t\tString[] directories = {\n\t\t\t\"../SSH_Segregated/bf_sessions\",\n\t\t\t\"../SSH_Segregated/complete\",\n\t\t\t\"../SSH_Segregated/incomplete\",\n\t\t\t\"../SSH_Segregated/portScan\",\n\t\t\t\"../SSH_Segregated/severe_sessions\",\n\t\t\t\"../SSH_Segregated/success_np_sessions\"\n\t\t};\n\n\t\t/* Labels containing true class for each directory */\n\t\tString[] labels = {\n\t\t\t\"nonsevere\",\n\t\t\t\"nonsevere\",\n\t\t\t\"nonsevere\",\n\t\t\t\"nonsevere\",\n\t\t\t\"severe\",\n\t\t\t\"nonsevere\"\n\t\t};\n\n\t\t/* Names of the csv output files */\n\t\tString[] outputCSV = {\n\t\t\t\"bf_sessions\",\n\t\t\t\"complete\",\n\t\t\t\"incomplete\",\n\t\t\t\"portScan\",\n\t\t\t\"severe_sessions\",\n\t\t\t\"success_np_sessions\"\n\t\t};\n\n\t\t/* Iterating through each directory */\n\t\tfor(int dindex = 0; dindex < directories.length; dindex++){\n\n\t\t\t/* Obtaining list of pcap files */\n\t\t\tFile[] flowFiles = new File(directories[dindex]).listFiles();\n\t\t\tSystem.out.println(flowFiles.length);\n\n\t\t\ttry{\n\n\t\t\t\t/* For writing to the CSV file */\n\t\t\t\tPrintWriter pw = new PrintWriter(outputCSV[dindex] + \".csv\");\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\n\t\t\t\t/* Writing the header of the CSV file */\n\t\t\t\t// sb.append(\",F0\");\n\t\t\t\tsb.append(\",F1\");\t\t\t\t\t\t\t/* 1 */\n\t\t\t\tsb.append(\",F2\");\t\t\t\t\t\t\t/* 2 */\n\t\t\t\tsb.append(\",F3\");\t\t\t\t\t\t\t/* 3 */\n\t\t\t\tsb.append(\",F4\");\t\t\t\t\t\t\t/* 4 */\n\t\t\t\tsb.append(\",F5\");\t\t\t\t\t\t\t/* 6 */\n\t\t\t\tsb.append(\",F6\");\t\t\t\t\t\t\t/* 7 */\n\t\t\t\tsb.append(\",Label\");\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\tpw.write(sb.toString());\n\n\t\t\t\t/* Iterating through all pcap files */\n\t\t\t\tfor(int findex = 0; findex < flowFiles.length; findex++){\n\n\t\t\t\t\tif(findex%1000 == 0) System.out.println(\"...\" + (findex*100/flowFiles.length) + \"% done!\"); \t\t\t\t\t/* Printing status of program every 1000 files. */\n\n\t\t\t\t\t/* Opening pcap file */\n\t\t\t\t\tStringBuilder errbuf = new StringBuilder();\t\t\t\t\t\t\t\n\t\t\t\t\tPcap pcap = Pcap.openOffline(flowFiles[findex].toString(), errbuf);\n\t\t\t\t\tif (pcap == null) { \t\t\t\t\t\t\t\t\t\t\t\t/* Checking for errors in opening the pcap file */\t\t\n\t\t\t\t\t System.err.printf(\"Error while opening device for capture: \" \n\t\t\t\t\t + errbuf.toString()); \n\t\t\t\t\t return; \n\t\t\t\t\t}\n\t\t\t\t\tPcapPacket pkt = new PcapPacket(JMemory.POINTER);\t\t\t\t\t/* For packet decoding */\n\n\t\t\t\t\t/* To calculate F1: duration of flow, F2: Inverse density */\n\t\t\t\t\tint first = 1;\n\t\t\t\t\tDate startTime = new Date();\n\t\t\t\t\tDate endTime = new Date();\n\t\t\t\t\tdouble duration;\n\n\t\t\t\t\t/* To calculate F2: Inverse density */\n\t\t\t\t\tlong packetCount = 0;\t\t\t\t\t\t\t/* Total number of packets. */\n\n\t\t\t\t\t/* To calculate F3: Net Bytes */\n\t\t\t\t\tlong sumOutgoingPktsLength = 0;\t\t\t\t\t/* Sum of outgoing packet lengths in the flow. */\n\t\t\t\t\tlong sumIncomingPktsLength = 0;\t\t\t\t\t/* Sum of incoming packet lengths in the flow. */\n\t\t\t\t\tString serverIP = \"\";\n\t\t\t\t\tlong netBytes = 0;\n\n\t\t\t\t\tlong numPayloadsGT90 = 0;\n\t\t\t\t\tlong numPayloadsGT308 = 0;\n\n\t\t\t\t\tArrayList<Date> timestamps = new ArrayList<Date>();\n\n\t\t\t\t\t/* Iterating through the packets */\n\t\t\t\t\twhile (pcap.nextEx(pkt) == Pcap.NEXT_EX_OK) {\n\n\t\t\t\t\t\tpacketCount++;\t\t\t\t\t\t\t\t/* Incrementing total number of packets */\n\t\t\t\t\t\t\n\t\t\t\t\t\t/* Checking for IP header */\n\t\t\t\t\t\tIp4 ip = new Ip4();\n\t\t\t\t\t\tif(pkt.hasHeader(ip) == false)\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t/* Obtaining timestamp and server IP of first packet */\n\t\t\t\t\t\tif(first == 1){\n\t\t\t\t\t\t\tfirst--;\n\t\t\t\t\t\t\tstartTime = new Date(pkt.getCaptureHeader().timestampInMillis());\n\t\t\t\t\t\t\tbyte[] dIP = new byte[4];\n\t\t\t\t\t\t\tdIP = pkt.getHeader(ip).destination();\n\t\t\t\t\t\t\tserverIP = FormatUtils.ip(dIP);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Obtaining length of payload */\n\t\t\t\t\t\tPayload payload = new Payload();\n\t\t\t\t\t\tlong payloadSize = 0;\n\t\t\t\t\t\tif(pkt.hasHeader(payload)){\n\t\t\t\t\t\t\tpayloadSize = payload.size();\n\t\t\t\t\t\t\tif(payloadSize > 90) numPayloadsGT90++;\n\t\t\t\t\t\t\tif(payloadSize > 308) numPayloadsGT308++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Obtaining source IP address. */\n\t\t\t\t\t\tbyte[] sIP = new byte[4];\n\t\t\t\t\t\tsIP = pkt.getHeader(ip).source();\n\t\t\t\t\t\tString sourceIP = FormatUtils.ip(sIP);\n\n\t\t\t\t\t\t/* Packet coming from server */\n\t\t\t\t\t\tlong packetLength = pkt.getTotalSize();;\n\t\t\t\t\t\tif(sourceIP.equals(serverIP)){\n\t\t\t\t\t\t\tnetBytes += packetLength;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tnetBytes -= packetLength;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Obtaining timestamp of last packet, calculating duration */\n\t\t\t\t\t\tendTime = new Date(pkt.getCaptureHeader().timestampInMillis());\n\n\t\t\t\t\t\t/* Adding this packet's timestamp. */\n\t\t\t\t\t\ttimestamps.add(new Date(pkt.getCaptureHeader().timestampInMillis()));\n\t\t\t\t\t}\n\t\t\t\t\tduration = endTime.getTime() - startTime.getTime();\t\t\t\t\t/* F1 */\n\n\t\t\t\t\tdouble msPerPackets = duration/packetCount;\t\t\t\t\t\t\t/* F2 */\n\t\t\t\t\tdouble percentPktsGT90 = numPayloadsGT90*100/(double)packetCount;\t/* F8 */\n\t\t\t\t\tdouble percentPktsGT308 = numPayloadsGT308*100/(double)packetCount;\t/* F9 */\n\n\t\t\t\t\tlong[] iats = new long[timestamps.size()-1];\n\t\t\t\t\tfor(int i = 1; i < timestamps.size(); i++){\n\t\t\t\t\t\tiats[i-1] = timestamps.get(i).getTime() - timestamps.get(i-1).getTime();\n\t\t\t\t\t}\n\t\t\t\t\tlong signedSumOfDiffInIATs = 0;\n\t\t\t\t\tlong unsignedSumOfDiffInIATs = 0;\n\n\t\t\t\t\tfor(int i = 1; i < iats.length; i++){\n\t\t\t\t\t\tlong diff = iats[i] - iats[i-1];\n\t\t\t\t\t\tsignedSumOfDiffInIATs += (diff);\n\t\t\t\t\t\tunsignedSumOfDiffInIATs += Math.abs(diff);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Forming the row to be written in the CSV file for this pcap file */\n\t\t\t\t\tsb.setLength(0);\n\t\t\t\t\tsb.append(\", \" + duration);\t\t\t\t\t\t/* F1 */\n\t\t\t\t\tsb.append(\", \" + msPerPackets);\t\t\t\t\t/* F2 */\n\t\t\t\t\tsb.append(\", \" + netBytes);\t\t\t\t\t\t/* F3 */\n\t\t\t\t\tsb.append(\", \" + signedSumOfDiffInIATs);\t\t/* F4 */\n\n\t\t\t\t\tsb.append(\", \" + numPayloadsGT90);\t\t\t\t/* F5 */\n\t\t\t\t\tsb.append(\", \" + numPayloadsGT308);\t\t\t\t/* F6 */\n\t\t\t\t\tsb.append(\", \" + labels[dindex]);\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\tpw.write(sb.toString());\n\n\t\t\t\t\t/* Closing pcap file */\n\t\t\t\t\tpcap.close();\n\t\t\t\t}\n\n\t\t\t\t/* Closing output file */\n\t\t\t\tpw.close();\n\n\t\t\t}\n\t\t\tcatch(FileNotFoundException e){\n\t\t\t\tSystem.out.println(\"File already open!\");\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void getStat(Map<String, String> map) {\n\t\t\n\t}",
"public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {\n boolean dumpWatchers;\n int dumpOp;\n String dumpPackage;\n int dumpUid;\n Throwable th;\n boolean needSep;\n long now;\n int dumpUid2;\n SimpleDateFormat sdf;\n Date date;\n long now2;\n int userRestrictionCount;\n ClientRestrictionState restrictionState;\n int excludedPackageCount;\n boolean hasPackage;\n SimpleDateFormat sdf2;\n Date date2;\n int restrictedOpCount;\n boolean[] restrictedOps;\n int dumpMode;\n boolean dumpWatchers2;\n long now3;\n boolean dumpHistory;\n int dumpOp2;\n String dumpPackage2;\n long now4;\n boolean needSep2;\n SimpleDateFormat sdf3;\n long nowElapsed;\n long nowElapsed2;\n int dumpMode2;\n UidState uidState;\n long now5;\n ArrayMap<String, Ops> pkgOps;\n int dumpOp3;\n String dumpPackage3;\n SimpleDateFormat sdf4;\n long now6;\n int dumpMode3;\n UidState uidState2;\n long nowElapsed3;\n int j;\n Ops ops;\n int dumpOp4;\n String dumpPackage4;\n SimpleDateFormat sdf5;\n long now7;\n int j2;\n boolean printedPackage;\n int mode;\n long nowElapsed4;\n int opModeCount;\n int code;\n int mode2;\n boolean hasPackage2;\n boolean hasOp;\n boolean hasOp2;\n boolean needSep3;\n boolean hasOp3;\n SparseArray<Restriction> restrictions;\n boolean needSep4;\n int dumpUid3;\n boolean needSep5;\n boolean printedHeader;\n long now8;\n boolean needSep6;\n boolean needSep7;\n ArraySet<ModeCallback> callbacks;\n if (DumpUtils.checkDumpAndUsageStatsPermission(this.mContext, TAG, pw)) {\n String dumpPackage5 = null;\n int dumpUid4 = -1;\n boolean dumpOp5 = false;\n if (args != null) {\n int i = 0;\n boolean dumpWatchers3 = false;\n int dumpMode4 = -1;\n int dumpUid5 = -1;\n int dumpOp6 = -1;\n while (i < args.length) {\n String arg = args[i];\n if (\"-h\".equals(arg)) {\n dumpHelp(pw);\n return;\n }\n if (!\"-a\".equals(arg)) {\n if (\"--op\".equals(arg)) {\n i++;\n if (i >= args.length) {\n pw.println(\"No argument for --op option\");\n return;\n }\n int dumpOp7 = Shell.strOpToOp(args[i], pw);\n if (dumpOp7 >= 0) {\n dumpOp6 = dumpOp7;\n } else {\n return;\n }\n } else if (\"--package\".equals(arg)) {\n i++;\n if (i >= args.length) {\n pw.println(\"No argument for --package option\");\n return;\n }\n dumpPackage5 = args[i];\n try {\n dumpUid5 = AppGlobals.getPackageManager().getPackageUid(dumpPackage5, 12591104, 0);\n } catch (RemoteException e) {\n }\n if (dumpUid5 < 0) {\n pw.println(\"Unknown package: \" + dumpPackage5);\n return;\n }\n dumpUid5 = UserHandle.getAppId(dumpUid5);\n } else if (\"--mode\".equals(arg)) {\n i++;\n if (i >= args.length) {\n pw.println(\"No argument for --mode option\");\n return;\n }\n int dumpMode5 = Shell.strModeToMode(args[i], pw);\n if (dumpMode5 >= 0) {\n dumpMode4 = dumpMode5;\n } else {\n return;\n }\n } else if (\"--watchers\".equals(arg)) {\n dumpWatchers3 = true;\n } else if (arg.length() <= 0 || arg.charAt(0) != '-') {\n pw.println(\"Unknown command: \" + arg);\n return;\n } else {\n pw.println(\"Unknown option: \" + arg);\n return;\n }\n }\n i++;\n }\n dumpOp = dumpOp6;\n dumpWatchers = dumpWatchers3;\n dumpPackage = dumpPackage5;\n dumpUid = dumpUid5;\n dumpUid4 = dumpMode4;\n } else {\n dumpOp = -1;\n dumpWatchers = false;\n dumpPackage = null;\n dumpUid = -1;\n }\n synchronized (this) {\n try {\n pw.println(\"Current AppOps Service state:\");\n if (0 == 0 && !dumpWatchers) {\n try {\n this.mConstants.dump(pw);\n } catch (Throwable th2) {\n th = th2;\n }\n }\n pw.println();\n long now9 = System.currentTimeMillis();\n long nowElapsed5 = SystemClock.elapsedRealtime();\n SystemClock.uptimeMillis();\n long nowElapsed6 = nowElapsed5;\n SimpleDateFormat sdf6 = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n Date date3 = new Date();\n if (dumpOp < 0 && dumpUid4 < 0 && dumpPackage == null && this.mProfileOwners != null && !dumpWatchers && 0 == 0) {\n pw.println(\" Profile owners:\");\n for (int poi = 0; poi < this.mProfileOwners.size(); poi++) {\n pw.print(\" User #\");\n pw.print(this.mProfileOwners.keyAt(poi));\n pw.print(\": \");\n UserHandle.formatUid(pw, this.mProfileOwners.valueAt(poi));\n pw.println();\n }\n pw.println();\n }\n if (this.mOpModeWatchers.size() <= 0 || 0 != 0) {\n needSep = false;\n } else {\n boolean j3 = false;\n needSep = false;\n for (int i2 = 0; i2 < this.mOpModeWatchers.size(); i2++) {\n if (dumpOp < 0 || dumpOp == this.mOpModeWatchers.keyAt(i2)) {\n boolean printedOpHeader = false;\n ArraySet<ModeCallback> callbacks2 = this.mOpModeWatchers.valueAt(i2);\n boolean printedHeader2 = j3;\n int j4 = 0;\n while (true) {\n needSep7 = needSep;\n if (j4 >= callbacks2.size()) {\n break;\n }\n ModeCallback cb = callbacks2.valueAt(j4);\n if (dumpPackage != null) {\n callbacks = callbacks2;\n if (dumpUid != UserHandle.getAppId(cb.mWatchingUid)) {\n needSep = needSep7;\n j4++;\n callbacks2 = callbacks;\n }\n } else {\n callbacks = callbacks2;\n }\n if (!printedHeader2) {\n needSep7 = true;\n pw.println(\" Op mode watchers:\");\n printedHeader2 = true;\n } else {\n needSep7 = true;\n }\n if (!printedOpHeader) {\n pw.print(\" Op \");\n pw.print(AppOpsManager.opToName(this.mOpModeWatchers.keyAt(i2)));\n pw.println(\":\");\n printedOpHeader = true;\n }\n pw.print(\" #\");\n pw.print(j4);\n pw.print(\": \");\n pw.println(cb);\n needSep = needSep7;\n j4++;\n callbacks2 = callbacks;\n }\n j3 = printedHeader2;\n needSep = needSep7;\n }\n }\n }\n if (this.mPackageModeWatchers.size() > 0 && dumpOp < 0 && 0 == 0) {\n boolean printedHeader3 = false;\n for (int i3 = 0; i3 < this.mPackageModeWatchers.size(); i3++) {\n if (dumpPackage == null || dumpPackage.equals(this.mPackageModeWatchers.keyAt(i3))) {\n boolean needSep8 = true;\n if (!printedHeader3) {\n pw.println(\" Package mode watchers:\");\n printedHeader3 = true;\n }\n pw.print(\" Pkg \");\n pw.print(this.mPackageModeWatchers.keyAt(i3));\n pw.println(\":\");\n ArraySet<ModeCallback> callbacks3 = this.mPackageModeWatchers.valueAt(i3);\n int j5 = 0;\n while (j5 < callbacks3.size()) {\n pw.print(\" #\");\n pw.print(j5);\n pw.print(\": \");\n pw.println(callbacks3.valueAt(j5));\n j5++;\n needSep8 = needSep8;\n }\n needSep = needSep8;\n printedHeader3 = printedHeader3;\n }\n }\n }\n if (this.mModeWatchers.size() > 0 && dumpOp < 0 && 0 == 0) {\n boolean printedHeader4 = false;\n for (int i4 = 0; i4 < this.mModeWatchers.size(); i4++) {\n ModeCallback cb2 = this.mModeWatchers.valueAt(i4);\n if (dumpPackage != null) {\n if (dumpUid != UserHandle.getAppId(cb2.mWatchingUid)) {\n needSep = needSep;\n }\n }\n needSep = true;\n if (!printedHeader4) {\n pw.println(\" All op mode watchers:\");\n printedHeader4 = true;\n }\n pw.print(\" \");\n pw.print(Integer.toHexString(System.identityHashCode(this.mModeWatchers.keyAt(i4))));\n pw.print(\": \");\n pw.println(cb2);\n printedHeader4 = printedHeader4;\n }\n }\n if (this.mActiveWatchers.size() <= 0 || dumpUid4 >= 0) {\n now = now9;\n } else {\n needSep = true;\n boolean printedHeader5 = false;\n int watcherNum = 0;\n while (watcherNum < this.mActiveWatchers.size()) {\n SparseArray<ActiveCallback> activeWatchers = this.mActiveWatchers.valueAt(watcherNum);\n if (activeWatchers.size() <= 0) {\n needSep6 = needSep;\n } else {\n ActiveCallback cb3 = activeWatchers.valueAt(0);\n if (dumpOp < 0 || activeWatchers.indexOfKey(dumpOp) >= 0) {\n if (dumpPackage != null) {\n needSep6 = needSep;\n } else {\n needSep6 = needSep;\n }\n if (!printedHeader5) {\n pw.println(\" All op active watchers:\");\n printedHeader5 = true;\n }\n pw.print(\" \");\n pw.print(Integer.toHexString(System.identityHashCode(this.mActiveWatchers.keyAt(watcherNum))));\n pw.println(\" ->\");\n pw.print(\" [\");\n int opCount = activeWatchers.size();\n now8 = now9;\n for (int opNum = 0; opNum < opCount; opNum++) {\n if (opNum > 0) {\n pw.print(' ');\n }\n pw.print(AppOpsManager.opToName(activeWatchers.keyAt(opNum)));\n if (opNum < opCount - 1) {\n pw.print(',');\n }\n }\n pw.println(\"]\");\n pw.print(\" \");\n pw.println(cb3);\n watcherNum++;\n needSep = needSep6;\n now9 = now8;\n } else {\n needSep6 = needSep;\n }\n }\n now8 = now9;\n watcherNum++;\n needSep = needSep6;\n now9 = now8;\n }\n now = now9;\n }\n if (this.mNotedWatchers.size() > 0 && dumpUid4 < 0) {\n needSep = true;\n boolean printedHeader6 = false;\n int i5 = 0;\n while (i5 < this.mNotedWatchers.size()) {\n SparseArray<NotedCallback> notedWatchers = this.mNotedWatchers.valueAt(i5);\n if (notedWatchers.size() > 0) {\n NotedCallback cb4 = notedWatchers.valueAt(0);\n if ((dumpOp < 0 || notedWatchers.indexOfKey(dumpOp) >= 0) && (dumpPackage == null || dumpUid == UserHandle.getAppId(cb4.mWatchingUid))) {\n if (!printedHeader6) {\n pw.println(\" All op noted watchers:\");\n printedHeader6 = true;\n }\n pw.print(\" \");\n pw.print(Integer.toHexString(System.identityHashCode(this.mNotedWatchers.keyAt(i5))));\n pw.println(\" ->\");\n pw.print(\" [\");\n int opCount2 = notedWatchers.size();\n i5 = 0;\n while (i5 < opCount2) {\n if (i5 > 0) {\n printedHeader = printedHeader6;\n pw.print(' ');\n } else {\n printedHeader = printedHeader6;\n }\n pw.print(AppOpsManager.opToName(notedWatchers.keyAt(i5)));\n if (i5 < opCount2 - 1) {\n pw.print(',');\n }\n i5++;\n printedHeader6 = printedHeader;\n }\n pw.println(\"]\");\n pw.print(\" \");\n pw.println(cb4);\n printedHeader6 = printedHeader6;\n }\n }\n i5++;\n }\n }\n if (this.mClients.size() <= 0 || dumpUid4 >= 0 || dumpWatchers || 0 != 0) {\n dumpUid2 = dumpUid;\n } else {\n needSep = true;\n boolean j6 = false;\n int i6 = 0;\n while (i6 < this.mClients.size()) {\n try {\n boolean printedClient = false;\n ClientState cs = this.mClients.valueAt(i6);\n if (cs.mStartedOps.size() > 0) {\n boolean printedStarted = false;\n boolean printedHeader7 = j6;\n int j7 = 0;\n while (true) {\n dumpUid3 = dumpUid;\n try {\n if (j7 >= cs.mStartedOps.size()) {\n break;\n }\n Op op = cs.mStartedOps.get(j7);\n if (dumpOp >= 0) {\n needSep5 = needSep;\n if (op.op != dumpOp) {\n j7++;\n dumpUid = dumpUid3;\n needSep = needSep5;\n }\n } else {\n needSep5 = needSep;\n }\n if (dumpPackage == null || dumpPackage.equals(op.packageName)) {\n if (!printedHeader7) {\n pw.println(\" Clients:\");\n printedHeader7 = true;\n }\n if (!printedClient) {\n pw.print(\" \");\n pw.print(this.mClients.keyAt(i6));\n pw.println(\":\");\n pw.print(\" \");\n pw.println(cs);\n printedClient = true;\n }\n if (!printedStarted) {\n pw.println(\" Started ops:\");\n printedStarted = true;\n }\n pw.print(\" \");\n pw.print(\"uid=\");\n pw.print(op.uidState.uid);\n pw.print(\" pkg=\");\n pw.print(op.packageName);\n pw.print(\" op=\");\n pw.println(AppOpsManager.opToName(op.op));\n j7++;\n dumpUid = dumpUid3;\n needSep = needSep5;\n } else {\n j7++;\n dumpUid = dumpUid3;\n needSep = needSep5;\n }\n } catch (Throwable th3) {\n th = th3;\n throw th;\n }\n }\n needSep4 = needSep;\n j6 = printedHeader7;\n } else {\n dumpUid3 = dumpUid;\n needSep4 = needSep;\n }\n i6++;\n dumpUid = dumpUid3;\n needSep = needSep4;\n } catch (Throwable th4) {\n th = th4;\n throw th;\n }\n }\n dumpUid2 = dumpUid;\n }\n try {\n if (this.mAudioRestrictions.size() > 0 && dumpOp < 0 && dumpPackage != null && dumpUid4 < 0 && !dumpWatchers && !dumpWatchers) {\n boolean printedHeader8 = false;\n for (int o = 0; o < this.mAudioRestrictions.size(); o++) {\n String op2 = AppOpsManager.opToName(this.mAudioRestrictions.keyAt(o));\n SparseArray<Restriction> restrictions2 = this.mAudioRestrictions.valueAt(o);\n int i7 = 0;\n while (i7 < restrictions2.size()) {\n if (!printedHeader8) {\n pw.println(\" Audio Restrictions:\");\n printedHeader8 = true;\n needSep = true;\n }\n int usage = restrictions2.keyAt(i7);\n pw.print(\" \");\n pw.print(op2);\n pw.print(\" usage=\");\n pw.print(AudioAttributes.usageToString(usage));\n Restriction r = restrictions2.valueAt(i7);\n pw.print(\": mode=\");\n pw.println(AppOpsManager.modeToName(r.mode));\n if (!r.exceptionPackages.isEmpty()) {\n pw.println(\" Exceptions:\");\n int j8 = 0;\n while (true) {\n restrictions = restrictions2;\n if (j8 >= r.exceptionPackages.size()) {\n break;\n }\n pw.print(\" \");\n pw.println(r.exceptionPackages.valueAt(j8));\n j8++;\n restrictions2 = restrictions;\n }\n } else {\n restrictions = restrictions2;\n }\n i7++;\n printedHeader8 = printedHeader8;\n op2 = op2;\n restrictions2 = restrictions;\n }\n }\n }\n if (needSep) {\n pw.println();\n }\n int i8 = 0;\n while (i8 < this.mUidStates.size()) {\n UidState uidState3 = this.mUidStates.valueAt(i8);\n SparseIntArray opModes = uidState3.opModes;\n ArrayMap<String, Ops> pkgOps2 = uidState3.pkgOps;\n if (dumpWatchers) {\n dumpMode = dumpUid4;\n dumpHistory = dumpOp5;\n needSep2 = needSep;\n dumpWatchers2 = dumpWatchers;\n now4 = now;\n dumpPackage2 = dumpPackage;\n dumpOp2 = dumpOp;\n now3 = nowElapsed6;\n } else if (dumpOp5) {\n dumpPackage2 = dumpPackage;\n dumpMode = dumpUid4;\n dumpHistory = dumpOp5;\n needSep2 = needSep;\n dumpWatchers2 = dumpWatchers;\n now4 = now;\n dumpOp2 = dumpOp;\n now3 = nowElapsed6;\n } else {\n if (dumpOp >= 0 || dumpPackage != null || dumpUid4 >= 0) {\n boolean hasOp4 = dumpOp < 0 || (uidState3.opModes != null && uidState3.opModes.indexOfKey(dumpOp) >= 0);\n boolean hasPackage3 = dumpPackage == null;\n boolean hasMode = dumpUid4 < 0;\n if (hasMode || opModes == null) {\n hasOp = hasOp4;\n hasPackage2 = hasPackage3;\n } else {\n hasOp = hasOp4;\n int opi = 0;\n while (true) {\n if (hasMode) {\n hasPackage2 = hasPackage3;\n break;\n }\n hasPackage2 = hasPackage3;\n if (opi >= opModes.size()) {\n break;\n }\n if (opModes.valueAt(opi) == dumpUid4) {\n hasMode = true;\n }\n opi++;\n hasPackage3 = hasPackage2;\n }\n }\n if (pkgOps2 != null) {\n dumpHistory = dumpOp5;\n boolean hasPackage4 = hasPackage2;\n int pkgi = 0;\n hasOp2 = hasOp;\n while (true) {\n if (hasOp2 && hasPackage4 && hasMode) {\n needSep2 = needSep;\n dumpWatchers2 = dumpWatchers;\n break;\n }\n dumpWatchers2 = dumpWatchers;\n try {\n if (pkgi >= pkgOps2.size()) {\n needSep2 = needSep;\n break;\n }\n Ops ops2 = pkgOps2.valueAt(pkgi);\n if (!hasOp2 && ops2 != null && ops2.indexOfKey(dumpOp) >= 0) {\n hasOp2 = true;\n }\n if (!hasMode) {\n hasOp3 = hasOp2;\n int opi2 = 0;\n while (true) {\n if (hasMode) {\n needSep3 = needSep;\n break;\n }\n needSep3 = needSep;\n if (opi2 >= ops2.size()) {\n break;\n }\n if (((Op) ops2.valueAt(opi2)).mode == dumpUid4) {\n hasMode = true;\n }\n opi2++;\n needSep = needSep3;\n }\n } else {\n hasOp3 = hasOp2;\n needSep3 = needSep;\n }\n if (!hasPackage4 && dumpPackage.equals(ops2.packageName)) {\n hasPackage4 = true;\n }\n pkgi++;\n hasOp2 = hasOp3;\n dumpWatchers = dumpWatchers2;\n needSep = needSep3;\n } catch (Throwable th5) {\n th = th5;\n throw th;\n }\n }\n hasPackage2 = hasPackage4;\n } else {\n dumpHistory = dumpOp5;\n needSep2 = needSep;\n dumpWatchers2 = dumpWatchers;\n hasOp2 = hasOp;\n }\n try {\n if (uidState3.foregroundOps != null && !hasOp2 && uidState3.foregroundOps.indexOfKey(dumpOp) > 0) {\n hasOp2 = true;\n }\n if (!hasOp2 || !hasPackage2) {\n dumpMode = dumpUid4;\n dumpOp2 = dumpOp;\n now4 = now;\n dumpPackage2 = dumpPackage;\n now3 = nowElapsed6;\n } else if (!hasMode) {\n dumpPackage2 = dumpPackage;\n dumpMode = dumpUid4;\n dumpOp2 = dumpOp;\n now4 = now;\n now3 = nowElapsed6;\n }\n } catch (Throwable th6) {\n th = th6;\n throw th;\n }\n } else {\n dumpHistory = dumpOp5;\n dumpWatchers2 = dumpWatchers;\n }\n pw.print(\" Uid \");\n UserHandle.formatUid(pw, uidState3.uid);\n pw.println(\":\");\n pw.print(\" state=\");\n pw.println(AppOpsManager.getUidStateName(uidState3.state));\n if (uidState3.state != uidState3.pendingState) {\n pw.print(\" pendingState=\");\n pw.println(AppOpsManager.getUidStateName(uidState3.pendingState));\n }\n if (uidState3.pendingStateCommitTime != 0) {\n pw.print(\" pendingStateCommitTime=\");\n sdf3 = sdf6;\n nowElapsed = nowElapsed6;\n TimeUtils.formatDuration(uidState3.pendingStateCommitTime, nowElapsed, pw);\n pw.println();\n } else {\n sdf3 = sdf6;\n nowElapsed = nowElapsed6;\n }\n if (uidState3.startNesting != 0) {\n pw.print(\" startNesting=\");\n pw.println(uidState3.startNesting);\n }\n if (uidState3.foregroundOps != null && (dumpUid4 < 0 || dumpUid4 == 4)) {\n pw.println(\" foregroundOps:\");\n for (int j9 = 0; j9 < uidState3.foregroundOps.size(); j9++) {\n if (dumpOp < 0 || dumpOp == uidState3.foregroundOps.keyAt(j9)) {\n pw.print(\" \");\n pw.print(AppOpsManager.opToName(uidState3.foregroundOps.keyAt(j9)));\n pw.print(\": \");\n pw.println(uidState3.foregroundOps.valueAt(j9) ? \"WATCHER\" : \"SILENT\");\n }\n }\n pw.print(\" hasForegroundWatchers=\");\n pw.println(uidState3.hasForegroundWatchers);\n }\n needSep = true;\n if (opModes != null) {\n int opModeCount2 = opModes.size();\n int j10 = 0;\n while (j10 < opModeCount2) {\n int code2 = opModes.keyAt(j10);\n int mode3 = opModes.valueAt(j10);\n if (dumpOp >= 0) {\n opModeCount = opModeCount2;\n code = code2;\n if (dumpOp != code) {\n nowElapsed4 = nowElapsed;\n j10++;\n opModeCount2 = opModeCount;\n nowElapsed = nowElapsed4;\n }\n } else {\n opModeCount = opModeCount2;\n code = code2;\n }\n if (dumpUid4 >= 0) {\n nowElapsed4 = nowElapsed;\n mode2 = mode3;\n if (dumpUid4 != mode2) {\n j10++;\n opModeCount2 = opModeCount;\n nowElapsed = nowElapsed4;\n }\n } else {\n nowElapsed4 = nowElapsed;\n mode2 = mode3;\n }\n pw.print(\" \");\n pw.print(AppOpsManager.opToName(code));\n pw.print(\": mode=\");\n pw.println(AppOpsManager.modeToName(mode2));\n j10++;\n opModeCount2 = opModeCount;\n nowElapsed = nowElapsed4;\n }\n nowElapsed2 = nowElapsed;\n } else {\n nowElapsed2 = nowElapsed;\n }\n if (pkgOps2 == null) {\n dumpPackage2 = dumpPackage;\n dumpMode = dumpUid4;\n sdf6 = sdf3;\n now4 = now;\n dumpOp2 = dumpOp;\n now3 = nowElapsed2;\n } else {\n int pkgi2 = 0;\n while (pkgi2 < pkgOps2.size()) {\n Ops ops3 = pkgOps2.valueAt(pkgi2);\n if (dumpPackage == null || dumpPackage.equals(ops3.packageName)) {\n boolean op3 = false;\n int j11 = 0;\n while (j11 < ops3.size()) {\n try {\n Op op4 = (Op) ops3.valueAt(j11);\n int opCode = op4.op;\n if (dumpOp < 0 || dumpOp == opCode) {\n if (dumpUid4 >= 0) {\n j2 = j11;\n try {\n } catch (Throwable th7) {\n th = th7;\n throw th;\n }\n } else {\n j2 = j11;\n }\n if (!op3) {\n pw.print(\" Package \");\n pw.print(ops3.packageName);\n pw.println(\":\");\n printedPackage = true;\n } else {\n printedPackage = op3;\n }\n pw.print(\" \");\n pw.print(AppOpsManager.opToName(opCode));\n pw.print(\" (\");\n pw.print(AppOpsManager.modeToName(op4.mode));\n int switchOp = AppOpsManager.opToSwitch(opCode);\n if (switchOp != opCode) {\n pw.print(\" / switch \");\n pw.print(AppOpsManager.opToName(switchOp));\n Op switchObj = (Op) ops3.get(switchOp);\n if (switchObj != null) {\n mode = switchObj.mode;\n } else {\n mode = AppOpsManager.opToDefaultMode(switchOp);\n }\n pw.print(\"=\");\n pw.print(AppOpsManager.modeToName(mode));\n }\n pw.println(\"): \");\n uidState2 = uidState3;\n dumpPackage4 = dumpPackage;\n dumpMode3 = dumpUid4;\n dumpOp4 = dumpOp;\n sdf5 = sdf3;\n j = j2;\n ops = ops3;\n now7 = now;\n nowElapsed3 = nowElapsed2;\n dumpStatesLocked(pw, op4, now7, sdf5, date3, \" \");\n if (op4.running) {\n pw.print(\" Running start at: \");\n TimeUtils.formatDuration(nowElapsed3 - op4.startRealtime, pw);\n pw.println();\n }\n if (op4.startNesting != 0) {\n pw.print(\" startNesting=\");\n pw.println(op4.startNesting);\n }\n op3 = printedPackage;\n int i9 = j + 1;\n dumpOp = dumpOp4;\n nowElapsed2 = nowElapsed3;\n dumpUid4 = dumpMode3;\n now = now7;\n sdf3 = sdf5;\n pkgOps2 = pkgOps2;\n ops3 = ops;\n j11 = i9;\n dumpPackage = dumpPackage4;\n uidState3 = uidState2;\n } else {\n j2 = j11;\n }\n dumpMode3 = dumpUid4;\n uidState2 = uidState3;\n sdf5 = sdf3;\n dumpPackage4 = dumpPackage;\n dumpOp4 = dumpOp;\n ops = ops3;\n now7 = now;\n nowElapsed3 = nowElapsed2;\n j = j2;\n int i92 = j + 1;\n dumpOp = dumpOp4;\n nowElapsed2 = nowElapsed3;\n dumpUid4 = dumpMode3;\n now = now7;\n sdf3 = sdf5;\n pkgOps2 = pkgOps2;\n ops3 = ops;\n j11 = i92;\n dumpPackage = dumpPackage4;\n uidState3 = uidState2;\n } catch (Throwable th8) {\n th = th8;\n throw th;\n }\n }\n dumpMode2 = dumpUid4;\n pkgOps = pkgOps2;\n uidState = uidState3;\n dumpPackage3 = dumpPackage;\n now6 = now;\n now5 = nowElapsed2;\n sdf4 = sdf3;\n dumpOp3 = dumpOp;\n } else {\n dumpMode2 = dumpUid4;\n pkgOps = pkgOps2;\n uidState = uidState3;\n sdf4 = sdf3;\n now6 = now;\n dumpPackage3 = dumpPackage;\n dumpOp3 = dumpOp;\n now5 = nowElapsed2;\n }\n pkgi2++;\n dumpPackage = dumpPackage3;\n dumpOp = dumpOp3;\n nowElapsed2 = now5;\n uidState3 = uidState;\n dumpUid4 = dumpMode2;\n now = now6;\n sdf3 = sdf4;\n pkgOps2 = pkgOps;\n }\n dumpMode = dumpUid4;\n sdf6 = sdf3;\n now4 = now;\n dumpPackage2 = dumpPackage;\n dumpOp2 = dumpOp;\n now3 = nowElapsed2;\n }\n i8++;\n dumpPackage = dumpPackage2;\n dumpOp = dumpOp2;\n dumpOp5 = dumpHistory;\n nowElapsed6 = now3;\n dumpWatchers = dumpWatchers2;\n dumpUid4 = dumpMode;\n now = now4;\n }\n needSep = needSep2;\n i8++;\n dumpPackage = dumpPackage2;\n dumpOp = dumpOp2;\n dumpOp5 = dumpHistory;\n nowElapsed6 = now3;\n dumpWatchers = dumpWatchers2;\n dumpUid4 = dumpMode;\n now = now4;\n }\n long now10 = now;\n if (needSep) {\n pw.println();\n }\n int userRestrictionCount2 = this.mOpUserRestrictions.size();\n int i10 = 0;\n while (i10 < userRestrictionCount2) {\n IBinder token = this.mOpUserRestrictions.keyAt(i10);\n ClientRestrictionState restrictionState2 = this.mOpUserRestrictions.valueAt(i10);\n boolean printedTokenHeader = false;\n if (dumpUid4 >= 0 || dumpWatchers) {\n userRestrictionCount = userRestrictionCount2;\n now2 = now10;\n sdf = sdf6;\n date = date3;\n } else if (dumpOp5) {\n userRestrictionCount = userRestrictionCount2;\n now2 = now10;\n sdf = sdf6;\n date = date3;\n } else {\n int restrictionCount = restrictionState2.perUserRestrictions != null ? restrictionState2.perUserRestrictions.size() : 0;\n if (restrictionCount <= 0 || dumpPackage != null) {\n userRestrictionCount = userRestrictionCount2;\n now2 = now10;\n sdf = sdf6;\n date = date3;\n } else {\n boolean printedOpsHeader = false;\n int j12 = 0;\n while (j12 < restrictionCount) {\n int userId = restrictionState2.perUserRestrictions.keyAt(j12);\n boolean[] restrictedOps2 = restrictionState2.perUserRestrictions.valueAt(j12);\n if (restrictedOps2 != null) {\n if (dumpOp < 0 || (dumpOp < restrictedOps2.length && restrictedOps2[dumpOp])) {\n if (!printedTokenHeader) {\n StringBuilder sb = new StringBuilder();\n sdf2 = sdf6;\n sb.append(\" User restrictions for token \");\n sb.append(token);\n sb.append(\":\");\n pw.println(sb.toString());\n printedTokenHeader = true;\n } else {\n sdf2 = sdf6;\n }\n if (!printedOpsHeader) {\n pw.println(\" Restricted ops:\");\n printedOpsHeader = true;\n }\n StringBuilder restrictedOpsValue = new StringBuilder();\n restrictedOpsValue.append(\"[\");\n int restrictedOpCount2 = restrictedOps2.length;\n date2 = date3;\n int k = 0;\n while (k < restrictedOpCount2) {\n if (restrictedOps2[k]) {\n restrictedOps = restrictedOps2;\n restrictedOpCount = restrictedOpCount2;\n if (restrictedOpsValue.length() > 1) {\n restrictedOpsValue.append(\", \");\n }\n restrictedOpsValue.append(AppOpsManager.opToName(k));\n } else {\n restrictedOps = restrictedOps2;\n restrictedOpCount = restrictedOpCount2;\n }\n k++;\n restrictedOps2 = restrictedOps;\n restrictedOpCount2 = restrictedOpCount;\n }\n restrictedOpsValue.append(\"]\");\n pw.print(\" \");\n pw.print(\"user: \");\n pw.print(userId);\n pw.print(\" restricted ops: \");\n pw.println(restrictedOpsValue);\n j12++;\n userRestrictionCount2 = userRestrictionCount2;\n now10 = now10;\n date3 = date2;\n sdf6 = sdf2;\n }\n }\n sdf2 = sdf6;\n date2 = date3;\n j12++;\n userRestrictionCount2 = userRestrictionCount2;\n now10 = now10;\n date3 = date2;\n sdf6 = sdf2;\n }\n userRestrictionCount = userRestrictionCount2;\n now2 = now10;\n sdf = sdf6;\n date = date3;\n }\n int excludedPackageCount2 = restrictionState2.perUserExcludedPackages != null ? restrictionState2.perUserExcludedPackages.size() : 0;\n if (excludedPackageCount2 > 0 && dumpOp < 0) {\n boolean printedPackagesHeader = false;\n int j13 = 0;\n while (j13 < excludedPackageCount2) {\n int userId2 = restrictionState2.perUserExcludedPackages.keyAt(j13);\n String[] packageNames = restrictionState2.perUserExcludedPackages.valueAt(j13);\n if (packageNames == null) {\n excludedPackageCount = excludedPackageCount2;\n restrictionState = restrictionState2;\n } else {\n if (dumpPackage != null) {\n hasPackage = false;\n int length = packageNames.length;\n excludedPackageCount = excludedPackageCount2;\n int excludedPackageCount3 = 0;\n while (true) {\n if (excludedPackageCount3 >= length) {\n restrictionState = restrictionState2;\n break;\n }\n restrictionState = restrictionState2;\n if (dumpPackage.equals(packageNames[excludedPackageCount3])) {\n hasPackage = true;\n break;\n } else {\n excludedPackageCount3++;\n restrictionState2 = restrictionState;\n }\n }\n } else {\n excludedPackageCount = excludedPackageCount2;\n restrictionState = restrictionState2;\n hasPackage = true;\n }\n if (hasPackage) {\n if (!printedTokenHeader) {\n pw.println(\" User restrictions for token \" + token + \":\");\n printedTokenHeader = true;\n }\n if (!printedPackagesHeader) {\n pw.println(\" Excluded packages:\");\n printedPackagesHeader = true;\n }\n pw.print(\" \");\n pw.print(\"user: \");\n pw.print(userId2);\n pw.print(\" packages: \");\n pw.println(Arrays.toString(packageNames));\n }\n }\n j13++;\n excludedPackageCount2 = excludedPackageCount;\n restrictionState2 = restrictionState;\n }\n }\n }\n i10++;\n userRestrictionCount2 = userRestrictionCount;\n now10 = now2;\n date3 = date;\n sdf6 = sdf;\n }\n } catch (Throwable th9) {\n th = th9;\n throw th;\n }\n } catch (Throwable th10) {\n th = th10;\n throw th;\n }\n }\n if (dumpOp5 && !dumpWatchers) {\n this.mHistoricalRegistry.dump(\" \", pw, dumpUid2, dumpPackage, dumpOp);\n }\n }\n }",
"@Test\n public void genStateTransferMetric() {\n TreeMap<String, Integer> stat = new TreeMap<>();\n int currState = 8;\n for (int i = 1; i < numSteps; i++) {\n int nextStates = getNextState(currState);\n stat.compute(currState + \"-\" + nextStates, (k, v) -> v == null ? 1 : v + 1);\n currState = nextStates;\n }\n stat.forEach((k, v) -> System.out.printf(\"%s:%f\\n\", k.replace('-', ':'), (double) v / numSteps));\n }",
"public void mapToString() {\r\n for (Square[] x : map) {\r\n for (Square y : x) {\r\n System.out.print(y.getVisual() + \" \");\r\n }\r\n System.out.println();\r\n }\r\n }",
"@Override\n public void run(Map<String, LogicalInput> inputs,\n Map<String, LogicalOutput> outputs) throws Exception {\n try {\n Class<?> clazz = Class.forName(\"org.apache.tez.common.ProgressHelper\");\n Constructor<?> ctor = clazz.getConstructor(Map.class, ProcessorContext.class, String.class);\n progressHelper = ctor.newInstance(inputs, getContext(), this.getClass().getSimpleName());\n Method scheduleProgressTaskService = clazz.getMethod(\"scheduleProgressTaskService\", long.class, long.class);\n scheduleProgressTaskService.invoke(progressHelper, 100,\n Math.max(1000, conf.getInt(TezConfiguration.TEZ_TASK_AM_HEARTBEAT_INTERVAL_MS,\n TezConfiguration.TEZ_TASK_AM_HEARTBEAT_INTERVAL_MS_DEFAULT) - 50));\n }\n catch (IllegalAccessException | IllegalArgumentException | InstantiationException | InvocationTargetException\n | ClassNotFoundException | NoSuchMethodException | SecurityException e) {\n // ignore\n }\n\n try {\n initializeInputs(inputs);\n\n initializeOutputs(outputs);\n\n\n List<PhysicalOperator> leaves = null;\n\n if (!execPlan.isEmpty()) {\n leaves = execPlan.getLeaves();\n // TODO: Pull from all leaves when there are multiple leaves/outputs\n leaf = leaves.get(0);\n }\n\n LOG.info(\"Aliases being processed per job phase (AliasName[line,offset]): \" + conf.get(\"pig.alias.location\"));\n\n runPipeline(leaf);\n\n if (Boolean.valueOf(conf.get(JobControlCompiler.END_OF_INP_IN_MAP, \"false\"))\n && !execPlan.endOfAllInput) {\n // If there is a stream in the pipeline or if this map job belongs to merge-join we could\n // potentially have more to process - so lets\n // set the flag stating that all map input has been sent\n // already and then lets run the pipeline one more time\n // This will result in nothing happening in the case\n // where there is no stream or it is not a merge-join in the pipeline\n execPlan.endOfAllInput = true;\n runPipeline(leaf);\n }\n\n // Calling EvalFunc.finish()\n UDFFinishVisitor finisher = new UDFFinishVisitor(execPlan,\n new DependencyOrderWalker<PhysicalOperator, PhysicalPlan>(\n execPlan));\n try {\n finisher.visit();\n } catch (VisitorException e) {\n int errCode = 2121;\n String msg = \"Error while calling finish method on UDFs.\";\n throw new VisitorException(msg, errCode, PigException.BUG, e);\n }\n\n if (!fileOutputs.isEmpty()) {\n while (!getContext().canCommit() && !isAborted) {\n Thread.sleep(100);\n }\n if (isAborted) {\n return;\n }\n for (MROutput fileOutput : fileOutputs){\n fileOutput.flush();\n if (fileOutput.isCommitRequired()) {\n fileOutput.commit();\n }\n }\n }\n\n // send event containing parallelism to sorting job of order by / skewed join\n if (conf.getBoolean(ESTIMATE_PARALLELISM, false)) {\n int parallelism = 1;\n if (sampleMap!=null && sampleMap.containsKey(ESTIMATED_NUM_PARALLELISM)) {\n parallelism = (Integer)sampleMap.get(ESTIMATED_NUM_PARALLELISM);\n }\n String sortingVertex = conf.get(SORT_VERTEX);\n // Should contain only 1 output for sampleAggregation job\n LOG.info(\"Sending numParallelism \" + parallelism + \" to \" + sortingVertex);\n VertexManagerEvent vmEvent = VertexManagerEvent.create(\n sortingVertex, ByteBuffer.wrap(Ints.toByteArray(parallelism)));\n List<Event> events = Lists.newArrayListWithCapacity(1);\n events.add(vmEvent);\n getContext().sendEvents(events);\n }\n } catch (Exception e) {\n LOG.error(\"Encountered exception while processing: \", e);\n abortOutput();\n throw e;\n }\n }",
"public static void main(String[] args) {\n PercolationStats test = new PercolationStats(Integer.parseInt(args[0]), Integer.parseInt(args[1]));\n StdOut.print(\"mean: \" + test.mean() + \" \");\n StdOut.print(\"stddev: \" + test.stddev() + \" \");\n StdOut.print(\"confidenceLow: \" + test.confidenceLow() + \" \");\n StdOut.print(\"confidenceHigh: \" + test.confidenceHigh() + \"\\n\");\n }",
"int getOutputsCount();",
"int getOutputsCount();",
"int getOutputsCount();",
"int getOutputsCount();",
"int getOutputsCount();",
"public static void main(String[] args) {\n\t\tStopwatch timer = new Stopwatch();\n\t\t//for(int i = 0; i< 10;i++) {\n\t\t\tIn in = new In(args[0]);\n\t\t\tSizeWeightedQuickUnionVisualizer q = new SizeWeightedQuickUnionVisualizer(in.readInt());\n\t\t\twhile(!in.isEmpty()) {\n\t\t\t\tint m = in.readInt();\n\t\t\t\tint n = in.readInt();\n\t\t\t\tif(q.isConnected(m, n)) continue;\n\t\t\t\tq.union(m, n);\n\t\t\t}\n\t\t//}\n\t\tdouble time = timer.elapsedTime();\n\t\t//System.out.println(\"the average time of 10 trials is : \" + time/10 + \" seconds\");\n\t\t//System.out.println(\"the number of components is \"+ q.count()+\" the number of total array accesses is \"+q.sum + \" the average nodes' depth is: \"+ q.getAvgDepth()+\" time: \"+time+\" seconds\");\n\t}",
"public static void main(String[] args) {\n List<EntityProfile>[] profiles;\r\n if (args.length > 0) {\r\n BASEPATH = args[0] + \"/\";\r\n profiles = Utilities.getEntities(BASEPATH, DATASET, CLEAN);\r\n } else {\r\n //profiles = Utilities.getEntities(BASEPATH, DATASET, CLEAN);\r\n profiles = Utilities.getEntities(DATASET, CLEAN);\r\n }\r\n\r\n Instant start = Instant.now();\r\n\r\n ProgressiveSnHeap psn = new ProgressiveSnHeap(profiles, WeightingSchemeSn.MINHASH, false, 50);\r\n // weighted psn needs a block collection and a wighing scheme\r\n //psn.buildEntityList(50);\r\n // passing no argument simple psn is performed\r\n //psn.buildEntityList();\r\n\r\n //MinMaxPriorityQueue<Comparison> comparisons = psn.get_heap();\r\n\r\n double num_comparisons = 0;\r\n double comparisons_old = 0;\r\n //AbstractDuplicatePropagation adp = Utilities.getGroundTruth(BASEPATH, DATASET, CLEAN);\r\n AbstractDuplicatePropagation adp = Utilities.getGroundTruth(DATASET, CLEAN);\r\n\r\n double pc = 0.0;\r\n double pc_old = 0.0;\r\n double pq = 0.0;\r\n double detectedDuplicates = 0;\r\n\r\n double w_old = Double.MAX_VALUE;\r\n //while (!comparisons.isEmpty()) {\r\n while (psn.hasNext()) {\r\n //Comparison c = comparisons.pollFirst();\r\n Comparison c = (Comparison) psn.next();\r\n //double w = c.getUtilityMeasure();\r\n //if (w_old < w) {\r\n // System.out.println(\"error weight: \" + w_old + \" \" + w);\r\n //}\r\n //System.out.println(\"weight: \" + w);\r\n //w_old = w;\r\n\r\n\r\n num_comparisons++;\r\n detectedDuplicates = adp.getNoOfDuplicates();\r\n pc = ((double) detectedDuplicates) / adp.getExistingDuplicates();\r\n if ((pc - pc_old) > .1) {\r\n pc_old = pc;\r\n //pq = detectedDuplicates / (double) comparisons;\r\n System.out.println(\"pc: \" + Math.round(pc * 100) / 100.0 + \" - \" + (num_comparisons - comparisons_old));\r\n comparisons_old = num_comparisons;\r\n }\r\n adp.isSuperfluous(c);\r\n\r\n if (pc > 0.8) {\r\n break;\r\n }\r\n }\r\n\r\n detectedDuplicates = adp.getNoOfDuplicates();\r\n pc = ((double) detectedDuplicates) / adp.getExistingDuplicates();\r\n pq = detectedDuplicates / (double) num_comparisons;\r\n\r\n System.out.println(\"partial res1\");\r\n System.out.println(\"pc: \" + pc);\r\n System.out.println(\"pq: \" + pq);\r\n }",
"public static void printfin(coordinate visit1[][], coordinate visit2[][]) {\n \t //represent one path to be 3s and the other to be 4s, but for now, set both srcs to three\n \t map[dim-1][dim-1]=3;\n \t map[0][0]=3;\n \t int tempx = intersect.x; \n \t int tempy = intersect.y;\n \t map[tempx][tempy] = 3; //will be updated later\n \n \t while(!(tempx==0 && tempy==0)) { //iterate one path until we hit the src1\n coordinate hold = visit1[tempx][tempy];\n\t\t//take current node and mark as visited in path 1 (src1 -- from 0,0 to intersect)\n tempx = hold.x;\n tempy=hold.y;\n\t\t//set these to 3, as visited, and increase pathSize\n pathsize++;\n\n map[tempx][tempy]=3;\n\n tempx = hold.x;\n tempy=hold.y;\n\n map[tempx][tempy]=3;\n \t }\n \t //do the same for second path\n \t tempx = intersect.x;\n \t tempy = intersect.y;\n \t map[tempx][tempy] = 3; \n \t int val=dim-1;\n \n\t //this is for the other path from the second src\n \t while(!(tempx==val && tempy==val)) {\n\t \t coordinate hold = visit2[tempx][tempy];\n\t \t tempx = hold.x;\n\t \t tempy=hold.y;\n\t \t pathsize++;\n\t \t \n\t \t map[tempx][tempy]=3;\n\t \t \n\t \t tempx = hold.x;\n\t \t tempy=hold.y;\n\t \t \n\t \t map[tempx][tempy]=4;\n \t }\n \n }",
"private void calculateMaps() {\n\tsrcrows = new int[destHeight + 1];\n\tfor (int y = 0; y <= destHeight; y++) {\n\t srcrows[y] = (2 * y * srcHeight + srcHeight) / (2 * destHeight);\n\t}\n\tsrccols = new int[destWidth + 1];\n\tfor (int x = 0; x <= destWidth; x++) {\n\t srccols[x] = (2 * x * srcWidth + srcWidth) / (2 * destWidth);\n\t}\n\n float xscale = ( ( float ) srcWidth - 1 ) / ( ( float ) destWidth );\n float yscale = ( ( float ) srcHeight - 1 ) / ( ( float ) destHeight ) ;\n\n srcxlarr = new int[destWidth+1];\n srcxuarr = new int[destWidth+1];\n srcxarr = new int[destWidth+1];\n\n for (int x = 0 ; x <= destWidth;x++) {\n float tmp = x * xscale ;\n srcxlarr[x] = (int) Math.floor( tmp ) ;\n srcxuarr[x] = (int) Math.ceil( tmp ) ;\n srcxarr[x] = (int) ( ( tmp - srcxlarr[x] ) * 255f );\n }\n\n srcylarr = new int[destHeight+1];\n srcyuarr = new int[destHeight+1];\n srcyarr = new int[destHeight+1];\n\n for (int y = 0 ; y <= destHeight;y++) {\n float tmp = y * yscale ;\n srcylarr[y] = (int) Math.floor( tmp ) ;\n srcyuarr[y] = (int) Math.ceil( tmp ) ;\n srcyarr[y] = (int) ( ( tmp - srcylarr[y] ) * 255f );\n }\n\n /*\n System.out.println( \"srcrows\" );\n for (int i=0;i<srcrows.length;i++) {\n System.out.print( srcrows[i] + \" \" );\n }\n\n System.out.println( \"\\nsrccols\" );\n for (int i=0;i<srccols.length;i++) {\n System.out.print( srccols[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcxlarr\" );\n for (int i=0;i<srcxlarr.length;i++) {\n System.out.print( srcxlarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcxuarr\" );\n for (int i=0;i<srcxuarr.length;i++) {\n System.out.print( srcxuarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcylarr\" );\n for (int i=0;i<srcxlarr.length;i++) {\n System.out.print( srcylarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcyuarr\" );\n for (int i=0;i<srcxuarr.length;i++) {\n System.out.print( srcyuarr[i] + \" \" );\n }\n */\n }",
"public static void main(String[] args)\r\n {\r\n //GammaDistribution gam = new GammaDistribution(10.0, 20.0);\r\n //double gamR = gam.sample();\r\n //System.out.println(gamR);\r\n \r\n for(String s : args)\r\n {\r\n System.out.println(s);\r\n }\r\n //if we run the code without any arguments then use default, else overwrite\r\n int lnth = args.length; \r\n if (lnth != 0 ) {\r\n int diff = 0;\r\n try {\r\n //totalT = Integer.valueOf(args[0+diff]);\r\n //totalY = Integer.valueOf(args[1+diff]);\r\n //totalYears = Integer.valueOf(args[2+diff]);\r\n dataSet = args[0+diff];\r\n yrs = Integer.valueOf(args[1+diff]);\r\n spreadYrs = Integer.valueOf(args[2+diff]);\r\n maxDepth = Integer.valueOf(args[3+diff]);\r\n popSize = Integer.valueOf(args[4+diff]);\r\n tournamentSize = (popSize / 100) - 1;\r\n mutProb = Double.valueOf(args[5+diff]);\r\n xoverProb = Double.valueOf(args[6+diff]); \r\n elitismPercentage = Double.valueOf(args[7+diff]);\r\n primProb = Double.valueOf(args[8+diff]);\r\n terminalNodeCrossBias = Double.valueOf(args[9+diff]);\r\n nGens = Integer.valueOf(args[10+diff]);\r\n lowerLowBound = Double.valueOf(args[11+diff]);\r\n lowerUpBound = Double.valueOf(args[12+diff]);\r\n upperLowBound = Double.valueOf(args[13+diff]);\r\n upperUpBound = Double.valueOf(args[14+diff]);\r\n movingAverage = Integer.valueOf(args[15+diff]);\r\n totalNumParams = 0;\r\n additionalParameters = 0;\r\n parameterIndex.add(0);\r\n for (int i = 16; i < args.length -1 + diff; i++) { // minus 1 as the last parameter is whether to use bound \r\n if (Integer.valueOf(args[i]) == 1) { \r\n totalNumParams++;\r\n parameterIndex.add(i-15); //parameterIndex starts from 1, becuase my pred value is in column 0\r\n if (i >= args.length -9 + diff) {//minus 1 to compensate for last value and minus 8 for the 9 parameters\r\n additionalParameters++;\r\n }\r\n } \r\n }\r\n lowerBound = Integer.valueOf(args[args.length - 1]); //last value is whether to use a lower bound\r\n } catch (ArrayIndexOutOfBoundsException t) {\r\n System.out.println(\"args not enough, please check\");\r\n }\r\n } else {\r\n for (int i = 0; i < totalNumParams; i++) {\r\n parameterIndex.add(i);\r\n }\r\n }\r\n FReader read = new FReader();\r\n header = read.readHeader(\"Data/header.txt\");\r\n parametersLength = header.length - 9; //take away the 9 parameters that will be calculated within GP\r\n \r\n Expr[] evolvedMethodParameters = new Expr[totalNumParams-1];\r\n eval = new PredictionEvaluatorTrue2(nRuns, contractLength, parameterIndex, parametersLength, additionalParameters);\r\n \r\n Function evolvedMethod = new Function(Double.TYPE, new Class[0]);\r\n TreeManager.evolvedMethod = evolvedMethod;\r\n \r\n \r\n for (int i=0; i<totalNumParams-1; i++) {\r\n \r\n evolvedMethodParameters[i] = new Parameter(i);\r\n } \r\n TreeManager.evolvedMethodParameters = evolvedMethodParameters;\r\n \r\n ArrayList methodSet = new ArrayList();\r\n methodSet.add(ADD);\r\n methodSet.add(SUB);\r\n methodSet.add(MUL);\r\n methodSet.add(DIV);\r\n methodSet.add(LOG);\r\n methodSet.add(SQRT);\r\n methodSet.add(POW);\r\n methodSet.add(MOD);\r\n //methodSet.add(SIN);\r\n //methodSet.add(COS);\r\n methodSet.add(EXP);\r\n\r\n\r\n Random r = new Random();\r\n ArrayList terminalSet = new ArrayList();\r\n// for (int i = 0; i < terminals; i++)\r\n// {\r\n// double rc = r.nextDouble();\r\n// terminalSet.add(new Constant(new Double(rc * 100.0D), Double.TYPE)); //Building in a function representing random numbers minimum and maximum, consider avearge\r\n// }\r\n// \r\n// //Add in numbers between 0 and 2 in blocks of 0.05 for the purpose of weights\r\n// \r\n// for (int i = 0; i < weights; i++)\r\n// {\r\n// double rc = (1 + i) * 0.05;\r\n// terminalSet.add(new Constant(new Double(rc), Double.TYPE));\r\n// }\r\n \r\n //terminalSet.add(new Constant(new Double(0.0D), Double.TYPE));\r\n //terminalSet.add(new Constant(new Double(3.141592653589793D), Double.TYPE));\r\n \r\n //For old data\r\n //Dynamically adds the number of parameters to be estimated, need to refer to data to input correct values\r\n //for (int i = 0; i < totalT; i++) {\r\n // terminalSet.add(new Parameter(i, Double.TYPE, Boolean.valueOf(true), \"Rain_t-\"+(i+1)));\r\n //}\r\n //for (int i = 0; i < totalY; i++) {\r\n // terminalSet.add(new Parameter(i+totalT, Double.TYPE, Boolean.valueOf(true), \"Year_t-\"+(i+1)));\r\n //}\r\n \r\n //For new data have headers read in and name accordingly.\r\n \r\n for (int i = 0; i < totalNumParams-1; i++) {\r\n terminalSet.add(new Parameter(i, Double.TYPE, Boolean.valueOf(true), header[parameterIndex.get(i)]));\r\n }\r\n \r\n \r\n //consider 3 ERC's one big range, 2 smaller ranges between -1 and 1\r\n terminalSet.add(new Constant(\"ERC\", Double.TYPE));\r\n terminalSet.add(new Constant(\"ERC2\", Double.TYPE));\r\n terminalSet.add(new Constant(\"ERC3\", Double.TYPE));\r\n \r\n double primProb = 0.6D;\r\n double terminalNodeCrossBias = 0.1D;\r\n TreeManager tm = new TreeManager(methodSet, terminalSet, primProb, maxInitialDepth, maxDepth, terminalNodeCrossBias);\r\n \r\n\r\n\r\n\r\n System.out.println(\"============= Experimental parameters =============\");\r\n System.out.println(\"Maximum initial depth: \" + maxInitialDepth);\r\n System.out.println(\"Maximum depth: \" + maxDepth);\r\n System.out.println(\"Primitive probability in Grow method: \" + primProb);\r\n System.out.println(\"Terminal node crossover bias: \" + terminalNodeCrossBias);\r\n System.out.println(\"No of generations: \" + nGens);\r\n System.out.println(\"Population size: \" + popSize);\r\n System.out.println(\"Tournament size: \" + tournamentSize);\r\n System.out.println(\"Crossover probability: \" + xoverProb);\r\n System.out.println(\"Reproduction probability: \" + (1.0D - xoverProb));\r\n System.out.println(\"Mutation probalitity: \" + mutProb);\r\n System.out.println(\"Elitism percentage: \" + elitismPercentage);\r\n System.out.println(\"===================================================\");\r\n \r\n \r\n \r\n \r\n \r\n StatisticalSummary.logExperimentSetup(methodSet, terminalSet, maxInitialDepth, maxDepth, primProb, terminalNodeCrossBias, nGens, popSize, tournamentSize, mutProb, xoverProb); \r\n \r\n StatisticalSummary stat = null;\r\n filenameS = \"Results/Results_\"+yrs+\"_\"+spreadYrs+\"_MA\"+movingAverage+\"_\"+contractLength;\r\n for (int i = 0; i < nRuns; i++)\r\n {\r\n System.out.println(\"========================== Experiment \" + i + \" ==================================\");\r\n File experiment = new File(filenameS + \"/Experiment \"+i);\r\n experiment.mkdirs();\r\n stat = new StatisticalSummary(nGens, popSize, i);\r\n alg = new GA(tm, eval, popSize, tournamentSize, stat, mutProb, elitismPercentage, xoverProb, nRuns);\r\n alg.evolve(nGens, i);\r\n System.out.println(\"===============================================================================\");\r\n }\r\n}",
"private void printCfaStatistics(PrintStream out) {\n if (cfa != null) {\n int edges = 0;\n for (CFANode n : cfa.getAllNodes()) {\n edges += n.getNumEnteringEdges();\n }\n\n out.println(\"Number of program locations: \" + cfa.getAllNodes().size());\n out.println(\"Number of CFA edges: \" + edges);\n if (cfa.getVarClassification().isPresent()) {\n out.println(\"Number of relevant variables: \" + cfa.getVarClassification().get()\n .getRelevantVariables().size());\n }\n out.println(\"Number of functions: \" + cfa.getNumberOfFunctions());\n\n if (cfa.getLoopStructure().isPresent()) {\n int loops = cfa.getLoopStructure().get().getCount();\n out.println(\"Number of loops: \" + loops);\n }\n }\n }",
"private void printMyRoutingTable()\n {\n\tString str;\n\tmyGUI.println(\"My Distance table and routes\");\n str = F.format(\"dst |\", 15);\n for (int i = 0; i < RouterSimulator.NUM_NODES; i++) {\n str += (F.format(i, 15));\n }\n myGUI.println(str);\n for (int i = 0; i < str.length(); i++) {\n myGUI.print(\"-\");\n }\n str = F.format(\"cost |\", 15);\n for (int i = 0; i < RouterSimulator.NUM_NODES; i++) {\n str += F.format(myDistTable[i], 15);\n }\n myGUI.println();\n myGUI.println(str);\n str = F.format(\"route |\", 15);\n for (int i = 0; i < RouterSimulator.NUM_NODES; i++) {\n str += F.format(route[i], 15);\n }\n myGUI.println(str);\n myGUI.println();\n myGUI.println(\"--------------------------------------------\");\n myGUI.println();\n\n }",
"void toConsole(IMap map);",
"private String perRuleStatistics(Map<Feature<Boolean>, Set<String>> featureResults, int total) {\n StringBuffer statisticsTable = new StringBuffer();\n for (Feature<Boolean> feature : featureResults.keySet()) {\n statisticsTable.append(String.format(\"\\n### Project statistics for %s (%s)\\n\\n\", \n formatter.identifierOf(feature).orElseGet(() -> \"unknown\"), formatter.nameOf(feature)));\n Set<String> resultsForFeature = featureResults.get(feature);\n if (resultsForFeature.isEmpty()) {\n statisticsTable.append(\"*All projects are compliant with this rule.*\\n\");\n } else {\n statisticsTable.append(\"| | # of projects | % of projects |\\n\");\n statisticsTable.append(\"| ------- | :----- | :------------------ |\\n\");\n statisticsTable.append(String.format(\"| Passed | %d | %2.1f%% |\\n\", \n total - resultsForFeature.size(), \n (double) (total - resultsForFeature.size()) / total * 100));\n statisticsTable.append(String.format(\"| Failed | %d | %2.1f%% |\\n\\n\", \n resultsForFeature.size(), (double) resultsForFeature.size() / total * 100));\n statisticsTable.append(\"**Failed projects:**\\n\");\n resultsForFeature.stream()\n .forEach(result -> statisticsTable.append(String.format(\"- %s\\n\", result)));\n }\n }\n return statisticsTable.toString();\n }",
"private void dumpMap(PrintStream stream, Map<String, String> map) {\n for (String key : map.keySet()) {\n stream.println(\" \" + key + \" -> \" + map.get(key));\n }\n }",
"public static void main(String[] args) {\n String s1 = \"tweety\";\n String s2 = \"weetty\";\n System.out.println(checkPermutationCountingHashMap(s1, s2));\n System.out.println(checkPermutationSorting(s1, s2));\n System.out.println(checkPermutationCountingArray(s1, s2));\n }",
"private double getNetworkOutStatistics(String args) throws Exception\n {\n //TODO:IMPLEMENT NETWORK OUT STATISTICS GETTE\n String[] lineParts = getNetFile();\n if(args.toLowerCase() == packetArg)\n {\n int newNetPackets = Integer.decode(lineParts[10]);\n int retVal = newNetPackets - previousNetworkOutPackets;\n previousNetworkOutPackets = newNetPackets;\n return(retVal);\n }\n else\n {\n int newNetOut = Integer.decode(lineParts[9]);\n int retVal = newNetOut - previousNetworkout;\n previousNetworkout = newNetOut;\n return(retVal);\n }\n }",
"private static void outputneighborhood(double[][] tallyoverlaplabel, double[] tallylabel, double[] dsumoverlaplabel, String szoutfile,\n\t\t\t\t\t int nspacing, int numright, int numleft, Color theColor, String szstateorder,String sztitle,\n int noffset, String szlabelmapping, char chorder, boolean bprintimage, \n boolean bstringlabels, HashMap hmIndexToLabel) throws IOException\n {\n NumberFormat nf5 = NumberFormat.getInstance();\n nf5.setMaximumFractionDigits(5);\n\tnf5.setGroupingUsed(false);\n\tnf5.setMinimumFractionDigits(5);\n \t \n\tHashMap hmlabelExtend = makeLabelMapping(szlabelmapping);\n\n\t//computes the total sum of signal each position, but summing over the \n\t//signal at each state at that position\n for (int npos = 0; npos < tallyoverlaplabel.length; npos++)\n {\n for (int nindex = 0; nindex < tallyoverlaplabel[npos].length; nindex++)\n {\n dsumoverlaplabel[npos] += tallyoverlaplabel[npos][nindex];\n }\n } \n\n\tdouble dsumlabel = 0;\n\tfor (int ni = 0; ni < tallylabel.length; ni++)\n {\n\t dsumlabel += tallylabel[ni];\n\t}\n\n\tString[] collabels = new String[tallyoverlaplabel.length];\n\tSystem.out.println(\"Writing to file \"+szoutfile+\".txt\");\n\tPrintWriter pw = new PrintWriter(new FileWriter(szoutfile+\".txt\"));\n\n\t//prints out the column labels\n\t//and stores them in collabels for the heatmap\n\tint ninterval = 0;\n\tpw.print(\"State (\"+szstateorder+\" order)\");\n\tfor(int npos = -nspacing*numleft; npos <= nspacing*numright; npos+=nspacing)\n {\n\t pw.print(\"\\t\"+npos);\n\t collabels[ninterval] = \"\"+npos;\n\t ninterval++;\n\t}\n\tpw.println();\n\n\t//each row in the heatmap corresponds to a state and each column a position in tallyoverlaplabel\n\tdouble[][] heatmapfold = new double[tallyoverlaplabel[0].length][tallyoverlaplabel.length];\n\tint numelim = 0;\n\n\t//computes the fold enrichment for each non-empty state and outputs\n\t//the fold enrichment\n\tfor (int nstate = 0; nstate < tallyoverlaplabel[0].length; nstate++)\n\t{\n\t if (tallylabel[nstate] > 0)\n\t {\n\t\tif (bstringlabels)\n\t\t{\n\t pw.print(hmIndexToLabel.get(\"\"+nstate));\n\t\t}\n\t\telse\n\t\t{\n\t\t //state actually occurs\n\t\t pw.print((nstate+noffset));\n String szsuffix;\n if ((szsuffix = (String) hmlabelExtend.get(\"\"+chorder+(nstate+noffset)))!=null)\n\t\t {\n\t \t pw.print(\"_\"+szsuffix);\n\t }\n\t\t}\n\n\t\tfor (int nfile = 0; nfile < tallyoverlaplabel.length; nfile++)\n\t {\n\t\t //the numerator is the fraction of the signal at this relative anchor assigned to this state\n\t\t //the denominator is the fraction of the genome assigned to this state\n\t double dfold = (tallyoverlaplabel[nfile][nstate]/dsumoverlaplabel[nfile])/\n\t (tallylabel[nstate]/dsumlabel);\n\t\t heatmapfold[nstate][nfile] = dfold;\n\t\t pw.print(\"\\t\"+nf5.format(dfold));\n\t\t}\n\t\tpw.println();\n\t }\n\t else\n\t {\n\t\t//we are elminating this state when generating the heatmap since it was not found\n\t\tnumelim++;\n\t }\n\t}\n\tpw.close();\n\n\n\tString[] rowlabels;// = new String[tallyoverlaplabel[0].length];\n\tif (numelim > 0)\n\t{\n\t //we need to collapse the heatmap\n\t double[][] heatmapreduce = new double[heatmapfold.length-numelim][heatmapfold[0].length];\n\t rowlabels = new String[heatmapreduce.length];\n\t int nkeepindex = 0;\n\t for (int nstate = 0; nstate < tallyoverlaplabel[0].length; nstate++)\n\t {\n if (tallylabel[nstate] > 0)\n\t {\n\t\t //keeping this index\n\t\t for (int ncol = 0; ncol < heatmapfold[nstate].length; ncol++)\n\t\t {\n\t\t //copying over the contents\n\t\t heatmapreduce[nkeepindex][ncol] = heatmapfold[nstate][ncol];\n\t\t }\n\n if (bstringlabels)\n\t\t {\n\t\t rowlabels[nkeepindex] = (String) hmIndexToLabel.get(\"\"+nstate);\n\t\t }\n\t\t else\n\t\t {\n\t\t rowlabels[nkeepindex] = \"\"+(nstate+noffset);\n\t\t }\n\t\t nkeepindex++;\n\t }\n\t }\n\t heatmapfold = heatmapreduce;\n\t}\n\telse\n\t{\n\t rowlabels = new String[tallyoverlaplabel[0].length];\n\t if (bstringlabels)\n\t {\n\t for (int ni = 0; ni < rowlabels.length; ni++)\n\t {\n\t rowlabels[ni] = (String) hmIndexToLabel.get(\"\"+ni);\n\t }\n\t }\n\t else\n\t {\n\t for (int ni = 0; ni < rowlabels.length; ni++)\n\t {\n\t rowlabels[ni] = \"\"+(ni+noffset);\n\t }\n\t }\n\t}\n\n\tif (!bstringlabels)\n\t{\n for (int ni = 0; ni < rowlabels.length; ni++)\n\t {\n \t String szsuffix;\n\t if ((szsuffix = (String) hmlabelExtend.get(chorder+rowlabels[ni]))!=null)\n\t {\n\t rowlabels[ni] = rowlabels[ni]+\"_\"+szsuffix;\n\t }\n\t }\n }\n\n\tif (bprintimage)\n\t{\n\t makeEnrichmentHeatMap(heatmapfold, collabels, rowlabels,szoutfile,theColor,sztitle,\"Position\",\"State (\"+szstateorder+\" order)\");\n\t}\n }",
"@Override\n public String toString() {\n return source + \" \" + destination;\n }",
"public void printInfo() {\n\t\tString nodeType = \"\";\n\t\tif (nextLayerNodes.size() == 0) {\n\t\t\tnodeType = \"Output Node\";\n\t\t} else if (prevLayerNodes.size() == 0) {\n\t\t\tnodeType = \"Input Node\";\n\t\t} else {\n\t\t\tnodeType = \"Hidden Node\";\n\t\t}\n\t\tSystem.out.printf(\"%n-----Node Values %s-----%n\", nodeType);\n\t\tSystem.out.printf(\"\tNumber of nodes in next layer: %d%n\", nextLayerNodes.size());\n\t\tSystem.out.printf(\"\tNumber of nodes in prev layer: %d%n\", prevLayerNodes.size());\n\t\tSystem.out.printf(\"\tNext Layer Node Weights:%n\");\n\t\tNode[] nextLayer = new Node[nextLayerNodes.keySet().toArray().length];\n\t\tfor (int i = 0; i < nextLayer.length; i++) {\n\t\t\tnextLayer[i] = (Node) nextLayerNodes.keySet().toArray()[i];\n\t\t}\n\t\tfor (int i = 0; i < nextLayerNodes.size(); i++) {\n\t\t\tSystem.out.printf(\"\t\t# %f%n\", nextLayerNodes.get(nextLayer[i]));\n\t\t}\n\t\tSystem.out.printf(\"%n\tPartial err partial out = %f%n%n\", getPartialErrPartialOut());\n\t}"
] |
[
"0.6035747",
"0.56930774",
"0.56125474",
"0.5558445",
"0.55172247",
"0.5473506",
"0.5464474",
"0.5428772",
"0.5410713",
"0.5379687",
"0.53711134",
"0.5333703",
"0.53259254",
"0.52823144",
"0.52812165",
"0.5264185",
"0.5258185",
"0.5256008",
"0.52495944",
"0.52489865",
"0.52488464",
"0.5241612",
"0.5236607",
"0.5204367",
"0.51959354",
"0.51851916",
"0.51582533",
"0.51543176",
"0.5148051",
"0.514541",
"0.5117221",
"0.50552523",
"0.50467926",
"0.50397027",
"0.50348175",
"0.50331765",
"0.5007224",
"0.500704",
"0.5001665",
"0.49878407",
"0.49812943",
"0.49747705",
"0.4971712",
"0.49671647",
"0.49647287",
"0.49587184",
"0.4958248",
"0.4955456",
"0.49494043",
"0.49445394",
"0.49393496",
"0.49369395",
"0.49336004",
"0.49312982",
"0.49228233",
"0.49195826",
"0.4912856",
"0.4909023",
"0.49027443",
"0.4901445",
"0.48940134",
"0.48833147",
"0.48828825",
"0.48806873",
"0.48733622",
"0.48646793",
"0.4860638",
"0.48520002",
"0.48449844",
"0.48447648",
"0.48437145",
"0.4841379",
"0.48234546",
"0.48202896",
"0.48154262",
"0.48114672",
"0.48055282",
"0.47994623",
"0.4794309",
"0.47932592",
"0.47905397",
"0.47905397",
"0.47905397",
"0.47905397",
"0.47905397",
"0.4775196",
"0.4770771",
"0.47551808",
"0.47526327",
"0.47466236",
"0.47440365",
"0.4742869",
"0.47412476",
"0.47364148",
"0.47362775",
"0.47243723",
"0.47197592",
"0.47180116",
"0.47179794",
"0.47160158"
] |
0.7213993
|
0
|
1. Launch a new web browser 2. Open 3. Get Page Title name and Title length 4. Print Page Title and Title length on the Eclipse Console 5. Get Page URL and verify if the it is a correct page opened 6. Get Page Source (HTML Source code) and Page Source length 7. Print Page Length on Eclipse Console 8. Close the browser 1. tacka
|
public static void main(String[] args) {
WebDriver driver = new ChromeDriver();
try {
// System.setProperty("webdriver.chrome.driver", "../../chromedriver");
// 2. tacka
String url = "http://newtours.demoaut.com/";
driver.get(url);
// 3.tacka
String title = driver.getTitle();
int titlelength = title.length();
// 4. tacka
System.out.println("Title is: " + title);
System.out.println("Title length is: " + titlelength);
// 5.tacka
String actualUrl = driver.getCurrentUrl();
if (actualUrl.equals(url)) {
System.out.println("Correct page is opened");
} else {
System.out.println("Incorrect page is opened");
System.out.println("Actual url is: " + actualUrl);
System.out.println("Expected url is: " + url);
}
// 6. tacka
String pageSource = driver.getPageSource();
int pageSourceLength = pageSource.length();
// 7.tacka
System.out.println("Page Source length is: " + pageSourceLength);
} catch (Exception ex) {
} finally {
// 8.tacka
driver.quit();
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Test\n public static void main() {\n myTitle = driver.getTitle();\n myTitleLength = driver.getTitle().length();\n \n // 4) Print Page Title and Title length on the Eclipse Console.\n System.out.println(myTitle);\n System.out.println(\"The Character Length of the Title is: \" + myTitleLength);\n \n\t // 5) Get Page URL and URL length\n myURL = driver.getCurrentUrl();\n myURLLength = driver.getCurrentUrl().length();\n \n\t // 6) Print URL and URL length on the Eclipse Console.\n\t System.out.println(myURL);\n System.out.println(\"The Character Length of the URL is: \" + myURLLength);\n \n\t // 7) Refresh current page\n driver.navigate().refresh();\n \t\n\t // 8) Get Page Source (HTML Source code) and Page Source length\n \n myPageSource = driver.getPageSource();\n myPageSourceLength = driver.getPageSource().length();\n\t\n\t // 9) Print Page Source and length on Eclipse Console.\n\t\n //System.out.println(myPageSource);\n System.out.println(\"The length of the source is: \" + myPageSourceLength); \n \n }",
"@Test\n public void shopDemoQA() {\n\n\n WebDriverManager.chromedriver().setup();\n WebDriver driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\n driver.manage().window().maximize();\n\n String targetURL = \"http://shop.demoqa.com/\";\n\n driver.get(targetURL);\n String pageTitle = driver.getTitle();\n int titleLength = pageTitle.length();\n System.out.println(\"Web page title: \" + pageTitle +\", title length: \" + titleLength);\n\n String currentPageURL = driver.getCurrentUrl();\n System.out.println(\"Current URL: \" + currentPageURL);\n\n if (targetURL.replace(\"http://\", \"\").equals\n (currentPageURL.replace(\"http://\", \"\"))) {\n System.out.println(\">>> Target URL corresponds to current URL\");\n } else System.out.println(\">>> Target URL does not correspond to current URL\");\n\n String pageLength = driver.getPageSource();\n System.out.println(\"Page source length is: \" + pageLength.length());\n\n driver.quit();\n }",
"public void geturl() {\n\t \t\n\t \t driver.get(prop.getProperty(\"url\"));\n\t \t \n\t \t String title=driver.getTitle();\n\t \t \n\t \t System.out.println(title);\n\t \t\t\n\t\t\t driver.manage().window().maximize();\n\t\t\t \n\t\t\t driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t\t \n\t\t\t driver.manage().deleteAllCookies();\n\t \t\n\t \t\n\t }",
"public static void main(String[] args) {\n\n WebDriverManager.chromedriver().setup();\n WebDriver driver = new ChromeDriver();\n\n //this 3 things need to be done to open a browser\n driver.get(\"https://practice.cybertekschool.com\");\n\n String title = driver.getTitle();\n\n //soutv--> you don need to write \"title\"\n System.out.println(\"title = \" + title);\n\n String currntUrl= driver.getCurrentUrl();\n System.out.println(\"currntUrl = \" + currntUrl);\n\n //get the source of the page\n String pageSource = driver.getPageSource();\n System.out.println(\"pageSource = \" + pageSource);\n\n\n }",
"@Test\r\n\tpublic void tc1(){\r\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\tdriver=new ChromeDriver();\r\n\t\tdriver.get(\"https://www.seleniumhq.org/download/\");\r\n\t\tString title = driver.getTitle();\r\n\t\tSystem.out.println(title);\r\n\t\tdriver.close();\r\n\t}",
"public static void main(String[] args) {\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Code\\\\chromedriver.exe\");\n\t\t WebDriver driver= new ChromeDriver();\n\t\t driver.get(\"https://demoqa.com/forms\");\n\t\t System.out.println(driver.getTitle()+\" \");\n\t\t System.out.println(driver.getTitle().length());\n\t\t String currentUrl=driver.getCurrentUrl();\n\t\t if(currentUrl.equals(\"https://demoqa.com/forms\")) {\n\t\t\t System.out.println(\"true\");\n\t\t }\n\t\t System.out.println(driver.getPageSource().length());\n\t\t driver.close();\n\t}",
"public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\n\t\tWebDriver d=new ChromeDriver();\n\t\td.get(\"file:///C:/Users/SYED%20HASSAN/Desktop/selinium%202%20se/p1.html\");\n\t\tString title = d.getTitle();\n\t\tSystem.out.println(\"title = \"+title);\n\t\tString window = d.getWindowHandle();\n System.out.println(\"windowhandle\"+window);\n String c = d.getCurrentUrl();\n System.out.println(\"currenturl\"+c);\n d.close();\n System.out.println();\n\t}",
"private static void openWebpage(String url) {\n try {\n new ProcessBuilder(\"x-www-browser\", url).start();\n } catch (IOException e) {\n log.error(e.getMessage(), e);\n }\n }",
"public static void chromeTest() throws Exception{\n driver = BrowserFactory.getDriver(\"chrome\");\n Thread.sleep(2000);\n\n driver.get(\"http://google.com\");\n Thread.sleep(3000);\n String title = driver.getTitle();\n driver.navigate().to(\"https://etsy.com\");\n Thread.sleep(2000);\n String title2 = driver.getTitle();\n driver.navigate().back();\n title = driver.getTitle();\n Thread.sleep(2000);\n driver.navigate().to(\"https://etsy.com\");\n title2 = driver.getTitle();\n driver.quit();\n }",
"public void printInfo() {\n\t\tString url = webDriver.getCurrentUrl();\n\t\tString title = webDriver.getTitle();\n\t\tSystem.out.println(\"Current URL is \"+url);\n\t\tSystem.out.println(title);\n\t}",
"public static void main(String[] args) {\n\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"D:/WS_JAVA/chromedriver_win32/chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\t\t\r\n\t\tdriver.get(\"https://www.google.com/\");\r\n\t\r\n\t\t//all buttons\r\n\tint size=driver.findElements(By.xpath(\"//*[@type='submit']\")).size();\r\n System.out.println(size);\r\n \r\n //All link texts\r\n int sizeL=driver.findElements(By.xpath(\"//a[@type='submit']\")).size();\r\n System.out.println(sizeL);\r\n \r\n}",
"public static void main(String[] args) {\nWebDriver driver = new FirefoxDriver();\nSystem.out.println(\"hai\");\ndriver.get(\"https://www.google.com\");\nSystem.out.println(driver.getTitle());\ndriver.close();\n\t}",
"@BeforeTest\r\n\tpublic void operBrowser(){\n\t\td1=Driver.getBrowser();\r\n\t\tWebDriverCommonLib wlib=new WebDriverCommonLib();\r\n\t\td1.get(Constant.url);\r\n\t\twlib.maximizeBrowse();\r\n\t\twlib.WaitPageToLoad();\r\n\t}",
"public static void main(String[] args) {\n WebDriverManager.chromedriver().setup();\n\n // create object for using selenium driver;\n WebDriver driver=new ChromeDriver();\n\n //open browser\n driver.get(\"http://amazon.com\");// bumu exlaydu\n //driver.get(\"http://google.com\");\n // open website\n System.out.println(driver.getTitle());\n\n\n\n\n }",
"public static void main(String[] args) throws Exception {\n\r\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"F:\\\\workspace\\\\geckodriver.exe\");\r\n\t\tWebDriver driver = new FirefoxDriver();\r\n\t\tdriver.get(\"https://qaclickacademy.com/practice.php/ \");\r\n\t\tThread.sleep(5000);\r\n\t\t\r\n\t\t//count of number of links on the page\r\n\t\tSystem.out.println(driver.findElements(By.tagName(\"a\")).size());\r\n\t\t\r\n\t\t\r\n\t\t//count of number of links on the footer section on the page\r\n\t\tWebElement footerdriver=driver.findElement(By.id(\"gf-BIG\"));\r\n\t\tSystem.out.println(footerdriver.findElements(By.tagName(\"a\")).size());\r\n\t\t\r\n\t\t\r\n\t\t//count the number links on the 1st coloumn in footer section\r\n\t\tWebElement coloumndriver=footerdriver.findElement(By.xpath(\"//*[@id=\\\"gf-BIG\\\"]/table/tbody/tr/td[1]/ul\"));\r\n\t\tSystem.out.println(coloumndriver.findElements(By.tagName(\"a\")).size());\r\n\t\t\r\n\t\t//click on each link in the coloumn check of the pages are opening\r\n\t\tfor(int i=1; i<coloumndriver.findElements(By.tagName(\"a\")).size(); i++)\r\n\t\t{\r\n\t\t\t//String clinkonlinkTab= Keys.chord(Keys.CONTROL , Keys.ENTER);\r\n\t\t\tcoloumndriver.findElements(By.tagName(\"a\")).get(i).sendKeys(Keys.CONTROL , Keys.ENTER);\r\n\t\t\tThread.sleep(5000);\r\n\t\t}\r\n\t\t\r\n\t\tSet<String> abc = driver.getWindowHandles();\r\n\t\tIterator<String> it = abc.iterator();\r\n\t\twhile(it.hasNext())\r\n\t\t{\r\n\t\t\tdriver.switchTo().window(it.next());\r\n\t\t\tSystem.out.println(driver.getTitle());\r\n\t\t}\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Back Up\\\\Project Work\\\\Learning Stuffs\\\\Selenium Training By Jitendra\\\\Self Study\\\\Tools\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\tWebDriver chromedriver = new ChromeDriver();//launching chrome\n\t\tchromedriver.get(\"https://www.google.com\");//entering url\n\t\t\n\t\tString webtitle = chromedriver.getTitle();//getting the title of the web page\n\t\tSystem.out.println(webtitle);\n\t\t\n\t\tSystem.out.println(chromedriver.getCurrentUrl());\n\t\t//System.out.println(chromedriver.getPageSource());\n\t\t\n\t\t//validating the title with expected title\n\t\tif(webtitle.equals(\"Google\"))\n\t\t{\n\t\t\tSystem.out.println(\"Correct title\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"incorrect title\");\n\t\t}\n\t\t\n\t\tchromedriver.quit();//to quit the browser \n\t}",
"public static void main(String[] args) \r\n\t{\n\t\tString path=\"browser_drivers\\\\chromedriver.exe\";\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", path);\r\n\t\tWebDriver driver=new ChromeDriver(); //Launch browser\r\n\t\tdriver.get(\"http://seleniumhq.org\"); //Load webpage\r\n\t\tdriver.manage().window().maximize(); //maximize browser window\r\n\t\t\r\n\t\t\r\n\t\tString Exp_url=\"https://www.seleniumhq.org/\";\r\n\t\t\r\n\t\t//Capture runtime url\r\n\t\tString Runtime_url=driver.getCurrentUrl();\r\n\t\t\t\t\r\n\t\tif(Runtime_url.equals(Exp_url))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Expected url presented for selenium homepage\");\r\n\t\t\t\r\n\t\t\tWebElement Download_tab=driver.findElement(By.xpath(\"//a[@title='Get Selenium']\"));\r\n\t\t\tDownload_tab.click();\r\n\t\t\t\r\n\t\t\tif(driver.getCurrentUrl().contains(\"download/\"))\r\n\t\t\t\tSystem.out.println(\"expected url presented, Downlaod page verified\");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"expected url not presented, download page not verified\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Wrong url presnted for selenium hompage\");\r\n\t\t}\r\n\t\r\n\t}",
"protected void openWebPage() {\n\t\tEseoTest.driver.get(Configuration.getString(\"website_address\"));\n\t\t//Assert.assertEquals(\"Web page title does not appear correct.\", Configuration.getString(\"login_title\"),\n\t\t\t//\tEseoTest.driver.getTitle());\t\t\n\t\tAssert.assertEquals(\"Browser title bar does not appear correct.\",Configuration.getString(\"homepage_title\"),EseoTest.driver.getTitle());\n\t\tAssert.assertEquals(\"Site title does not appear correct.\",Configuration.getString(\"blog_title\"),EseoTest.driver.findElement(By.tagName(\"h1\")).getText());\n\t\tAssert.assertEquals(\"Site description does not appear correct.\",Configuration.getString(\"blog_description\"),EseoTest.driver.findElement(By.tagName(\"p\")).getText());\n\t\tAssert.assertTrue(\"Log in item does not appear correct.\",EseoTest.driver.findElement(By.linkText(Configuration.getString(\"mainmenu_login_item\"))).isDisplayed());\n\t}",
"public static void main(String[] args) {\n \tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\"C:\\\\Users\\\\4195\\\\Downloads\\\\Version 76.0.3865.10\\\\chromedriver.exe\");\n //driver.get(\"http://findnerd.com\");\n \n driver.navigate().to(\"http://findnerd.com\");\n \n List<WebElement> links = driver.findElements(By.xpath(\"//a\")); //Identify the number of Link on webpage and assign into Webelement List \n \n int linkCount = links.size(); // Count the total Link list on Web Page\n \n System.out.println(\"Total Number of link count on webpage = \" + linkCount); //Print the total count of links on webpage\n \n List<WebElement> allElements = driver.findElements(By.xpath(\"//*\")); //Identify all the elements on web page\n \n int elementsCount = allElements.size(); //Count the total all element on web page\n \n System.out.println(\"Total Number of All Element on webpage = \" + elementsCount); //Print the total count of all element on webpage\n \n \n }",
"@Test\r\n\tpublic void getSearchPage() throws IOException {\r\n\t\topen(\"https://www.google.com\");\r\n\t\tWebElement element = driver.findElement(By.name(\"q\"));\r\n\t\tassertNotNull(\"Testing driver works\", element);\r\n\t\tgenfilesMd();\r\n\t}",
"public void getInfoPage(URL urlLocation) throws RuntimeException\r\n {\r\n BufferedReader in = null;\r\n\r\n try\r\n {\r\n URL url = urlLocation;\r\n\r\n HTTPConnection con = getConnectionToURL(url);\r\n\r\n HTTPResponse headRsp = con.Head(url.getFile());\r\n HTTPResponse rsp = con.Get(url.getFile());\r\n\r\n int status = headRsp.getStatusCode();\r\n\r\n if (status < 300 && DEBUG)\r\n {\r\n System.out.println(\"No authorization required to access \" + url);\r\n }\r\n else if (status >= 400 && status != 401 && status != 407)\r\n {\r\n String errorMsg = \"Error trying to access \" + url + \":\\n\" + headRsp;\r\n if (DEBUG)\r\n {\r\n System.out.println(errorMsg);\r\n }\r\n }\r\n else\r\n { // Everything else\r\n String errorMsg = \"Access to URL \" + url + \"returned status = \" + status + \":\\n\" + headRsp;\r\n if (DEBUG)\r\n {\r\n System.out.println(errorMsg);\r\n }\r\n }\r\n in = new BufferedReader(new InputStreamReader(rsp.getInputStream()));\r\n String inputLine;\r\n\r\n while ((inputLine = in.readLine()) != null)\r\n {\r\n processHTMLLine(inputLine);\r\n if (DEBUG)\r\n {\r\n System.out.println(inputLine);\r\n }\r\n }\r\n\r\n }\r\n catch (Exception exc)\r\n {\r\n String errorMsg = \"GetPageInfo::getInfoPage(URL) Caught: \\n[\" + exc + \"]\";\r\n if (DEBUG)\r\n {\r\n System.out.println(errorMsg);\r\n }\r\n throw new RuntimeException(errorMsg);\r\n }\r\n }",
"public boolean openDescriptionPagesInBrowser() {\r\n\t\tif (OSPRuntime.isJS)\r\n\t\t\treturn true;\r\n\t\tFile tempDir = extractResources();\r\n\t\tif (tempDir == null)\r\n\t\t\treturn false;\r\n\t\tboolean failed = false;\r\n\t\tfor (EditorAndScroll pane : descriptionPagesList) {\r\n\t\t\tHtmlPageInfo pageInfo = model._getHtmlPageInfo(pane.name, currentLocaleItem);\r\n\t\t\tif (pageInfo == null) {\r\n\t\t\t\tSystem.err.println(\"DescriptionPages : Could not find the page: \" + pane.name);\r\n\t\t\t\tfailed = true;\r\n\t\t\t}\r\n\t\t\tif (!openExternalBrowser(tempDir, pageInfo))\r\n\t\t\t\tfailed = true;\r\n\t\t}\r\n\t\treturn failed;\r\n\t}",
"public static void main(String[] args) throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/drivers/chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\n\t\t// Implicit wait\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t\t// Launch the application\n\t\tString url = \"https://opensource-demo.orangehrmlive.com/\";\n\t\tdriver.get(url);\n\n\t\tString titlePage = driver.getTitle();\n\t\tint titleLength = titlePage.length();\n\n\t\tSystem.out.println(\"title of the page is\" + titlePage);\n\t\tSystem.out.println(\"title of the page is\" + titleLength);\n\n\t\tString actualUrl = driver.getCurrentUrl();\n\n\t\tif (actualUrl.equals(url)) {\n\t\t\tSystem.out.println(\"Verification succesfull the correct url is opened\");\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Verification failed an correct url is opened\");\n\n\t\t}\n\n\t\tSystem.out.println(\"Actual URL is: \" + actualUrl);\n\t\tSystem.out.println(\"Expected URL is: \" + url);\n\n\t\tString sourcePage = driver.getPageSource();\n\t\tint sourcePageLength = sourcePage.length();\n\t\tSystem.out.println(\"Length of source page: \" + sourcePageLength);\n\t\t//driver.quit();\n\t}",
"public static void main(String[] args) {\n\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Iguru\\\\I guru\\\\ChromeDriver\\\\chromedriver.exe\");\n\t \n\t\t WebDriver driver = new ChromeDriver();\n\t\t System.out.println(\"========browser started================\");\n\t\t String AppURL=\"https://www.google.com\"; \n\t driver.get(AppURL);\n\t String title= driver.getTitle();\n\t System.out.println(\"page title is\" +title);\n\t \n\t if(title.equals(\"Google\"))\n\t {\n\t \t System.out.println(\"Title is correct\");\n\t }\n\t else\n\t {\n\t \t System.out.println(\"Title is in-correct\");\n\t }\n\t String url =driver.getCurrentUrl();\n\t System.out.println(url);\n\t // driver.quit();\n\t \n\t // in case of close\n\t driver.close(); // in case of close invalid session id \n\t String title1= driver.getTitle(); //in case of quit Session ID is null Using WebDriver after calling quit()? \n\t System.out.println(title1);\n\n\t}",
"@Test\r\n\t\tpublic static void LaunchUrl()\r\n\t\t{\r\n\t\t\tdriver.manage().deleteAllCookies();\r\n\t\t\tdriver.get(prop.getProperty(\"url\"));\r\n\t\t\tdriver.manage().window().maximize();\t\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\t\r\n\t\t\r\n\t\t}",
"public static void main(String[] args) throws IOException {\n\t\t\n\t\tStart st = new Start();\n\t\t\n\t\tWebDriver drv = st.driverInit();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tString url = st.prop.getProperty(\"url\") ;\n\t\t\n\t\tdrv.get(url);\n\t\tSystem.out.println(dr.getTitle());\n\t\t\n\t\t\n\t\t\n \n\n\t}",
"public String getPageSource() {\n \t\treturn getWebDriver().getPageSource();\n \t}",
"public static void main(String[] args) {\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C://Users//Abdul//OneDrive//Desktop//Selenium//chromedriver_win32/chromedriver.exe\");\n\t\tChromeDriver driver=new ChromeDriver(); // launch the chrome browser \n\t\t\n\t\t//driver.get(\"https://www.Google.com/\");\n\t\t\n\t\tdriver.get(\"https://www.google.com/\");\n\t\t\n\t\tString title = driver.getTitle();\n\t\tSystem.out.println(title);\n\t\t\n\t\t\n\t\t//String title = driver.getTitle();\n\t\t //System.out.println(title);\n\t\t\n\t\t//String title2 = driver.getTitle();\n\t\t//System.out.println(title2);\n\t\t\n\t//\tSystem.out.println(driver.getCurrentUrl());\n\t\t\n\t\t//System.out.println(driver.getPageSource());\n\t\t\n\t\tif(title.equals(\"Gogle\"))\n\t\t{\n\t\t\tSystem.out.println(\"Correct Title\");\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"In Correct Title\");\n\t\t}\n\t\t \n\t\t\n\t\tdriver.close();\n\t\tdriver.quit();\n\t\t\n\t}",
"public static void main(String[] args) {\n\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\DRIVERS\\\\chrome driver\\\\chromedriver.exe\");\r\n\tWebDriver\tdriver = new ChromeDriver();// creating object referring to interface to call methods in interface \r\n\tdriver.get(\"https://www.google.com/\"); \t// hit url on browsera\r\n\tSystem.out.println(driver.getCurrentUrl()); // to validate if you are landed on correct url\r\n\tSystem.out.println(driver.getTitle());\t\t// to validate title of page\r\n\tSystem.out.println(driver.getPageSource());\r\n\tdriver.get(\"http://yahoo.com\");\r\n\tdriver.navigate().back();\r\n\tdriver.navigate().forward();\r\n//\tdriver.close(); \t//Close the current window, quitting the browser if it's the last window currently open\r\n//\tdriver.quit();\t\t// Quits this driver, closing every associated window (this will close all browsers windows which are opened by selenium script\r\n\r\n//\t//\tfor locators ID, name, classname,linktext, xpath, css\r\n//\tdriver.get(\"https://www.facebook.com/\");\r\n//\tdriver.findElement(By.id(\"email\")).sendKeys(\"mounika\");\r\n\t\r\n//\t//driver.findElement(By.name(\"pass\")).sendKeys(\"maggie\");\r\n\t\r\n//\t//driver.findElement(By.xpath(\"//input[@type='password']\")).sendKeys(\"mounika\");\r\n\t\r\n//\tdriver.findElement(By.cssSelector(\"input[type='password']\")).sendKeys(\"pass\"); // difference between xpath and ccs is in css we wont use // and @ , give space or don't mention in the place of * not need of mentioning tag in css\r\n//\t// css 1)tagname#id or #id 2)tagname.classname\r\n//\tdriver.findElement(By.id(\"loginbutton\")).click();\r\n//\tdriver.findElement(By.linkText(\"Forgotten password?\")).click();\r\n//\t// selenium will not accept classname will spaces it will throw error compound class name is not permitted \r\n//\tSystem.out.println(\"pass\");\r\n//\t//driver.quit();\r\n//\t// regular expression when attribute value is changing and some part is constant and when it is very long\r\n//\tdriver.get(\"http://rediff.com\");\r\n//\tdriver.findElement(By.cssSelector(\"a[title*='Sign in']\")).click(); // regular expression for css same as normal css except * symbol\r\n//\tdriver.findElement(By.xpath(\"//input[@id='login1']\")).sendKeys(\"hello\");\r\n//\tdriver.findElement(By.cssSelector(\"input#password\")).sendKeys(\"goodbye\");\r\n//\tdriver.findElement(By.xpath(\"//input[contains(@name,'procee')]\")).click(); //regular expression for xpath it uses contains\r\n\t// if we need to move to particular column in row using css (write css till row space childtagname:nth-child(3) ( child(3) is the coulmns on which we will be performing \r\n\t//eg:table.findElements(By.className(\"div[class='rt-tr-group'] div:nth-child(3)\")\r\n\t\t\t// note : how to transverse to one sibling to another sibling write xpath till firstlsibling/following-sibling::tagnameofnextsibling\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\t}",
"public String openPHPTravels() {\r\n\t\tString URL = CommonProperty.getProperty(\"url\" + PropertyManager.getProperty(\"zone\").toUpperCase());\r\n\t\tLog.info(\"\");\r\n\t\tLog.info(\"Opening URL : \" + URL);\r\n\t\tdriver.navigate().to(URL);\r\n\t\tString title = driver.getTitle();\r\n\t\tLog.info(title);\r\n\t\treturn URL;\r\n\t}",
"public static void main(String[] args) throws InterruptedException {\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\t\r\n\t\tdriver.get(\"http://www.google.com\"); //Hit URL on browser\r\n\t\tString title = driver.getTitle(); //Get page title\r\n\t\tSystem.out.println(title);\r\n\t\tString URL = driver.getCurrentUrl(); //Get current URL\r\n\t\tSystem.out.println(URL);\r\n//\t\tSystem.out.println(driver.getPageSource()); //Get page source\r\n\t\tdriver.get(\"http://yahoo.com\"); //Navigate to another site\r\n\t\tdriver.navigate().back(); //Move back to 1st site\r\n\t\tdriver.navigate().forward(); //Move back to 2nd site\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tThread.sleep(5000);\r\n\t\tdriver.close(); //Closes current chrome window\r\n\t\tdriver.quit(); //Closes all windows of chrome\r\n\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Rani\\\\Desktop\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"https://www.google.com/\");\n//\n//\t\tString abc = driver.getTitle();\n//\t\tSystem.out.println(\"abc\");\n//\n//\t\tString actual = driver.getTitle();\n//\t\tString expected = (\"Google\");\n//\t\tif (actual.contentEquals(expected)) {\n//\t\t\tSystem.out.println(\"Test case is Pass\");\n//\n//\t\t} else {\n//\t\t\tSystem.out.println(\"Test case is fail\");\n//\n//\t\t}\n//\t\tString A = driver.getCurrentUrl();\n//\t\t// System.out.println(\"A\");\n//\t\tString E = \"https://www.google.com/\";\n//\t\tif (A.contentEquals(E)) {\n//\t\t\tSystem.out.println(\"Test case2 pass\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"Test case2 fail\");\n//\t\t}\n//\t\n//\t\tdriver.navigate().to(\"https://www.gmail.com/\");\n//\t\tdriver.navigate().back();\n//\t\tdriver.navigate().forward();\n//\t\tdriver.close();\n//\t\tdriver.quit();\n//\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Rani\\\\Desktop\\\\chromedriver.exe\");\n\t\tWebDriver driver1 = new ChromeDriver();\n\t\tdriver.get(\"https://www.google.com/\");\n\n\t\tString s = driver1.getTitle();\n\t\tSystem.out.println(\"The title is :\");\n\t\tString A = driver1.getTitle();\n\t\tString E = (\"Google\");\n\t\tif (A.contentEquals(E)) {\n\t\t\tSystem.out.println(\"Test case of gettitle is: pass\");\n\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"Test case of gettitle is: Fail\");\n\t\t}\n\n\t\tString Ac = driver1.getCurrentUrl();\n\t\tString Ex = (\"https://www.google.com/\");\n\t\tif (Ac.contentEquals(Ex)) {\n\t\t\tSystem.out.println(\"Test case of url is :pass\");\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Test case of url is:fail\");\n\t\t}\n\t\tdriver1.navigate().to(\"http://staging-admin.sproutlogix.com/\");\n\t\tdriver1.navigate().back();\n\t\tdriver1.navigate().forward();\n\t\tdriver1.close();\n\t\tdriver.quit();\n\t}",
"public void openBrowser(String url) {\n System.setProperty(\"webdriver.chrome.driver\", \"c:\\\\webdriver\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n driver.manage().window().maximize();\n// int timeout = Integer.parseInt(ApplicationConfig.readConfigProperties(\"config-week17project.properties\", \"timeout\"));\n int timeout = Integer.parseInt(testData.timeout);\n driver.manage().timeouts().pageLoadTimeout(timeout, TimeUnit.SECONDS);\n driver.get(url);\n }",
"public static void main(String[] args) throws Exception {\n\t\t\r\n\t\tDifferent_Browser.call_Firefox();\r\n\t\tDifferent_Browser.get_Google();\r\n\t\tDifferent_Browser.close_browser();\r\n\t\t\r\n//\t\tDifferent_Browser.call_chrome();\r\n//\t\tDifferent_Browser.get_Google();\r\n//\t\tDifferent_Browser.close_browser();\r\n\t}",
"public static void main(String[] args) {\n\n\n WebDriverManager.chromedriver().setup();\n WebDriver driver = new ChromeDriver();\n\n //difference between get and navigate is get will w8 for page to load fully yet navigate wont\n// driver.get(\"http://www.facebook.com\");\n driver.navigate().to(\"http://www.facebook.com\");\n driver.navigate().to(\"http://www.google.com\");\n driver.navigate().back();\n driver.navigate().forward();\n driver.navigate().refresh();\n\n\n slpBrowser(2000);\n qBrowser(driver);\n System.out.println(\"Test Done\");\n }",
"public static void openBrowser()\n\t{\n\t\tdriver = DriverSetup.getWebDriver(ReadPropertiesFile.getBrowser());\n\t\tdriver.get(ReadPropertiesFile.getURL());\n\t\tlog.info(\"Opening Browser\");\n\t\tlog.info(\"Practo website is launched \");\n\t}",
"public static String getWebPageSource(String webPage) throws Exception {\n URLConnection bc = new URL(webPage).openConnection();\r\n bc.setRequestProperty(\"user-Agent\", \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11\");\r\n BufferedReader in = new BufferedReader(new InputStreamReader(bc.getInputStream()));\r\n\r\n String inputLine = \"\";\r\n String text = \"\";\r\n while ((inputLine = in.readLine()) != null) {\r\n text += inputLine;\r\n }\r\n in.close();\r\n\r\n return text;\r\n }",
"@Given(\"^Launch the page$\")\r\n\tpublic void launch_the_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedrivernew.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"http://realestate.upskills.in\");\r\n\t \t}",
"public void showWebSite() throws Exception {\n\t\twebServer.start();\n\t\tSystem.out.println(getUrl());\n\t\twebServer.join();\n\t}",
"@Test\n\t\t public void testLocationSix() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Upper Montclair\");\n\t\t }",
"public static void main(String[] args) throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Sanghavi Kartigayan\\\\Desktop\\\\Selenium\\\\Selenium\\\\src\\\\resources\\\\chromedriver.exe\");\n\t\tWebDriver driver= new ChromeDriver();\n\t\tdriver.get(\"http://www.qaclickacademy.com/practice.php\");\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\tSystem.out.println(\"No.of links on a page:\");\n\t\tSystem.out.println(driver.findElements(By .tagName(\"a\")).size());\n\t\t\n\t\t//Creating sub-driver by limiting the WebDriver scope.\n\t\tWebElement footerdriver= driver.findElement(By .id(\"gf-BIG\")); \n\t\tSystem.out.println(\"No.of links on the footer section:\");\n\t\tSystem.out.println(footerdriver.findElements(By .tagName(\"a\")).size());\n\t\n\t\tWebElement column1driver = footerdriver.findElement(By .xpath(\"//table/tbody/tr/td[1]/ul\"));\n\t\tSystem.out.println(\"No.of links on the first column of the footer section:\");\n\t\tSystem.out.println(column1driver.findElements(By .tagName(\"a\")).size());\n\t\n\t\n\t\t//Clicking on each of the links and checking if the pages are opening.\n\t\tfor(int i=1; i<column1driver.findElements(By .tagName(\"a\")).size();i++) \n\t\t{\n\t\t\tString clickonlinktab = Keys.chord(Keys.CONTROL,Keys.ENTER);\n\t\t\tcolumn1driver.findElements(By .tagName(\"a\")).get(i).sendKeys(clickonlinktab);\n\t\t\tThread.sleep(5000L);\n\t\t\t\n\t\t}\n\t\t\t\n\t\t//Iterating to each page and printing out their title.\n\t\tSet<String> pages = driver.getWindowHandles();\n\t\tIterator<String> it = pages.iterator();\n\t\t\n\t\twhile(it.hasNext()) \n\t\t{\n\t\t\tdriver.switchTo().window(it.next());\n\t\t\tSystem.out.println(driver.getTitle());\n\t\t}\n\t}",
"private void getThePage(String location){\r\n try{\r\n //load document and display location\r\n contentsArea.setPage(location);\r\n enterField.setText(location);\r\n }\r\n catch(IOException ioe){\r\n JOptionPane.showMessageDialog(this, \"Error retrieving specified URL\",\"Bad URL\",JOptionPane.ERROR_MESSAGE);\r\n } //end catch\r\n }",
"private static void closeBrowser() {\n System.out.println(\"Browser closed\");}",
"public static void main(String[] args) {\n\r\n\t\tWorkingwithfirefox wc = new Workingwithfirefox();\r\n\t\t\r\n\t\twc.invokeBroser();\r\n\t\twc.getTitleOfThePage();\r\n\t\twc.closeBrowser();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public void printPageErrors() throws Exception {\n List<JavaScriptError> Errors = JavaScriptError.readErrors(driver);\n System.out.println(\"Total No Of JavaScript Errors : \" + Errors.size());\n //Print Javascript Errors one by one from array.\n for (int i = 0; i < Errors.size(); i++) {\n System.out.println(\"Error Message : \"\n + Errors.get(i).getErrorMessage());\n System.out.println(\"Error Line No : \"\n + Errors.get(i).getLineNumber());\n System.out.println(Errors.get(i).getSourceName());\n System.out.println();\n }\n }",
"public void verifyPage() {\n\t\twaitForPageToLoad();\n\t\tString title = driver.getTitle();\n\t\tSystem.out.println(title);\n\t\tAssert.assertEquals(title,\"News: India News, Latest Bollywood News, Sports News, Business & Political News, National & International News | Times of India\");\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tWebDriver driver;\n\t\t\n\t\t// Used to launch Firefox Driver\n\t\t// WebDriver driver = new FirefoxDriver();\n\t\tFile file = new File(\"driver//geckodriver.exe\");\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", file.getAbsolutePath());\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.firefox();\n\t\tcapabilities.setCapability(\"marionette\",true);\n\t\tdriver = new FirefoxDriver(capabilities);\n\t\t \n\t\t//Launching the URL in to the firefox address bar\n\t\tdriver.get(\"http://www.seleniumhq.org/download/\");\n\t\t\n\t\t//Get the Title of the page\n\t\tString TitleValue = driver.getTitle();\n\t\tSystem.out.println(\"Title of the page is \"+ TitleValue);\n\t\t\n\t\t// Used to maximize the window\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\tdriver.navigate().back();\n\t\tSystem.out.println(\"Navigated back to the page\");\n\t\t\n\t\tdriver.navigate().forward();\n\t\tSystem.out.println(\"Forwared page \");\n\t\t\n\t\tdriver.navigate().refresh();\n\t\tSystem.out.println(\"Refresh the page\");\n\t\t\n\t\t//Close the driver\n\t\tdriver.close();\n\t}",
"public static void main(String[] args) \r\n\t{\n\t\t\r\n\t\tWebDriver driver = GenericCode.launchBrowser(\"Chrome\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(20, TimeUnit.SECONDS);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"https://www.myntra.com/\");\r\n\t\t\r\n\t // Step 2 : capture all links \r\n\t\t\r\n\t\tList<WebElement>links = driver.findElements(By.xpath(\"//a\"));\r\n\t\tint count = 0;\r\n\t\t\r\n\t\tfor(WebElement wb : links)\r\n\t\t{\r\n\t\t\tSystem.out.println(wb.getText());\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Total number links : \" +count);\r\n\t\t\r\n\t}",
"@Test\n\t\t public void testLocationFour() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/bellevue-ave-valley-rd\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Bellevue Ave & Valley Rd\");\n\t\t }",
"public int numberOfOpenSites() {\n \treturn size;\n }",
"public static void main(String[] args) throws Exception{\n\n WebDriverManager.chromedriver().setup();\n\n WebDriver driver = new ChromeDriver();\n\n driver.get(\"http://practice.cybertekschool.com/open_new_tab\");\n\n Thread.sleep(4000);\n\n //driver.close(); //expected to close the original one\n driver.quit(); //all window will be closed\n\n\n\n\n }",
"@Test\n\t\t public void testLocationFive() {\n\t\t \tdriver.get(\"http://mq-devhost-lm52.ihost.aol.com:9002/us/nj/upper-montclair/preston-pl-valley-rd/\");\n\t\t \tAssertJUnit.assertEquals(Utils.getElementText(driver,PageLayoutSelectors.TOP_NAME),\"Preston Pl & Valley Rd\");\n\t\t }",
"public void openUrlInBrowser(String URL) {}",
"public int numberOfOpenSites() {\n \treturn num;\r\n }",
"public static void main(String[] args) throws InterruptedException, MalformedURLException, IOException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Saurabh\\\\chromedriver.exe\");\n\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"https://rahulshettyacademy.com/AutomationPractice/\");\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\n\t\t// Code to get the status of one link\n\t\tString url = driver.findElement(By.cssSelector(\"a[href*='brokenlink']\")).getAttribute(\"href\");\n\t\t\n\t\t// use opeConnection method of URL Class of Java\n\t\t\n\t\tHttpsURLConnection con = (HttpsURLConnection)new URL(url).openConnection();\n\t\tcon.setRequestMethod(\"HEAD\");\n\t\tcon.connect();\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(responseCode);\n\t\t\n\t\t\n//\t\tSystem.out.println(columnDriver.findElements(By.tagName(\"a\")).size());\n//\t\tint columnLinkSize = columnDriver.findElements(By.tagName(\"a\")).size();\n//\t\t\n//\t\tList<WebElement> columnLink= columnDriver.findElements(By.tagName(\"a\"));\n//\t\t\n//\t\tString keyAction = Keys.chord(Keys.CONTROL, Keys.ENTER);\n//\t\t\n//\t\tfor(int i=0; i<columnLinkSize ; i++)\n//\t\t{\n//\t\t\tcolumnLink.get(i).sendKeys(keyAction);\n//\t\t\tSystem.out.println(driver.getTitle());\n//\t\t\tThread.sleep(5000);\n//\t\t}\n\t\t \n//\t\tdriver.quit();\n\t\t\n\t}",
"public static void main(String[] args) {\n\n\n WebDriver driver = WebDriverFactory.getDriver(\"CHROME\");\n driver.get(\"http://google.com\");\n driver.navigate().to(\"https://amazon.com\");\n driver.navigate().back();\n\n driver.close();\n\n WebDriver driver2 = WebDriverFactory.getDriver(\"FIREFOX\");\n driver2.get(\"https://www.mozilla.org\");\n\n\n driver2.close();\n }",
"@Test\n @Then(\"URL is opened\")\n public void s03_UrlCcheck() {\n currentUrlHP = driver.getCurrentUrl();\n Assert.assertEquals(urlHP, currentUrlHP);\n System.out.println(\"Step03 PASSED\");\n }",
"@Test\n @When(\"I open URL\")\n public void s02_UrlOpen() {\n driver.get(urlHP);\n System.out.println(\"Step02 PASSED\");\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"F:\\\\Selenium\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\t\r\n\t\tdriver.get(\"http://seleniumpractise.blogspot.com/2017/07/multiple-window-examples.html\");\r\n\t\t\t\r\n\t\tWebElement r =driver.findElement(By.cssSelector(\"#post-body-6170641642826198246 > a:nth-child(2)\"));\r\n\t\t//Storing the window id in parent (note getwindow can store only one window value i.e parent class window)\r\n\t\tString parent = driver.getWindowHandle();\r\n \t\t\tSystem.out.println(parent);\r\n \t\t\t\r\n\t\t\tr.click();\r\n \t\t// storing the multiple value of window id in array name called Set with data type String.\t\r\n \t\t\tSet<String> allclass = \tdriver.getWindowHandles();\r\n \t\t\tSystem.out.println(allclass);\r\n \t\t\t\r\n \t\t// Printing the no of window id present in Set in integer form\t\r\n \t\t\tint noofelement = allclass.size();\r\n \t\t\tSystem.out.println(noofelement);\r\n \t\t\r\n \t\t//below code proof us that still a new tab is open but the control is still in parent class i.e first class\r\n \t\t\t\r\n \t\t\tSystem.out.println(driver.getCurrentUrl());\r\n \t\t//\tdriver.findElement(By.className(\"gb_d\")).click(); // error noelementfound\r\n \t\t\t\r\n \t\t\tfor (String child : allclass) {\r\n\t\t\t\t\r\n \t\t\t\tif(! child.equals(parent)){\r\n \t\t\t\t\t\r\n \t\t\t\t\tdriver.switchTo().window(child);\r\n \t\t\t\t// now control is over the child class or new tab\r\n \t\t \t\t\tSystem.out.println(driver.getCurrentUrl()); // print google website\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//\tdriver.switchTo().window(parent);\r\n \t\t\tSystem.out.println(driver.getCurrentUrl()); // print selenium practise website\r\n \t\t\t\r\n \t\t\t\r\n \t\t\t\r\n \t\t\t\r\n \r\n\t}",
"public static void main(String[] args) {\n WebDriver driver = new ChromeDriver();\r\n driver.get(\"https://www.guru99.com/software-testing-seven-principles.html\");\r\n \r\n if(driver.getPageSource().contains(\"Folder B is on a shared drive and storage capacity is full.\"))\r\n {\r\n \t System.out.println(\"Page contaise is available\");\r\n }else\r\n {\r\n \t System.out.println(\"Page Containse is not available\");\r\n }\r\n\t}",
"void openLinkInSystemBrowser(String url, int errorMsg);",
"@Test\n public void getAllLinksTest() {\n driver.get(\"http://practice.cybertekschool.com\");\n\n // get all the links in a page\n List<WebElement> links = driver.findElements(By.tagName(\"a\"));\n System.out.println(links.size());\n // get the text of each link and print\n\n for (WebElement link : links) {\n System.out.println(link.getText());\n }\n }",
"public static void main(String[] args) {\n WebDriverManager.chromedriver().setup(); //change the browser if u want to aotumate\n // creating objoket using selenium driver\n WebDriver driver =new ChromeDriver();\n\n\n driver.get(\"http://amazon.com\");\n\n System.out.println(driver.getTitle());\n\n String d=driver.getTitle();\n String f=\"\";\n for(int i=0;i<d.length();i++){\n\n f=f+d.charAt(i);\n\n\n\n }\n System.out.println(f);\n if(f.equals(d)){\n System.out.println(true);\n }else{\n System.out.println(false);\n }\n\n\n }",
"public static void main(String[] args) {\n\t\r\n\t PropertyFetcher prop = new PropertyFetcher();\r\n\t \r\n\t \r\n\t \r\n\t \r\nWebDriver driver=new ChromeDriver(); \r\nSystem.setProperty(\"webdriver.chrome.driver\", \"C:/Users/Kumarshobhitsoni/workspace/SeleniumPractice/chromedriver.exe\");\r\n//System.out.println(prop.getProperty(\"URL\"));\r\ndriver.get(prop.fetchProp(\"URL\"));\r\n\r\n//System.out.println(\"Hiii\");\r\n\r\n\t}",
"public void verifyDemoPageisOpened(String strTitleofthepage) {\r\n\t\tWebElement demopage = driver.findElement(By.xpath(\"//h3[text()='\" + strTitleofthepage + \"']\"));\r\n\t\tif (demopage.isDisplayed()) {\r\n\t\t\tSystem.out.println(demopage.getText() + \"is opened\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Expected page is not opened\");\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void launch_browser()\r\n\t{ \r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C://TESTING TOOLS - SOFTWARES/chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.javatpoint.com/\");\r\n\t\t// remove all cookies\r\n\t\t//driver.manage().deleteAllCookies();\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main(String[] args)\n\t{\n WebDriver driver = new HtmlUnitDriver();\n\n // And now use this to visit Google\n driver.get(\"http://www.google.com/\"); \n System.out.println(\"Page title is: \" + driver.getTitle()); \n\t}",
"public static void browserMain(String args[] ) throws Exception {\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n int t = Integer.parseInt(line);\n //System.out.println(\"Hello World!\");\n for(int i=0;i<t;i++){\n String website = br.readLine();\n int[] ratio = ratioCalculator(website);\n System.out.println(ratio[0] + \"/\" + ratio[1]);\n }\n }",
"public int numberOfOpenSites() {\n return 0;\n }",
"@Given(\"^Open URL in chrome browser$\")\r\n\tpublic void open_URL_in_chrome_browser() {\n\t nop.Launch(\"chrome\", \"http://automationpractice.com/index.php\");\r\n\t}",
"public static void main(String args[]) throws Exception\n {\n URL myurl = new URL(args[0]);\n // get inputstream of the URL\n InputStream is = myurl.openStream();\n\n int ch;\n\n while ((ch = is.read()) != -1)\n System.out.print( (char)ch);\n }",
"void openInAppBrowser(String url, String title, String subtitle, int errorMsg);",
"@Test\n public void basic() throws Exception {\n driver.get(baseUrl);\n assertEquals(\"World's Largest Professional Network | LinkedIn\", driver.getTitle());\n\n\n }",
"@Test(priority = 1)\n public void testIsPageLoad() throws MalformedURLException {\n\t\tassertTrue(true);\n }",
"public URL getHtmlDescription();",
"@BeforeClass\n public void GotoURL() {\n\t\tString URL = Base.GetDataFromPropertiesFile(\"url1\");\n\t\t// set implicit wt at page level\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(300, TimeUnit.SECONDS);\n\t\tdriver.get(URL);\n\t\t\n\n\t \n }",
"public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\selenium driver\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t WebDriver driver= new ChromeDriver();\n\t driver.manage().window().maximize();\n\t driver.get(\"http://demoaut.com\");\n\t List<WebElement> linkNames = driver.findElements(By.tagName(\"a\"));\n\t System.out.println(\"Total No of links\"+linkNames.size());\n\t for(int i=0;i<linkNames.size();i++)\n\t {\n\t \t System.out.println(linkNames.get(i).getText());\n\t \t System.out.println(linkNames.get(i).getText());\n\t }\n\t \n\t driver.findElement(By.linkText(\"Hotels\")).click();\n\t String currentUrl=driver.getCurrentUrl();\n\t System.out.println(\"Current URL\"+currentUrl);\n\t \n\n\t}",
"public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://rahulshettyacademy.com/AutomationPractice/\");\r\n\t\tSystem.out.println(driver.findElements(By.tagName(\"a\")).size());\r\n\t\tWebElement footerSection= driver.findElement(By.id(\"gf-BIG\"));\r\n\t\tSystem.out.println(footerSection.findElements(By.tagName(\"a\")).size());\r\n\t\tWebElement footerCol=footerSection.findElement(By.xpath(\"//table/tbody/tr/td/ul[1]\"));\r\n\t\tList<WebElement> colItems=footerCol.findElements(By.tagName(\"a\"));\r\n\t\tSystem.out.println(colItems.size());\r\n\t\tfor(int i =1; i<colItems.size();i++) {\r\n\t\t\t\r\n\t\t\tString clickOnLink=Keys.chord(Keys.CONTROL,Keys.ENTER);\r\n\t\t\tcolItems.get(i).sendKeys(clickOnLink);\r\n\t\t\t//get the title of each page using getWindowHandles\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\tSet<String>tabs = driver.getWindowHandles();\r\n\t\tIterator<String>tabIterator = tabs.iterator();\r\n\t\twhile(tabIterator.hasNext()) {\r\n\t\t\tdriver.switchTo().window(tabIterator.next());\r\n\t\t\tSystem.out.println(driver.getTitle());\r\n\t\t}\r\n\t\t\r\n\t}",
"@Test\n public void test() throws MalformedURLException {\n System.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\drivers\\\\chromedriver.exe\"); \n WebDriver driver=new ChromeDriver();\n // WebDriver driver=new RemoteWebDriver(url,cap);\n driver.manage().window().maximize(); \n driver.get(\"https://curiedoctorapp.firebaseapp.com\");\n System.out.println(\"The title is\"+ driver.getTitle());\n driver.quit();\n \n }",
"public static void main(String[] args) throws Exception {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\LOVELY\\\\selenium20\\\\chromedriver_win32 (1)\\\\chromedriver.exe\");\r\n\t\tSystem.setProperty(\"webdriver.chrome.silentOutput\", \"true\");\r\n\t\tChromeDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(5000, TimeUnit.MILLISECONDS);\r\n\t\tdriver.get(\"https://www.spicejet.com/\");\r\n\t\tint chl=0,cwl=0,cbl=0;\r\n\t\tList<WebElement> l1=driver.findElements(By.xpath(\"(//a)|(//link)|(//script)|(//base)|(//area)|(//href)|(//img)\"));\r\n\t\t\r\n\t\t//List<WebElement> l2=new ArrayList<WebElement>();\r\n\t\t\r\n\t\tfor(WebElement e:l1) {\r\n\t\t\t\r\n\t\t\tif(e.getAttribute(\"href\")!=null) {\r\n\t\t\t\t//l2.add(e);\r\n\t\t\t\tString href_val=e.getAttribute(\"href\");\r\n\t\t\t\tif(!href_val.equals(\"\")) {\r\n\t\t\t\t\tif(href_val.startsWith(\"http\")||href_val.startsWith(\"https\")) {\r\n\t\t\t\t\t\tchl++;\r\n\t\t\t\t\t\tURL url=new URL(href_val);\r\n\t\t\t\t\t\tURLConnection con=url.openConnection();\r\n\t\t\t\t\t\tHttpURLConnection httpCon=(HttpURLConnection) con;\r\n\t\t\t\t\t\t// httpCon.setConnectTimeout(5000);\r\n\t\t\t\t\t\t httpCon.connect();\r\n\t\t\t\t\t\t String res=httpCon.getResponseMessage();\r\n\t\t\t\t\t\t httpCon.disconnect();\r\n\t\t\t\t\t\t if(res.equalsIgnoreCase(\"OK\")||res.equalsIgnoreCase(\"Accepted\")||res.equalsIgnoreCase(\"Found\")||res.equalsIgnoreCase(\"200\")||res.equalsIgnoreCase(\"202\")||res.equalsIgnoreCase(\"302\")) \r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t cwl++;\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else {\r\n\t\t\t\t\t\t\t cbl++;\r\n\t\t\t\t\t\t\t System.out.println(href_val+\":\"+res);\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t}\r\n\t\tSystem.out.println(\"Count all link type elements:\"+chl);\r\n\t\tSystem.out.println(\"Total no of working links: \"+cwl);\r\n\t\tSystem.out.println(\"Total no of broken links: \"+cbl);\r\n\t\tdriver.close();\r\n\t\t\r\n\t\t}",
"public void testURL()\r\n {\r\n\r\n BufferedReader in = null;\r\n PrintStream holdErr = System.err;\r\n String errMsg = \"\";\r\n try\r\n {\r\n\r\n this.setSuccess(false);\r\n\r\n PrintStream fileout = new PrintStream(new FileOutputStream(\"testURLFile.html\"));\r\n System.setErr(fileout);\r\n System.err.println(\"testURL() - entry\");\r\n\r\n System.getProperties().put(\"https.proxyHost\", \"\" + this.getProxyHost());\r\n System.getProperties().put(\"https.proxyPort\", \"\" + this.getProxyPort());\r\n System.getProperties().put(\"http.proxyHost\", \"\" + this.getProxyHost());\r\n System.getProperties().put(\"http.proxyPort\", \"\" + this.getProxyPort());\r\n // System.getProperties().put(\"java.protocol.handler.pkgs\", \"com.sun.net.ssl.internal.www.protocol\");\r\n\r\n URL url = new URL(\"http://www.msn.com\");\r\n\r\n CookieModule.setCookiePolicyHandler(null); // Accept all cookies\r\n // Set the Authorization Handler\r\n // This will let us know waht we are missing\r\n DefaultAuthHandler.setAuthorizationPrompter(this);\r\n HTTPConnection con = new HTTPConnection(url);\r\n con.setDefaultHeaders(new NVPair[] { new NVPair(\"User-Agent\", \"Mozilla/4.5\")});\r\n con.setDefaultAllowUserInteraction(false);\r\n HTTPResponse headRsp = con.Head(url.getFile());\r\n HTTPResponse rsp = con.Get(url.getFile());\r\n\r\n int sts = headRsp.getStatusCode();\r\n if (sts < 300)\r\n {\r\n System.err.println(\"No authorization required to access \" + url);\r\n this.setSuccess(true);\r\n }\r\n else if (sts >= 400 && sts != 401 && sts != 407)\r\n {\r\n System.err.println(\"Error trying to access \" + url + \":\\n\" + headRsp);\r\n }\r\n else if (sts == 407)\r\n {\r\n System.err.println(\r\n \"Error trying to access \"\r\n + url\r\n + \":\\n\"\r\n + headRsp\r\n + \"\\n\"\r\n + \"<HTML><HEAD><TITLE>Proxy authorization required</TITLE></HEAD>\");\r\n this.setMessage(\"Error trying to access \" + url + \":\\n\" + headRsp + \"\\n\" + \"Proxy authorization required\");\r\n }\r\n // Start reading input\r\n in = new BufferedReader(new InputStreamReader(rsp.getInputStream()));\r\n String inputLine;\r\n\r\n while ((inputLine = in.readLine()) != null)\r\n {\r\n System.err.println(inputLine);\r\n }\r\n // All Done - We were success\r\n\r\n in.close();\r\n\r\n }\r\n catch (ModuleException exc)\r\n {\r\n errMsg = \"ModuleException caught: \" + exc;\r\n errMsg += \"\\nVerify Host Domain address and Port\";\r\n System.err.println(errMsg);\r\n }\r\n catch (ProtocolNotSuppException exc)\r\n {\r\n errMsg = \"ProtocolNotSuppException caught: \" + exc;\r\n errMsg += \"\\nVerify Host Domain address and Port\";\r\n System.err.println(errMsg);\r\n }\r\n catch (MalformedURLException exc)\r\n {\r\n errMsg = \"MalformedURLException caught: \" + exc;\r\n errMsg += \"\\nVerify Host Domain address and Port\";\r\n System.err.println(errMsg);\r\n }\r\n catch (FileNotFoundException exc)\r\n {\r\n errMsg = \"FileNotFoundException caught: \" + exc;\r\n errMsg += \"\\nVerify Host Domain address and Port\";\r\n System.err.println(errMsg);\r\n }\r\n catch (IOException exc)\r\n {\r\n errMsg = \"IOException caught: \" + exc;\r\n errMsg += \"\\nVerify Host Domain address and Port\";\r\n System.err.println(errMsg);\r\n }\r\n finally\r\n {\r\n System.err.println(\"testURL() - exit\");\r\n System.setErr(holdErr);\r\n if (in != null)\r\n {\r\n try\r\n {\r\n in.close(); // ENSURE we are CLOSED\r\n }\r\n catch (Exception exc)\r\n {\r\n // Do Nothing, It will be throwing an exception \r\n // if it cannot close the buffer\r\n }\r\n }\r\n this.setMessage(errMsg);\r\n System.gc();\r\n }\r\n\r\n }",
"@Test\n\tpublic void openGoogle(){\n\t\tSystem.out.println(\"Starting test \" + \n\t\t\t\tnew Object(){}.getClass().getEnclosingMethod().getName().toString());\n\t\tdriver.get(\"http://www.google.com\");\n\t\tSystem.out.println(\"Ending test \" + \n\t\t\t\tnew Object(){}.getClass().getEnclosingMethod().getName().toString());\n\t}",
"public static void main(String[] args) {\n\t\tWebDriverManager.chromedriver().setup(); //boni garcia\r\n\t\t//WebDriverManager.firefoxdriver().setup();\r\n\t\t//for firefox use firefox word instead of chrome in chromederiver \r\n\t\t//note:selenium do not allow to access already opened browser or manually opened browser\r\n\t\t// step 1: launch a chrome browser (selenium)\r\n\t\t//call chromederiver class with any objectname here we used driver\r\n\t\tChromeDriver driver = new ChromeDriver();\r\n\t\t//FirefoxDriver driver = new FirefoxDriver();\r\n\t\t//step 2: load a url (get method---objname.get(driver.get)\r\n\t\tdriver.get(\"http://leaftaps.com/opentaps\");\r\n\t\t// step 3: get the title use gettitle method\r\n\t\tString title = driver.getTitle();\r\nSystem.out.println(title);\r\n//step 4: maximize the browser\r\ndriver.manage().window().maximize();\r\n//to close the window\r\n//driver.close();\r\ndriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\nWebElement webUser = driver.findElement(By.id(\"username\")); //locate id\r\nwebUser.sendKeys(\"demosalesmanager\");\r\ndriver.findElement(By.id(\"password\")).sendKeys(\"crmsfa\"); //locate id\r\ndriver.findElement(By.className(\"decorativeSubmit\")).click();//locate classname\r\ndriver.findElement(By.linkText(\"CRM/SFA\")).click();\r\n//verify if correctly landed on home page\r\nString frontTitle = \"My Home | opentaps CRM\";\r\nString homeTitle = driver.getTitle();\r\nif(frontTitle.equals(homeTitle)) {\r\n\tSystem.out.println(\"in the home page\");\r\n}\r\nelse\r\nSystem.out.println(\"not in the home page\"); \r\n//driver.findElement(By.linkText(\"http://leaftaps.com/crmsfa/control/leadsMain\")).click();\r\n\t}",
"@Override\n public void visit(Page page) {\n\t visitObject.visitUrls(page);\n\t String url = page.getWebURL().getURL();\n\t System.out.println(\"URL: \" + url);\n\t if (page.getParseData() instanceof HtmlParseData) {\n\t\t HtmlParseData htmlParseData = (HtmlParseData) page.getParseData();\n\t\t String text = htmlParseData.getText();\n\t\t String html = htmlParseData.getHtml();\n\t\t Set<WebURL> links = htmlParseData.getOutgoingUrls();\n\t\t System.out.println(\"Text length: \" + text.length());\n\t\t System.out.println(\"Html length: \" + html.length());\n\t\t System.out.println(\"Number of outgoing links: \" + links.size());\n\t\t }\n }",
"public static void main(String[] args) throws IOException {\n\t\tSystem.out.println(WebUtil.get(\"http://www.cnhnb.com\",\"\"));\r\n \t\r\n \t\r\n\t}",
"public String getPageSource() {\n return driver.get().getPageSource();\n }",
"@Given(\"^I go to \\\"([^\\\"]*)\\\" on \\\"([^\\\"]*)\\\"$\") \n\tpublic void openWebPage(String url, String browser){\n\t\tString result = selenium.openBrowser(browser);\n\t\tAssert.assertEquals(selenium.result_pass, result);\n\t\tString result2 = selenium.navigate(url);\n\t\tAssert.assertEquals(selenium.result_pass, result2);\n\t}",
"@Before\r\n\tpublic void OpenChrome() {\n\t\tconfig = new ConfigReader();\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",config.getChromePath());\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\texPages = new ExpediaPages(driver);\r\n\t}",
"@Test\n public void test() throws IOException {\n String url = \"http://blog.csdn.net/seatomorrow/article/details/48393547\";\n Readability readability = new Readability(getDoc(url)); // URL\n readability.init();\n String cleanHtml = readability.outerHtml();\n System.out.println(cleanHtml);\n }",
"public static void main(String[] args) {\n WebDriverManager.chromedriver().setup();\n\n //2- create instance of selenium web driver\n //this line opens browser\n WebDriver driver = new ChromeDriver();\n\n //3-get the page for Chrome.com\n driver.get(\"http://practice.cybertekschool.com\");\n // maximize\n driver.manage().window().maximize();\n\n //Verify URL containsExpected: cybertekschool:\n String expectedUrl = \"cybertekschool\";\n String actualUrl = driver.getCurrentUrl();\n if (actualUrl.contains(expectedUrl)) {\n System.out.println(\"URL verification pass\");\n } else {\n System.out.println(\"URL verification failed\");\n }\n\n\n //4 Verify title: Expected: Practice\n String expectedTitle = \"Practice\";\n String actualTitle = driver.getTitle();\n if (actualTitle.equals(expectedTitle)) { // using .equals\n System.out.println(\"Title test passed\");\n } else {\n System.out.println(\"Title test failed\");\n }\n\n\n /**\n * TC #3: Back and forth navigation 1- Open a chrome browser\n * 2- Go to: https://google.com\n * 3- Click to Gmail from top right.\n * 4- Verify title contains: Expected: Gmail\n * 5- Go back to Google by using the .back();\n * 6- Verify title equals: Expected: Google\n */\n\n driver.get(\"https:/google.com\");\n //Click to Gmail from top right\n driver.findElement(By.linkText(\"Gmail\")).click();\n //Verify title contains: Expected: Gmail\n String expectedInTitle = \"Gmail\";\n String actualInTitle= driver.getTitle();\n if (actualInTitle.contains(expectedInTitle)){\n System.out.println(\"Title verification passed\");\n }else{\n System.out.println(\"Failed\");\n }\n//Go back to Google by using the .back()\n driver.navigate().back();\n //Verify title equals: Expected: Google\n String expectedGTitle=\"Google\";\n String actualGTitle= driver.getTitle();\n if (actualGTitle.equals(expectedGTitle)) {\n System.out.println(\"Title verification passed\");\n }else{\n System.out.println(\"Failed\");\n }\n\n\n }",
"private void openPage(String address)\n {\n String os = System.getProperty(\"os.name\").toLowerCase();\n \n if(os.contains(\"win\"))\n {\n if(Desktop.isDesktopSupported())\n {\n Desktop desktop = Desktop.getDesktop();\n if(desktop.isSupported(Desktop.Action.BROWSE))\n {\n try { desktop.browse(new URI(address)); }\n\n catch(IOException | URISyntaxException e)\n {\n JOptionPane.showMessageDialog(null, \"Could not open page\");\n }\n }\n }\n }\n \n else \n JOptionPane.showMessageDialog(null, \"Cannot open page, system is not supported\");\n }",
"String getBrowser();",
"public boolean openDescriptionPageInBrowser(String _name) {\r\n\t\tif (OSPRuntime.isJS)\r\n\t\t\treturn false;\r\n\t\tFile tempDir = extractResources();\r\n\t\tif (tempDir == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tHtmlPageInfo pageInfo = model._getHtmlPageInfo(_name, currentLocaleItem);\r\n\t\tif (pageInfo == null) {\r\n\t\t\tSystem.err.println(\"DescriptionPages : Could not find the page: \" + _name);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn openExternalBrowser(tempDir, pageInfo);\r\n\t}",
"public ICurrentPage openNewWindow(String url);",
"public static void main(String[] args) throws InterruptedException {\n WebDriverManager.chromedriver().setup();\n ChromeDriver driver = new ChromeDriver(); // ChromeDriver is a reference type\n //RemoteWebDriver driver = new SafariDriver();\n //RemoteWebDriver driver = new ChromeDriver();\n //RemoteWebDriver driver = new InternetExplorerDriver(); //RemoteWebDriver is the parent of webdrivers\n //They all inherited RemoteWebDriver. It is called polymorphism\n\n //In selenium, everything starts from Webdriver interface\n //If I want to open a web page I just call this driver and I use methods from the driver\n //here we used get() method. Every single script always start with get() method.\n //It is like key to open the door. Get will open website first\n driver.get(\"http://google.com\");\n driver.manage().window().maximize(); //to maximize the browser\n //driver.manage().window().fullscreen();\n\n Thread.sleep(3000); //for demo, wait 3 seconds. If you use this add throws declaration. This is why we used throws InterruptedException\n\n //method that returns page title. You can also see it as tab name, in the browser\n String title = driver.getTitle(); //returns <title>Some title</title> text. It is actual title\n String expectedTitle = \"Google\"; //It is expected title\n System.out.println(\"Title is...\"+ title);\n\n if (expectedTitle.equalsIgnoreCase(title)){ //expected title is equal to actual title\n System.out.println(\"TEST PASSED!\");\n }else {\n System.out.println(\"TEST FAILED\");\n }\n\n //go to another website within the same window\n driver.navigate().to(\"http://amazon.com\");\n //amazon has long title so we just used contain method not equals\n if (driver.getTitle().toLowerCase().contains(\"amazon\")){\n System.out.println(\"TEST PASSED!\");\n }else {\n System.out.println(\"TEST FAILED!\");\n }\n\n //comeback to google. Instead of writing if statement,line 32, we can write this method\n driver.navigate().back();\n Thread.sleep(3000); //adding 3 sec between the navigating Google to Amazon\n verifyEquals(driver.getTitle(), \"Google\"); //calling verifyEquals method, line 55, checking if page title is equals to Google\n\n //move forward in the browser history, again going to amazon\n driver.navigate().forward();\n Thread.sleep(3000);\n\n System.out.println(\"Title: \"+driver.getTitle()); //Title is a String\n System.out.println(\"URL: \"+ driver.getCurrentUrl()); // to get URL, URL is a String\n\n driver.navigate().refresh(); //to reload page\n Thread.sleep(3000);\n //must be at the end\n driver.close(); //to close browser\n }",
"public int numberOfOpenSites(){\n return numOpenSites;\n }",
"String pageDetails();",
"public FilingDetailPage(URL url) {\n try (final WebClient webClient = new WebClient()) {\n filing13FPage = webClient.getPage(url);\n System.out.println(filing13FPage);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args){\n InputStream mdIs = App.class.getClassLoader().getResourceAsStream(\"14.html\");\n\n System.out.println(mdIs);\n int length = 0;\n\n byte[] bytes = new byte[1024];\n StringBuilder stringBuilder = new StringBuilder();\n try {\n\n while ((length = mdIs.read(bytes)) != -1){\n stringBuilder.append(new String(bytes,0,length,\"utf-8\"));\n }\n\n System.out.println(stringBuilder.toString());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }",
"@Test\n @Then(\"Headphones page is opened\")\n public void s08_HPUrlCheck() {\n String currentHPTitle = driver.getTitle();\n if (currentHPTitle.contains(\"Наушники\")) {\n System.out.println(\"Step08 PASSED\");\n }\n else\n {\n System.out.println(\"Step08 FAILED\");\n }\n System.out.println(\"Step08 PASSED\");\n }"
] |
[
"0.7766592",
"0.65220493",
"0.60531545",
"0.60439754",
"0.5981285",
"0.5916336",
"0.5885273",
"0.5854157",
"0.5827214",
"0.57940644",
"0.57472557",
"0.5725512",
"0.5703969",
"0.5695732",
"0.56785846",
"0.56652176",
"0.56398535",
"0.55865294",
"0.55635065",
"0.55600077",
"0.5553937",
"0.55062824",
"0.5504566",
"0.54928035",
"0.54914045",
"0.54796004",
"0.54795223",
"0.54756296",
"0.546733",
"0.5453834",
"0.5443255",
"0.541647",
"0.53982943",
"0.53980637",
"0.5384524",
"0.5382954",
"0.53784496",
"0.53778505",
"0.5375732",
"0.5362971",
"0.5360746",
"0.53566533",
"0.53539467",
"0.53463584",
"0.53460574",
"0.53455555",
"0.53446716",
"0.5344215",
"0.53413993",
"0.5340875",
"0.533983",
"0.5338013",
"0.53369445",
"0.53226066",
"0.53217286",
"0.53210837",
"0.5319853",
"0.5306277",
"0.5290915",
"0.5286787",
"0.52860856",
"0.52778316",
"0.5276032",
"0.5275572",
"0.52704537",
"0.5264277",
"0.52633387",
"0.5256685",
"0.52470046",
"0.5242859",
"0.5242703",
"0.5236069",
"0.52304703",
"0.5225706",
"0.52250844",
"0.52188313",
"0.5212769",
"0.5209766",
"0.5204061",
"0.52034825",
"0.52030724",
"0.5202549",
"0.5195851",
"0.5192557",
"0.51880956",
"0.51874644",
"0.51769245",
"0.51714754",
"0.515897",
"0.51502943",
"0.51467353",
"0.5144186",
"0.5134563",
"0.5127262",
"0.5119671",
"0.5119277",
"0.5115407",
"0.5112069",
"0.51093894",
"0.51085395"
] |
0.6355666
|
2
|
Checks if is pop up opened.
|
boolean isPopUpOpened();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected boolean hasModalWindow() {\n return false;\n }",
"boolean isOpened();",
"public boolean isOpened() {\n return false;\n }",
"public boolean isCustomPopupState(){\n boolean isPopupState = false;\n\n if(CustomCanvas.isNotificationGoto>-1){\n isPopupState = true;\n showNotification();\n } else if(CustomCanvas.msgType>-1){\n isPopupState = loadMessageBox();\n }\n\n if(CustomCanvas.isShowMessageSendSprit){\n CustomCanvas.isShowMessageSendSprit = false;\n setMessageSendSpritTimer();\n }\n\n if(CustomCanvas.isChatNotification){\n CustomCanvas.isChatNotification = false;\n CustomCanvas.startChatNotificationTimer();\n }\n\n return isPopupState;\n }",
"public boolean isPageOpened() {\n\t\ttry {\n\t\t\tTechnicalComponents.waitTill(txtUpgradeAccount, \"visible\");\n\t\t\tif (driver.getCurrentUrl().contains(urlsuffix)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (FrameworkException e) {\n\t\t\tthrow new FrameworkException(\n\t\t\t\t\t\"Upgarde page Not Loaded within specified time.---\" + e.getClass() + \"---\" + e.getMessage());\n\t\t}\n\n\t}",
"public boolean isOpened() {\n\t\treturn windowOpened;\n\t}",
"@Override\n public boolean isOpen(){\n boolean statement = isElementPresent(czDppButon); //TODO - zmena na pozdejsi stranku\n if(!statement){ DriverSettings.takeScreenshot(); }\n return statement;\n }",
"public boolean isOpened() {\r\n return opened != null;\r\n }",
"public void check_openfile_window_Presence() throws InterruptedException {\r\n\t\tdriver.switchTo().activeElement();\r\n\t\tWebElement openfile_window = driver.findElementByName(\"How do you want to open this file?\");\r\n\t\tThread.sleep(3000);\r\n\t\t// return IsElementVisibleStatus(openfile_window);\r\n\t\tWebElement openfile_Adobe = driver.findElementByName(\"Adobe Reader\");\r\n\t\tclickOn(openfile_Adobe);\r\n\t\tWebElement ConfirmButton_ok = driver.findElementByAccessibilityId(\"ConfirmButton\");\r\n\t\tclickOn(ConfirmButton_ok);\r\n\t\tdriver.switchTo().activeElement();\r\n\t}",
"boolean isCloseButtonDisplayed();",
"public boolean isPopupShowing() {\n/* 476 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"boolean isReadyForShowing();",
"public boolean isOpened(){\n return chestProgressLevel==1;\n }",
"boolean isOpened() throws Exception;",
"public void verifyPrintPageOpenedInNewWindow() {\n\t Assert.assertTrue(printPreviewApp.isDisplayed());\n\t}",
"public boolean isStartAsModal();",
"private native static boolean is_open_in_window(int clientSite);",
"public boolean isOpened() {\n\t\treturn mCurrentState == STATE.OPENED;\n\t}",
"public boolean validateSignOnShadeIsClosed(){\n return getBtnSignOn().isDisplayed();\n }",
"public boolean canOpenPopup() {\n/* 1257 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private void popUp() {\n\tpop = new RoomPopUp(this);\n\tnoPopUp = false;\n }",
"public boolean checkAutoClose();",
"private boolean isOpened() {\n if (mIpcChannel != null && mIpcChannel.isOpened()) {\n return true;\n }\n\n return false;\n }",
"public boolean isEtwsPopupAlert() {\n return SmsCbHeader.isEtwsMessage(mMessageIdentifier) &&\n SmsCbHeader.isEtwsPopupAlert(mMessageCode);\n }",
"boolean isOpen();",
"boolean isOpen();",
"public static boolean isWindowClosed() {\n\t\treturn windowClosed;\n\t}",
"public boolean isOpen() {\n if (this.open) {\n return false;\n } else {\n return true;\n }\n }",
"public boolean IsOpen() {\r\n return GoodOpen;\r\n }",
"public boolean isCloseRequested(){\n return glfwWindowShouldClose(handle);\n }",
"public boolean isOpened()\n {\n \n boolean retVal = isOpened_0(nativeObj);\n \n return retVal;\n }",
"public boolean isOpened() {\r\n\t\treturn this.opened;\r\n\t}",
"public void verifyDemoPageisOpened(String strTitleofthepage) {\r\n\t\tWebElement demopage = driver.findElement(By.xpath(\"//h3[text()='\" + strTitleofthepage + \"']\"));\r\n\t\tif (demopage.isDisplayed()) {\r\n\t\t\tSystem.out.println(demopage.getText() + \"is opened\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Expected page is not opened\");\r\n\t\t}\r\n\t}",
"public boolean showIfOpen(String key) {\n\t\tif (openedTabs.containsKey(key)) {\n\t\t\tLoadingPopup.close();\n\n\t\t\tPanel tpi = (Panel) openedTabs.get(key);\n\t\t\tthis.tp.activate(tpi.getId());\n\t\t\t//tp.scrollToTab(tpi, true);\n\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isDisplayed_click_CloseModal_Button(){\r\n\t\tif(click_CloseModal_Button.isDisplayed()) { return true; } else { return false;} \r\n\t}",
"public boolean isWebShowing();",
"public boolean show() {\n\t\tComponent parent = DockingWindowManager.getActiveInstance().getActiveComponent();\n\t\tDockingWindowManager.showDialog(parent, this);\n\t\treturn !wasCancelled;\n\t}",
"public boolean isOpened() {\n return opened;\n }",
"public boolean isProjectOpen() {\n\t\treturn (projectFileIO != null);\n\t}",
"public boolean isOpened() {\n return opened;\n }",
"public boolean isAlertPresent()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//driver.switchTo().alert();\r\n\t\t\treturn true;\r\n\r\n\t\t}\r\n\t\tcatch(NoAlertPresentException ex)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\r\n\t}",
"public boolean isOpen() {\r\n\t\treturn false;\r\n\t}",
"public static boolean isShownOrQueued() {\n\treturn SnackbarMessage.mLastMessage != null && SnackbarMessage.mLastMessage.isShown();\n}",
"public boolean hasFocus() {\n\t\tif (!isValid()) {\n\t\t\treturn false;\n\t\t}\n\t\tif (getShell().isFocusControl() || proposalTable.isFocusControl()) {\n\t\t\treturn true;\n\t\t}\n\t\tif (infoPopup != null && infoPopup.hasFocus()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isFocusAvailable() {\r\n if (!isEnabled() || !isRequestFocusEnabled() || !isFocusable() || !isShowing())\r\n return false;\r\n else {\r\n Window modal = getDesktop().getModalWindow();\r\n if (modal!=null && modal!=this && modal.isVisible()) {\r\n return this.isDeepChildOf(modal);\r\n }\r\n }\r\n return true;\r\n }",
"public boolean isAlertPresent() {\r\n\t try {\r\n\t getAlert();\r\n\t return true;\r\n }\r\n\t catch(NoAlertPresentException e) {\r\n\t return false; \r\n\t }\t \r\n }",
"protected boolean isAlertPresent() {\n try {\n driver.switchTo().alert();\n return true;\n } catch (NoAlertPresentException e) {\n if(LOG.isDebugEnabled()) {\n LOG.debug(\"No alert found\", e);\n }\n return false;\n }\n }",
"public void verifyForgotLinkModalWindow() {\n modalWindow.assertState().enabled();\n modalWindow.assertContains().text(\"warningLeaving the PECOS Website\");\n }",
"public boolean isMainPlayerOpen() {\n return this.mainPlayer;\n }",
"protected final boolean isSessionOpen() {\n return sessionTracker.getOpenSession() != null;\n }",
"public boolean isOpen();",
"public boolean isOpen();",
"private void popupModify() {\n\t\tboolean doNotShow = false;\n\t\tif (this instanceof Umlenkrolle && ((Umlenkrolle) this).isFree()) {\n\t\t\tdoNotShow = true;\n\t\t} else if (this instanceof DoppelUmlenkrolle) {\n\t\t\tdoNotShow = true;\n\t\t}\n\t\taufzugschacht.mainFrameShowOptionsFrame(this, doNotShow);\n\t}",
"public boolean check_About_wndw_Presence() {\r\n\t\tWebElement About_Wndw = driver.findElementByName(\"About\");\r\n\t\treturn IsElementVisibleStatus(About_Wndw);\r\n\t}",
"boolean isAlwaysOnTop();",
"public void verify_WelcomePopupandclick(){\n\t\tif(isDisplayedWithoutException(welcomePopup)){\n\t\t\tclick(welcomePopup);\n\t\t\tSystem.out.println(\"the Welcome popup is visible on the page and clicked done\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"The Welcome popup is not present on the page\");\n\t\t}\n\t}",
"public boolean isShowing() {\n return true; // Not supported for MenuComponents\n }",
"public boolean getIsOpen() {\n return this.is_open;\n }",
"public boolean open(){\n\t\tboolean allopen = true;\n\t\tfor (boolean element: open){\n\t\t\tif (element ==false)\n\t\t\t\tallopen = false;\n\t\t}\n\t\treturn allopen;\t\t\n\t}",
"public boolean isSingleWindow() {\n return singleWindow;\n }",
"private void showPopUpWindow() {\n Log.d(TwoPlayersActivity.LOG_TAG, \"show popup\");\n LayoutInflater layoutInflater = (LayoutInflater) this\n .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n View popupView = layoutInflater.inflate(R.layout.pop_up,\n (ViewGroup) findViewById(R.id.pop_up));\n\n popupWindow = new PopupWindow(popupView,\n LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, true);\n\n popupWindow.showAtLocation(popupView, Gravity.CENTER, 0, 0);\n\n Button btnDismiss = (Button)popupView.findViewById(R.id.dismiss);\n\n btnDismiss.setOnClickListener(new Button.OnClickListener() {\n @Override\n public void onClick(View v) {\n popupWindow.dismiss();\n }\n });\n }",
"public void triggerPopup();",
"private boolean isOpen () {\n boolean result = false;\n if (interOne == null || interTwo == null) result = true;\n return (result);\n }",
"public void ifWin() {\n WinMenu.setVisible(true);\n }",
"static public boolean isLaunched()\n\t{\n\t\tif (g_currentLaunch == null)\n\t\t return false;\n\t\telse\n\t\t return true;\n\t}",
"boolean isNilSearchWindowStart();",
"public void Rooms_and_Guests() \r\n\t{\r\n\t\tExplicitWait(roomsandguests);\r\n\t\tif (roomsandguests.isDisplayed()) \r\n\t\t{\r\n\t\t\troomsandguests.click();\r\n\t\t\t//System.out.println(\"roomsandguests popup opened successfully\");\r\n\t\t\tlogger.info(\"roomsandguests popup opened successfully\");\r\n\t\t\ttest.log(Status.PASS, \"roomsandguests popup opened successfully\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"roomsandguests popup not found\");\r\n\t\t\tlogger.error(\"roomsandguests popup not found\");\r\n\t\t\ttest.log(Status.FAIL, \"roomsandguests popup not found\");\r\n\r\n\t\t}\r\n\t}",
"public boolean isShowShareMenu(){\n if (mShareMenu != null\n && mShareMenu.getActionView() instanceof ActivityChooserView) {\n\t\t\tActivityChooserView chooserView = (ActivityChooserView) mShareMenu\n\t\t\t\t\t.getActionView();\n\t\t\tLog.v(TAG, \"isShowShareMenu() chooserView.isShowingPopup() = \"\n\t\t\t\t\t+ chooserView.isShowingPopup());\n\t\t\treturn chooserView.isShowingPopup();\n }else{\n\t\t\treturn false;\n }\n }",
"boolean isMenuShowing() {\n return game.r != null;\n }",
"public boolean onClose() {\n\t\topenScreen(new Noticias());\n\t\treturn true ;\n\t}",
"public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }",
"public boolean isBrowseShown()\r\n\t{\r\n\t\treturn ((this.pageBackingBean.getCurrentUser() != null) || (this.settingEjb\r\n\t\t .getBooleanSettingByName(Constants.SETTING_SEARCH_ALLOW_NON_USERS)))\r\n\t\t && !(this.settingEjb.getBooleanSettingByName(Constants.SETTING_SEARCH_INDEXING_COMMENCED));\r\n\t}",
"public boolean isFileOpened() {\r\n \t\tif (curFile == null)\r\n \t\t\treturn false;\r\n \t\telse\r\n \t\t\treturn true;\r\n \t}",
"public void getPopup() {\n\t\t\tglobal.btnClick(popup);\n\t\t}",
"public boolean isOpen() {\n return myOpen.get();\n }",
"boolean isSetSearchWindowStart();",
"public boolean getUnselectedCloseVisible() {\n checkWidget();\n return showUnselectedClose;\n }",
"public boolean isShown(){\r\n return shown;\r\n }",
"@Override\n\tpublic boolean isOpen() {\n\t\treturn true;\n\t}",
"public boolean requestCloseWindow() \n {\n return true; \n }",
"@Override\n public boolean isShown() {\n return super.isShown();\n }",
"public boolean hasSecureWindowOnScreen() {\n return getWindow($$Lambda$DisplayContent$5D_ifLpk7QwGe9ZLZynNnDca9g.INSTANCE) != null;\n }",
"public boolean isImportMessageDisplayed()\n {\n try\n {\n\n waitForElement(By.xpath(\".//span[contains(text(),'Website data import successful')]\"), SECONDS.convert(getDefaultWaitTime(), MILLISECONDS));\n WebElement importMessage = driver.findElement(By.xpath(\".//span[contains(text(),'Website data import successful')]\"));\n if (importMessage != null)\n return true;\n }\n catch (NoSuchElementException nse)\n {\n return false;\n }\n\n return false;\n }",
"public boolean close() {\n\t\tpopupCloser.removeListeners();\n\t\tif (infoPopup != null) {\n\t\t\tinfoPopup.close();\n\t\t}\n\t\tboolean ret = super.close();\n\t\tadapter.notifyPopupClosed();\n\t\treturn ret;\n\t}",
"private boolean isBusyNow() {\n if (tip.visibleProperty().getValue()){\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"FTP Client\");\n alert.setHeaderText(\"Please wait current download finish!\");\n alert.initOwner(main.getWindow());\n alert.showAndWait();\n return true;\n }\n return false;\n }",
"public boolean open() {\n\n return true;\n }",
"public boolean isCloseOnFocusLoss ()\n {\n return closeOnFocusLoss;\n }",
"public boolean isOpen () {\n\t\treturn open;\n\t}",
"public boolean showPIPUpgrade(){\n if (!Preferences.hasUpgrade && Tools.deviceSupportsPIPMode(this)) {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n\n //dont show on first launch of app\n boolean firstLaunch = prefs.getBoolean(\"firstlaunch\",true);\n if (!firstLaunch) {\n\n //Only show popup max once per day\n\n int dayLastShown = prefs.getInt(\"lastdayshownupgrade\", -1);\n\n Calendar calendar = Calendar.getInstance();\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n\n if (dayLastShown!= day){\n prefs.edit().putInt(\"lastdayshownupgrade\", day).apply();\n Intent pipUpgradeIntent = new Intent(VideoPlayActivity.this,PictureInPictureUpgradeActivity.class);\n startActivityForResult(pipUpgradeIntent, REQUEST_UPGRADE);\n return true;\n }\n\n }else {\n prefs.edit().putBoolean(\"firstlaunch\",false).apply();\n }\n }\n return false;\n\n }",
"public void verifyNewTabDorMessageBoardsOpened() {\n Assert.assertTrue(boardButton.isDisplayed());\t\t\n\t}",
"public boolean isOpen() {\r\n\t\treturn open;\r\n\t}",
"public boolean visible_AlertMsg_state() {\r\n\t\tWebElement alrtmsg = driver.findElementByName(\"You are about to lose your changes.Do you want to continue ?\");\r\n\t\treturn IsElementVisibleStatus(alrtmsg);\r\n\t}",
"@Override\n public boolean isOpen() {\n return true;\n }",
"public boolean isShowingInCallUi() {\n return (isActivityStarted() && mInCallActivity.isVisible());\n }",
"public boolean isSearchButtonActivated() {\n\t\tboolean result;\n\t\tlog.debug(\"Getting window handles\");\n\t\tArrayList<String> tabs1 = new ArrayList<String>(\n\t\t\t\tdriver.getWindowHandles());\n\t\tlog.debug(\"Clicking on search button\");\n\t\tdriver.findElement(search_button).click();\n\t\tlog.debug(\"Getting window handles\");\n\t\tArrayList<String> tabs2 = new ArrayList<String>(\n\t\t\t\tdriver.getWindowHandles());\n\t\tif (tabs1.size() == tabs2.size())\n\t\t\tresult = false;\n\t\telse\n\t\t\tresult = true;\n\t\tlogger.log(Status.INFO, \"Search button is activated: \" + result);\n\t\tlog.info(\"Search button is activated: \" + result);\n\t\treturn result;\n\t}",
"public void setCanOpenPopup(boolean opensPopup) {\n/* 1270 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void appearsConfirmationPopup(String operation) {\n\t\tassertTrue(true);\n\t\t//assertTrue(browser.currentPage().div(\"jqi_state_\" + operation).exists());\n\t\t//assertTrue(div(\"jqi_state_\" + operation).exists());\t\n\t}",
"@Override\n\tpublic boolean isOpen() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isOpen() {\n\t\treturn false;\n\t}",
"public boolean isExternalBrowser() {\n return externalBrowserCheckbox.getSelection();\n }"
] |
[
"0.7099865",
"0.6957073",
"0.6909105",
"0.6842415",
"0.6836554",
"0.68201643",
"0.66293633",
"0.6612763",
"0.65243113",
"0.64769655",
"0.6476411",
"0.64179397",
"0.6375162",
"0.6364953",
"0.63483137",
"0.6338241",
"0.6332176",
"0.6325629",
"0.6320711",
"0.6293356",
"0.6288942",
"0.6281829",
"0.6264716",
"0.62164795",
"0.6202383",
"0.6202383",
"0.61903346",
"0.618423",
"0.61825013",
"0.61736816",
"0.6149589",
"0.613977",
"0.61168957",
"0.61138517",
"0.6101526",
"0.6095537",
"0.6088638",
"0.6083546",
"0.6077266",
"0.6063366",
"0.6047874",
"0.60474914",
"0.6009762",
"0.59963685",
"0.59956634",
"0.5975412",
"0.59681594",
"0.5965765",
"0.59602195",
"0.5959448",
"0.5928967",
"0.5928967",
"0.59119743",
"0.59056175",
"0.59030044",
"0.5900034",
"0.58953696",
"0.5894278",
"0.58940125",
"0.5877716",
"0.587606",
"0.5867943",
"0.58651567",
"0.5840004",
"0.58376634",
"0.5832422",
"0.58321327",
"0.5831787",
"0.5824066",
"0.58233714",
"0.58222955",
"0.5816448",
"0.5814718",
"0.5813379",
"0.5809433",
"0.5807195",
"0.5806696",
"0.5793407",
"0.5791268",
"0.5786261",
"0.57839316",
"0.5777767",
"0.5771282",
"0.5768949",
"0.5768325",
"0.5764523",
"0.5763359",
"0.57572967",
"0.5752326",
"0.57426053",
"0.5739049",
"0.5735442",
"0.57321686",
"0.5732001",
"0.5731703",
"0.5731041",
"0.57291335",
"0.57160926",
"0.57160926",
"0.5713013"
] |
0.8844624
|
0
|
Sets the point change.
|
void setPointChange(Integer setPoint, Integer expectedValue);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setSetpoint(double setpoint);",
"public void setPoint(double point){\r\n this.point = point;\r\n }",
"public void setPoint(double value) {\r\n this.point = value;\r\n }",
"public abstract void setPoint(Point p);",
"public void set(Point p)\r\n\t{\r\n\t\tx = p.x;\r\n\t\ty = p.y;\r\n\t}",
"public void setPosition(Point newPosition);",
"void setPosition(Point point);",
"public void changePos(double xP, double yP){ \n this.xCoor += xP;\n this.yCoor += yP;\n \n }",
"public void setSetpoint(float setpoint) {\r\n m_setpoint = setpoint;\r\n }",
"public void setSetpoint(double setpoint) {\n \tthis.CTCSpeed = setpoint;\n }",
"public void setPoint(Integer point) {\n this.point = point;\n }",
"private void setP1( Point p1 ){\n this.p1=p1;\n }",
"public void setPoint( Float point ) {\n this.point = point;\n }",
"public void setSelDataPoint(DataPoint aDP)\n{\n if(SnapUtils.equals(aDP, _selPoint)) return;\n firePropChange(SelDataPoint_Prop, _selPoint, _selPoint = aDP);\n repaint();\n}",
"public void set(float newX, float newY) {\r\n\t\tx = newX;\r\n\t\ty = newY;\r\n\t}",
"public void setOriginalPoint(Point originalPoint) {\r\n\t\tthis.originalPoint = originalPoint;\r\n\t}",
"public void setPoint(Integer point) {\n\t\tthis.point = point;\n\t}",
"public void setclickedPoint(Point cp) {\r\n this.clickedPoint = cp;\r\n }",
"public void setX(double point) {\n this.x = point;\n }",
"public void setX(double newX) {\r\n x = newX;\r\n }",
"public void setRevisedPoints(int thePoints)\r\n {\r\n points = points + thePoints;\r\n }",
"public void setPosition(Point position);",
"public void setOldPVal(double pVal) { this.pValBefore = pVal; }",
"public void setxChange(double d) {\n\t\tthis.xChange = d;\n\t}",
"public void setXCoordinate(int newValue)\n {\n x = newValue;\n }",
"public void setPointMessage(String newValue) {\r\n\t\ttry {\r\n\t\t\tthis.pointMessage.setValue(newValue);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"public void setXY(int x, int y)\n\t{\n\t\tthis.x = x;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's x-coordinate \n\t\tthis.y = y;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's y-coordinate \n\t}",
"public void setValue(double newvalue){\n value = newvalue;\n }",
"public void setNewPVal(double pVal) { this.pValAfter = pVal; }",
"public void setPoint(int x, int y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"public void setXY(Point2D aPoint) { setXY(aPoint.getX(), aPoint.getY()); }",
"public void setPosition(double x, double y){\r\n this.x = (float)x;\r\n this.y = (float)y;\r\n changed();\r\n }",
"public void setPosition(Point p) {\r\n\t\tthis.position = p;\r\n\t\tc.setPosition(p);\r\n\t}",
"public void setTargDataPoint(DataPoint aDP)\n{\n if(SnapUtils.equals(aDP, _targPoint)) return;\n firePropChange(TargDataPoint_Prop, _targPoint, _targPoint = aDP);\n _toolTipView.reloadContents();\n}",
"@Override\n public void setSetpoint(double setpoint) {\n if (getController() != null) {\n getController().setSetpoint(Utilities.clip(setpoint, Constants.Hood.MIN_ANGLE, Constants.Hood.MAX_ANGLE));\n }\n super.setSetpoint(Utilities.clip(setpoint, Constants.Hood.MIN_ANGLE, Constants.Hood.MAX_ANGLE));\n }",
"public T setPoint(@NonNull PointF point) {\n return setPoint(point.x, point.y);\n }",
"public void setPosition(Point point) {\n setPosition(point.x, point.y);\n }",
"public void setLocation(Point newLocation) {\r\n this.p = newLocation;\r\n }",
"@Override\n public void offsetChange (float xOffset, float yOffset, float xOffsetStep, float yOffsetStep, int xPixelOffset, int yPixelOffset) {\n pixelOffset = xPixelOffset;\n }",
"private void setP2( Point p2 ){\n this.p2=p2;\n }",
"public void setGoal(Point point) {\n mGoal = point;\n }",
"public int setPoint(float x, float y, int gnum);",
"public void setX(int newX)\r\n {\r\n xCoord = newX;\r\n }",
"public void setFeedbackPoint(Shape shape, Point point){\n\t\tPolyline polyline = (Polyline)shape;\n\t\tpolyline.setFeedback(point);\n\t\t\n\t\tthis.view.getPaintPanel().update(null,null);\n\t}",
"public void setCurrentPoint(int[] currentPoint) {\n this.currentPoint = currentPoint.clone();\n }",
"public void set(double x, double y) {\n \n _x = x;\n _y = y;\n \n }",
"public void setPoint1(Point3D point1) {\r\n this.point1 = point1;\r\n }",
"public void setX(int newX)\n {\n x = newX;\n }",
"public void setX(double X)\r\n {\r\n curX = X;\r\n }",
"public void setPointColor(String pointColor)\n {\n myPointColor = pointColor;\n }",
"public void set(Point3 p) {\r\n\t\tx = p.x;\r\n\t\ty = p.y;\r\n\t\tz = p.z;\r\n\t}",
"public void changeBet(int change) {\n\t\tthis.bet = change;\n\t}",
"public void set(float signal);",
"public void chg() {\n currentChangeStep = 3;\n }",
"public void setCenter(Point newPoint) {\n this.center = newPoint;\n }",
"void setOffset(double offset);",
"public synchronized void setVelocitySetpoint(DriveSignal signal, double leftFeed,\n double rightFeed) {\n if (RobotState.mDriveControlState == DriveControlState.PATH_FOLLOWING) {\n leftDrive.set(ControlMode.Velocity, signal.getLeftNativeVelTraj(), signal.getBrakeMode(),\n leftFeed);\n rightDrive.set(ControlMode.Velocity, signal.getRightNativeVelTraj(), signal.getBrakeMode(),\n rightFeed);\n } else {\n RobotState.mDriveControlState = DriveControlState.VELOCITY_SETPOINT;\n leftDrive.set(ControlMode.Velocity, signal.getLeftNativeVel(), signal.getBrakeMode());\n rightDrive.set(ControlMode.Velocity, signal.getRightNativeVel(), signal.getBrakeMode());\n }\n currentSetpoint = signal;\n }",
"public void setPositionClosedLoopSetpoint(final double setpoint) {\n m_X.set(ControlMode.Position, 1000 * setpoint);\n //System.out.println(this.getEncPosition());\n }",
"public void setFrameXY(RMPoint aPoint) { setFrameXY(aPoint.x, aPoint.y); }",
"public void setPosition(int position, boolean passThroughGoSquare)\n\t{\n\t\tsomethingChanged = true;\n\t\tif ((position >= 40 || this.position > position) && passThroughGoSquare)\n\t\t{\n\t\t\taddMoney(200);\n\t\t}\n\t\tsetPreviousPosition(this.position);\n\t\tthis.position = position;\n\t\tthis.position %= 40;\n\t}",
"@Override\n public void setValue(Point3D value) {\n this.velocity = value;\n }",
"public void setPointTime(Date pointTime) {\n this.pointTime = pointTime;\n }",
"private void setCurrentTurnpike(Point t){\n\t\t\n\t\t_currentTurnpikeStart = t;\n\t\n\t}",
"public void setyChange(double d) {\n\t\tthis.yChange = d;\n\t}",
"public void setXY(double anX, double aY) { setX(anX); setY(aY); }",
"public void setPionPosition(HexaPoint newCoord, double imgX, double imgY) {\n notifyUpdatePionPosition(this.getCoordPion(), newCoord, this);\n this.coordPion = newCoord;\n if (this.pionEnDessous == null) {\n this.imagePion.setImgPosXY(imgX, imgY);\n }\n updateZoneLibreVoisin();\n }",
"@Override\n public void setCoord(PuertoPosition pp, Point2D newCoord) {\n layout.setLocation(pp, newCoord);\n }",
"public int setPoint(float x, float y, float yerr, int gnum);",
"public void setXCoordinates(double newX) { this.xCoordinates = newX; }",
"public void setX(int x)\n\t{\n\t\tthis.x = x;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's x-coordinate\n\t}",
"private void setWorkmanPoint( int point ){\n\n callGetSliderAds();\n }",
"public void setPostion(int newXPosition, int newYPosition) {\n xPosition = newXPosition;\n yPosition = newYPosition;\n }",
"public void setX(double value) {\n origin.setX(value);\n }",
"public void setX(double pX) {\n mX = pX;\n }",
"void setX(int newX) {\n this.xPos = newX;\n }",
"@Override\n\tpublic void SetCoord(double x, double y) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void setSetpointValue(float targetSetPointValue) {\r\n\t\t//setpoint clamp\r\n\t\ttargetSetPointValue = MathHelper.clamp(targetSetPointValue, restrictSetpointFrom, restrictSetpointTo);\r\n\r\n\t\tthis.setpointValue = targetSetPointValue;\r\n\t}",
"public void setPoints(Integer i) {\n Log.d(\"berttest\",\"setPoints works\");\n points.setValue(i);\n }",
"public void setLocation( Point p ) {\r\n this.x = p.x;\r\n this.y = p.y;\r\n }",
"private void change() {\n\t\tsetChanged();\n\t\t//NotifyObservers calls on the update-method in the GUI\n\t\tnotifyObservers();\n\t}",
"public void setXY(int rettangolo_X, int rettangolo_Y){\n \tboolean bo = informaPreUpdate();\n\t\trettangoloY = rettangolo_Y;\n\t\trettangoloX = rettangolo_X;\n\t\tinformaPostUpdate(bo);\n }",
"public void setUsePoint(Money usePoint) {\n\t\tif (usePoint == null) {\n\t\t\tthis.usePoint = new Money(0, 0);\n\t\t} else {\n\t\t\tthis.usePoint = usePoint;\n\t\t}\n\t}",
"private void _setPoint(int index, DataPoint point) {\n ntree.set(index, point);\n ensureDistances();\n }",
"public void update(){\r\n\t\tList<Point> list = new ArrayList<Point>();\r\n\t\t\r\n\t\tlist.addAll(Arrays.asList(points));\r\n\t\t\r\n\t\tsetPoints(list);\r\n\t}",
"public void setPoints(int amount) {\n // Cannot have a negative amount of points\n if (amount < 0) {\n throw new IllegalArgumentException(\"Invalid point amount - cannot be less than 1\");\n }\n\n // Set the points\n points = amount;\n }",
"private void setP3( Point p3 ){\n this.p3=p3;\n }",
"public synchronized void setChanged() {\n super.setChanged();\n }",
"@Override\n public void undo()\n {\n PointsBinding.setScaling(false);\n property.setValue(orig_points);\n property.getWidget().setPropertyValue(propX, orig_x);\n property.getWidget().setPropertyValue(propY, orig_y);\n property.getWidget().setPropertyValue(propWidth, orig_width);\n property.getWidget().setPropertyValue(propHeight, orig_height);\n PointsBinding.setScaling(true);\n }",
"public final void setToPoint(Vector toPoint) {\n\t\ttransform.setToPoint(toPoint);\n\t}",
"void setChangeSet(ChangeSet changeSet);",
"public final synchronized void setChanged() {\n\t\tsuper.setChanged ();\n }",
"@Override\r\n public void changed(ObservableValue<? extends Duration> observable, Duration oldValue, Duration newValue) {\r\n\r\n // skip starting at 0/0\r\n if( oldValue == Duration.ZERO)\r\n return;\r\n\r\n // get current location\r\n double x = pen.getTranslateX();\r\n double y = pen.getTranslateY();\r\n\r\n // initialize the location\r\n if( oldLocation == null) {\r\n oldLocation = new Location();\r\n oldLocation.x = x;\r\n oldLocation.y = y;\r\n return;\r\n }\r\n\r\n // draw line\r\n gc.setStroke(Color.BLUE);\r\n gc.setFill(Color.YELLOW);\r\n gc.setLineWidth(7);\r\n gc.strokeLine(oldLocation.x, oldLocation.y, x, y);\r\n\r\n // update old location with current one\r\n oldLocation.x = x;\r\n oldLocation.y = y;\r\n }",
"public void setOffset(Point2D offset) {\n Point2D oldOffset = this.offset;\n this.offset = offset;\n propertyChangeSupport.firePropertyChange(\"offset\", oldOffset, offset);\n }",
"public void setPoint(String key, Point value) {\n\t\tif (value != null && !value.equals(getDefault(key)))\n\t\t\tinternal.setProperty(key, value.x + \" \" + value.y);\n\t\telse\n\t\t\tinternal.remove(key);\n\t}",
"public void setOrigin(Point p) {\n origin = new Point(p);\n }",
"private void setPointArray(Point heartPoint, Point calPoint, Point activePoint, Point sedPoint)\n\t{\n\t\tthis.pointArray[1] = heartPoint;\n\t\tthis.pointArray[2] = calPoint;\n\t\tthis.pointArray[3] = activePoint;\n\t\tthis.pointArray[4] = sedPoint;\n\t\t\n\t}",
"public void setPrice(double p){\n\t\t// store into the instance variable price the value of the parameter p\n\t\tprice = p;\n\t}",
"public void setPointSize(float pointSize)\n {\n myPointSize = pointSize;\n }",
"public void set(Coord dest) {\n x = dest.x;\n y = dest.y;\n }",
"public void setP(Double p);"
] |
[
"0.71750134",
"0.69842595",
"0.68085736",
"0.67949367",
"0.6615728",
"0.65752834",
"0.64249456",
"0.6422289",
"0.6411716",
"0.64089096",
"0.6294726",
"0.6283925",
"0.6273939",
"0.62730044",
"0.62706405",
"0.62643516",
"0.6200343",
"0.6177846",
"0.61654073",
"0.6146116",
"0.61237586",
"0.60907775",
"0.6084975",
"0.6042478",
"0.5994634",
"0.5991623",
"0.59831977",
"0.59760195",
"0.59757525",
"0.59602803",
"0.594189",
"0.5940123",
"0.5939942",
"0.593449",
"0.58982503",
"0.58927274",
"0.5873315",
"0.5866703",
"0.5855338",
"0.5846469",
"0.583226",
"0.5816837",
"0.58164966",
"0.57953346",
"0.5790515",
"0.57717633",
"0.57677835",
"0.57615924",
"0.5757073",
"0.5754051",
"0.57479507",
"0.57334423",
"0.5733351",
"0.5731335",
"0.57266814",
"0.57243854",
"0.5723677",
"0.571526",
"0.570467",
"0.56994957",
"0.5698342",
"0.5696514",
"0.5688855",
"0.5682285",
"0.56803846",
"0.56766224",
"0.56561387",
"0.5655421",
"0.5650048",
"0.5638657",
"0.5634527",
"0.56343544",
"0.5617511",
"0.56146055",
"0.5611725",
"0.56020904",
"0.5598829",
"0.5590123",
"0.558502",
"0.55773634",
"0.5574871",
"0.55741185",
"0.5571761",
"0.5567946",
"0.55643815",
"0.5560429",
"0.5553617",
"0.5541423",
"0.5537246",
"0.55331045",
"0.5516328",
"0.55121547",
"0.551098",
"0.55073005",
"0.55025995",
"0.5494852",
"0.54913133",
"0.54785264",
"0.54768825",
"0.54760104"
] |
0.7699401
|
0
|
Check and update boundary.
|
void checkAndUpdateBoundary(Integer requiredChange);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void updateBoundary() {\n //pos = _newPos ;\n heading = myRoute.getCurrentHeading() ;\n //System.out.println(\"heading=\"+heading);\n Point vertex = new Point(0,0) ;\n vertex.x = length/2 ;\n vertex.y = width/2 ;\n boundary[0] = transform(vertex) ;\n \n vertex.x = -length/2 ;\n vertex.y = width/2 ;\n boundary[1] = transform(vertex) ;\n \n vertex.x = -length/2 ;\n vertex.y = -width/2 ;\n boundary[2] = transform(vertex) ;\n \n vertex.x = length/2 ;\n vertex.y = -width/2 ;\n boundary[3] = transform(vertex) ;\n for (int i=0; i<4; i++) {\n xpoints[i] = boundary[i].x ;\n ypoints[i] = boundary[i].y ;\n }\n }",
"private void checkBoundaries() {\n if (!isDestroyed()) {\n float upperEdge = screen.getGameCam().position.y + screen.getGameViewPort().getWorldHeight() / 2;\n float bottomEdge = screen.getGameCam().position.y - screen.getGameViewPort().getWorldHeight() / 2;\n if (bottomEdge <= getY() + getHeight() && getY() <= upperEdge) {\n b2body.setActive(true);\n currentState = b2body.getLinearVelocity().x > 0 ? State.MOVING_RIGHT : State.MOVING_LEFT;\n } else {\n if (b2body.isActive()) { // Was on camera...\n // It's outside bottom edge\n if (bottomEdge > getY() + getHeight()) {\n if(!world.isLocked()) {\n world.destroyBody(b2body);\n }\n currentState = State.FINISHED;\n }\n }\n }\n }\n }",
"public boolean detectBound(){\n if(posX < 10){\n posX = 10;\n velX = 0;\n accX = 0;\n return true;\n }\n else if(posX > width - 10){\n posX = width - 10;\n velX = 0;\n accX = 0;\n return true;\n }\n if(posY < 10){\n posY = 10;\n velY = 0;\n accY = 0;\n return true;\n }\n else if(posY > height - 10){\n posY = height - 10;\n velY = 0;\n accY = 0;\n return true;\n }\n return false;\n }",
"private void checkRep() {\n assert (width <= Board.SIDELENGTH);\n assert (height <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.x() >= 0 && this.boundingBoxPosition.x() <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.y() >= 0 && this.boundingBoxPosition.y() <= Board.SIDELENGTH);\n }",
"public void checkWallBounce(){\n // Bounce the ball back when it hits the top of screen\n if (getRect().top < 0) {\n reverseYVelocity();\n clearObstacleY(40);\n }\n\n // If the ball hits left wall bounce\n if (getRect().left < 0) {\n reverseXVelocity();\n clearObstacleX(2);\n }\n\n // If the ball hits right wall Velocity\n if (getRect().right > screenX) {\n reverseXVelocity();\n clearObstacleX(screenX - 57);\n }\n }",
"public void setBoundary(int value) {\n this.boundary = value;\n }",
"@Override\n\tpublic boolean checkBoundary(float x) {\n\t\tif (!(x >= MINRANGE && x <= MAXRANGE)) {\n\t\t\treturn false;\n\t\t}\n\t\t// if in the range [-512.03, 511.97]\n\t\treturn true;\n\t}",
"public void updateField() {\n\n boolean[][] tempField = new boolean[getLength()][getHeight()];\n for (int y = 0; y < getHeight(); y++) {\n for (int x = 0; x < getLength(); x++) {\n tempField[x][y] = checkSurrounding(x, y);\n }\n }\n setFields(tempField);\n }",
"public void testBoundaryChangedEvent_1_Accuracy() {\n assertNotNull(\"Test method for 'BoundaryChangedEvent(BaseNode, Rectangle, Rectangle)' failed.\",\n new BoundaryChangedEvent(classNode, oldBoundary, newBoundary));\n }",
"public Point checkBoundary(Point currentPoint){\n Boolean mightCollision;\n\n mightCollision = false;\n x_reset=currentPoint.getX();\n y_reset=currentPoint.getY();\n z_reset=currentPoint.getZ();\n if ((currentPoint.getX()-x_min)<errorRang){\n x_reset=x_min+resetDelta;\n mightCollision = true;\n }\n if ((x_max-currentPoint.getX())<errorRang){\n x_reset=x_max-resetDelta;\n mightCollision = true;\n }\n if ((currentPoint.getY()-y_min)<errorRang){\n y_reset=y_min+resetDelta;\n mightCollision = true;\n }\n if ((y_max-currentPoint.getY())<errorRang){\n y_reset=y_max-resetDelta;\n mightCollision = true;\n }\n if ((currentPoint.getZ()-z_min)<errorRang){\n z_reset=z_min+resetDelta;\n mightCollision = true;\n }\n if ((z_max-currentPoint.getZ())<errorRang){\n z_reset=z_max-resetDelta;\n mightCollision = true;\n }\n\n if (mightCollision) {\n return getresetPoint();\n }else{\n return null;\n }\n }",
"private boolean verifyBounds() {\r\n\t if((x>RobotController.BOUNDS_X || y>RobotController.BOUNDS_Y)\r\n\t || x<0 || y<0){\r\n\t return false;\r\n\t }\r\n\t return true;\r\n\t }",
"public void computeSRectangleBound()\n {\n this.savedSRectangleBound = getSRectangleBound();\n }",
"@Override\n\tpublic void update(){\n\t\tif(!isPositionValid())\n\t\t\tescape();\n\t\tdouble dx = velocity.x * speed;\n\t\tdouble dy = velocity.y * speed;\n\t\tprojectedCenter.setLocation(center.x + dx, center.y + dy);\n\t\t//check other ball collisions\n\t\tboolean aloneFlag = true;\n\t\tfor(Ball other : Game.gameField.getBalls()){\n\t\t\tif(other == this)\n\t\t\t\tcontinue;\n\t\t\tcheckCollision(other);\n\t\t\tif(quadrant.equals(other.getQuadrant())){\n\t\t\t\taloneFlag = false;\n\t\t\t}\n\t\t}\n\t\tisAlone = aloneFlag;\n\t\t//check wall collisions\n\t\tfor(Wall wall : Game.gameField.getWalls()){\n\t\t\twall.checkCollision(this, projectedCenter);\n\t\t}\n\t\t//check boundary collisions\n\t\tGame.gameField.checkBoundaryCollision(this, projectedCenter);\n\t\t//collisions may have changed the velocity vector\n\t\tdx = velocity.x * speed;\n\t\tdy = velocity.y * speed;\n\t\tmove(dx, dy);\n\t\t//check if the move is valid, if not move back\n\t\tif(!isPositionValid()){\n\t\t\tmove(-dx, -dy);\n\t\t}\n\t\tquadrant = Calculations.getQuadrant(center, Game.gameField.getWalls());\n\t}",
"private void updateBoundingBox()\n\t{\n\t\tif (this.facingDirection != null)\n\t\t{\n\t\t\tdouble d0 = (double) this.hangingPosition.getX() + 0.5D;\n\t\t\tdouble d1 = (double) this.hangingPosition.getY() + 0.5D;\n\t\t\tdouble d2 = (double) this.hangingPosition.getZ() + 0.5D;\n\t\t\tdouble d3 = 0.46875D;\n\t\t\tdouble d4 = this.someFunc(this.getWidthPixels());\n\t\t\tdouble d5 = this.someFunc(this.getHeightPixels());\n\t\t\td0 = d0 - (double) this.facingDirection.getFrontOffsetX() * 0.46875D;\n\t\t\td2 = d2 - (double) this.facingDirection.getFrontOffsetZ() * 0.46875D;\n\t\t\td1 = d1 + d5;\n\t\t\tEnumFacing enumfacing = this.facingDirection.rotateYCCW();\n\t\t\td0 = d0 + d4 * (double) enumfacing.getFrontOffsetX();\n\t\t\td2 = d2 + d4 * (double) enumfacing.getFrontOffsetZ();\n\t\t\tthis.posX = d0;\n\t\t\tthis.posY = d1;\n\t\t\tthis.posZ = d2;\n\t\t\tdouble d6 = (double) this.getWidthPixels();\n\t\t\tdouble d7 = (double) this.getHeightPixels();\n\t\t\tdouble d8 = (double) this.getWidthPixels();\n\n\t\t\tif (this.facingDirection.getAxis() == EnumFacing.Axis.Z)\n\t\t\t{\n\t\t\t\td8 = 1.0D;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\td6 = 1.0D;\n\t\t\t}\n\n\t\t\t// ???\n\n\t\t\td6 = d6 / (this.getWidthPixels() / this.blocksToTakeUp() * 2D);\n\t\t\td7 = d7 / (this.getHeightPixels() / this.blocksToTakeUp() * 2D);\n\t\t\td8 = d8 / (this.getWidthPixels() / this.blocksToTakeUp() * 2D);\n\t\t\tthis.setEntityBoundingBox(new AxisAlignedBB(d0 - d6, d1 - d7, d2 - d8, d0 + d6, d1 + d7, d2 + d8));\n\t\t}\n\t}",
"public void collideBoundary() {\n\t\tif (getWorld() == null) return;\n\t\tif (getXCoordinate() < 1.01*getRadius())\n\t\t\tsetXVelocity(-getXVelocity());\n\t\tif (getXCoordinate() > getWorld().getWidth()-1.01*getRadius())\n\t\t\tsetXVelocity(-getXVelocity());\n\t\tif (getYCoordinate() < 1.01 * getRadius())\n\t\t\tsetYVelocity(-getYVelocity());\n\t\tif (getYCoordinate() > getWorld().getHeight()-1.01*getRadius())\n\t\t\tsetYVelocity(-getYVelocity());\n\t}",
"public void checkCollision(){\r\n\r\n\t\t\t\tsmile.updateVelocity();\r\n\r\n\t\t\t\tsmile.updatePosition();\r\n\r\n\t\t\t\tif (smile.updateVelocity() > 0){\r\n\r\n\t\t\t\t\tfor (int k = 0; k < arrayPlat.size(); k++){\r\n\r\n\t\t\t\t\t\tif (smile.getNode().intersects(arrayPlat.get(k).getX(), arrayPlat.get(k).getY(), Constants.PLATFORM_WIDTH, Constants.PLATFORM_HEIGHT)){\r\n\r\n\t\t\t\t\t\t\tsmile.setVelocity(Constants.REBOUND_VELOCITY);\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}\r\n\r\n\t}",
"public boolean detectBound(){\n if(posX < 0 || posX > width || posY < 0 || posY > height){\n return true;\n }\n else{\n return false;\n }\n }",
"public int getBoundary() {\n return boundary;\n }",
"@Override\n\tpublic void CheckBounds() {\n\t\t\n\t}",
"public void checkWorldCollisions(Bounds bounds) {\n final boolean atRightBorder = getShape().getLayoutX() >= (bounds.getMaxX() - RADIUS);\n final boolean atLeftBorder = getShape().getLayoutX() <= RADIUS;\n final boolean atBottomBorder = getShape().getLayoutY() >= (bounds.getMaxY() - RADIUS);\n final boolean atTopBorder = getShape().getLayoutY() <= RADIUS;\n final double padding = 1.00;\n\n if (atRightBorder) {\n getShape().setLayoutX(bounds.getMaxX() - (RADIUS * padding));\n velX *= frictionX;\n velX *= -1;\n }\n if (atLeftBorder) {\n getShape().setLayoutX(RADIUS * padding);\n velX *= frictionX;\n velX *= -1;\n }\n if (atBottomBorder) {\n velY *= -1;\n velY *= frictionY;\n getShape().setLayoutY(bounds.getMaxY() - (RADIUS * padding));\n }\n if (atTopBorder) {\n velY *= -1;\n velY *= frictionY;\n getShape().setLayoutY(RADIUS * padding);\n }\n }",
"public boolean isInBoundaries() {\n\t return Referee.playfield.isInBoundaries(this);\n }",
"public void checkBounds() {\n // check that paddles stay within boundaries\n playerOnePaddle.boundCheck(topWall, bottomWall);\n playerTwoPaddle.boundCheck(topWall, bottomWall);\n\n // check if ball hits walls/paddles/goals\n if (!ball.boundCheck(playerOnePaddle.getBoundsInParent(), playerTwoPaddle.getBoundsInParent(), topWall, bottomWall.getBoundsInParent())) {\n if (ball.getBoundsInParent().intersects(leftWall.getBoundsInParent())) {\n playerTwo.newPoint();\n if (playerTwo.getPoints() < 10) {\n setVisibleScore(rightScoreGroup, playerTwo.getPoints());\n }\n reset();\n } else if (ball.getBoundsInParent().intersects(rightWall.getBoundsInParent())) {\n playerOne.newPoint();\n if (playerTwo.getPoints() < 10) {\n setVisibleScore(leftScoreGroup, playerOne.getPoints());\n }\n reset();\n }\n }\n }",
"public void updateOptimalCollisionArea();",
"public void testGetOldBoundary() {\n assertEquals(\"Old boundary should be got correctly.\", event.getOldBoundary(), oldBoundary);\n }",
"public void testGetNewBoundary() {\n assertEquals(\"New boundary should be got correctly.\", event.getNewBoundary(), newBoundary);\n }",
"public void checkBoundaries(Player pl) {\n\t\tPoint loc = gameMap.toGridLocation(pl.getLocation());\n\t\tint locationX = loc.x;\n\t\tint locationY = loc.y;\n\t\t\n\t\tif(gameMap.getType(loc.x, loc.y) == GameMap.WALL)\n\t\t{\n\t\t\tif(loc.x > 0)\n\t\t\t\tpl.getLocation().x -= 1f;\n\t\t\telse\n\t\t\t\tpl.getLocation().x += 1f;\n\t\t}\n\t\t\n\t\tPoint[] surrounding = gameMap.getSurrounding((int) locationX, (int) locationY);\n\t\t\n\t\tRectangle2D.Float player = pl.getLocationAsRect();\n\t\tfor(Point p : surrounding)\n\t\t{\n\t\t\tRectangle2D.Float rect = new Rectangle2D.Float(p.x * 16 + 112, p.y * 16 + 32, 16, 16);\n\t\t\tif(rect.intersects(player))\n\t\t\t{\n\t\t\t\tbyte type = gameMap.getType(p.x, p.y);\n\t\t\t\tif(isSpecial(pl, type))\n\t\t\t\t{\n\t\t\t\t\tspecialMovement(pl, type);\n//\t\t\t\t\tSystem.out.println(pl.getClass().getSimpleName() + \" hit a boundary\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(type == GameMap.ORB)\n\t\t\t\t{\n\t\t\t\t\tgameMap.setType(p.x, p.y, GameMap.EATEN_ORB);\n\t\t\t\t\t\n\t\t\t\t\tonOrbCollect(pl);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void computeCircleBound()\n {\n this.savedCircleBound = getCircleBound();\n }",
"public void updateBoundaries() {\n\t\t\n\t\tLOG.log(\"Updating boundaries.\");\n\t\t\n\t\tif (Program.WINDOW_MANAGER != null) {\n\t\t\t\n\t\t\tthis.setBounds(\n\t\t\t\tProgram.WINDOW_MANAGER.getScreenWidth() / 2 - this.getSize().width / 2,\n\t\t\t\tProgram.WINDOW_MANAGER.getScreenHeight() / 2 - this.getSize().height / 2,\n\t\t\t\tBOUNDS_LENGTH,\n\t\t\t\tBOUNDS_WIDTH\n\t\t\t);\n\t\t\tthis.setLocationRelativeTo(null);\n\t\t\t\n\t\t} else {\n\t\t\tthis.setBounds(10, 10, BOUNDS_LENGTH, BOUNDS_WIDTH);\n\t\t}\n\t}",
"@Override\n public void update() {\n super.update();\n\n //check if ball is out\n checkBallOutTopBottom();\n checkBallOutLeftRight();\n }",
"private void checkBoundaries() {\n Position moveTo = pos.copy();\n boolean move = false;\n float minZoom = getZoomToFit();\n float maxZoom = minZoom * 3;\n if (maxZoom < getZoomToFill()) maxZoom = getZoomToFill();\n \n if (pos.zoom < minZoom) {\n moveTo = new Position(minZoom, 0, 0);\n move = true;\n } else { \n if (pos.zoom > maxZoom) {\n moveTo.zoom = maxZoom;\n \n float viewXcenter = 0.5f * getWidth();\n float viewYcenter = 0.5f * getHeight();\n double centerXcontentBefore = getContentX(viewXcenter, pos);\n double centerYcontentBefore = getContentY(viewYcenter, pos);\n moveTo.x = (float) (viewXcenter - centerXcontentBefore * maxZoom - 0.5f * getWidth());\n moveTo.y = (float) (viewYcenter - centerYcontentBefore * maxZoom - 0.5f * getHeight());\n \n move = true;\n }\n \n RectF imageBounds = new RectF();\n float zoomedWidth = (flippedDimensions() ? contentWorkHeight : contentWorkWidth) * moveTo.zoom;\n float zoomedHeight = (flippedDimensions() ? contentWorkWidth : contentWorkHeight) * moveTo.zoom;\n imageBounds.left = -0.5f * zoomedWidth + moveTo.x;\n imageBounds.right = 0.5f * zoomedWidth + moveTo.x;\n imageBounds.top = -0.5f * zoomedHeight + moveTo.y;\n imageBounds.bottom = 0.5f * zoomedHeight + moveTo.y;\n \n if (debug) Log.w(TAG, \"checkBoundaries() current image bounds: \" + imageBounds.left + \"x\" + imageBounds.top + \" -> \" + imageBounds.right + \"x\" + imageBounds.bottom);\n \n // adjust offset to fit in boundaries\n RectF offsetBounds = new RectF();\n if (imageBounds.width() - getWidth() > 0) {\n offsetBounds.left = -0.5f * (imageBounds.width() - getWidth());\n offsetBounds.right = 0.5f * (imageBounds.width() - getWidth());\n }\n if (imageBounds.height() - getHeight() > 0) {\n offsetBounds.top = -0.5f * (imageBounds.height() - getHeight());\n offsetBounds.bottom = 0.5f * (imageBounds.height() - getHeight());\n }\n if (imageBounds.centerX() < offsetBounds.left) { \n moveTo.x = offsetBounds.left; \n move = true;\n } else if (imageBounds.centerX() > offsetBounds.right) {\n moveTo.x = offsetBounds.right;\n move = true;\n } \n \n if (imageBounds.centerY() < offsetBounds.top) { \n moveTo.y = offsetBounds.top; \n move = true; \n } else if (imageBounds.centerY() > offsetBounds.bottom) { \n moveTo.y = offsetBounds.bottom; \n move = true; \n }\n }\n \n if (move) {\n final Position finalMoveTo = moveTo;\n move(new Move() {\n Position startPos = new Position(pos);\n Position toPos = finalMoveTo;\n long durationMs = 200;\n public boolean handleMove(Position result, long currentTime, long startedAt) {\n if (currentTime - startedAt > durationMs) {\n result.set(toPos);\n return false;\n }\n \n double remainingProgress = 1.0 - (1.0 * (currentTime - startedAt) / durationMs);\n result.zoom = (float) (toPos.zoom + (startPos.zoom - toPos.zoom) * remainingProgress); \n result.x = (float) (toPos.x + (startPos.x - toPos.x) * remainingProgress);\n result.y = (float) (toPos.y + (startPos.y - toPos.y) * remainingProgress);\n return true;\n }\n });\n }\n if (debug) Log.i(TAG, \"checkBoundaries() \" + (move ? \"moveTo: \" + moveTo : \"ok\"));\n \n }",
"private void updateBit() {\r\n float frameTime = 10f;\r\n xVel += (xAccel * frameTime);\r\n yVel += (yAccel * frameTime);\r\n\r\n float xS = (xVel / 20) * frameTime; //PROVIDE THE ANGULE OF THE POSITION\r\n float yS = (yVel / 20) * frameTime; // WITH LESS DENOMINADOR THE BALL MOVE IS MORE DIFFICULT\r\n\r\n xPos -= xS;\r\n yPos -= yS;\r\n\r\n if (xPos > xMax) {\r\n xPos = xMax;\r\n } else if (xPos < 0) {\r\n xPos = 0;\r\n }\r\n\r\n if (yPos > yMax) {\r\n yPos = yMax;\r\n } else if (yPos < 0) {\r\n yPos = 0;\r\n }\r\n\r\n\r\n }",
"private void checkCastleCollisions() {\n\t\t\n\t}",
"public void validatePropertyBoundary(Property property, RequestInfo requestInfo)\n\t\t\tthrows InvalidPropertyBoundaryException {\n\n\t\tList<String> fields = getAllBoundaries();\n\t\t//TODO location service gives provision to search by multiple ids, no need to do multiple calls for each boundary id\n\t\tfor (String field : fields) {\n\t\t\tvalidateBoundaryFields(property, field, requestInfo);\n\t\t}\n\t}",
"public void checkRep() {\n assert(wall.p1().x() >= BOARD_MIN_BOUND && wall.p1().x() <= BOARD_MAX_BOUND) :\n \"x coordinate of p1 must be within in the board\";\n assert(wall.p2().x() >= BOARD_MIN_BOUND && wall.p2().x() <= BOARD_MAX_BOUND) :\n \"x coordinate of p2 must be within in the board\";\n assert(wall.p1().y() >= BOARD_MIN_BOUND && wall.p1().y() <= BOARD_MAX_BOUND) :\n \"y coordinate of p1 must be within in the board\";\n assert(wall.p2().y() >= BOARD_MIN_BOUND && wall.p2().y() <= BOARD_MAX_BOUND) :\n \"y coordinate of p2 must be within in the board\";\n }",
"public void checkCollisions(){\n for(int i=bodyParts;i>0;i--){\n if((x[0]==x[i])&&(y[0]==y[i])){\n running=false;\n }\n }\n //head with left border\n if(x[0]<0){\n running=false;\n }\n //head with right border\n if(x[0]>screen_width){\n running=false;\n }\n //head with top border\n if(y[0]<0){\n running=false;\n }\n //head with bottom border\n if(y[0]>screen_height){\n running=false;\n }\n if(!running){\n timer.stop();\n }\n }",
"private void bounceIfWallCollision() {\n \tdouble x = ball.getX();\n \tdouble y = ball.getY();\n \t\n \t// Ball hits side\n \tif (x <= 0 || (x + BALL_RADIUS * 2) >= getWidth()) vx = -vx;\n \t\n \t// Ball hits top\n \tif (y <= 0) vy = -vy;\n }",
"public void buildInitialBand()\r\n\t{\n\t\r\n\tint bl = boundary.size();\r\n\tfor(int i=0; i<bl; i++) \r\n\t\t{\r\n\t\tInt2d bCur = boundary.get(i);\r\n\t\t//System.out.println(bCur.x + \", \" + bCur.y + \": size = \" + heap.size());\r\n\t\t\r\n\t\ttestPointsAround(bCur.x,bCur.y);\r\n\t\t}\r\n\t\r\n\t}",
"@Override\n protected void update() {\n if (Pneumatics.get_instance().get_solenoids() && in_inner_thresh()) {\n Pneumatics.get_instance().set_solenoids(false);\n }\n }",
"public void collideBoundary(){\n\t \tint bulletBouncer = 0;\n\t \tif ((this.getPosition()[0]-(this.getRadius()) <= 0.0 || (this.getPosition()[0]+(this.getRadius()) >= this.superWorld.getWorldWidth()))){\n\t \t\tif (this instanceof Bullet){\n\t \t\t\tbulletBouncer++;\n\t \t}\n\t \t\tthis.velocity.setXYVelocity( this.velocity.getVelocity()[0] * -1);\n\t \t}\n\t \tif ((this.getPosition()[1]-(this.getRadius()) <= 0.0 || (this.getPosition()[1]+(this.getRadius()) >= this.superWorld.getWorldHeight()))){\n\t \t\tif (this instanceof Bullet){\n\t \t\tbulletBouncer++;\n\t \t}\n\t \t\tthis.velocity.setYVelocity(this.velocity.getVelocity()[1] * -1);\n\t \t} \t\n\t \tif (this instanceof Bullet){\n\t \tBullet bullet = (Bullet) this;\n\t \tfor (int i = 0; i < bulletBouncer; i++){\n\t \t\tif (!bullet.isTerminated())\n\t \t\tbullet.bouncesCounter();\n\t \t}\n\t \t}\n\t }",
"public static native int OpenMM_AmoebaOutOfPlaneBendForce_usesPeriodicBoundaryConditions(PointerByReference target);",
"public static native int OpenMM_AmoebaStretchBendForce_usesPeriodicBoundaryConditions(PointerByReference target);",
"public void borders() {\n if (loc.y > height) {\n vel.y *= -bounce;\n loc.y = height;\n }\n if ((loc.x > width) || (loc.x < 0)) {\n vel.x *= -bounce;\n } \n //if (loc.x < 0) loc.x = width;\n //if (loc.x > width) loc.x = 0;\n }",
"private void updateBoundingBox(GM_Object geo) {\r\n double minx_ = 0; double miny_ = 0;\r\n double maxx_ = 0; double maxy_ = 0;\r\n \r\n if ( geo instanceof GM_Point ) {\r\n minx_ = ((GM_Point)geo).getX();\r\n miny_ = ((GM_Point)geo).getY();\r\n maxx_ = ((GM_Point)geo).getX();\r\n maxy_ = ((GM_Point)geo).getY();\r\n } else {\r\n GM_Envelope tmp = geo.getEnvelope();\r\n minx_ = tmp.getMin().getX();\r\n miny_ = tmp.getMin().getY();\r\n maxx_ = tmp.getMax().getX();\r\n maxy_ = tmp.getMax().getY();\r\n }\r\n \r\n if ( minx_ < minx ) minx = minx_;\r\n if ( maxx_ > maxx ) maxx = maxx_;\r\n if ( miny_ < miny ) miny = miny_;\r\n if ( maxy_ > maxy ) maxy = maxy_;\r\n }",
"public void testBoundaryChangedEvent_2_Accuracy() {\n assertNotNull(\"Test method for 'BoundaryChangedEvent(BaseNode, Rectangle, Rectangle, String)' failed.\", event);\n }",
"private void updateBoundingBox(Point_dt p) {\n\t\tdouble x = p.x(), y = p.y(), z = p.z();\n\t\tif (m_boundingBoxMin == null) {\n\t\t\tm_boundingBoxMin = new Point_dt(p);\n\t\t\tm_boundingBoxMax = new Point_dt(p);\n\t\t} else {\n\t\t\tif (x < m_boundingBoxMin.x())\n\t\t\t\tm_boundingBoxMin.setX(x);\n\t\t\telse if (x > m_boundingBoxMax.x())\n\t\t\t\tm_boundingBoxMax.setX(x);\n\t\t\tif (y < m_boundingBoxMin.y())\n\t\t\t\tm_boundingBoxMin.setY(y);\n\t\t\telse if (y > m_boundingBoxMax.y())\n\t\t\t\tm_boundingBoxMax.setY(y);\n\t\t\tif (z < m_boundingBoxMin.z())\n\t\t\t\tm_boundingBoxMin.setZ(z);\n\t\t\telse if (z > m_boundingBoxMax.z())\n\t\t\t\tm_boundingBoxMax.setZ(z);\n\t\t}\n\t}",
"public void setBoundary(Position[] boundary) {\n\t\tPreconditions.checkArgument(boundary.length == 4, \"Boundary count must be 4.\");\n\t\tthis.boundary = boundary.clone();\n\t}",
"@Test (expected=AssertionError.class)\n\tpublic final void testCurrentBoundaryNeighbor() {\n\t\tint boundarySize = totalSize/elementsPerDim;\n\t\tBoundaryIterator bdIterator = block.getBoundaryIterator();\n\t\tbdIterator.setBoundaryToIterate(new BoundaryId(0, false));\n\t\t// Step to middle of the boundary\n\t\tfor (int i=0; i< boundarySize/2; i++) {\n\t\t\tbdIterator.next();\n\t\t}\n\t\tbdIterator.currentNeighbor(0, extent + 1);\n\t}",
"public void checkEdge()\n {\n if(getX() < 10 || getX() > getWorld().getWidth() - 10)\n {\n speed *= -1;\n }\n }",
"private void updatePosition(OneDVelocityVector velocityVector, float deltaTime, int upperBound){\n\t\tint newPosition = velocityVector.calculateNewPosition(deltaTime);\n\n\t\tif (newPosition > upperBound || newPosition < 0){\n\t\t\t//Collision! Set the position to whatever boundary we hit... \n\t\t\tif (newPosition > upperBound){\n\t\t\t\tnewPosition = upperBound;\n\t\t\t} else {\n\t\t\t\tnewPosition = 0;\n\t\t\t}\n\n\t\t\t//... and then invert the speed to bounce off next time.\n\t\t\tvelocityVector.invertSpeed();\n\t\t}\n\n\t\t//Commit the new position!\n\t\tvelocityVector.updatePosition(newPosition);\n\t}",
"void check(){\n if(!data.up.isEmpty()){\r\n if(data.floor == data.up.get(0)){\r\n data.up.remove(0);\r\n data.state = 0;\r\n data.statePrv = 1;\r\n data.isMoving = false;\r\n }\r\n }\r\n if(!data.down.isEmpty()){\r\n if(data.floor == data.down.get(0)){\r\n data.down.remove(0);\r\n data.state = 0;\r\n data.statePrv = -1;\r\n data.isMoving = false;\r\n }\r\n }\r\n }",
"public void setInfiniteBoundingbox()\n\t{\n\t\tinf_bb = true;\n\t\tif (transfh != null) {\n\t\t\ttransfh.setInfiniteBoundingbox();\n\t\t}\n\t}",
"void detectWallCollisions() {\n\t\tif (getCenterX() < getRadius()) {\n\t\t\tsetCenterX(getRadius());\n\t\t\tvx = -vx;\n\t\t} else if (getCenterX() > (getScene().getWidth() - getRadius())) {\n\t\t\tsetCenterX((getScene().getWidth() - getRadius()));\n\t\t\tvx = -vx;\n\t\t}\n\t\tif (getCenterY() < getRadius()) {\n\t\t\tsetCenterY(getRadius());\n\t\t\tvy = -vy;\n\t\t} else if (getCenterY() > (getScene().getHeight() - getRadius())) {\n\t\t\tsetCenterY(getScene().getHeight() - getRadius());\n\t\t\tvy = -vy;\n\t\t}\n\t}",
"public void checkCellStatus()\r\n {\r\n for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n {\r\n for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n {\r\n checkNeighbours(rows, columns);\r\n } // end of for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n } // end of for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n }",
"void addIsBoundaryNodeOf(Boundary newIsBoundaryNodeOf);",
"boolean hasIsBoundaryNodeOf();",
"public void computeStoredBounds()\n {\n computeSRectangleBound();\n computeCircleBound();\n }",
"@Override\n\tpublic boolean checkCollision() {\n\t\treturn true;\n\t}",
"public void computeBoundingBox() {\n\taveragePosition = new Point3(center);\n tMat.rightMultiply(averagePosition);\n \n minBound = new Point3(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY);\n maxBound = new Point3(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY);\n // Initialize\n Point3[] v = new Point3[8];\n for (int i = 0; i < 8; i++)\n \tv[i] = new Point3(center);\n // Vertices of the box\n v[0].add(new Vector3(-radius, -radius, -height/2.0));\n v[1].add(new Vector3(-radius, radius, -height/2.0));\n v[2].add(new Vector3(radius, -radius, -height/2.0));\n v[3].add(new Vector3(radius, radius, -height/2.0));\n v[4].add(new Vector3(-radius, -radius, height/2.0));\n v[5].add(new Vector3(-radius, radius, height/2.0));\n v[6].add(new Vector3(radius, -radius, height/2.0));\n v[7].add(new Vector3(radius, radius, height/2.0));\n // Update minBound and maxBound\n for (int i = 0; i < 8; i++)\n {\n \ttMat.rightMultiply(v[i]);\n \tif (v[i].x < minBound.x)\n \t\tminBound.x = v[i].x;\n \tif (v[i].x > maxBound.x)\n \t\tmaxBound.x = v[i].x;\n \tif (v[i].y < minBound.y)\n \t\tminBound.y = v[i].y;\n \tif (v[i].y > maxBound.y)\n \t\tmaxBound.y = v[i].y;\n \tif (v[i].z < minBound.z)\n \t\tminBound.z = v[i].z;\n \tif (v[i].z > maxBound.z)\n \t\tmaxBound.z = v[i].z;\n }\n \n }",
"public static Boolean checkBoundary(int x, int y, int f, int i)\n\t{\n\t\tBoolean b = false;\n\t\tswitch( f )\n\t\t{\n\t\t\tcase Entity.UP:\n\t\t\t\tif( y-i>=0 )\n\t\t\t\t\tb = walls[x][y-i];\n\t\t\t\telse\n\t\t\t\t\tb = true;\n\t\t\t\tbreak;\n\t\t\tcase Entity.RIGHT:\n\t\t\t\tif( x+i<width )\n\t\t\t\t\tb = walls[x+i][y];\n\t\t\t\telse\n\t\t\t\t\tb = true;\n\t\t\t\tbreak;\n\t\t\tcase Entity.DOWN:\n\t\t\t\tif( y+i<height )\n\t\t\t\t\tb = walls[x][y+i];\n\t\t\t\telse\n\t\t\t\t\tb = true;\n\t\t\t\tbreak;\n\t\t\tcase Entity.LEFT:\n\t\t\t\tif( x-i>=0 )\n\t\t\t\t\tb = walls[x-i][y];\n\t\t\t\telse\n\t\t\t\t\tb = true;\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn b;\n\t}",
"public Boolean boundaryCheck(int addr) {\r\n\t\t// Make sure address is less than LIMIT and SP, and greater than base\r\n\t\tif (addr < getLIM() && addr < getSP() && addr >= getBASE()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tm_TH.interruptIllegalMemoryAccess(addr);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void checkIfAtEdge() {\n\t\tif(x<=0){\n\t\t\tx=1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(y<=0){\n\t\t\ty=1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(x>=GameSystem.GAME_WIDTH-collisionWidth){\n\t\t\tx=GameSystem.GAME_WIDTH-collisionHeight-1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(y>=GameSystem.GAME_HEIGHT-collisionWidth){\n\t\t\ty=GameSystem.GAME_HEIGHT-collisionHeight-1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\telse{\n\t\t\tatEdge=false;\n\t\t}\n\t\t\n\t}",
"private boolean hasValidBounds() {\n\n\n\n return false;\n }",
"boolean isBound();",
"private boolean boundsChecker(Road road, Rectangle wholeGrid) {\n\t\tif(!Inclusive2DIntersectionVerifier.intersects(road, wholeGrid)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}",
"public static native int OpenMM_AmoebaInPlaneAngleForce_usesPeriodicBoundaryConditions(PointerByReference target);",
"private void checkWalls() {\n\t\tcheckSideWalls();\n\t\tcheckTopWall();\n\t\tcheckBottomWall();\n\t}",
"public void move(){\n if(isAlive) {\n //update each bound\n for (int i = 0; i < boundQueue.size(); i++) {\n boundQueue.get(i).move();\n }\n\n //check if new bound can be made\n if (boundQueue.peekLast().getX() + boundQueue.peekLast().width <= screenWidth) {\n boundQueue.add(new Bound(boundQueue.peekLast().getLastHeight()));\n }\n\n if (boundQueue.peek().getX() < -boundQueue.peek().width) {\n boundQueue.remove();\n }\n }\n }",
"private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }",
"public void onUpdate()\n\t{\n\t\tchunk.setModelBound(new BoundingBox());\n\t\tchunk.updateModelBound();\n\n\t}",
"protected void checkEdges(){\n if (getX() > getWorld().getBackground().getWidth() + getImage().getWidth()){\n world.monsterAdded();\n getWorld().removeObject(this);\n world.decreaseLives();\n }\n }",
"public static void checkCollisions() {\n\t \n\t\tfor (Ball b1 : Panel.balls) {\n\t\t\tfor (Ball b2 : Panel.balls) {\n\t\t\t\tif (b1.Bounds().intersects(b2.Bounds()) && !b1.equals(b2)) {\t\t\t//checking for collision and no equals comparisions\n\t\t\t\t\tint vX = b1.getxVelocity();\n\t\t\t\t\tint vY = b1.getyVelocity();\n\t\t\t\t\tb1.setxVelocity(b2.getxVelocity());\t\t\t\t\t\t\t\t//reversing velocities of each Ball object\n\t\t\t\t\tb1.setyVelocity(b2.getyVelocity());\n\t\t\t\t\tb2.setxVelocity(vX);\n\t\t\t\t\tb2.setyVelocity(vY);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void sideCheck() {\n /*Be careful when creating tiles, especially ones that allow Sonic's bottom and middle sensors to intersect \n the same tile*/\n mLCollide = false;\n mRCollide = false;\n if(grounded) {\n if(groundSpeed > 0) {\n sideCollision(middleRight);\n }\n else if(groundSpeed < 0) {\n sideCollision(middleLeft);\n } \n }\n else if(!grounded) {\n if(xSpeed < 0) {\n sideCollision(middleLeft);\n }\n else if(xSpeed > 0) {\n sideCollision(middleRight);\n }\n }\n }",
"private boolean didBallHitFloor() {\n \tdouble y = ball.getY();\n \t\n \treturn (y + BALL_RADIUS * 2) <= HEIGHT;\n }",
"private void updateBoundingBox() {\n // TODO(sonpham): Optimize this. There is an amazing amount of repetition in this code.\n double downUnitX = MathUtils.quickCos((float) (anchorAngle + Math.PI));\n double downUnitY = MathUtils.quickSin((float) (anchorAngle + Math.PI));\n double sideUnitX = MathUtils.quickCos((float) (anchorAngle + Math.PI / 2));\n double sideUnitY = MathUtils.quickSin((float) (anchorAngle + Math.PI / 2));\n\n double aliveHeight = aliveTroopsMap.size() * 1.0 / width * unitStats.spacing;\n double fullToAliveRatio = 1.0 * troops.size() / aliveTroopsMap.size() ;\n\n double topLeftX = averageX - downUnitX * aliveHeight / 2 - sideUnitX * unitStats.spacing * width / 2;\n double topLeftY = averageY - downUnitY * aliveHeight / 2 - sideUnitY * unitStats.spacing * width / 2;\n\n double topRightX = averageX - downUnitX * aliveHeight / 2 + sideUnitX * unitStats.spacing * width / 2;\n double topRightY = averageY - downUnitY * aliveHeight / 2 + sideUnitY * unitStats.spacing * width / 2;\n\n double healthBotLeftX = averageX + downUnitX * aliveHeight / 2 - sideUnitX * unitStats.spacing * width / 2;\n double healthBotLeftY = averageY + downUnitY * aliveHeight / 2 - sideUnitY * unitStats.spacing * width / 2;\n\n double healthBotRightX = averageX + downUnitX * aliveHeight / 2 + sideUnitX * unitStats.spacing * width / 2;\n double healthBotRightY = averageY + downUnitY * aliveHeight / 2 + sideUnitY * unitStats.spacing * width / 2;\n\n double botLeftX = (healthBotLeftX - topLeftX) * fullToAliveRatio + topLeftX;\n double botLeftY = (healthBotLeftY - topLeftY) * fullToAliveRatio + topLeftY;\n\n double botRightX = (healthBotRightX - topRightX) * fullToAliveRatio + topRightX;\n double botRightY = (healthBotRightY - topRightY) * fullToAliveRatio + topRightY;\n\n aliveBoundingBox[0][0] = topLeftX; aliveBoundingBox[0][1] = topLeftY;\n aliveBoundingBox[1][0] = topRightX; aliveBoundingBox[1][1] = topRightY;\n aliveBoundingBox[2][0] = healthBotRightX; aliveBoundingBox[2][1] = healthBotRightY;\n aliveBoundingBox[3][0] = healthBotLeftX; aliveBoundingBox[3][1] = healthBotLeftY;\n\n boundingBox[0][0] = topLeftX; boundingBox[0][1] = topLeftY;\n boundingBox[1][0] = topRightX; boundingBox[1][1] = topRightY;\n boundingBox[2][0] = botRightX; boundingBox[2][1] = botRightY;\n boundingBox[3][0] = botLeftX; boundingBox[3][1] = botLeftY;\n }",
"public void sanityCheck() {\n if ( bucket >= mNumBins ) bucket = mNumBins - 1;\n\n // Sanity check, should not happen.\n if ( bucket < 0 ) bucket = 0;\n }",
"public void updateHitbox() {\n\t\tresistorPosEnd = new Rectangle(x - 10, y - 10, 40, 40);\n\t\tresistorNegEnd = new Rectangle(x + 30, y, 40, 40);\n\t}",
"protected boolean checkRep() {\n if ( this.getX() < 0 || this.getY() < 0 || this.getX() >= 20 || this.getY() >= 20 ) {\n return false;\n }\n return true;\n }",
"private boolean boundsWereChanged(String boundsChangedCount, \n\t\t\t String northValue,\n\t\t\t String southValue,\n\t\t\t String eastValue,\n\t\t\t String westValue) {\n\t\tboolean changed = false;\n\t\t\n\t\tint count = Integer.valueOf(boundsChangedCount);\n\t\tfloat north = Float.valueOf(northValue);\n\t\tfloat south = Float.valueOf(southValue);\n\t\tfloat east = Float.valueOf(eastValue);\n\t\tfloat west = Float.valueOf(westValue);\n\t\t\n\t\tif ((count >= 3) ||\n\t\t\t(north < 84.0) || \n\t\t\t(south > -84.0) || \n\t\t\t(east < 180.0) || \n\t\t\t(west > -180.0)\n\t\t ) {\n\t\t\tchanged = true;\n\t\t}\n\n\t\treturn changed;\n\t}",
"public void CheckCollision(Ball b){\n\n if( b.getDirX() < 0f ){\n if( (b.getPosX() - b.getSizeX() ) < px + sx){\n //if we're in the upper \n if( b.getPosY() > py+sy/2 && b.getPosY() < py+sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() + .25f);\n }\n //if we are in the lower\n else if( b.getPosY() < py-sy/2 && b.getPosY() > py-sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() - .25f); \n }\n else if( b.getPosY() > py-sy && b.getPosY() < py+sy)\n b.setDirX(-b.getDirX());\n b.setVelocity(b.getVelocity() * 1.10f);\n } \n }else{\n if( (b.getPosX() + b.getSizeX() ) > px - sx){\n //if we're in the upper \n if( b.getPosY() > py+sy/2 && b.getPosY() < py+sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() + .25f);\n }\n //if we are in the lower\n else if( b.getPosY() < py-sy/2 && b.getPosY() > py-sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() - .25f); \n }\n else if( b.getPosY() > py-sy && b.getPosY() < py+sy)\n b.setDirX(-b.getDirX());\n b.setVelocity(b.getVelocity() * 1.10f);\n }\n }\n }",
"private void collideStageLimits(GOval ball) {\n if (isBallCollideCelling(ball)){\n vy = - vy;\n }\n if (isBallCollideRightWall(ball) || isBallCollideLeftWall(ball)){\n vx = - vx;\n }\n }",
"public void updateBounds() {\n\t\tswitch (this.species){\n\t\tcase HOGCHOKER:\n\t\tcase SILVERSIDE:\n\t\tcase FLOUNDER:\n\t\t\tthis.topYBound = frameHeight / 3 * 2;\n\t\t\tthis.bottomYBound = frameHeight - imageHeight - frameBarSize;\n\t\t\tbreak;\n\t\tcase PERCH: \n\t\tcase MINNOW: \n\t\tcase WEAKFISH:\n\t\t\tthis.topYBound = frameHeight / 3;\n\t\t\tthis.bottomYBound = frameHeight / 3 * 2 - imageHeight;\n\t\t\tbreak;\n\n\t\tcase MENHADEN:\n\t\tcase MUMMICHOG:\n\t\t\tthis.topYBound = 0;\n\t\t\tthis.bottomYBound = frameHeight / 3 - imageHeight;\n\t\t\tbreak;\n\t\tcase GOLD:\n\t\tdefault:\n\t\t\ttopYBound = 0;\n\t\t\tbottomYBound = frameHeight;\n\t\t}\n\t}",
"public void checkCollision() {}",
"public void buildBoundaryWall() {\n for (int i = 0; i < worldWidth; i += 1) {\n for (int j = 0; j < worldHeight; j += 1) {\n if (i == 0 || i == worldWidth - 1\n || j == 0 || j == worldHeight - 1) {\n world[i][j] = Tileset.WALL;\n }\n }\n }\n }",
"void checkBounds()\n {\n assertEquals(\"Bounds doesn't match\", boundsPair.getKey(),boundsPair.getValue());\n }",
"public static native int OpenMM_AmoebaMultipoleForce_usesPeriodicBoundaryConditions(PointerByReference target);",
"public void checkBlankSpace() {\n\t\tif (xOffset < 0) {\n\t\t\txOffset = 0;\n\t\t} else if (xOffset > handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth()) {\n\t\t\txOffset = handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth();\n\t\t}\n\t\t\n\t\tif (yOffset < 0) {\n\t\t\tyOffset = 0;\n\t\t} else if (yOffset > handler.getWorld().getHeight() * Tile.TILEHEIGHT - handler.getHeight()) {\n\t\t\tyOffset = handler.getWorld().getHeight() * Tile.TILEWIDTH - handler.getHeight();\n\t\t}\n\t}",
"public abstract void recalculateSnapshotBounds();",
"private void updateAi() {\n this.paddleL.setY(this.fakeBall.getY() - this.paddleL.getHeight()/2 + this.fakeBall.getHeight()/2);\n\n // Boundary check\n if (this.paddleL.y < 0) {\n this.paddleL.setY(0);\n } else if (this.paddleL.y + this.paddleL.getHeight() > this.getHeight()) {\n this.paddleL.setY(this.getHeight() - this.paddleL.getHeight());\n }\n }",
"public Boolean validateBoundaryFields(Property property, String field, RequestInfo requestInfo)\n\t\t\tthrows InvalidPropertyBoundaryException {\n\n\t\tPropertyLocation propertyLocation = property.getBoundary();\n\t\tLong id;\n if (field.equalsIgnoreCase(env.getProperty(\"revenue.boundary\"))) {\n\t\t\tid = propertyLocation.getRevenueBoundary().getId();\n\t\t} else if (field.equalsIgnoreCase(env.getProperty(\"location.boundary\"))) {\n\t\t\tid = propertyLocation.getLocationBoundary().getId();\n\t\t} else {\n\t\t\tid = propertyLocation.getAdminBoundary().getId();\n\t\t}\n return boundaryRepository.isBoundaryExists(property, requestInfo, id);\n\t\t\n\t}",
"public boolean runBump() {\n\t\tif(DEBUG) System.out.println(\"running bump!\");\n\t\t// note we initialize the clique tree by construction!\n\t\ttry {\n\t\t\tList<Vertex> ordering = assignBumpOrdering(_tree);\n\t\t\tif(DEBUG) System.out.printf(\"ordering:\\n%s\\n\", ordering);\n\t\t\tupwardPassMaxBeliefUpdate(ordering);\n\t\t\tdownwardPassMaxBeliefUpdate(ordering);\n\t\t} catch (FactorException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\tif(DEBUG) {\n\t\t\tif(DEBUG) System.out.println(\"\\n\\n******\\nis tree calibrated?\\n\\n\");\n\t\t\tif(DEBUG) System.out.println(isCalibrated());\n\t\t\tif(DEBUG) System.out.println(_tree.getLongInfo());\n\t\t}\n\t\telse {\n\t\t\tisCalibrated();\n\t\t}\n\t\treturn true;\n\t}",
"public void checkForBounce()\n {\n if (isTouching(mid.class)){\n \n bounce = 1;\n \n \n }\n \n \n \n \n if (getY() <= 0 || getY() >= getWorld().getHeight() -1 )\n {\n \n dY = -dY;\n \n }\n \n \n if(isTouching(Pad1.class )){\n \n if (bounce == 1){\n \n \n Greenfoot.playSound(\"paddleHit.wav\"); \n dX = -dX;\n bounce = 0;\n change(); \n }\n \n \n }\n \n \n \n }",
"public void updateBallCount(){\n\t\tif (validBall.getxLoc() < 0 || validBall.getxLoc() > screenWidth)\n\t\t\tballCount = 0;\n\t\telse if (validBall.getyLoc() < 0 || validBall.getyLoc() > screenHeight)\n\t\t\tballCount = 0;\n\t\telse\n\t\t\tballCount = 1;\n\t}",
"private boolean hasHitBoundry() {\r\n if (snake[HEAD].row < 0 || \r\n snake[HEAD].row >= maxRows ||\r\n snake[HEAD].column < 0 ||\r\n snake[HEAD].column >= maxColumns) {\r\n gameOver();\r\n return true;\r\n }\r\n return false;\r\n }",
"public abstract void processCollisions();",
"private boolean rightBoundsReached(float delta) {\n return (textureRegionBounds2.x - (delta * speed)) > Constants.APP_WIDTH;\n }",
"private void checkRep() {\n for (Ball ball : balls) {\n assert ball.getPosition().d1 >= 0\n && ball.getPosition().d1 <= WIDTH - 1;\n assert ball.getPosition().d2 >= 0\n && ball.getPosition().d2 <= HEIGHT - 1;\n }\n for (Gadget gadget : gadgets) {\n assert gadget.getPosition().d1 >= 0\n && gadget.getPosition().d1 <= WIDTH - 1;\n assert gadget.getPosition().d2 >= 0\n && gadget.getPosition().d2 <= HEIGHT - 1;\n }\n\n assert GRAVITY > 0 && MU2 > 0 && MU > 0;\n }",
"private void checkBounds() {\n\t\t// checks to see if playerX is to the left of the left side of the display\n\t\tif (player.getX() < 0)\n\t\t\tplayer.setX(0);\n\t\t// checks to see if playerX is greater than the width of the display\n\t\tif (player.getX() > displayWidth - sprite.get(\"playerSprite\").getWidth())\n\t\t\tplayer.setX(displayWidth - sprite.get(\"playerSprite\").getWidth());\n\t\t// checks to see if playerY is lower than the bottom of the display\n\t\tif (player.getY() < 0)\n\t\t\tplayer.setY(0);\n\t\t// checks to see if playerY is greater than the height of the display\n\t\tif (player.getY() > displayHeight - sprite.get(\"playerSprite\").getHeight())\n\t\t\tplayer.setY(displayHeight - sprite.get(\"playerSprite\").getHeight());\n\t}",
"void removeIsBoundaryNodeOf(Boundary oldIsBoundaryNodeOf);",
"public boolean getBoundsVolatile() {\n\t\treturn true;\n\t}",
"public boolean inBound(int x, int y) {\n\n if (x < 0 || x >= boardSize.x || y < 0 || y >= boardSize.y) {\n return false;\n } else {\n return true;\n }\n }"
] |
[
"0.6861303",
"0.6701635",
"0.64136654",
"0.63282293",
"0.61893743",
"0.61853904",
"0.6178545",
"0.6104534",
"0.6100084",
"0.60070103",
"0.6001274",
"0.59681064",
"0.59633696",
"0.5940783",
"0.5935555",
"0.5931968",
"0.59244925",
"0.5919592",
"0.5912256",
"0.59006333",
"0.5882805",
"0.5867956",
"0.5845243",
"0.58308285",
"0.58248436",
"0.58083934",
"0.5805665",
"0.58055925",
"0.5799115",
"0.5769587",
"0.5754279",
"0.5739346",
"0.573464",
"0.5725477",
"0.5703049",
"0.5701598",
"0.56831455",
"0.5669972",
"0.566041",
"0.5658354",
"0.5619043",
"0.5616781",
"0.55973274",
"0.55844325",
"0.5566675",
"0.5563382",
"0.55336845",
"0.5527221",
"0.55261266",
"0.5524258",
"0.5520269",
"0.55164456",
"0.5505974",
"0.550444",
"0.549087",
"0.5461587",
"0.54570806",
"0.54527557",
"0.54220986",
"0.5418481",
"0.54148567",
"0.5409863",
"0.53872555",
"0.5380953",
"0.5374245",
"0.5368363",
"0.5362944",
"0.53620493",
"0.5358195",
"0.5349373",
"0.5337683",
"0.5324838",
"0.53070855",
"0.5303356",
"0.52980965",
"0.52976304",
"0.5296251",
"0.529438",
"0.5294238",
"0.5289865",
"0.52888644",
"0.5286044",
"0.52813315",
"0.5265744",
"0.5265722",
"0.5262234",
"0.52601326",
"0.5255743",
"0.52547264",
"0.5249604",
"0.5238032",
"0.5232148",
"0.5226902",
"0.5217924",
"0.5216248",
"0.52093285",
"0.52041286",
"0.52039045",
"0.5198694",
"0.5196815"
] |
0.731001
|
0
|
Gets the e eapi.
|
String getEEapi(String url, Map<String, String> params, int expectedStatus);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic EapmUtilsApi getEapmUtilsApi() {\r\n\t\treturn this;\r\n\t}",
"public ExpoEAO getExpoEAO()\n {\n return expoEAO;\n }",
"@SuppressWarnings(\"unused\")\n public abstract T getApi();",
"public synchronized static Everbie getEverbie(){\n \t\tif (!Everbie.exists()){\n \t\t\teverbie = new Everbie(DEFAULT_NAME, DEFAULT_RACE);\n \t\t}\n \t\treturn everbie;\n \t}",
"Event getE();",
"public Integer geteId() {\n return eId;\n }",
"public Integer geteId() {\n return eId;\n }",
"EcnonetsPackage getEcnonetsPackage();",
"public AdminEAO getAdminEAO()\n {\n return adminEAO;\n }",
"com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest getEvSORequest();",
"private CloudStackApi getApi() {\n if (_eng == null) {\n _eng = new CloudStackApi(managementServer, cloudAPIPort, false);\n }\n // regardless of whether _eng is initialized, we must make sure\n // access/secret keys are current with what's in the UserCredentials\n _eng.setApiKey(UserContext.current().getAccessKey());\n _eng.setSecretKey(UserContext.current().getSecretKey());\n return _eng;\n }",
"public API getApi()\n\t{\n\t\treturn new API(this);\n\t}",
"public SemuxApiService getApi() {\n return api;\n }",
"@ApiModelProperty(value = \"The elocation id eIdType.\")\n\tpublic String getEIdType() {\n\t\treturn eIdType;\n\t}",
"public String getEid() {\n return eid;\n }",
"public com.google.protobuf.ByteString getE() {\n return e_;\n }",
"public String getEoi_json() {\n return eoi_json;\n }",
"public int getE() {\n return e_;\n }",
"public MCBouncerAPI getAPI() {\n return api;\n }",
"public URL getEli() {\n\t\treturn eli;\n\t}",
"public Long getEid() {\n return eid;\n }",
"public Long getEid() {\n return eid;\n }",
"public com.google.protobuf.ByteString getE() {\n return e_;\n }",
"public int getE() {\n return e_;\n }",
"public int getEid() {\r\n\treturn eid;\r\n\t}",
"public Integer getEid() {\n\t\treturn eid;\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getEBytes() {\n java.lang.Object ref = e_;\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 e_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public ApiException exception() {\n return this.exception;\n }",
"protected ExchangeSpecification getExchangeSpec() throws ExchangeException {\n\t\tExchangeSpecification exSpec = createExchangeInstance().getDefaultExchangeSpecification();\n\t\texSpec.setUserName(apiUserId);\n\t\texSpec.setApiKey(apiKey);\n\t\texSpec.setSecretKey(apiSecret);\n\t\treturn exSpec;\n\t}",
"public Ecosystem getEcosystem() {\n return ecosystem;\n }",
"public com.google.protobuf.ByteString\n getEBytes() {\n java.lang.Object ref = e_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n e_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public EnzymeCommissionNumber getEc() {\n return ec;\n }",
"public Api getApiResponse() {\n\t\tWebResource webResource = client.resource(\"https://\" + server).path(\"/api/\");\n\t\tClientResponse response = webResource.header(HttpHeaders.USER_AGENT, \"jersey-client\").accept(CFEngineMimeType.CFENGINE).get(ClientResponse.class);\n\n\t\treturn response.getEntity(Api.class);\n\t}",
"public DropboxAPI getAPI() {\n \treturn api;\n }",
"public ESEngine addESEngine() {\n\t\treturn new ESUFOEngine(); // Specific to regular UFO\n\t}",
"public java.lang.String getApiEndpoint() {\n java.lang.Object ref = apiEndpoint_;\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 apiEndpoint_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public DiscordApi getApi() {\n\treturn api;\n }",
"public EngineConfig getEngineConfig()\n\t{\n\t\treturn config;\n\t}",
"protected BrowserTestObject iE() \n\t{\n\t\treturn new BrowserTestObject(\n getMappedTestObject(\"iE\"));\n\t}",
"protected BrowserTestObject iE() \n\t{\n\t\treturn new BrowserTestObject(\n getMappedTestObject(\"iE\"));\n\t}",
"public String getEname() {\n return ename;\n }",
"public Object ae() {\n try {\n return this.ad.newInstance();\n } catch (IllegalAccessException | InstantiationException e) {\n throw new RuntimeException();\n }\n }",
"public java.lang.String getE() {\n java.lang.Object ref = e_;\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 e_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public EpicPlayer getEpicPlayer(){ return epicPlayer; }",
"@java.lang.Override\n public java.lang.String getApiEndpoint() {\n java.lang.Object ref = apiEndpoint_;\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 apiEndpoint_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getE() {\n java.lang.Object ref = e_;\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 e_ = s;\n return s;\n }\n }",
"public String getAPIName() {\r\n return apiName;\r\n }",
"public IEdiscoveryRequestBuilder ediscovery() {\n return new EdiscoveryRequestBuilder(getRequestUrlWithAdditionalSegment(\"ediscovery\"), getClient(), null);\n }",
"EvergreenProvision getEvergreenProvision();",
"public ECP getPublicEphemeralKey(){return epk;}",
"public Object externalApiKeys() {\n return this.externalApiKeys;\n }",
"GaewebPackage getGaewebPackage();",
"protected EObject getEObject(URI uri) {\n\t\tXtextEditor xtextEditor = EditorUtils.getActiveXtextEditor();\n\t\treturn xtextEditor.getDocument().readOnly(resource -> {\n\t\t\treturn resource.getResourceSet().getEObject(uri, true);\n\t\t});\n\t}",
"public SabreApi getSabreApi() {\n\t\treturn sabre;\n\t}",
"public com.quikj.server.app.EndPointInterface getEndpoint() {\n\t\treturn endpoint;\n\t}",
"public Enemigo getEnemigo() {\r\n\t\treturn enemigo;\r\n\t}",
"public String getEngineArn() {\n return this.engineArn;\n }",
"public AbstractEdificio getEdificio() {\r\n return Edificio;\r\n }",
"public BasicAttributesGrammarAccess.EIntElements getEIntAccess() {\n\t\treturn gaBasicAttributes.getEIntAccess();\n\t}",
"public ExtendedHTMLDocument getEextendedHTMLDocument() {\r\n\r\n\t\treturn extendedHTMLDocument;\r\n\t}",
"public Event getEvent(){\n\t\t\treturn event;\n\t\t}",
"public EstatusVigenciaDetalle getEstatus() {\r\n return estatus;\r\n }",
"public QueueEao getQueueEao() {\n\t\treturn queueEao;\n\t}",
"public abstract java.lang.Integer getEspe_id();",
"int getE();",
"public PDAction getE() {\n/* 71 */ COSDictionary e = (COSDictionary)this.actions.getDictionaryObject(\"E\");\n/* 72 */ PDAction retval = null;\n/* 73 */ if (e != null)\n/* */ {\n/* 75 */ retval = PDActionFactory.createAction(e);\n/* */ }\n/* 77 */ return retval;\n/* */ }",
"EncorePackage getEncorePackage();",
"public SoEvent getEvent() {\n\t\treturn (eventAction != null ? eventAction.getEvent() : null); \n\t}",
"protected RemoteApi getRemoteApi() {\n return getLockssDaemon().getRemoteApi();\n }",
"public String getEadid() {\n return this.eadid;\n }",
"public String getEngineId()\n {\n return engineId;\n }",
"public String getAppAeskey() {\r\n return appAeskey;\r\n }",
"EisPackage getEisPackage();",
"public EditPanel getEditPanel() { return ep; }",
"public ESPDevice getEspDevice() {\n return espDevice;\n }",
"public final HttpEndpoint getEndpoint( ) {\r\n\t\treturn this.endpoint;\t\t\r\n\t}",
"@Override\r\n\tpublic StarCraftIIApi getStarCraftIIApi() {\r\n\t\treturn this;\r\n\t}",
"public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.ExtLink getExtLink() {\r\n return extLink;\r\n }",
"public interface ApiFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tApiFactory eINSTANCE = work.andycarpenter.webgen.pims.api.impl.ApiFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>API</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>API</em>'.\n\t * @generated\n\t */\n\tAPI createAPI();\n\n\t/**\n\t * Returns a new object of class '<em>Resource</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Resource</em>'.\n\t * @generated\n\t */\n\tResource createResource();\n\n\t/**\n\t * Returns a new object of class '<em>Resource Selection</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Resource Selection</em>'.\n\t * @generated\n\t */\n\tResourceSelection createResourceSelection();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tApiPackage getApiPackage();\n\n}",
"public String bkE() {\n return this.rE.bkA().getString(\"existing_instance_identifier\", \"\");\n }",
"public GameEnvironment getGameEnvironment() {\r\n return this.gameE;\r\n }",
"public String getAssociatedEE() {\n return associatedEE;\n }",
"public interface GaewebFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tGaewebFactory eINSTANCE = gaeweb.impl.GaewebFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Admin Console</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Admin Console</em>'.\n\t * @generated\n\t */\n\tAdminConsole createAdminConsole();\n\n\t/**\n\t * Returns a new object of class '<em>Admin Console Page Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Admin Console Page Type</em>'.\n\t * @generated\n\t */\n\tAdminConsolePageType createAdminConsolePageType();\n\n\t/**\n\t * Returns a new object of class '<em>Appengine Web App Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Appengine Web App Type</em>'.\n\t * @generated\n\t */\n\tAppengineWebAppType createAppengineWebAppType();\n\n\t/**\n\t * Returns a new object of class '<em>Async Session Persistence Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Async Session Persistence Type</em>'.\n\t * @generated\n\t */\n\tAsyncSessionPersistenceType createAsyncSessionPersistenceType();\n\n\t/**\n\t * Returns a new object of class '<em>Automatic Scaling Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Automatic Scaling Type</em>'.\n\t * @generated\n\t */\n\tAutomaticScalingType createAutomaticScalingType();\n\n\t/**\n\t * Returns a new object of class '<em>Basic Scaling Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Basic Scaling Type</em>'.\n\t * @generated\n\t */\n\tBasicScalingType createBasicScalingType();\n\n\t/**\n\t * Returns a new object of class '<em>Class Loader Config Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Class Loader Config Type</em>'.\n\t * @generated\n\t */\n\tClassLoaderConfigType createClassLoaderConfigType();\n\n\t/**\n\t * Returns a new object of class '<em>Cpu Utilization Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Cpu Utilization Type</em>'.\n\t * @generated\n\t */\n\tCpuUtilizationType createCpuUtilizationType();\n\n\t/**\n\t * Returns a new object of class '<em>Document Root</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Document Root</em>'.\n\t * @generated\n\t */\n\tDocumentRoot createDocumentRoot();\n\n\t/**\n\t * Returns a new object of class '<em>Env Variables Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Env Variables Type</em>'.\n\t * @generated\n\t */\n\tEnvVariablesType createEnvVariablesType();\n\n\t/**\n\t * Returns a new object of class '<em>Env Var Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Env Var Type</em>'.\n\t * @generated\n\t */\n\tEnvVarType createEnvVarType();\n\n\t/**\n\t * Returns a new object of class '<em>Exclude Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Exclude Type</em>'.\n\t * @generated\n\t */\n\tExcludeType createExcludeType();\n\n\t/**\n\t * Returns a new object of class '<em>Http Header Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Http Header Type</em>'.\n\t * @generated\n\t */\n\tHttpHeaderType createHttpHeaderType();\n\n\t/**\n\t * Returns a new object of class '<em>Inbound Services Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Inbound Services Type</em>'.\n\t * @generated\n\t */\n\tInboundServicesType createInboundServicesType();\n\n\t/**\n\t * Returns a new object of class '<em>Include Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Include Type</em>'.\n\t * @generated\n\t */\n\tIncludeType createIncludeType();\n\n\t/**\n\t * Returns a new object of class '<em>Manual Scaling Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Manual Scaling Type</em>'.\n\t * @generated\n\t */\n\tManualScalingType createManualScalingType();\n\n\t/**\n\t * Returns a new object of class '<em>Pagespeed Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Pagespeed Type</em>'.\n\t * @generated\n\t */\n\tPagespeedType createPagespeedType();\n\n\t/**\n\t * Returns a new object of class '<em>Permission Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Permission Type</em>'.\n\t * @generated\n\t */\n\tPermissionType createPermissionType();\n\n\t/**\n\t * Returns a new object of class '<em>Priority Specifier Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Priority Specifier Type</em>'.\n\t * @generated\n\t */\n\tPrioritySpecifierType createPrioritySpecifierType();\n\n\t/**\n\t * Returns a new object of class '<em>Property Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Property Type</em>'.\n\t * @generated\n\t */\n\tPropertyType createPropertyType();\n\n\t/**\n\t * Returns a new object of class '<em>Resource Files Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Resource Files Type</em>'.\n\t * @generated\n\t */\n\tResourceFilesType createResourceFilesType();\n\n\t/**\n\t * Returns a new object of class '<em>Setting Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Setting Type</em>'.\n\t * @generated\n\t */\n\tSettingType createSettingType();\n\n\t/**\n\t * Returns a new object of class '<em>Static Error Handlers</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Static Error Handlers</em>'.\n\t * @generated\n\t */\n\tStaticErrorHandlers createStaticErrorHandlers();\n\n\t/**\n\t * Returns a new object of class '<em>Static Error Handlers Handler</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Static Error Handlers Handler</em>'.\n\t * @generated\n\t */\n\tStaticErrorHandlersHandler createStaticErrorHandlersHandler();\n\n\t/**\n\t * Returns a new object of class '<em>Static Files Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Static Files Type</em>'.\n\t * @generated\n\t */\n\tStaticFilesType createStaticFilesType();\n\n\t/**\n\t * Returns a new object of class '<em>Static Include Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Static Include Type</em>'.\n\t * @generated\n\t */\n\tStaticIncludeType createStaticIncludeType();\n\n\t/**\n\t * Returns a new object of class '<em>System Properties Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>System Properties Type</em>'.\n\t * @generated\n\t */\n\tSystemPropertiesType createSystemPropertiesType();\n\n\t/**\n\t * Returns a new object of class '<em>User Permissions Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>User Permissions Type</em>'.\n\t * @generated\n\t */\n\tUserPermissionsType createUserPermissionsType();\n\n\t/**\n\t * Returns a new object of class '<em>Vm Health Check Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vm Health Check Type</em>'.\n\t * @generated\n\t */\n\tVmHealthCheckType createVmHealthCheckType();\n\n\t/**\n\t * Returns a new object of class '<em>Vm Settings Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vm Settings Type</em>'.\n\t * @generated\n\t */\n\tVmSettingsType createVmSettingsType();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tGaewebPackage getGaewebPackage();\n\n}",
"public com.google.protobuf.ByteString getApiEndpointBytes() {\n java.lang.Object ref = apiEndpoint_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n apiEndpoint_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@ApiMethod(name = \"getEvent\", path = \"event\")\n public Event getEvent(@Named(\"eventID\") long id) {\n logger.info(\"getting single event\");\n Event foundEvent = null;\n try {\n Entity eventDatastoreObject = datastoreService.get(KeyFactory.createKey(\"Event\", id));\n foundEvent = new Event((String) eventDatastoreObject.getProperty(\"name\"), (String) eventDatastoreObject.getProperty(\"details\"));\n } catch (EntityNotFoundException e) {\n e.printStackTrace();\n }\n\n return foundEvent;\n }",
"public Object element() { return e; }",
"public Integer getEi() {\n return ei;\n }",
"public Exchange getExchange() {\r\n return exchange;\r\n }",
"public Event getEvent() {\n\t\treturn event;\n\t}",
"public ArrayList<Integer> getE() {\r\n return this.e;\r\n }",
"@Deprecated // Use TrcApplicationContext\n URI getApiEndpoint();",
"public static WebSocketSelectionKeyAPI getInstance ()\r\n {\r\n return theAPI;\r\n }",
"public long getEulaId() {\n return eulaId;\n }",
"public String apiId() {\n return this.innerProperties() == null ? null : this.innerProperties().apiId();\n }",
"public CalDAVEvent<?> getEvent() throws WebdavException {\n init(true);\n\n return event;\n }",
"public Long getAPIID()\r\n {\r\n return APIID;\r\n }",
"EpkDSLFactory getEpkDSLFactory();",
"public double getEnergia() { return energia; }",
"com.google.protobuf.ByteString getE();",
"public String getEU( ) {\r\n return eu;\r\n }"
] |
[
"0.7213697",
"0.61764413",
"0.5985494",
"0.5982731",
"0.5811184",
"0.57835823",
"0.57835823",
"0.5774579",
"0.5771747",
"0.5761506",
"0.5708359",
"0.56816256",
"0.56704193",
"0.5652595",
"0.5632176",
"0.56099945",
"0.56040066",
"0.5580073",
"0.55796903",
"0.5575186",
"0.55741584",
"0.55741584",
"0.5572322",
"0.55444914",
"0.55369014",
"0.5536523",
"0.5523029",
"0.5509531",
"0.5492731",
"0.54477674",
"0.5443769",
"0.54422086",
"0.5407654",
"0.5407506",
"0.5403497",
"0.5392576",
"0.5379687",
"0.53661335",
"0.53494996",
"0.53494996",
"0.5344071",
"0.5339288",
"0.5317926",
"0.53069174",
"0.53060544",
"0.530143",
"0.5298354",
"0.5295463",
"0.52880865",
"0.52844536",
"0.5284293",
"0.5268703",
"0.52548623",
"0.5243329",
"0.5216513",
"0.5208314",
"0.5204105",
"0.5180728",
"0.5178122",
"0.5172614",
"0.5171763",
"0.51703846",
"0.5169426",
"0.5155237",
"0.5153494",
"0.5151427",
"0.51497126",
"0.51428926",
"0.5141605",
"0.51390594",
"0.5135064",
"0.5131647",
"0.51227605",
"0.51197803",
"0.5119063",
"0.51182854",
"0.5115247",
"0.511384",
"0.5112853",
"0.51039004",
"0.50974613",
"0.50909007",
"0.50866014",
"0.50777054",
"0.5077495",
"0.50676537",
"0.50672066",
"0.5066824",
"0.5064229",
"0.50627965",
"0.50567657",
"0.5056134",
"0.5049712",
"0.5043101",
"0.50428426",
"0.5040682",
"0.5033927",
"0.503179",
"0.5031593",
"0.5031233"
] |
0.5679797
|
12
|
verify either schedule message is display in thermostat control page.
|
boolean displayScheduleMessage();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void verifyScheduled() {\n\t\tselectDatePublishingCal(futureDate);\n\t\twait.until(\n\t\t ExpectedConditions\n\t\t\t.numberOfElementsToBeMoreThan(By.xpath(\"//span[.='\"+scheduledMessage+\"']\"), 0));\n\t\tList<WebElement> scheduledTweets=driver.findElements(By.xpath(\"//span[.='\"+scheduledMessage+\"']\"));\n\t\t\n\t\tAssert.assertTrue(\"Verify that scheduled tweet with msg: \"+scheduledMessage+\" is displayed\",\n\t\t\t\tscheduledTweets.size() > 0 );\n\t}",
"protected void verifyScheduleFields() {\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(new MouseEvent(scheduleTimeFrameToTextField, MouseEvent.MOUSE_CLICKED, 0, 0, -1, -1, 1, false));\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(new MouseEvent(scheduleOnceTextField, MouseEvent.MOUSE_CLICKED, 0, 0, -1, -1, 1, false));\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(new MouseEvent(scheduleMinutelyEveryTextField, MouseEvent.MOUSE_CLICKED, 0, 0, -1, -1, 1, false));\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(new MouseEvent(scheduleHourlyEveryTextField, MouseEvent.MOUSE_CLICKED, 0, 0, -1, -1, 1, false));\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(new MouseEvent(scheduleDailyEveryTextField, MouseEvent.MOUSE_CLICKED, 0, 0, -1, -1, 1, false));\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(new MouseEvent(scheduleDailyTimeTextField, MouseEvent.MOUSE_CLICKED, 0, 0, -1, -1, 1, false));\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(new MouseEvent(scheduleWeeklyEveryTextField, MouseEvent.MOUSE_CLICKED, 0, 0, -1, -1, 1, false));\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(new MouseEvent(scheduleWeeklyTimeTextField, MouseEvent.MOUSE_CLICKED, 0, 0, -1, -1, 1, false));\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(new MouseEvent(scheduleMonthlyDayNumberTextField, MouseEvent.MOUSE_CLICKED, 0, 0, -1, -1, 1, false));\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(new MouseEvent(scheduleMonthlyTimeTextField, MouseEvent.MOUSE_CLICKED, 0, 0, -1, -1, 1, false));\n }",
"public void verifySystemStatusTabIsDisplayed() {\n \tAssert.assertTrue(systemStatus.isDisplayed());\n }",
"private void checkPage() {\n Assert.assertTrue(\"Electric cars button not displayed.\",electricCars.isDisplayed());\n }",
"boolean hasScheduling();",
"boolean hasScheduling();",
"public boolean displayMessage()\n {\n boolean show = false;\n Calendar cal2 = null;\n Calendar cal = null;\n\n int h = this.getIntHora();\n cal = Calendar.getInstance();\n cal.setTime(cfg.getCoreCfg().getIesClient().getDatesCollection().getHoresClase()[h-1]);\n cal.set(Calendar.YEAR, m_cal.get(Calendar.YEAR));\n cal.set(Calendar.MONTH, m_cal.get(Calendar.MONTH));\n cal.set(Calendar.DAY_OF_MONTH, m_cal.get(Calendar.DAY_OF_MONTH));\n cal.add(Calendar.MINUTE, cfg.activaMissatges);\n\n cal2 = (Calendar) cal.clone();\n cal2.add(Calendar.SECOND, 4); //show during 4 sec\n\n //System.out.println(\"ara es hora\" + h);\n //System.out.println(\"comparing dates \" + cal.getTime() + \"; \" + cal2.getTime() + \"; \" + m_cal.getTime());\n\n if(cal.compareTo(m_cal)<=0 && m_cal.compareTo(cal2)<=0 )\n {\n show = true;\n }\n\n return show;\n }",
"public void Verify_UnfortunatelyMessage() throws InterruptedException\r\n\t{\r\n\t\tExplicitWait(Checkavailability);\r\n\t\tThread.sleep(3000);\r\n\t\tif(showRoomInfo.getText().contains(\"Unfortunately, there are no available rooms.\")||(showRoomInfo.getText().contains(\"Or try our partner hotels below.\"))||(showRoomInfo.getText().contains(\"Please try adjusting your search criteria.\")))\r\n\t\t{\r\n\t\t\t//System.out.println(\"After Closing the room/rate using House Control ,rooms are not showing in Booking Engine \");\r\n\t\t\tlogger.info(\"After Closing the room/rate using House Control ,rooms are not showing in Booking Engine \");\r\n\t\t\ttest.log(Status.PASS, \"After Closing the room/rate using House Control ,rooms are not showing in Booking Engine \");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tlogger.error(\"Room/rate are not closed properly in Admin\");\r\n\t\t\ttest.log(Status.FAIL, \"Room/rate are not closed properly in Admin\");\r\n\t\t}\r\n\t}",
"public void verifyNewTabDorMessageBoardsOpened() {\n Assert.assertTrue(boardButton.isDisplayed());\t\t\n\t}",
"public void validateSchedular() {\n boolean startDateCheck = false, cronTimeCheck = false, dateFormatCheck = false;\n /*\n Schedular Properties\n */\n\n System.out.println(\"Date: \" + startDate.getValue());\n if (startDate.getValue() != null) {\n System.out.println(\"Date: \" + startDate.getValue());\n startDateCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Start Date should not be empty.\\n\");\n }\n\n if (!cronTime.getText().isEmpty()) {\n cronTimeCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Cron Time should not be empty.\\n\");\n }\n// if (!dateFormat.getText().isEmpty()) {\n// dateFormatCheck = true;\n// } else {\n// execptionData.append((++exceptionCount) + \". Date Format should not be empty.\\n\");\n// }\n\n if (startDateCheck == true && cronTimeCheck == true) {\n schedularCheck = true;\n } else {\n schedularCheck = false;\n startDateCheck = false;\n cronTimeCheck = false;\n dateFormatCheck = false;\n }\n\n }",
"public void verifySchedulePaymentTabElementsDisplayed() {\n\r\n\t\tAssert.assertTrue(carrierschedulepayment.amountColumn.getText().contains(\"Amount\"), \"Amount Column not found\");\r\n\t\tAssert.assertTrue(carrierschedulepayment.payerColumn.getText().contains(\"Payer\"), \"Payer Column not found\");\r\n\t\tAssert.assertTrue(carrierschedulepayment.loadIDColumn.getText().contains(\"Load ID\"), \"Load ID not found\");\r\n\t\tAssert.assertTrue(carrierschedulepayment.InvoiceColumn.getText().contains(\"Invoice #\"), \"Invoice # not found\");\r\n\t\tAssert.assertTrue(carrierschedulepayment.schdateColumn.getText().contains(\"Scheduled Date\"),\r\n\t\t\t\t\"Schedule Date not found\");\r\n\t\tAssert.assertTrue(carrierschedulepayment.searchButton.isDisplayed(), \"Search Button not found\");\r\n\t\tAssert.assertTrue(carrierschedulepayment.searchInputField.isDisplayed(), \"Search Input Field not found\");\r\n\t}",
"boolean isSetSchedule();",
"boolean isDisplayMessageOnRedeem();",
"private void assertValidTimeWindow() {\n if (getSuggestedWindowStart().isAfter(getSuggestedWindowEnd())) {\n throw new AcmeProtocolException(\"Received an invalid suggested window\");\n }\n }",
"public boolean haveSchedule() {\r\n return haveSchedule;\r\n }",
"public void loadWinMessage() {\n\n\t\tmessageToDisplay.add(String.format(\"On %s The Artemis Project has succesfully launched!\\n\",\n\t\t\t\tArtemisCalendar.getCalendar().getTime()));\n\t\tif (GameStatistics.timeToLaunch() > 0) {\n\t\t\tmessageToDisplay.add(String.format(\"Congratulations! The mission launched %d months ahead of schedule.\\n\" , GameStatistics.timeToLaunch()));\n\t\t} else if (GameStatistics.timeToLaunch() < 0) {\n\t\t\tmessageToDisplay.add(String.format(\"Unfortunately, the mission launched %d months behind schedule.\\n\" , GameStatistics.timeToLaunch()));\n\t\t} else {\n\t\t\tmessageToDisplay.add(\"The mission launched on schedule.\\n\");\n\t\t}\n\t\tmessageToDisplay.add(\"\\nMission Debrief:\\n\");\n\t\tmessageToDisplay.add(systemCompletion(SystemType.ORION));\n\t\tmessageToDisplay.add(systemCompletion(SystemType.SLS));\n\t\tmessageToDisplay.add(systemCompletion(SystemType.EGS));\n\t\tmessageToDisplay.add(systemCompletion(SystemType.GATEWAY));\n\t\tGameLauncher.displayMessage();\n\t}",
"public boolean okToDisplay() {\n return this.mDisplayId == 0 ? !this.mWmService.mDisplayFrozen && this.mWmService.mDisplayEnabled && this.mWmService.mPolicy.isScreenOn() : this.mDisplayInfo.state == 2;\n }",
"public boolean clickScheduleAWebinarLink(){\n\t\tif(util.clickElementByLinkText(\"Schedule a Webinar\")==\"Pass\"){\n\t\t\tSystem.out.println(\"Left Frame >> Schedule A Webinar link clicked successfully..................\");\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public void assertMyTraderPage() {\r\n\t\tprint(\"Welcome to My Trader text on My Trader page\");\r\n\t\twaitForElementPresentInDom(3);\r\n\t\tlocator = Locator.MyTrader.MyTrader_Message.value;\r\n\t\tAssert.assertTrue(isTextPresent(locator, \"Welcome to MyTrader\"), \"Element Locator :\" + locator + \" Not found\");\r\n\t}",
"public boolean hasScheduling() {\n return scheduling_ != null;\n }",
"public static void ShowCreateSchedule(){\n ToggleVisibility(CreateSchedule.window);\n }",
"@Then(\"system displays account profile\")\n\tpublic void systemDisplays() throws InterruptedException {\n\t\tpause();\n\n\t\tString actualmsg = driver.findElement(By.xpath(propertyBag.getPageProperty(YOURACCOUNT_MESSAGE))).getText();\n\t\tString expectedmsg = \"Your details\";\n\t\tassertStringEquals(actualmsg, expectedmsg);\n\n\t\t\n\t}",
"@PermitAll\n public void cmdShowSchedule(User teller) {\n command.sendQuietly(\"qtell {0} {1}\", teller, \"Current Schedule:\\\\n\");\n Collection<Game> games = tournamentService.findAllGames();\n for (Game game : games) {\n int boardNum = game.boardNumber;\n String whiteStatus = (game.whitePlayer.isOnline()) ? \"\" : \" ?\";\n String whitePlayer = game.whitePlayer.getHandle();\n String blackStatus = (game.blackPlayer.isOnline()) ? \"\" : \" ?\";\n String blackPlayer = game.blackPlayer.getHandle();\n String gameStatus = game.getStatusString();\n String msg = String.format(\"Board %2d: %18s%2s %18s%2s %s\", boardNum, whitePlayer, whiteStatus, blackPlayer, blackStatus, gameStatus);\n command.sendQuietly(\"qtell {0} {1}\", teller, msg);\n }\n command.sendQuietly(\"qtell {0}\", teller);\n }",
"public boolean hasScheduling() {\n return schedulingBuilder_ != null || scheduling_ != null;\n }",
"public boolean isScheduled(){\n //System.out.println(\"nextrun: \" + nextrun.getTime() + \" nu: \" + System.currentTimeMillis());\n if (nextrun != null){\n long next = nextrun.getTime();\n \n return next < System.currentTimeMillis();\n }else{\n //null => instance has never run before & should run asap\n return true;\n }\n }",
"private void checkAlarm() {\n\t\tif(this.alarmHour==this.currHour && this.alarmMin==Integer.valueOf(this.currMin)) {\n\t\t\ttimer.cancel();\n\t\t\tSystem.out.println(this.alarmMsg+\"\\nThe time is \"+this.currHour+\":\"+this.currMin);\n\t\t\tString time;\n\t\t\tif(String.valueOf(alarmHour).length()==1) {\n\t\t\t\ttime= \"0\"+alarmHour+\":\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttime=alarmHour+\":\";\n\t\t\t}\n\t\t\tif(String.valueOf(alarmMin).length()==1) {\n\t\t\t\ttime+=\"0\"+alarmMin;\n\t\t\t}else {\n\t\t\t\ttime+=alarmMin;\n\t\t\t}\n\t\t\tJOptionPane.showMessageDialog(null, alarmMsg + \" - \"+ time+\"\\n\"+\"The time is \"+ time);\n\t\t}\n\t}",
"@When(\"^I check whether to show a notification for WOF$\")\n public void i_check_whether_to_show_a_notification_for_WOF() throws Throwable {\n result = car.showWofNotification();\n }",
"public void checkGameStatus() {\n everyTenthGoalCongrats();\n randomPopUpBecauseICan();\n }",
"private void check() {\n ShedSolar.instance.haps.post( Events.WEATHER_REPORT_MISSED );\n LOGGER.info( \"Failed to receive weather report\" );\n\n // check again...\n startChecker();\n }",
"public abstract void displayMsgBeforeRun();",
"boolean hasAdScheduleView();",
"@Test\r\n\tpublic void testShowStandings1() {\n\t\tassertTrue(\"Error displaying standings\", false);\r\n\t}",
"private boolean allowsInstantMessage()\n {\n for(ChatTransport tr : transportMenuItems.keySet())\n {\n if(tr.allowsInstantMessage())\n {\n return true;\n }\n }\n\n return false;\n }",
"public void assertMsgCheck() {\r\n\t\tassertEquals(successMsg.getText().substring(0,36), \"Success: You have modified products!\");\r\n\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ successMsg.getText().substring(0,36));\r\n\t}",
"public void my_timesheet_report()\n {\n\t boolean timesheetreppresent =mytimesheetrep.size()>0;\n\t if(timesheetreppresent)\n\t {\n\t\t // System.out.println(\" My Timesheet report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Timesheet report is not present\");\n\t }\n }",
"@Test\r\n\tpublic void testShowStandings2() {\n\t\tassertTrue(\"Error displaying standings\", false);\r\n\t}",
"public void Verify_Expected_Header_Visibility()\r\n\t{\r\n\t\tString Runtime_Header_text=Page_header.getText();\r\n\t\tif(Runtime_Header_text.equals(Exp_page_header))\r\n\t\t\tSystem.out.println(\"Expected Header visible at webpage\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Expected Header not visible at webpage\");\r\n\t}",
"public boolean verifyPreAdmission_StudentCountReportPage() {\r\n\t\ttry {\r\n\t\t\tSystem.out.println(txt_StudentCountReportPage.getText().trim());\r\n\t\t\ttxt_StudentCountReportPage.isDisplayed();\r\n\t\t\tlog(\"PreAdmission Student Count Report page is dispalyed and object is:-\"\r\n\t\t\t\t\t+ txt_StudentCountReportPage.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t\treturn true;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void verifyAverageResponseTimeMessageTextAfterEndingAboutContentStructure()\r\n\t {\r\n\t\t isTextDisplay(each_question_structure_end_average_response_time_message.get(1));\r\n\t }",
"@Test\n public void checkStartupToast() {\n //run with airplane mode so no internet connectivity\n onView(withText(\"Ensure data connectivity\")).inRoot(new ToastMatcher())\n .check(matches(isDisplayed()));\n }",
"private boolean checkDesignCMT() {\n // check null\n if (jTFChungMinhThu.getText().trim().isEmpty()) {\n JOptionPane.showMessageDialog(rootPane, \"Nhập CMT và nhấn Enter để tìm kiếm\\nHoặc nhấn nút \\\"SHOW INFO\\\" để chọn nhân khẩu.\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return false;\n }\n // check dinh dang so chung minh thu\n try {\n long d = Long.parseLong(jTFChungMinhThu.getText());\n } catch (Exception e) {\n JOptionPane.showMessageDialog(rootPane, \"Số CMT không thể chứa các ký tự chữ cái\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return false;\n }\n // kiem tra do dai cmt\n if (jTFChungMinhThu.getText().length() != 9 && jTFChungMinhThu.getText().length() != 12) {\n JOptionPane.showMessageDialog(rootPane, \"Số CMT có 9 hoặc 12 số\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return false;\n }\n return true;\n }",
"public boolean isManageVehiclesLinkPresent() {\r\n\t\treturn isElementPresent(manageVehiclesSideBar, SHORTWAIT);\r\n\t}",
"@Then(\"user verifies that {string} message is displayed\")\n public void user_verifies_that_message_is_displayed(String expectedWarningMessage) {\n\n String actualWarningMessage = loginPage.getWarningMessageText();\n Assert.assertEquals(expectedWarningMessage,actualWarningMessage);\n // Assert.assertTrue(loginPage.warningMessage.isDisplayed()); //if the webelement is setted as public\n\n\n\n }",
"public void sleepCheck() {\n if (area() == null)\n stopActing();\n if (area().closed || area().closeRequested)\n stopActing();\n if (commander.player() == null || commander.player().area() != area()) {\n if (!area().getLabel().equals(\"TITLE\"))\n stopActing();\n } else {\n wakeCheck(commander.player().areaX(), commander.player().areaY());\n }\n }",
"boolean hasWaitTime();",
"public boolean isDisplayed_txt_ThankYou_Message_Text(){\r\n\t\tif(txt_ThankYou_Message_Text.isDisplayed()) { return true; } else { return false;} \r\n\t}",
"@Test(priority=5)\n\tpublic void verifyEnglishlangDisplayingatRightSideinOverviewpageHeader() throws Exception {\n\t\t\n\t\tOverviewTradusPROPage overviewObj=new OverviewTradusPROPage(driver);\n\t\texplicitWaitFortheElementTobeVisible(driver,overviewObj.overviewPageVerificationElement);\n\t\tAssert.assertTrue(getText(overviewObj.languageAtHeader).trim().equals(\"English\"),\n\t\t\t\t\"English language is not displaying at the right side header\");\n\t}",
"protected void checkTransmissionRequirements()\n {\n if (isOutOfBandAlert())\n { // Out-of-band (OOB) transmission requirements\n if (this.alert_text == null && this.details_OOB_source_ID == 0)\n { // [SCTE 18] 6-3\n if (log.isInfoEnabled())\n {\n log.info(formatLogMessage(\"SCTE-18: OOB alert requires alert text or a details source ID\"));\n }\n }\n else if (this.alert_priority > EASMessage.ALERT_PRIORITY_HIGH)\n {\n if (this.details_OOB_source_ID == 0)\n { // [SCTE 18] 6-5\n if (log.isInfoEnabled())\n {\n log.info(formatLogMessage(\"SCTE-18: OOB maximum priority alert requires a details source ID\"));\n }\n }\n else if (this.alert_text != null && this.audio_OOB_source_ID == 0)\n { // [SCTE 18] 6-7\n if (log.isInfoEnabled())\n {\n log.info(formatLogMessage(\"SCTE-18: OOB maximum priority alert with alert text requires an audio source ID\"));\n }\n }\n }\n }\n else\n { // In-band (IB) transmission requirements\n if (this.alert_text == null && this.details_major_channel_number == 0\n && this.details_minor_channel_number == 0)\n { // [SCTE 18] 6-2\n if (log.isInfoEnabled())\n {\n log.info(formatLogMessage(\"SCTE-18: IB alert requires alert text or a details channel\"));\n }\n }\n else if (this.alert_priority > EASMessage.ALERT_PRIORITY_HIGH && this.details_major_channel_number == 0\n && this.details_minor_channel_number == 0)\n { // [SCTE 18] 6-4\n if (log.isInfoEnabled())\n {\n log.info(formatLogMessage(\"SCTE-18: IB maximum priority alert requires a details channel\"));\n }\n }\n }\n }",
"public void validateUIStatus() {\n\n boolean timeZoneCheck = false, timeFormatCheck = false, fetchTimeCheck = false, statusPathCheck = false;\n\n if (!timeZone.getText().isEmpty()) {\n timeZoneCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Time zone should not be Empty.\\n\");\n }\n if (!statusPath.getText().isEmpty()) {\n statusPathCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Status File should not be empty.\\n\");\n }\n if (!fetchTime.getText().isEmpty()) {\n fetchTimeCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". UI Refresh Time should not be empty.\\n\");\n }\n if (!timeFormat.getText().isEmpty()) {\n timeFormatCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". UI Date & Time format should not be Empty.\\n\");\n }\n\n if (timeFormatCheck == true && timeZoneCheck == true && fetchTimeCheck == true && statusPathCheck == true) {\n uiStatusCheck = true;\n } else {\n\n uiStatusCheck = false;\n timeZoneCheck = false;\n timeFormatCheck = false;\n fetchTimeCheck = false;\n statusPathCheck = false;\n }\n }",
"public void verifyVINCERegistrationPageInNewWindow() {\n\t\tAssert.assertTrue(notAUserText.isDisplayed());\n\t\t_normalWait(3000);\n\t}",
"private void check_this_minute() {\n controlNow = false;\n for (DTimeStamp dayControl : plan) {\n if (dayControl.point == clockTime.point) {\n controlNow = true;\n break;\n }\n }\n for (DTimeStamp simControl : extra) {\n if (simControl.equals(clockTime)) {\n controlNow = true;\n break;\n }\n }\n }",
"public String checkSystem() {\r\n\t\tif(currentSheeps > totalSheeps || currentSheeps < 0) {\r\n\t\t\treturn \"inconsistent!\";\r\n\t\t}\r\n\t\telse if(currentSheeps < totalSheeps) {\r\n\t\t\treturn \"incomplete!\";\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn \"complete!\";\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic boolean checkIfOnTraineeship() {\n\t\treturn false;\r\n\t}",
"boolean hasSendTime();",
"public void verifyUserIsOnHomepage()\n {\n asserttextmessage(getTextFromElement(_welcomeTileText),expected,\"user on home page\");\n\n }",
"private String getTstatStatusMessage() {\n\n String thStatusMsg = null;\n WebElement modeDialog = getElement(getDriver(), By.cssSelector(MODEL_DIALOG), TINY_TIMEOUT);\n if (modeDialog.isDisplayed()) {\n WebElement modeMessage = getElementBySubElement(getDriver(), modeDialog,\n By.className(ERROR_MODEBOX), TINY_TIMEOUT);\n thStatusMsg = getElementBySubElement(getDriver(), modeMessage,\n By.className(MODEL_LABEL), TINY_TIMEOUT).getText();\n setLogString(\"Location status message:\" + thStatusMsg, true, CustomLogLevel.HIGH);\n }\n return thStatusMsg;\n }",
"public void verifyStaticMessageOnMiniCart() {\n String element = \"//*[@id='disclaimerText']\";\n if (UtilityHelper.isNotClickable(org.openqa.selenium.By.xpath(element))) {\n UtilityHelper.waitUntilClickable(org.openqa.selenium.By.xpath(element));\n }\n WebElement staticmessage = getDriver().findElement(org.openqa.selenium.By.xpath(element));\n UtilityHelper.waitUntilClickable(staticmessage);\n Assert.assertEquals(\"Final price and discounts will be determined at pickup.\", staticmessage.getText());\n System.out.println(\"==========Static message is displayed in minicart======== \");\n }",
"public void timesheet_report()\n {\n\t boolean timesheetreppresent =timesheetrep.size()>0;\n\t if(timesheetreppresent)\n\t {\n\t\t // System.out.println(\"Timesheet report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Timesheet report is not present\");\n\t }\n }",
"public void action() {\n MessageTemplate template = MessageTemplate.MatchPerformative(CommunicationHelper.GUI_MESSAGE);\n ACLMessage msg = myAgent.receive(template);\n\n if (msg != null) {\n\n /*-------- DISPLAYING MESSAGE -------*/\n try {\n\n String message = (String) msg.getContentObject();\n\n // TODO temporary\n if (message.equals(\"DistributorAgent - NEXT_SIMSTEP\")) {\n \tguiAgent.nextAutoSimStep();\n // wykorzystywane do sim GOD\n // startuje timer, zeby ten zrobil nextSimstep i statystyki\n // zaraz potem timer trzeba zatrzymac\n }\n\n guiAgent.displayMessage(message);\n\n } catch (UnreadableException e) {\n logger.error(this.guiAgent.getLocalName() + \" - UnreadableException \" + e.getMessage());\n }\n } else {\n\n block();\n }\n }",
"public boolean isRunning()\n {\n WebElement box = driver.findElement(By.cssSelector(\"#box\"));\n String lv = box.getAttribute(\"class\");\n int level = lv.charAt(2) - 48;\n\n WebElement timeElem = driver.findElement(By.cssSelector(\"#room > header > span.time\"));\n String timeStr = timeElem.getText();\n int time = stringToInt(timeStr);\n\n return level != 1 && time != 1;\n }",
"public void checkAttendance() {\n\t\tRandom random = new Random();\n\t\trandomCheck = random.nextInt(3);\n\t\tif (randomCheck == isFullTimePresent) {\n\t\t\tSystem.out.println(\"Employee is Full Time Present \");\n\t\t\tworkingHrs = 8;\n\t\t} else if (randomCheck == isPartTimePresent) {\n\t\t\tSystem.out.println(\"Employee is Part time Present \");\n\t\t\tworkingHrs = 4;\n\t\t} else {\n\t\t\tSystem.out.println(\"Employee is Absent \");\n\t\t\tworkingHrs = 0;\n\t\t}\n\t}",
"boolean hasSubmitTime();",
"public boolean isDisplayed() {\n return isValid() && (getLastSeen() > System.currentTimeMillis() - DAYS_30);\n }",
"public void showWonMessage() {\n\t\tsetStatusBar(WIN_MSG);\n\t}",
"boolean hasAreSystemMessages();",
"boolean hasDesiredTime();",
"public boolean visible_AlertMsg_state() {\r\n\t\tWebElement alrtmsg = driver.findElementByName(\"You are about to lose your changes.Do you want to continue ?\");\r\n\t\treturn IsElementVisibleStatus(alrtmsg);\r\n\t}",
"public boolean phonedisplayed() throws Exception{\r\n\t\t\ttry {\r\n\t\t\t\telement = driver.findElement(phone);\r\n\t\t\t\tflag = element.isDisplayed();\r\n\t\t\t\tAssert.assertTrue(flag, \"Phone Number is not dispalyed and enabled\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new Exception(\"Phone Number NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn flag;\r\n\t\t}",
"public void checkOutFlight() {\n confirmationPage.checkButton();\n }",
"void waitForAddStatusIsDisplayed() {\n\t\tSeleniumUtility.waitElementToBeVisible(driver, homepageVehiclePlanning.buttonTagAddStatusHomepageVehiclePlanning);\n\t}",
"@Test(priority=3)\n\tpublic void validatePredictNiftyInContestPage2()\n\t{\n\t\tAssert.assertTrue(c.todaysNiftyValue.isDisplayed());\n\t}",
"protected void doCheckView() {\n // check the remotes first\n if (getAnnouncementRegistry() == null) {\n logger.info(\"announcementRegistry is null (will check view again later)\");\n return;\n }\n getAnnouncementRegistry().checkExpiredAnnouncements();\n }",
"public void verifyRunDiagnosticsPage(String university)\r\n\t{ \r\n\t\tverifyHelpPageUrl(driver,university);\r\n\t\tif(picture.isDisplayed())\r\n\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"run diagnostics page verified\");\r\n\t\t\tATUReports.add(time +\" run diagnostics page verified\", LogAs.PASSED, null);\r\n\t\t\tAssert.assertTrue(true);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"run diagnostics page not verified\");\r\n\t\t\tATUReports.add(time +\" run diagnostics page not verified\", LogAs.FAILED, new CaptureScreen(ScreenshotOf.BROWSER_PAGE));\r\n\t\t\tAssert.assertTrue(false);\r\n\t\t}\r\n\t}",
"public void handleSMSAlert()\n\t{\n\t\t\n\t\tWebDriverWait wait=new WebDriverWait(driver, 60);\n\t\t\n\t\twait.until(ExpectedConditions.visibilityOf(checker));\n\t\t\n\t\tif(!Generic.getAttribute(checker, \"resourceId\").contains(\"message\"))\n\t\t\treturn; // No Alert found\n\t\telse\n\t\t{\n\t\t\tif(checker.getText().contains(\"verification could not be completed\"))\n\t\t\t\tAssert.fail(\"Phone Verification failed\");\n\t\t\t\n\t\t\tLog.info(\"== Handling SMS Alert ==\");\n\t\t\tokButton.click();\n\t\t\t\n\t\t\twaitOnProgressBarId(60);\n\t\t}\n\t\t\n\t\twait.until(ExpectedConditions.visibilityOf(checker));\n\t\t\n\t\tif(!Generic.getAttribute(checker, \"resourceId\").contains(\"message\"))\n\t\t\treturn; // No Alert found\n\t\telse\n\t\t{\n\t\t\tLog.info(\"== Handling second SMS Alert ==\");\n\t\t\tokButton.click();\n\t\t\t\n\t\t\twait.until(ExpectedConditions.visibilityOf(checker));\n\t\t}\n\t\t\t\t\n\t\t\n\t\t\n\t}",
"public boolean isImportMessageDisplayed()\n {\n try\n {\n\n waitForElement(By.xpath(\".//span[contains(text(),'Website data import successful')]\"), SECONDS.convert(getDefaultWaitTime(), MILLISECONDS));\n WebElement importMessage = driver.findElement(By.xpath(\".//span[contains(text(),'Website data import successful')]\"));\n if (importMessage != null)\n return true;\n }\n catch (NoSuchElementException nse)\n {\n return false;\n }\n\n return false;\n }",
"public void verifyForgotLinkModalWindow() {\n modalWindow.assertState().enabled();\n modalWindow.assertContains().text(\"warningLeaving the PECOS Website\");\n }",
"public abstract boolean isScheduled();",
"public boolean generateSchedule(){\r\n return true;\r\n }",
"boolean hasReceiveTime();",
"public void welComeLink()\r\n\t{\r\n\t\tboolean welcome = welComeLinkElement.isDisplayed();\r\n\t\tAssert.assertTrue(welcome);\r\n\t\t\r\n\t}",
"public void scheduleDisbursementReport() {\n Log.logBanner(\"Scheduling Disbursement Report\");\n pageVerification();\n schedule();\n }",
"public void verifyAgentPageIsDisplayed() throws Exception {\n\n\t\twdriver.findElement(By.xpath(WebData.verifyAgentScreen)).isDisplayed();\n\t}",
"public void click_NoofAlert_msg() throws InterruptedException {\r\n\t\tWebElement alrtmsg = driver.findElementByName(\"You are about to lose your changes.Do you want to continue ?\");\r\n\r\n\t\tif (IsElementVisibleStatus(alrtmsg)) {\r\n\t\t\tWebElement alrtmsg_NoBtn = driver.findElementByName(\"No\");\r\n\t\t\tclickOn(alrtmsg_NoBtn);\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No Alert message displayed\");\r\n\t\t}\r\n\r\n\t}",
"@Override\n public boolean isNeedShowBOTPRule() {\n \treturn true;\n }",
"public static void displayMsg() {\n\t}",
"public void SLA_Report()\n {\n\t boolean SLApresent =SLAreport.size()>0;\n\t if(SLApresent)\n\t {\n\t\t // System.out.println(\"SLA report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"SLA report is not present\");\n\t }\n }",
"boolean hasExchangeTime();",
"public void verifyPage() {\n\t\twaitForPageToLoad();\n\t\tString title = driver.getTitle();\n\t\tSystem.out.println(title);\n\t\tAssert.assertEquals(title,\"News: India News, Latest Bollywood News, Sports News, Business & Political News, National & International News | Times of India\");\n\t}",
"protected abstract void displayStartMsg();",
"@Test\n public void checkIfAddMeetingIsRunning() {\n onView(withId(R.id.add_meeting_activity)).perform(click());\n onView(withId(R.id.meeting_color)).perform(click());\n onView(withId(R.id.meeting_room)).perform(click());\n onView(withText(\"Salle DEUX\")).perform(click());\n onView(withId(R.id.meeting_topic)).perform(typeText(\"Mareu_2\"));\n onView(withId(R.id.date_btn)).perform(click());\n onView(withId(R.id.meeting_date)).perform();\n onView(withText(\"OK\")).perform(click());\n onView(withId(R.id.start_time_btn)).perform(click());\n onView(withId(R.id.meeting_start_time)).perform();\n onView(withText(\"OK\")).perform(click());\n onView(withId(R.id.end_time_btn)).perform(click());\n onView(withId(R.id.meeting_end_time)).perform();\n onView(withText(\"OK\")).perform(click());\n onView(withId(R.id.meeting_guests)).perform(typeText(\"[email protected] ; [email protected]\"));\n onView(withId(R.id.meeting_add_button)).check(matches(isDisplayed()));\n }",
"private void checkStopped() {\n playPauseButton.check(matches(isCompletelyDisplayed()));\n resetButton.check(matches(isCompletelyDisplayed()));\n stopButton.check(matches(not(isDisplayed())));\n timeView.check(matches(withText(TIME_ZERO)));\n\n playPauseButton.check(matches(withCompoundDrawable(R.drawable.ic_play)));\n resetButton.check(matches(withCompoundDrawable(R.drawable.ic_pause)));\n\n checkReminder(true);\n\n // TODO: Check timeView's color state.\n }",
"public void Verify_Home_error_msg_displayed_on_Empty_Search()\r\n\t{\r\n\t\tString Runtime_text=Home_error_msg.getText();\r\n\t\tif(Runtime_text.contains(Exp_home_err_msg))\r\n\t\t\tSystem.out.println(\"As expected error msg displayed at webpage\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Expected home error message displayed at webpage\");\r\n\t}",
"@Then(\"^homepage is visible$\")\n\tpublic void homepage_is_visible() throws Throwable {\n\t\tString verify = driver.findElement(By.xpath(\"//marquee[@class='heading3']\")).getText();\n\t\tAssert.assertEquals(verify, \"Welcome To Customer's Page of Guru99 Bank\", \"Error in loading!\");\n\t}",
"public void verifierSaisie(){\n boolean ok = true;\n\n // On regarde si le client a ecrit quelque chose\n if(saisieMessage.getText().trim().equals(\"\"))\n ok = false;\n\n if(ok)\n btn.setEnabled(true); //activer le bouton\n else\n btn.setEnabled(false); //griser le bouton\n }",
"public void showWinMessage() {\n\n\t}",
"boolean hasMsg();",
"@Test(priority = 7)\n public void rightSectionIsDisplayedTest() {\n assertTrue(driver.findElement(By.name(\"log-sidebar\")).isDisplayed());\n }",
"@Then(\"^Display toll popup with correct toll name$\")\n\tpublic void display_toll_popup_with_correct_toll_name() throws Throwable {\n\t\tAssert.assertTrue(CommonStepDefinitions.homePage.validateLiveTolls(prop.getProperty(\"desktop.selected.toll\")));\n\t}",
"@Test(priority = 1)\n\tprotected void landingpageVerification() {\n\t\tAssert.assertEquals(spincoLandingPage.isLogoDisplayed(),true);\n\t\tspincoLandingPage.clickLoginRegister();\n\t}",
"public void checkAlert() {\n try {\n wait(1000);\n driver.switchTo().alert();\n driver.findElement(By.xpath(\"//*[@title='No, thanks']\")).click();\n } catch (Exception e) {\n // Do nothing\n }\n }"
] |
[
"0.6739473",
"0.6320749",
"0.59413356",
"0.5931698",
"0.58887917",
"0.58887917",
"0.5803646",
"0.5795352",
"0.5757062",
"0.57284844",
"0.56890994",
"0.56611073",
"0.5649288",
"0.55541337",
"0.5549694",
"0.5540505",
"0.5525656",
"0.55142426",
"0.54905355",
"0.54791147",
"0.54588825",
"0.5450952",
"0.5442682",
"0.5418964",
"0.538872",
"0.53849775",
"0.5372659",
"0.5370873",
"0.5312715",
"0.5312036",
"0.5299212",
"0.5274877",
"0.5274363",
"0.52683556",
"0.5258639",
"0.5254039",
"0.5251215",
"0.5242954",
"0.5233133",
"0.5220469",
"0.5211804",
"0.52110493",
"0.52074575",
"0.51966906",
"0.5188899",
"0.51877517",
"0.5176218",
"0.5172228",
"0.51663923",
"0.51613677",
"0.5153628",
"0.51514137",
"0.5147689",
"0.5147241",
"0.51408446",
"0.51401764",
"0.51365566",
"0.51265824",
"0.51222444",
"0.5116033",
"0.51086575",
"0.5096327",
"0.50960505",
"0.50952524",
"0.50927484",
"0.5091694",
"0.50895965",
"0.50793123",
"0.5078885",
"0.5078729",
"0.5076453",
"0.50562364",
"0.5035854",
"0.5035671",
"0.50354743",
"0.5035194",
"0.5031538",
"0.5028888",
"0.5027065",
"0.5024751",
"0.50242513",
"0.50161386",
"0.5007019",
"0.50024754",
"0.5001005",
"0.49947104",
"0.49945265",
"0.49871737",
"0.49859306",
"0.4982098",
"0.49757236",
"0.49750945",
"0.49707934",
"0.4969368",
"0.49661505",
"0.49632907",
"0.49605632",
"0.49580616",
"0.49580568",
"0.49555048"
] |
0.71298
|
0
|
Verify the color of Cool or heat label.
|
boolean labelColor(String mode);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected String comprobarColor(Colores color){\r\n if(getColor() == Colores.AZUL | getColor() == Colores.BLANCO | getColor() == Colores.GRIS | getColor() == Colores.NEGRO\r\n | getColor() == Colores.ROJO){\r\n return \"Color correcto\";\r\n }\r\n else{\r\n return \"Color erroneo\";\r\n }\r\n }",
"boolean isFalseColor();",
"void testColorChecker(Tester t) {\r\n initData();\r\n Cell topLeft = (Cell) this.game7.indexHelp(0, 0);\r\n Cell topRight = (Cell) this.game7.indexHelp(1, 0);\r\n Cell botLeft = (Cell) this.game7.indexHelp(0, 1);\r\n Cell botRight = (Cell) this.game7.indexHelp(1, 1);\r\n t.checkExpect(topLeft.flooded, true);\r\n t.checkExpect(topRight.flooded, false);\r\n t.checkExpect(botLeft.flooded, false);\r\n t.checkExpect(botRight.flooded, false);\r\n\r\n topRight.colorChecker(topLeft.color);\r\n t.checkExpect(topRight.flooded, true);\r\n t.checkExpect(botRight.flooded, true);\r\n t.checkExpect(botLeft.flooded, false);\r\n t.checkExpect(topLeft.flooded, true);\r\n }",
"public abstract void colorChecker(Color c);",
"Integer getTxtColor();",
"public boolean testColourcomponents(EIfcpixeltexture type) throws SdaiException;",
"private boolean colorIsTooltip(final Color c)\n {\n return c.getRed() > 200 && c.getGreen() > 200 && c.getBlue() < 50;\n }",
"private Color detectColor(String c){\n switch (c){\n case \"RED\": return Color.RED;\n case \"BLUE\": return Color.BLUE;\n case \"YELLOW\": return Color.YELLOW;\n case \"GREEN\": return Color.GREEN;\n case \"WHITE\": return Color.WHITE;\n case \"BLACK\": return Color.BLACK;\n case \"CYAN\": return Color.CYAN;\n case \"ORANGE\": return Color.ORANGE;\n case \"MAGENTA\": return Color.MAGENTA;\n case \"PINK\": return Color.PINK;\n default: return null;\n }\n }",
"public boolean checkColoring(int[] ccolor){\n // \tfor(int i = 0; i < ccolor.length; i++){\n //\t System.out.println(Arrays.toString(ccolor));\n \t//}\n for(int i = 0; i < ccolor.length; i++){\n for(int w = 0; w < ccolor.length; w++){\n \t//System.out.println(i + \",\" + w);\n if(hasEdge(i,w) && (ccolor[i] == ccolor[w])){\n \t//System.out.println(i + \",false\" + w);\n return false;\n }\n }\n }\n return true;\n }",
"void onCheck(Chess.Color inCheckColor);",
"String getColor();",
"boolean similarColorTo(Card c);",
"public Color color() {\n\t\tswitch (this) {\n\t\tcase FATAL: {\n\t\t\tColor c = UIManager.getColor(\"nb.errorForeground\"); // NOI18N\n\t\t\tif (c == null) {\n\t\t\t\tc = Color.RED.darker();\n\t\t\t}\n\t\t\treturn c;\n\t\t}\n\t\tcase WARNING:\n\t\t\treturn Color.BLUE.darker();\n\t\tcase INFO:\n\t\t\treturn UIManager.getColor(\"textText\");\n\t\tdefault:\n\t\t\tthrow new AssertionError();\n\t\t}\n\t}",
"public String getColorString();",
"private boolean checkColor(boolean walkingHere) {\n\t\tint x = getMouse().getPosition().x,\n\t\t\ty = getMouse().getPosition().y + 1,\n\t\t\ti = 0;\n\t\t\n\t\tdo {\n\t\t\tsleep(10);\n\t\t\tc = getColorPicker().colorAt(x, y);\n\t\t\tif (c.getRed() == 255 && c.getGreen() == 0 && c.getBlue() == 0) {\n\t\t\t\tdebug(\"Interact color check: \"+(walkingHere ? \"failure\" : \"success\")+\" (red)!\");\n\t\t\t\treturn walkingHere ? false : true;\n\t\t\t}\n\t\t\tif (c.getRed() == 255 && c.getGreen() == 255 && c.getBlue() == 0) {\n\t\t\t\twarning(\"Interact color check: \"+(!walkingHere ? \"failure\" : \"success\")+\" (yellow)!\");\n\t\t\t\treturn walkingHere ? true : false;\n\t\t\t}\n\t\t} while (i++ < 50);\n\t\t\n\t\t// Default to true, as no color we want was found!\n\t\twarning(\"Interact color check: defaulted\");\n\t\treturn true;\n\t}",
"public void testCOLOUR2() throws Exception {\n\t\tObject retval = execLexer(\"COLOUR\", 121, \"sable\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"COLOUR\", expecting, actual);\n\t}",
"public void modeColor(Graphics2D g2d) { g2d.setColor(RTColorManager.getColor(\"label\", \"default\")); }",
"@DISPID(1611006088) //= 0x60060088. The runtime will prefer the VTID if present\n @VTID(163)\n boolean trueColorMode();",
"public void colorText() {\r\n String theColor = textShape.getText();\r\n if (theColor.contains(\"blue\")) {\r\n textShape.setForegroundColor(Color.BLUE);\r\n }\r\n else if (theColor.contains(\"red\")) {\r\n textShape.setForegroundColor(Color.RED);\r\n }\r\n else {\r\n textShape.setForegroundColor(Color.BLACK);\r\n }\r\n }",
"private int checkGreenColorProduct() {\r\n if (product == null) {\r\n return -1;\r\n } else {\r\n if (!product.isSafeFood()) {\r\n return Color.RED;\r\n }\r\n if (userHalal && !product.isHalal() || userKashir && !product.isKashir() ||\r\n userVegetarian && !product.isVegetarian() || userVegan && !product.isVegan()) {\r\n return Color.RED;\r\n }\r\n if (userSoy && product.isSoy() || userFish && product.isFish() ||\r\n userEggs && product.isEggs() || userGluten && product.isGluten() ||\r\n userLactose && product.isLactose() || userNuts && product.isNuts()) {\r\n return Color.RED;\r\n }\r\n return Color.GREEN;\r\n }\r\n }",
"Color userColorChoose();",
"public synchronized void validateElementColor(WebDriver driver, String object, String colorText,\n\t\t\tString customMessage) throws Exception {\n\t\tWebElement elem = utils.findElementByLocator(driver, object, \"Product Name is not present\");\n\t\tString color = elem.getCssValue(\"color\");\n\t\tString hex = Color.fromString(color).asHex();\n\t\tif (colorText.equalsIgnoreCase(\"black\")) {\n\t\t\tAssert.assertTrue(hex.equalsIgnoreCase(\"#000000\"), \"Color text is not Black\");\n\t\t\tReporterLog.pass(\"Color text is Black for \" + customMessage);\n\t\t}\n\t}",
"private boolean isBlack(Color color){\r\n return color == Color.black;\r\n }",
"public boolean MatchColor(){\n boolean result = false;\n String gameData;\n gameData = DriverStation.getInstance().getGameSpecificMessage();\n if(gameData.length() > 0)\n {\n switch (gameData.charAt(0))\n {\n case 'B' :\n //Blue case code\n result = StopPanelWithColor(kRedTarget);\n break;\n case 'G' :\n //Green case code\n result = StopPanelWithColor(kYellowTarget);\n break; \n case 'R' :\n //Red case code\n result = StopPanelWithColor(kBlueTarget);\n break;\n case 'Y' :\n //Yellow case code\n result = StopPanelWithColor(kGreenTarget);\n break;\n default :\n //This is corrupt data\n break;\n }\n } else {\n //Code for no data received yet\n }\n return result;\n }",
"private boolean isTheColorInputCorrect(int red, int green, int blue, int alpha){\n if(red > 255 || green > 255 || blue > 255 || alpha > 255){\n System.out.println(\"Values should be equal or smaller then 255.\");\n return false;\n }else if(red < 0 || green < 0 || blue < 0 || alpha < 0){\n System.out.println(\"Values should be equal or bigger then 0.\");\n return false;\n }else{\n return true;\n }\n }",
"public static String colorCheck(String col){\n\t\tboolean check = false;\n\t\tfor(int i = 0; i<colorArray.length; i++) {\n\n\t\t\tif(col.equals(colorArray[i])) {\n\t\t\t\tcheck = true;\n\t\t\t}\n\t\t}\n\t\tif(check == true){\n\t\t\treturn col;\n\t\t} else {\n\t\t\treturn \"NO EFFIN' COLOR!\";\n\t\t}\n\n\n\t}",
"private boolean isRed(Color color){\r\n return color == Color.red;\r\n }",
"public static Color getColorSuccess() {\n return Color.white;\n }",
"@Test\n public void testVictoryBlue(){\n for (Cell c: modelTest.grid) {\n if (c.getY() == 5)\n c.setColor(Color.BLUE);\n }\n\n modelTest.researchVictory(0,1);\n Color winnerTest = modelTest.getWinner();\n\n Assert.assertEquals(winnerTest,Color.BLUE);\n }",
"public boolean isSetColor() {\n return this.color != null;\n }",
"@Test\n public void getColorTest() {\n assertTrue(red_piece.getColor() == Piece.Color.RED);\n assertTrue(white_piece.getColor() == Piece.Color.WHITE);\n }",
"public static Color getColor() { return lblColor.getBackground(); }",
"public String getLabelColorText(DotPalette pal) {\n return (this==BLACK || (pal==DotPalette.STANDARD && (this==RED || this==BLUE))) ? \"white\" : \"black\";\n }",
"@Test\n public void getColorReturnsTheRightColor() {\n assertEquals(0xaa00ff, Tetromino.T.getColor());\n }",
"public boolean isSetColor() {\r\n return this.color != null;\r\n }",
"public Color getLblColor() {\n return lblColor;\n }",
"public String seeColor(String str) {\r\n if (str.startsWith(\"red\")) {\r\n return \"red\";\r\n }\r\n if (str.startsWith(\"blue\")) {\r\n return \"blue\";\r\n }\r\n\r\n return \"\";\r\n }",
"boolean isAutoFeedbackColors(Action action);",
"public void testCOLOUR1() throws Exception {\n\t\tObject retval = execLexer(\"COLOUR\", 120, \"gules\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"COLOUR\", expecting, actual);\n\t}",
"private static <K> boolean colorOf(Node<K> p) {\n return (p == null ? BLACK : p.color);\n }",
"public boolean isGreen()\n {\n // TODO: replace this line with your code\n }",
"public static boolean validColor(String colorToComp) {\n for (Color color : Color.values()) {\n if (color.name().equals(colorToComp.toUpperCase()))\n return true;\n }\n return false;\n }",
"public void testCOLOUR7() throws Exception {\n\t\tObject retval = execLexer(\"COLOUR\", 126, \"blue\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"COLOUR\", expecting, actual);\n\t}",
"public char getColor();",
"abstract String getColor();",
"public boolean isRed()\n {\n // TODO: replace this line with your code\n }",
"@Test\n public void testVictoryRed(){\n for (Cell c: modelTest.grid) {\n if (c.getX() == 6)\n c.setColor(Color.RED);\n }\n\n modelTest.researchVictory(1,0);\n Color winnerTest = modelTest.getWinner();\n\n Assert.assertEquals(winnerTest,Color.RED);\n }",
"public void colorInfo() {\n\t\tSystem.out.println(\"Universal Color\");\n\t}",
"String getColour();",
"public void testCOLOUR3() throws Exception {\n\t\tObject retval = execLexer(\"COLOUR\", 122, \"vert\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"COLOUR\", expecting, actual);\n\t}",
"boolean getNoColor();",
"public void testCOLOUR5() throws Exception {\n\t\tObject retval = execLexer(\"COLOUR\", 124, \"purpure\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"COLOUR\", expecting, actual);\n\t}",
"public void cambia_color(String color) {\n\t\tif (color.equals(\"azul\")||color.equals(\"rojo\")) {\n\t\t\tthis.color=color;\n\t\t}else {\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null,\"color incorrecto\");\n\t\t\t\n\t\t}\n\t\t \n\t\t \n\t\t\n\t\t}",
"java.awt.Color getColor();",
"@Test\n public void testGetColor() {\n assertEquals(r1.getColor(), new Color(255, 0, 0));\n assertEquals(r2.getColor(), new Color(255, 255, 255));\n assertEquals(r3.getColor(), new Color(255, 255, 0));\n assertEquals(r4.getColor(), new Color(200, 150, 133));\n }",
"public void testColorSensing()\n {\n // SmartDashboard.putData(\"Color Wheel Spinning\", new ControlPanelSpinFour());\n }",
"public void testCOLOUR4() throws Exception {\n\t\tObject retval = execLexer(\"COLOUR\", 123, \"azure\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"COLOUR\", expecting, actual);\n\t}",
"public boolean getCorrectFuncion(){\n\t\tif(this.getBackground().equals(Color.RED))\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"public boolean checkColorValue(String valueCombo) {\r\n\t\tString Storedvalue = valueCombo.substring(0,1);\r\n\t\tint storeValueInt = Integer.parseInt(Storedvalue);\r\n\t\tint[] colorValues = getScreenColor(lifeGlobe.getPosition().get(9 - storeValueInt).get(1), \r\n\t\t\t\tlifeGlobe.getPosition().get(9 - storeValueInt).get(0));\r\n\t\tdouble dist = calcDist(colorValues);\r\n\r\n\t\t\r\n\t\t// I might wanna rework this because it dont work 100% of the times\r\n\t\tif(dist < 40){\r\n\t\t\tfc.playSound();\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\treturn false;\r\n\t\r\n\t\t/*\r\n\t\tif(colorValues[0] != 186.0 && colorValues[0] != 91.0){\r\n\t\t\tif(colorValues[1] != 149.0 && colorValues[1] != 70.0){\r\n\t\t\t\tif(colorValues[1] != 107.0 && colorValues[1] != 45.0){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\t}\r\n\t\t*/\r\n\t}",
"public String getLabelColor()\n {\n return myLabelColor;\n }",
"public void nxColor() {\n if (ckernel == 0) {\n //Nx kernel not found.\n currentVersion.setTextColor(COLOR_YELLOW);\n latestVersion.setTextColor(COLOR_YELLOW);\n } else {\n if (ckernel == lkernel) {\n //Latest NX kernel version is installed.\n currentVersion.setTextColor(COLOR_GREEN);\n latestVersion.setTextColor(COLOR_GREEN);\n } else {\n //Latest NX kernel version isn't installed.\n currentVersion.setTextColor(COLOR_RED);\n latestVersion.setTextColor(COLOR_RED);\n }\n }\n }",
"public boolean colorOf(RBNode<T> node) {\n return node != null? node.color : BLACK;\r\n }",
"private Boolean isRed(Node h){\n\t\tif(h.color == null)\n\t\t\treturn false;\n\t\treturn h.color==RED;\n\t}",
"public void testCOLOUR6() throws Exception {\n\t\tObject retval = execLexer(\"COLOUR\", 125, \"or\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"COLOUR\", expecting, actual);\n\t}",
"@Test\n public void testColorCodeExtraction() {\n String text = \"§aHello §b§oWhat's up?\";\n\n String colorResult = stringUtils.extractColorCodes(text).toString();\n String styleResult = stringUtils.extractStyleCodes(text).toString();\n\n Assert.assertEquals(\"[§a, §b]\", colorResult);\n Assert.assertEquals(\"[§o]\", styleResult);\n }",
"public int getColor();",
"public int getColor();",
"public boolean isColor() {\n\t\treturn !isFormat && this != RESET;\n\t}",
"void testRandColor(Tester t) {\r\n initData();\r\n t.checkExpect(this.game2.randColor(), Color.ORANGE);\r\n t.checkExpect(this.game3.randColor(), Color.RED);\r\n t.checkExpect(this.game5.randColor(), Color.PINK);\r\n }",
"public void _TextColor() {\n testProperty(\"TextColor\", new PropertyTester() {\n protected Object getNewValue(String prop, Object old) {\n return utils.isVoid(old) ? new Integer(123) : null ;\n }\n }) ;\n }",
"public boolean isYellow(Color c){\n\t\treturn ((c.getRed() >= ts.getYellow_r_low()) && (c.getRed() <= ts.getYellow_r_high()) && (c.getGreen() >= ts.getYellow_g_low()) && (c.getGreen() <= ts.getYellow_g_high()) && (c.getBlue() >= ts.getYellow_b_low()) && (c.getBlue() <= ts.getYellow_b_high()));\n\t}",
"@Then(\"^Pobranie koloru$\")\n public void Pobranie_koloru() throws Throwable {\n\n WebDriverWait wait = new WebDriverWait(driver, 15);\n WebElement c9 = wait.until(ExpectedConditions.elementToBeClickable(By.xpath(\"//*[@id=\\\"30373\\\"]/div/div/div/div/div/div/div/p[3]/a\")));\n\n String color = driver.findElement(By.xpath(\"/html/body/div[1]/div[3]/div/div[6]/div/div/div[1]/div/ul/li\")).getCssValue(\"color\");\n String[] hexValue = color.replace(\"rgba(\", \"\").replace(\")\", \"\").split(\",\");\n\n int hexValue1=Integer.parseInt(hexValue[0]);\n hexValue[1] = hexValue[1].trim();\n int hexValue2=Integer.parseInt(hexValue[1]);\n hexValue[2] = hexValue[2].trim();\n int hexValue3=Integer.parseInt(hexValue[2]);\n String kolorZeStrony = String.format(\"#%02x%02x%02x\", hexValue1, hexValue2, hexValue3);\n\n Assert.assertEquals(\"#333333\", kolorZeStrony);\n\n }",
"private static TextColor colorString(String color) {\n if (color.toLowerCase().trim().startsWith(\"#\")) {\n // pass this for now.\n }\n switch (color.toLowerCase().trim()) {\n case \"blue\":\n case \"&9\":\n return TextColors.BLUE;\n case \"dark_blue\":\n case \"dark blue\":\n case \"&1\":\n return TextColors.DARK_BLUE;\n case \"dark red\":\n case \"dark_red\":\n case \"&4\":\n return TextColors.DARK_RED;\n case \"red\":\n case \"&c\":\n return TextColors.RED;\n case \"reset\":\n case \"&r\":\n return TextColors.RESET;\n case \"gold\":\n case \"&6\":\n return TextColors.GOLD;\n case \"yellow\":\n case \"&e\":\n return TextColors.YELLOW;\n case \"dark_green\":\n case \"dark green\":\n case \"&2\":\n return TextColors.DARK_GREEN;\n case \"green\":\n case \"lime\":\n case \"&a\":\n return TextColors.GREEN;\n case \"aqua\":\n case \"&b\":\n return TextColors.AQUA;\n case \"dark_aqua\":\n case \"dark aqua\":\n case \"&3\":\n return TextColors.DARK_AQUA;\n case \"light_purple\":\n case \"light purple\":\n case \"pink\":\n case \"%d\":\n return TextColors.LIGHT_PURPLE;\n case \"dark_purple\":\n case \"dark purple\":\n case \"purple\":\n case \"magenta\":\n case \"&5\":\n return TextColors.DARK_PURPLE;\n case \"white\":\n case \"&f\":\n return TextColors.WHITE;\n case \"gray\":\n case \"grey\":\n case \"&7\":\n return TextColors.GRAY;\n case \"dark_grey\":\n case \"dark_gray\":\n case \"dark gray\":\n case \"dark grey\":\n case \"&8\":\n return TextColors.DARK_GRAY;\n case \"black\":\n case \"&0\":\n return TextColors.BLACK;\n default:\n return TextColors.NONE;\n }\n }",
"public boolean isRed() {\r\n\t\treturn getColor() == RED;\r\n\t}",
"private void colorPickerHander() {\n\t\tboolean validvalues = true;\n\t\tHBox n0000 = (HBox) uicontrols.getChildren().get(5);\n\t\tTextField t0000 = (TextField) n0000.getChildren().get(1);\n\t\tLabel l0000 = (Label) n0000.getChildren().get(3);\n\t\tString txt = t0000.getText();\n\t\tString[] nums = txt.split(\",\");\n\t\tif (nums.length != 4) {\n\t\t\tvalidvalues = false;\n\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\tGUIerrorout.showAndWait();\n\t\t}\n\t\tif (validvalues) {\n\t\t\tint[] colorvalues = new int[3];\n\t\t\tdouble alphavalue = 1.0;\n\t\t\ttry {\n\t\t\t\tfor(int x = 0; x < 3; x++) {\n\t\t\t\t\tcolorvalues[x] = Integer.parseInt(nums[x]);\n\t\t\t\t}\n\t\t\t\talphavalue = Double.parseDouble(nums[3]);\n\t\t\t} catch(Exception e) {\n\t\t\t\tvalidvalues = false;\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t\tif (alphavalue <= 1.0 && alphavalue >= 0.0 && colorvalues[0] >= 0 && colorvalues[0] < 256 && colorvalues[1] >= 0 && colorvalues[1] < 256 && colorvalues[2] >= 0 && colorvalues[2] < 256){\n\t\t\t\tif (validvalues) {\n\t\t\t\t\tl0000.setTextFill(Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue));\n\t\t\t\t\tusercolors[colorSetterId] = Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t}\n\t}",
"private void checkCorrectColor(String color) {\n List<String> colors = Arrays.asList(COLORS);\n if (!colors.contains(color)) {\n throw new IllegalArgumentException(\"Google Calendar Event color must be one of the specified\");\n }\n }",
"abstract public String getColor();",
"abstract public String getColor();",
"public boolean EvaluaColor(char Familia, char Opuesto) {\n if (Familia == Opuesto) {\n return false;\n } else if (Familia == 'C' && Opuesto != 'D') {\n return true;\n } else if (Familia == 'D' && Opuesto != 'C') {\n return true;\n } else if (Familia == 'P' && Opuesto != 'T') {\n return true;\n } else if (Familia == 'T' && Opuesto != 'P') {\n return true;\n } else {\n return false;\n }\n\n }",
"private String getColor(String tagName) {\n if (labelColor.containsKey(tagName)) {\n return labelColor.get(tagName);\n } else {\n Random random = new Random();\n // create a big random number - maximum is ffffff (hex) = 16777215 (dez)\n int nextInt = random.nextInt(256 * 256 * 256);\n // format it as hexadecimal string (with hashtag and leading zeros)\n String colorCode = String.format(\"#%06x\", nextInt);\n labelColor.put(tagName, colorCode);\n return labelColor.get(tagName);\n }\n }",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"boolean isAllowed(int rgb, float[] hsl);",
"private Color eventColor(final PlatformEvent event) {\n if (simpleColorsCheckbox.getState()) { // if checkbox checked\n return event.isConsensus() ? LIGHT_BLUE : LIGHT_GREEN;\n }\n if (!event.isWitness()) {\n return event.isConsensus() ? DARK_GRAY : LIGHT_GRAY;\n }\n if (!event.isFameDecided()) {\n return event.isConsensus() ? DARK_RED : LIGHT_RED;\n }\n if (event.isFamous()) {\n return event.isConsensus() ? DARK_GREEN : LIGHT_GREEN;\n }\n return event.isConsensus() ? DARK_BLUE : LIGHT_BLUE;\n }",
"private static String checkColor(String color) throws ParseException {\n if (COLOR.contains(color.toUpperCase()))\n return color.toUpperCase();\n else\n throw new ParseException(\"Colore \" + color + \" non ammesso\", color.length());\n }",
"public static void main(String[] args) {\n\t\tString x = \"rgb(40, 116, 240)\";\r\n\t\tString[] ar1 = {\"(\",\")\",\",\"};\r\n\t\tfor (int i = 0; i < ar1.length; i++) {\r\n\t\t\tx = x.replace(ar1[i], \" \");\t\t\r\n\t\t}\r\n\t\t\r\n\t\tString[] ans = x.split(\" \");\r\n\t\tint color = Integer.parseInt(ans[ans.length-1]);\r\n\t\tif(color>133 && color<250){\r\n\t\t\tSystem.out.println(\"The Text color is BLUE\");\r\n\t\t}\r\n\t\tSystem.out.println(color);\r\n\t}",
"public boolean isFullyExplored();",
"public Piece.COLOR checkColor (int x, int y){\n\t\treturn board[x][y].getColor();\n\t}",
"@Test\n public void test56() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n Color color0 = (Color)combinedRangeCategoryPlot0.getRangeGridlinePaint();\n }",
"public boolean getColor() {\r\n\t\treturn color;\r\n\t}",
"public void turnToCorrectColor() {\n\n String gameData = DriverStation.getInstance().getGameSpecificMessage();\n if (gameData.length() != 0) {\n Color colorNeeded;\n\n switch (gameData.charAt(0)) {\n case 'B':\n colorNeeded = blue;\n break;\n case 'G':\n colorNeeded = green;\n break;\n case 'R':\n colorNeeded = red;\n break;\n case 'Y':\n colorNeeded = yellow;\n break;\n default:\n colorNeeded = null;\n break;\n }\n\n boolean onColor = false;\n while (!onColor) {\n wheelTurner.set(0.4);\n ColorMatchResult result = colorMatcher.matchClosestColor(colorSensor.getColor());\n\n if (result == colorMatcher.matchClosestColor(colorNeeded)) {\n wheelTurner.stopMotor();\n onColor = true;\n }\n System.out.print(colorSensor.getRed() + \" \" + colorSensor.getBlue() + \" \" + colorSensor.getGreen());\n }\n\n }\n }",
"public void chooseColor() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"private boolean isRed(Point pos){\r\n Cells aux = model.getValueAt(pos);\r\n return (aux == Cells.RED || aux == Cells.RED_QUEEN);\r\n }",
"@Test\n public void isRedTest() {\n assertTrue(red_piece.isRed());\n assertTrue(!white_piece.isRed());\n }",
"public void _TextLineColor() {\n log.println(\"Testing with custom Property tester\") ;\n testProperty(\"TextLineColor\", ColorTester) ;\n }",
"public String getColor() { \n return color; \n }",
"public boolean getColor(TreeNode node){\n //null node is BLACK because we cannot have a dangling (incomplete) 2-node (RED)\n if (node == null) return BLACK;\n return node.color;\n }"
] |
[
"0.65392476",
"0.6534855",
"0.65297854",
"0.6527398",
"0.640316",
"0.63842267",
"0.6364692",
"0.6205806",
"0.61757445",
"0.61511415",
"0.613338",
"0.60215896",
"0.59971917",
"0.5975157",
"0.59714717",
"0.59423906",
"0.5929573",
"0.5918954",
"0.59126997",
"0.5910618",
"0.5902743",
"0.5893191",
"0.58835894",
"0.5881855",
"0.5877134",
"0.58738095",
"0.5866535",
"0.58630836",
"0.58575666",
"0.5856085",
"0.58488226",
"0.58438987",
"0.58302945",
"0.58173215",
"0.5815409",
"0.5813948",
"0.5811955",
"0.5792257",
"0.5788163",
"0.57855844",
"0.5780766",
"0.5768301",
"0.5756205",
"0.5754525",
"0.5745656",
"0.57279",
"0.5707177",
"0.56961626",
"0.56939405",
"0.5691882",
"0.5690612",
"0.5690275",
"0.5672815",
"0.56504506",
"0.56484187",
"0.56305355",
"0.5628681",
"0.5623781",
"0.5617991",
"0.5611989",
"0.561079",
"0.5605774",
"0.5599636",
"0.55906034",
"0.5582429",
"0.5577555",
"0.5577555",
"0.55562264",
"0.5550926",
"0.55480546",
"0.55450714",
"0.5541669",
"0.55360925",
"0.55342937",
"0.55302584",
"0.55253345",
"0.5523148",
"0.5523148",
"0.55222005",
"0.5520167",
"0.5519529",
"0.5519529",
"0.5519529",
"0.5519529",
"0.5519529",
"0.55185694",
"0.5516315",
"0.55110013",
"0.5509262",
"0.5502339",
"0.54989415",
"0.5498292",
"0.5497447",
"0.54772925",
"0.5473522",
"0.54709685",
"0.5460261",
"0.54557204",
"0.54507434",
"0.5449588"
] |
0.7235142
|
0
|
verify color of separator line in cool or heat value.
|
boolean separatorLine(String mode);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void lineColor() {\n\n\t}",
"public Color getLineColor();",
"public int getLineColor() { return mLineColor; }",
"public Color getLineColor()\n {\n return lineacolore;\n }",
"@Test\n public void test56() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n Color color0 = (Color)combinedRangeCategoryPlot0.getRangeGridlinePaint();\n }",
"public String getLineColor()\n {\n return lineColor;\n }",
"public int getLineColor() {\r\n return LineColor;\r\n }",
"public void _TextLineColor() {\n log.println(\"Testing with custom Property tester\") ;\n testProperty(\"TextLineColor\", ColorTester) ;\n }",
"@ColorInt\n public int getLineColorAsInt() {\n PropertyValue<String> value = getLineColor();\n if (value.isValue()) {\n return rgbaToColor(value.getValue());\n } else {\n throw new RuntimeException(\"line-color was set as a Function\");\n }\n }",
"public String getLine() {\n \treturn this.lineColor;\n }",
"public Color getLineColor() {\n return lineColor;\n }",
"@Override\n public GlassColor giveLineColor(int y) {\n return null;\n }",
"public RecodedColor getLineColor(){\n return ps == null ? null :(RecodedColor) ps.getFillLegend().getFillColorLegend();\n }",
"public Paint getTransportLineColor()\r\n {\r\n return line_color;\r\n }",
"private boolean isBlack(Color color){\r\n return color == Color.black;\r\n }",
"private boolean isRed(Point pos){\r\n Cells aux = model.getValueAt(pos);\r\n return (aux == Cells.RED || aux == Cells.RED_QUEEN);\r\n }",
"protected String comprobarColor(Colores color){\r\n if(getColor() == Colores.AZUL | getColor() == Colores.BLANCO | getColor() == Colores.GRIS | getColor() == Colores.NEGRO\r\n | getColor() == Colores.ROJO){\r\n return \"Color correcto\";\r\n }\r\n else{\r\n return \"Color erroneo\";\r\n }\r\n }",
"public int getNowLineColor() {\n return config.nowLineColor;\n }",
"boolean isFalseColor();",
"@SuppressWarnings(\"unchecked\")\n public PropertyValue<String> getLineColor() {\n return (PropertyValue<String>) new PropertyValue(nativeGetLineColor());\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousTypeOfLineColor() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomIndividualGraphRequestModel();\n\t requestModel.setTypeOfLineColor(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"public int getNowLineDotColor() {\n return config.nowLineDotColor;\n }",
"@Override\n public Color getColor() {\n return Utils.Pion.BLANC.getCouleur();\n }",
"public boolean isLinePainting ()\r\n {\r\n return constants.linePainting.getValue();\r\n }",
"public boolean isLineClear() {\r\n return lineActivity.haveAverage() && (lineActivity.getAverage() < 0.5);\r\n }",
"IOverlayStyle borderColor(int color);",
"private Boolean isRed(Node h){\n\t\tif(h.color == null)\n\t\t\treturn false;\n\t\treturn h.color==RED;\n\t}",
"protected void whatColorOfArrows()\n\t{\n\t}",
"public boolean checkColoring(int[] ccolor){\n // \tfor(int i = 0; i < ccolor.length; i++){\n //\t System.out.println(Arrays.toString(ccolor));\n \t//}\n for(int i = 0; i < ccolor.length; i++){\n for(int w = 0; w < ccolor.length; w++){\n \t//System.out.println(i + \",\" + w);\n if(hasEdge(i,w) && (ccolor[i] == ccolor[w])){\n \t//System.out.println(i + \",false\" + w);\n return false;\n }\n }\n }\n return true;\n }",
"public boolean isSetColor() {\n return this.color != null;\n }",
"private static void checkLine(int pos, int color) {\n int ppos = pos;\n while ((pos - 1) % ColorFrames.BOARD_DIM > 0 && pos > 1)\n --pos;\n\n check(pos, ppos, 1, color);\n }",
"public Color getBorderColor();",
"private boolean isBlack(Point pos){\r\n Cells aux = model.getValueAt(pos);\r\n return (aux == Cells.BLACK || aux == Cells.BLACK_QUEEN);\r\n }",
"public abstract void colorChecker(Color c);",
"private void setRedBorder(Shape decoratedShape) {\n\t\tSystem.out.println(\"Border Color: Red\");\r\n\t}",
"public boolean isDark() {\n return (col + row) % 2 == 0;\n }",
"public RMColor getStrokeColor() { return getStroke()==null? RMColor.black : getStroke().getColor(); }",
"public boolean isSetColor() {\r\n return this.color != null;\r\n }",
"public boolean isColor() {\n\t\treturn !isFormat && this != RESET;\n\t}",
"private boolean isRed(Color color){\r\n return color == Color.red;\r\n }",
"public boolean isRed()\n {\n // TODO: replace this line with your code\n }",
"public void testCOLOUR2() throws Exception {\n\t\tObject retval = execLexer(\"COLOUR\", 121, \"sable\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"COLOUR\", expecting, actual);\n\t}",
"public boolean isDashedHighlightLineEnabled() { return !(this.mHighlightDashPathEffect == null); }",
"private boolean is_valid(int x, int y, int proposed_color) {\n\t\tfor (int x1 = 1; x1 <= x; x1++) {\n\t\t\tif (color[x1 - 1][y - 1] == proposed_color)\n\t\t\t\treturn false;\n\t\t}\n\t\tfor (int y1 = 1; y1 <= y; y1++) {\n\t\t\tif (color[x - 1][y1 - 1] == proposed_color)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isRed(Color c, int GB){\n\t\treturn ( (c.getRed() > ts.getBall_r()) && (c.getBlue() <= ts.getBall_b()) && (c.getGreen() <= ts.getBall_g()) && GB < 60 );\n\t}",
"void testColorChecker(Tester t) {\r\n initData();\r\n Cell topLeft = (Cell) this.game7.indexHelp(0, 0);\r\n Cell topRight = (Cell) this.game7.indexHelp(1, 0);\r\n Cell botLeft = (Cell) this.game7.indexHelp(0, 1);\r\n Cell botRight = (Cell) this.game7.indexHelp(1, 1);\r\n t.checkExpect(topLeft.flooded, true);\r\n t.checkExpect(topRight.flooded, false);\r\n t.checkExpect(botLeft.flooded, false);\r\n t.checkExpect(botRight.flooded, false);\r\n\r\n topRight.colorChecker(topLeft.color);\r\n t.checkExpect(topRight.flooded, true);\r\n t.checkExpect(botRight.flooded, true);\r\n t.checkExpect(botLeft.flooded, false);\r\n t.checkExpect(topLeft.flooded, true);\r\n }",
"@Test\n public void testGetColor() {\n assertEquals(r1.getColor(), new Color(255, 0, 0));\n assertEquals(r2.getColor(), new Color(255, 255, 255));\n assertEquals(r3.getColor(), new Color(255, 255, 0));\n assertEquals(r4.getColor(), new Color(200, 150, 133));\n }",
"public boolean isRed() {\r\n\t\treturn getColor() == RED;\r\n\t}",
"@Override\n public boolean getSavingsArrowColor() {\n\n setLogString(\"Verify if savings arrow has css value : \" + mobileConfig.get(SAVINGS_COLOR),\n true, CustomLogLevel.HIGH);\n final Object val = executeScriptByClassName(BACKWARD_ICON, \"color\", getDriver());\n setLogString(\"Savings arrow has css value : \" + val, true, CustomLogLevel.MEDIUM);\n return val.toString().contains(mobileConfig.get(SAVINGS_COLOR));\n }",
"protected static boolean isSeparator(int c) {\n return (c == -1 || SEPARATORS.indexOf(c) != -1);\n }",
"public static int[] lineColor(int anz, int pos){\n anz++;\n pos++;\n int[] res = new int[3];\n int max = 510;\n int intervall = max/anz;\n int x = pos*intervall;\n if(x < 255){\n res[0] = 255;\n res[1] = x;\n } else {\n x = -x + 510;\n res[0] = x;\n res[1] = 255;\n }\n return res;\n }",
"boolean isAllowed(int rgb, float[] hsl);",
"public boolean getColor(TreeNode node){\n //null node is BLACK because we cannot have a dangling (incomplete) 2-node (RED)\n if (node == null) return BLACK;\n return node.color;\n }",
"protected abstract void drawBorderLine(\n // CSOK: ParameterNumber\n final float x1, final float y1, final float x2, final float y2,\n final boolean horz, final boolean startOrBefore, final int style,\n final Color col);",
"public RMColor getColor() { return getFill()==null? RMColor.black : getFill().getColor(); }",
"public boolean isYellow(Color c){\n\t\treturn ((c.getRed() >= ts.getYellow_r_low()) && (c.getRed() <= ts.getYellow_r_high()) && (c.getGreen() >= ts.getYellow_g_low()) && (c.getGreen() <= ts.getYellow_g_high()) && (c.getBlue() >= ts.getYellow_b_low()) && (c.getBlue() <= ts.getYellow_b_high()));\n\t}",
"private boolean m(){\r\n int m = countColors - maxSat;\r\n if (m <= TH){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }",
"@Then(\"^Pobranie koloru$\")\n public void Pobranie_koloru() throws Throwable {\n\n WebDriverWait wait = new WebDriverWait(driver, 15);\n WebElement c9 = wait.until(ExpectedConditions.elementToBeClickable(By.xpath(\"//*[@id=\\\"30373\\\"]/div/div/div/div/div/div/div/p[3]/a\")));\n\n String color = driver.findElement(By.xpath(\"/html/body/div[1]/div[3]/div/div[6]/div/div/div[1]/div/ul/li\")).getCssValue(\"color\");\n String[] hexValue = color.replace(\"rgba(\", \"\").replace(\")\", \"\").split(\",\");\n\n int hexValue1=Integer.parseInt(hexValue[0]);\n hexValue[1] = hexValue[1].trim();\n int hexValue2=Integer.parseInt(hexValue[1]);\n hexValue[2] = hexValue[2].trim();\n int hexValue3=Integer.parseInt(hexValue[2]);\n String kolorZeStrony = String.format(\"#%02x%02x%02x\", hexValue1, hexValue2, hexValue3);\n\n Assert.assertEquals(\"#333333\", kolorZeStrony);\n\n }",
"private boolean checkLines(){\n\n for (int[] line : TwoPlayersActivity.lines) {\n\n if (field.get(line[0]).equals(field.get(line[1])) &&\n field.get(line[0]).equals(field.get(line[2])) &&\n !field.get(line[0]).getValue().equals(Cell.Value.NONE)){\n for (int index: line) {\n imageList.get(index).setBackgroundColor(Color\n .parseColor(TwoPlayersActivity.CELL_WIN_COLOR));\n }\n return true;\n }\n }\n return false;\n }",
"@Override\n public boolean getSavingsHeaderColor() {\n\n setLogString(\"Verify if savings header has css value : \" + mobileConfig.get(SAVINGS_COLOR),\n true, CustomLogLevel.HIGH);\n final Object val = executeScriptByClassName(SAVINGS_HEADER, \"background-color\", getDriver());\n\n setLogString(\"Savings header has css value : \" + val, true, CustomLogLevel.MEDIUM);\n return val.toString().contains(mobileConfig.get(SAVINGS_COLOR));\n }",
"public String getLineEndingStyle() {\n/* 412 */ return getCOSObject().getNameAsString(COSName.LE, \"None\");\n/* */ }",
"public boolean isSetPenClr()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(PENCLR$12) != 0;\n }\n }",
"public void setLineColor(Color c) {\n lineColor = c;\n }",
"String getColor();",
"public void testCOLOUR4() throws Exception {\n\t\tObject retval = execLexer(\"COLOUR\", 123, \"azure\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"COLOUR\", expecting, actual);\n\t}",
"public boolean isFullyExplored();",
"public native void setBorderColor(PixelPacket color) throws MagickException;",
"boolean getNoColor();",
"@Test(expected = IllegalArgumentException.class)\n public void testErroneousSubclassOfLineColor() throws IllegalArgumentException {\n GraphRequestModel requestModel = createCustomClassGraphRequestModel();\n requestModel.setSubclassOfLineColor(SPACE);\n GraphRequestValidator.validateRequest(requestModel);\n }",
"public void testCOLOUR6() throws Exception {\n\t\tObject retval = execLexer(\"COLOUR\", 125, \"or\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"COLOUR\", expecting, actual);\n\t}",
"public Piece.COLOR checkColor (int x, int y){\n\t\treturn board[x][y].getColor();\n\t}",
"protected boolean isSeparator(char c) {\n return c == SEPARATOR;\n }",
"String getTextStrokeColorAsString();",
"private boolean colorIsTooltip(final Color c)\n {\n return c.getRed() > 200 && c.getGreen() > 200 && c.getBlue() < 50;\n }",
"public int getDrawingsColor(){\n return mPaintLine.getColor();\n }",
"private static <K> boolean colorOf(Node<K> p) {\n return (p == null ? BLACK : p.color);\n }",
"@Test\n public void testLineGrey() {\n System.out.println(\"lineGrey\");\n ImageFilter instance = null;\n BufferedImage expResult = null;\n BufferedImage result = instance.lineGrey();\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 }",
"@Override\n public boolean getTotalSavingsColor() {\n\n setLogString(\"Verify if total savings has css value : \" + mobileConfig.get(SAVINGS_COLOR),\n true, CustomLogLevel.HIGH);\n final Object val = executeScriptByClassName(SAVINGS_DOLLARS, \"color\", getDriver());\n setLogString(\"Total Savings has css value : \" + val, true, CustomLogLevel.MEDIUM);\n return val.toString().contains(mobileConfig.get(SAVINGS_COLOR));\n }",
"@Test\n public void getColorReturnsTheRightColor() {\n assertEquals(0xaa00ff, Tetromino.T.getColor());\n }",
"protected int verify(Node<T> u) {\n\t\tif (u == nil)\n\t\t\treturn u.colour;\n\t\tif (u.colour < red || u.colour > black)\n\t\t\tthrow new AssertionError(\"Invalid color: \" + u.colour);\n\t\tif (u.colour == red)\n\t\t\tif (u.left.colour == red || u.right.colour == red)\n\t\t\t\tthrow new AssertionError(\"red-red edge found\");\n\t\tif (u.right.colour == red && u.left.colour != red)\n\t\t\tthrow new AssertionError(\"non-left-leaning node found\");\n\t\tint dl = verify(u.left);\n\t\tint dr = verify(u.right);\n\t\tif (dl != dr)\n\t\t\tthrow new AssertionError(\"black-height property violated\");\n\t\treturn dl + u.colour;\n\t}",
"@Test\n public void getColorTest() {\n assertTrue(red_piece.getColor() == Piece.Color.RED);\n assertTrue(white_piece.getColor() == Piece.Color.WHITE);\n }",
"private Color getColor(int entryNum) {\n\t\tColor lineColor;\n\t\tswitch (entryNum % 4) {\n\t\t\tcase 0: lineColor = Color.CYAN; break;\n\t\t\tcase 1: lineColor = Color.BLUE; break;\n\t\t\tcase 2: lineColor = Color.MAGENTA; break;\n\t\t\tcase 3: lineColor = Color.GREEN; break;\n\t\t\tdefault: lineColor = Color.RED; break;\n\t\t}\n\t\treturn lineColor;\n\t}",
"private void colorBricks(GRect block,int k) {\n\n\t\tif (k < 2) block.setFillColor(Color.RED);\n\t\telse if (k >= 2 && k < 4) block.setFillColor(Color.ORANGE);\n\t\telse if (k >= 4 && k < 6) block.setFillColor(Color.YELLOW);\n\t\telse if (k >= 6 && k < 8) block.setFillColor(Color.GREEN);\n\t\telse if (k >= 8 && k < 10) block.setFillColor(Color.CYAN);\n\t}",
"public int getColor();",
"public int getColor();",
"public void setTransportLineColor(Paint p)\r\n {\r\n line_color = p;\r\n }",
"public boolean testColourcomponents(EIfcpixeltexture type) throws SdaiException;",
"public boolean colorOf(RBNode<T> node) {\n return node != null? node.color : BLACK;\r\n }",
"private Color[] getMiddleArcColors()\n {\n return getColorsForState(this.iconPartStates[1]);\n }",
"@Test\n public void isRedTest() {\n assertTrue(red_piece.isRed());\n assertTrue(!white_piece.isRed());\n }",
"public boolean isBlack() {\r\n\t\treturn !isRed();\r\n\t}",
"public void _BorderColor() {\n testProperty(\"BorderColor\", new PropertyTester() {\n protected Object getNewValue(String p, Object old) {\n return utils.isVoid(old) ? new Integer(1234) : null ;\n }\n }) ;\n }",
"public void setLineColor(Color nuovo_lineacolore)\n {\n \tboolean bo = informaPreUpdate();\n lineacolore = new Color(nuovo_lineacolore.getRed(),\n \t\tnuovo_lineacolore.getGreen(),\n \t\tnuovo_lineacolore.getBlue(),\n \t\tnuovo_lineacolore.getAlpha()) ;\n\t\tinformaPostUpdate(bo);\n }",
"@Override\n\t\tprotected void paintComponent(Graphics g) {\n\t\t\tsuper.paintComponent(g);\n\t\t\tGraphics2D ga = (Graphics2D) g; \n\t\t\tif (currentColor == color) {\n\t\t\t\tShape check = factory.getShape(ShapeFactory.CHECK);\n\t\t\t\tcheck.setPosition(new Point2D.Double(point.getX() + getPreferredSize().width/2 - 7, point.getY()+ 25));\n\t\t\t\tga.setColor(currentColor);\n\t\t\t\tcheck.draw(ga);\n\t\t\t}\n\t\t}",
"boolean hasDynamicLineup();",
"@Override\n public void periodic() {\n\n if (lastcolor != sColor())\n {\n lastcolor = sColor();\n colorcount++;\n }\n\n DriverStation.reportError(sColor() + /*\",\" + sRGB() +*/ \", \" + sIsClose() + \",\" + String.valueOf(colorcount), false);\n\n\n \n }",
"@JSProperty(\"gridLineColor\")\n @Nullable\n String getGridLineColor();",
"protected boolean getColorAt(float[] hsbvalues, int x, int y, boolean paint) {\r\n if (hsbvalues == null) return false;\r\n\r\n // The tangent function expects the point (0,0) to be in the center\r\n // of the circle, not the top left. Subtract off the radius from\r\n // the x and y coordinates to translate the origin.\r\n x = radius - x;\r\n y = y - radius;\r\n\r\n // Find the radius at this point\r\n int r = (int) Math.round(Math.sqrt(x * x + y * y));\r\n // Find the angle\r\n double angle = Math.PI - Math.atan2(x, y);\r\n // Make sure angle value is valid. Workaround for stupid virtual\r\n // machines that don't know how to do math (MSIE).\r\n if (angle < 0)\r\n angle = 0;\r\n if (angle > 2.0 * Math.PI)\r\n angle = 2.0 * Math.PI;\r\n // Translate angle value into a number between 0 and 1 to get\r\n // the hue value\r\n float hue = (float) (angle / (2 * Math.PI));\r\n\r\n if (paint && r == radius) {\r\n // If returning paint colors, also return the color of\r\n // the border around the wheel\r\n hsbvalues[0] = hue;\r\n if (angle > 3.0 * Math.PI / 4.0 && angle < 7.0 * Math.PI / 4.0) {\r\n hsbvalues[1] = 0.2f;\r\n hsbvalues[2] = 1.0f;\r\n } else {\r\n hsbvalues[1] = 1.0f;\r\n hsbvalues[2] = 0.8f;\r\n }\r\n return true;\r\n } else if (r < radius) {\r\n float sat = (float) r / (float) (radius - 1);\r\n hsbvalues[0] = hue;\r\n hsbvalues[1] = sat;\r\n if (paint)\r\n hsbvalues[2] = 1.0f;\r\n return true;\r\n }\r\n return false;\r\n }",
"public Paint getTransportLineSelectedColor()\r\n {\r\n return selected_line_color;\r\n }",
"public int getHslColor()\n {\n return _hslColor;\n }",
"@Override\n public void setLineColor(int linen, Color color) {\n assemblyView.setLineColor(linen, color);\n }"
] |
[
"0.6597793",
"0.6365529",
"0.62438774",
"0.6199097",
"0.6030659",
"0.5963742",
"0.5863378",
"0.5792608",
"0.5788007",
"0.57472086",
"0.5744765",
"0.5661125",
"0.5626351",
"0.55627286",
"0.55141383",
"0.5511253",
"0.54724467",
"0.5444924",
"0.54258865",
"0.5424737",
"0.5413675",
"0.5413132",
"0.54084647",
"0.5405086",
"0.54012764",
"0.53896403",
"0.53826696",
"0.53764915",
"0.5359442",
"0.5357125",
"0.534603",
"0.5342491",
"0.53376186",
"0.53375894",
"0.5336195",
"0.5329682",
"0.5321789",
"0.53164786",
"0.5298367",
"0.5291979",
"0.52877533",
"0.52698076",
"0.5266279",
"0.5245546",
"0.5237782",
"0.5220895",
"0.5215827",
"0.5194666",
"0.51921844",
"0.5191024",
"0.5189824",
"0.51819605",
"0.51812255",
"0.5178361",
"0.51724356",
"0.51723146",
"0.5168755",
"0.51674515",
"0.51564217",
"0.51546425",
"0.51418424",
"0.5139045",
"0.5129062",
"0.51278305",
"0.5127695",
"0.5127512",
"0.5127091",
"0.5124127",
"0.5111551",
"0.51071185",
"0.5106674",
"0.51047826",
"0.5099722",
"0.50854546",
"0.5076076",
"0.50688916",
"0.5067773",
"0.5057785",
"0.5055709",
"0.5055565",
"0.50545675",
"0.5054234",
"0.504645",
"0.5046361",
"0.5046361",
"0.5046044",
"0.50344694",
"0.5017263",
"0.5015847",
"0.50120664",
"0.50058436",
"0.50043225",
"0.5001204",
"0.4994457",
"0.49893415",
"0.49824095",
"0.4978609",
"0.49770796",
"0.4974393",
"0.49700156",
"0.4961365"
] |
0.0
|
-1
|
Verify modes were enable in thermostat control popup.
|
void verifyModesEnable(String mode);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean hasMode();",
"private void openModeOptions2X() {\n if (mDevice.hasObject(By.res(UI_PACKAGE_NAME, \"mode_options_buttons\"))) {\n return;\n }\n // Before openning the mode option, close the menu if the menu is open\n closeMenu();\n waitForVideoShutterEnabled();\n // Open the mode options to check HDR mode\n UiObject2 modeoptions = getModeOptionsMenuButton();\n if (modeoptions != null) {\n modeoptions.click();\n // If succeeded, the hdr toggle button should be visible.\n mDevice.wait(Until.hasObject(By.res(UI_PACKAGE_NAME, \"hdr_plus_toggle_button\")),\n DIALOG_TRANSITION_WAIT);\n } else {\n throw new UnknownUiException(\n \"Fail to find modeoption button when trying to check HDR mode\");\n }\n }",
"private void automaticModeChecks(){\n // turn on lights if underground\n if (this.isUnderground()){ this.selectedTrain.setLights(1);}\n // set heat\n if (this.selectedTrain.getTemp() <= 40.0){this.selectedTrain.setThermostat(60.0);}\n else if (this.selectedTrain.getTemp() >= 80){ this.selectedTrain.setThermostat(50.0);}\n }",
"public void verifyTabInViewMode() {\n\t\tmoveToElement(addIconDisabled);\n\t\tString value=addIconDisabled.getAttribute(\"disabled\");\n\t\tif(value.contains(\"disabled\")) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t}",
"public int switch_modes() {\r\n //when angle modes is selected power field is disabled\r\n if(angle_radio.isArmed()){\r\n power_combo.setDisable(true);\r\n power_combo.setOpacity(.5);\r\n }\r\n //Power Field is necessary for Powers mode\r\n else if(power_radio.isArmed()){\r\n power_combo.setDisable(false);\r\n power_combo.setOpacity(1);\r\n }\r\n //when Angle sum mode is selected power field is disabled\r\n else if(sum_radio.isArmed()){\r\n power_combo.setDisable(true);\r\n power_combo.setOpacity(.5);\r\n }\r\n //Returning values to switch whole Program's mode based on Radio buttons\r\n if(angle_radio.isSelected()) return -1;\r\n else if(power_radio.isSelected()) return -2;\r\n else if(sum_radio.isSelected()) return -3;\r\n return 0;\r\n }",
"boolean isSetPowerBox();",
"public void verifySystemStatusTabIsDisplayed() {\n \tAssert.assertTrue(systemStatus.isDisplayed());\n }",
"private boolean ModeCheck() {\n\t\treturn prefs.getBoolean(\"appmode\", false);\n\n\t}",
"private void setModeUI(){\n\n if (this.inManualMode == true){ this.enableRadioButtons(); } // manual mode\n else if (this.inManualMode == false){ this.disableRadioButtons(); } // automatic mode\n }",
"private boolean changeModes() {\n\n\t\tif (fieldsChanged) {\n\t\t\tMessageBox mbWarning = new MessageBox(getShell(),\n\t\t\t\t\tSWT.ICON_WARNING | SWT.YES | SWT.NO | SWT.CANCEL);\n\t\t\tmbWarning.setText(\"iDART: Save Changes?\");\n\t\t\tmbWarning\n\t\t\t.setMessage(\"You have not saved your changes. Would you like to save your changes?\");\n\t\t\tswitch( mbWarning.open()) {\n\n\t\t\t// proceed but save changes\n\t\t\tcase SWT.YES:\n\t\t\t\tcmdSaveWidgetSelected();\n\t\t\t\treturn true;\n\t\t\t\t// proceed without saving changes\n\t\t\tcase SWT.NO:\n\t\t\t\treturn true;\n\t\t\t\t// remain in current mode\n\t\t\tcase SWT.CANCEL:\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// proceed to next mode\n\t\treturn true;\n\t}",
"public void cliniciansTabAreInViewMode() {\n\n\tString icon=addIconClinicians.getAttribute(\"data-ng-click\");\n\tif(icon.contains(\"isDisabled\")) {\n\t\tAssert.assertTrue(true);\n\t}\n\t\t\n\t}",
"public void checkActivation() {\n\t\tplayer.getPackets().sendConfigByFile(10907, 1);\n\t\tplayer.getPackets().sendConfigByFile(10902, 1);\n\t\tfor (int x = 0; x <= 12; x++) {\n\t\t\tif (player.getActivatedLodestones()[x] == true) {\n\t\t\t\tplayer.getPackets().sendConfigByFile(CONFIG_IDS[x], 1);\n\t\t\t}\n\t\t}\n\t\tif (player.getActivatedLodestones()[13] == true) {\n\t\t\tplayer.getPackets().sendConfigByFile(CONFIG_IDS[13], 190);\n\t\t}\n\t\tif (player.getActivatedLodestones()[14] == true) {\n\t\t\tplayer.getPackets().sendConfigByFile(CONFIG_IDS[14], 15);\n\t\t}\n\t}",
"public void verifyNewTabDorMessageBoardsOpened() {\n Assert.assertTrue(boardButton.isDisplayed());\t\t\n\t}",
"@Test\n void checkButtons() throws FileNotFoundException {\n assertEquals(defaultMode.getText(), \"Candy Mode\");\n assertEquals(darkMode.getText(), \"Dark Mode\");\n assertEquals(rainbowMode.getText(), \"Rainbow Mode\");\n assertEquals(greenMode.getText(), \"Green Mode\");\n assertEquals(waveMode.getText(), \"Wave Mode\");\n }",
"boolean hasGlobalSettingsPanel();",
"private void checkEnabled() {\n }",
"public void checkIsEnabled() {\r\n\t\tMcsElement.getElementByPartAttributeValueAndParentElement(driver, \"div\", \"@class\", PURCHASING_PRODUCT_WINDOW_CLASS, \"input\", \"@name\",\r\n\t\t\t\t\"isEnabled\", true, true).click();\r\n\t\tReporter.log(\"Check IsEnabled\", true);\r\n\t}",
"private void actionSampleDetectionModeChanged ()\r\n\t{\r\n\t\tif (mainFormLink.getComponentPanelLeft().getComponentRadioModeAuto().isSelected())\r\n\t\t{\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAdd().setEnabled(false);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAddControl().setEnabled(false);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleDelete().setEnabled(false);\r\n\t\t}\r\n\r\n\t\tif (mainFormLink.getComponentPanelLeft().getComponentRadioModeManual().isSelected())\r\n\t\t{\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAdd().setEnabled(true);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAddControl().setEnabled(true);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleDelete().setEnabled(true);\r\n\t\t}\r\n\t}",
"public void checkGameStatus() {\n everyTenthGoalCongrats();\n randomPopUpBecauseICan();\n }",
"public void showIfMeetsConditions() {\n\n if (!PrefUtils.getStopTrack(mContext) && (checkIfMeetsCondition() || isDebug)) {\n showRatePromptDialog();\n PrefUtils.setStopTrack(true, mContext);\n }\n }",
"private boolean isSmartModeEnabled()\n {\n try\n {\n return Integer.parseInt((String) _smartModeComboBox.getSelectedItem()) > 0;\n }\n catch (NumberFormatException neverOccurs)\n {\n return false;\n }\n }",
"public void verifyOfflineAutoresponseIsEnabled() throws Exception {\n\t\twdriver.findElement(By.xpath(WebData.offlineAutoresponseCheckboxEnabled)).isDisplayed();\n\t}",
"public boolean isSetMode() {\n return this.mode != null;\n }",
"boolean hasEnabled();",
"private void checkMode() {\n val mode = config.getString(\"mode\");\n\n if (!EnumUtils.isValidEnum(MovieHandler.Type.class, mode)) {\n throw new IllegalArgumentException(\"mode is not valid!\");\n }\n }",
"private static Boolean contains(int[] modes, int mode) {\n if (modes == null) {\n return false;\n\n }\n for (int i : modes) {\n if (i == mode) {\n return true;\n }\n }\n return false;\n }",
"protected boolean activateActions() {\n AlertDialog.Builder confirmation = new AlertDialog.Builder(MainScreen.this);\n confirmation.setTitle(\"Activate Danger Signal?\");\n confirmation.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n ImageButton dangerButton = (ImageButton) findViewById(R.id.dangerButton);\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dangerButton.setImageResource(R.drawable.activatedimage);\n surfaceView.setVisibility(View.VISIBLE);\n try {\n camera = Camera.open();\n camera.setDisplayOrientation(90);\n\n } catch (RuntimeException e) {\n return;\n }\n try {\n camera.setPreviewDisplay(surfaceHolder);\n camera.startPreview();\n } catch (Exception e) {\n return;\n }\n isPlay = !isPlay;\n active = true;\n }\n });\n\n confirmation.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n turnOffActions();\n surfaceView.setVisibility(View.INVISIBLE);\n active = false;\n }\n });\n\n AlertDialog alertDialog = confirmation.create();\n alertDialog.show();\n\n return active;\n }",
"void notifySpyModeToggle();",
"private void IsAbleToGebruikEigenschap() throws RemoteException {\n boolean eigenschapGebruikt = speler.EigenschapGebruikt();\n if (eigenschapGebruikt == true) {\n gebruikEigenschap.setDisable(true);\n }\n }",
"private void updateDemoModeEnabled() {\n boolean z = false;\n if (Settings.Global.getInt(getContext().getContentResolver(), \"sysui_demo_allowed\", 0) != 0) {\n z = true;\n }\n this.mEnabledSwitch.setChecked(z);\n this.mOnSwitch.setEnabled(z);\n }",
"boolean hasSettings();",
"boolean hasSettings();",
"public boolean IsEnableOptionMenu() {\n if (this.f12125b.mo8885u()) {\n C2331d.m10114a((Activity) this, C2328a.ON_ERROR_NOW_PIC_CAPTURE, (Bundle) null);\n return false;\n } else if (!this.f12125b.mo8871g()) {\n return false;\n } else {\n if (!((Boolean) this.f12125b.f12207ad.mo3217b()).booleanValue()) {\n return false;\n }\n if (!C2274o.m9889M(this.f12125b.mo8842J()) && !C2274o.m9890N(this.f12125b.mo8842J())) {\n return true;\n }\n C2331d.m10114a((Activity) this, C2328a.ON_CANNOT_CHANGE_SETUP, (Bundle) null);\n return false;\n }\n }",
"private void checkUsingAdaptation() {\n if (tsUseAdaptation.isSelected()) {\n tfAdaptationTime.setEnabled(true);\n tfAdaptationParam.setEnabled(true);\n } else {\n tfAdaptationTime.setEnabled(false);\n tfAdaptationParam.setEnabled(false);\n }\n }",
"private static boolean contains(int[] modes, int mode) {\n if (modes == null) {\n return false;\n }\n for (int i : modes) {\n if (i == mode) {\n return true;\n }\n }\n return false;\n }",
"public void verifyForgotLinkModalWindow() {\n modalWindow.assertState().enabled();\n modalWindow.assertContains().text(\"warningLeaving the PECOS Website\");\n }",
"private boolean canViewOptions() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n || uiStateManager.getState().equals(GameUIState.STANDBY);\n }",
"private void checkPage() {\n Assert.assertTrue(\"Electric cars button not displayed.\",electricCars.isDisplayed());\n }",
"public void testGetCancelButtonEnabled() {\n System.out.println(\"getCancelButtonEnabled\");\n Wizard instance = new Wizard();\n boolean expResult = false;\n boolean result = instance.getCancelButtonEnabled();\n assertEquals(expResult, result);\n }",
"boolean isEstConditionne();",
"private void toggleMode() {\n\t if(freestyle){\n\t\t Toast.makeText(getApplicationContext(), \"Take a picture in any pose\", Toast.LENGTH_LONG).show();\n\t\t \nmodeTextView.setText(\"Freestyle\");\nnewImgButton.setEnabled(false);\ncountdownView.setEnabled(false);\ncountdownView.setText(\"-\");\nframenumTextView.setEnabled(false);\nframenumTextView.setText(\"-\");\n\t }\n\t else{\n\t\t Toast.makeText(getApplicationContext(), \"Try to match the shape and take a picture\", Toast.LENGTH_LONG).show();\n\t\t modeTextView.setText(\"Match\");\n\t\t newImgButton.setEnabled(true);\n\t\t countdownView.setEnabled(true);\n\t\t framenumTextView.setEnabled(true);\n\t }\n\t \n\t\n}",
"public void verifyCourseInfoPageSuccessfullyDisplayedInNewWindow(){\n\t\tgetDriver().navigate().refresh();\n\t\tAssert.assertTrue(enrollNowButton.isDisplayed());\n\t\t\n\t}",
"public Check(Mode mode) {\n init();\n setMode(mode);\n }",
"public void CheckRegStatus(long electCode) {\n }",
"boolean hasTxpower();",
"boolean getValidSettings();",
"private void displayPromptForEnablingInternet() {\n final AlertDialog.Builder builder =\n new AlertDialog.Builder(getActivity());\n final String actionWifiSettings = Settings.ACTION_WIFI_SETTINGS;\n final String actionWirelessSettings = Settings.ACTION_WIRELESS_SETTINGS;\n final String message = getString(R.string.enable_network);\n\n builder.setMessage(message)\n .setPositiveButton(getString(R.string.bt_wifi),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int idButton) {\n getActivity().startActivity(new Intent(actionWifiSettings));\n dialog.dismiss();\n }\n })\n .setNegativeButton(getString(R.string.bt_mobile_network),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int idButton) {\n getActivity().startActivity(new Intent(actionWirelessSettings));\n dialog.dismiss();\n }\n })\n .setNeutralButton(getString(R.string.bt_cancel),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int idButton) {\n dialog.cancel();\n }\n });\n builder.create().show();\n }",
"@Override\n public boolean isOpen(){\n boolean statement = isElementPresent(czDppButon); //TODO - zmena na pozdejsi stranku\n if(!statement){ DriverSettings.takeScreenshot(); }\n return statement;\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:14:32.594 -0400\", hash_original_method = \"45C4A93D9DB00E5177EB1AA33C0FC790\", hash_generated_method = \"A67AFB0821ABBDFC1442B7AD04AF9F51\")\n \n public static boolean setPowerModeCommand(int mode){\n \tdouble taintDouble = 0;\n \ttaintDouble += mode;\n \n \treturn ((taintDouble) == 1);\n }",
"@Test\n public void mustNotEnableMoreThanOnce() throws RemoteException {\n mHbmController.enable(mOnEnabled);\n\n // Should set the appropriate refresh rate for UDFPS and notify the caller.\n verify(mDisplayCallback).onHbmEnabled(eq(DISPLAY_ID));\n verify(mOnEnabled).run();\n\n // Second request to enable the UDFPS mode, while it's still enabled.\n mHbmController.enable(mOnEnabled);\n\n // Should ignore the second request.\n verifyNoMoreInteractions(mDisplayCallback);\n verifyNoMoreInteractions(mOnEnabled);\n }",
"private boolean checkBatteryLevelOK() {\n return true;\n }",
"int getACMode();",
"private void showEnableWifiAlert() {\n new AlertDialog.Builder(currentContext)\n .setTitle(R.string.enable_wifi_alert_title)\n .setMessage(R.string.enable_wifi_alert_message)\n .setPositiveButton(R.string.enable_wifi_alert_yesbutton, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n manager.searchForVehicles();\n }\n\n }).setNegativeButton(R.string.enable_wifi_alert_nobutton, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Do nothing\n }\n }).show();\n }",
"private boolean checkValid() {\n\t\tif(openRadio.isSelected()) {\n\t\t\t//Open loop mode.\n\t\t\treturn checkInfusionRate() && checkPumpSelected() && checkMonitorSelected();\n\t\t} else {\n\t\t\t//Closed loop mode.\n\t\t\t//Check patient selected\n\t\t\t//Check QCore selected\n\t\t\t//Check BP monitor selected\n\t\t\t//Check target BP range\n\t\t\t//Check infusion rate.\n\t\t\treturn checkTargetBPRange() && checkInfusionRate() && checkPumpSelected() && checkMonitorSelected();\n\t\t}\n\t}",
"public boolean verifyEnabled(WebElement ele) {\n\t\ttry {\r\n\t\t\tif(ele.isEnabled()) {\r\n\t\t\t\treportSteps(\"The element \"+ele+\" is Enabled\",\"pass\");\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treportSteps(\"The element \"+ele+\" is not Enabled\",\"fail\");\r\n\t\t\t}\r\n\t\t} catch (WebDriverException e) {\r\n\t\t\tSystem.out.println(\"WebDriverException : \"+e.getMessage());\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private void showTimeLapseModeDialog() {\n\t\t// TODO Auto-generated method stub\n\t\tCharSequence title = res.getString(R.string.timeLapse_mode);\n\t\tfinal String[] timeLapseModeString = uiDisplayResource\n\t\t\t\t.getTimeLapseMode();\n\t\tif (timeLapseModeString == null) {\n\t\t\tWriteLogToDevice.writeLog(\"[Error] -- SettingView: \",\n\t\t\t\t\t\"timeLapseModeString == null\");\n\t\t\treturn;\n\t\t}\n\t\tint length = timeLapseModeString.length;\n\t\tint curIdx = 0;\n\t\tUIInfo uiInfo = reflection.refecltFromAppToUI(\n\t\t\t\tAppReflectToUI.SETTING_UI_TIME_LAPSE_MODE, AppProperties\n\t\t\t\t\t\t.getInstanse().getTimeLapseMode());\n\t\tLog.d(\"tigertiger\", \"uiInfo.uiStringInSetting =\"\n\t\t\t\t+ uiInfo.uiStringInSetting);\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (timeLapseModeString[i].equals(uiInfo.uiStringInSetting)) {\n\t\t\t\tLog.d(\"tigertiger\", \"timeLapseModeString[i] =\"\n\t\t\t\t\t\t+ timeLapseModeString[i]);\n\t\t\t\tcurIdx = i;\n\t\t\t}\n\t\t}\n\n\t\tDialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\tint value = (Integer) reflection.refecltFromUIToApp(\n\t\t\t\t\t\tUIReflectToApp.SETTING_APP_TIME_LAPSE_MODE,\n\t\t\t\t\t\ttimeLapseModeString[arg1]);\n\t\t\t\tAppProperties.getInstanse().setTimeLapseMode(value);\n\t\t\t\targ0.dismiss();\n\t\t\t\tif (value == TimeLapseMode.TIME_LAPSE_MODE_VIDEO) {\n\t\t\t\t\tpreviewHandler.obtainMessage(\n\t\t\t\t\t\t\tGlobalApp.MESSAGE_SETTING_TIMELAPSE_VIDEO_MODE)\n\t\t\t\t\t\t\t.sendToTarget();\n\t\t\t\t} else if (value == TimeLapseMode.TIME_LAPSE_MODE_STILL) {\n\t\t\t\t\tpreviewHandler.obtainMessage(\n\t\t\t\t\t\t\tGlobalApp.MESSAGE_SETTING_TIMELAPSE_STILL_MODE)\n\t\t\t\t\t\t\t.sendToTarget();\n\t\t\t\t}\n\t\t\t\tsettingValueList = getSettingValue();\n\t\t\t\tif (optionListAdapter == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\toptionListAdapter.notifyDataSetChanged();\n\t\t\t}\n\t\t};\n\t\tshowOptionDialog(title, timeLapseModeString, curIdx, listener, true);\n\t}",
"@Test(priority=1)\n\tpublic void verifyTradusProLogoAlongWithEnabledRadioButtonToTheLeftSide() throws Exception {\n\t\tOverviewTradusPROPage overviewPage= new OverviewTradusPROPage(driver);\n\t explicitWaitFortheElementTobeVisible(driver,overviewPage.overviewPageVerificationElement);\n Assert.assertTrue(verifyElementPresent(overviewPage.tradusProLogo), \"Tradus logo is not displaying after login to account\");\n Assert.assertTrue(verifyElementPresent(overviewPage.togglerUnderLogo), \"Enabled radio button is not displaying after login to account\");\n\t}",
"private static boolean mode(int option) {\r\n System.out.println(\"Mode(1) = 1\" + \" ::: \" + \"Mode(2) = 2\");\r\n Scanner sc = new Scanner(System.in);\r\n System.out.println(\"Please enter the mode number:\");\r\n option = sc.nextInt();\r\n sc.close();\r\n switch (option) {\r\n case 1:\r\n System.out.println(\"You have selected Mode 1.\");\r\n mode1 = true;\r\n break;\r\n case 2:\r\n System.out.println(\"You have selected Mode 2.\");\r\n mode2 = true;\r\n break;\r\n }\r\n return mode;\r\n }",
"public void checkEnabled()\n {\n if(graph == null || graph.vertices.size() < 1)\n {\n removeJButton.setEnabled(false);\n removeJMenuItem.setEnabled(false);\n printJMenuItem.setEnabled(false);\n calculateJButton.setEnabled(false);\n findPathJMenuItem.setEnabled(false);\n bruteForceJRadioButton.setEnabled(true);\n bruteForceJRadioButtonMenuItem.setEnabled(true);\n }\n else if(graph.vertices.size() < 3)\n {\n removeJButton.setEnabled(true);\n removeJMenuItem.setEnabled(true);\n printJMenuItem.setEnabled(false);\n calculateJButton.setEnabled(false);\n findPathJMenuItem.setEnabled(false);\n bruteForceJRadioButton.setEnabled(true);\n bruteForceJRadioButtonMenuItem.setEnabled(true);\n }\n else if(graph.vertices.size() <= 5)\n {\n removeJButton.setEnabled(true);\n removeJMenuItem.setEnabled(true);\n printJMenuItem.setEnabled(true);\n calculateJButton.setEnabled(true);\n findPathJMenuItem.setEnabled(true);\n bruteForceJRadioButton.setEnabled(true);\n bruteForceJRadioButtonMenuItem.setEnabled(true);\n }\n else\n {\n if(bruteForceJRadioButton.isSelected())\n {\n nearestJRadioButton.setSelected(true);\n nearestNeighborJRadioButtonMenuItem.setSelected(true);\n methodJLabel.setText(\"Nearest Neighbor\");\n }\n printJMenuItem.setEnabled(true);\n removeJButton.setEnabled(true);\n removeJMenuItem.setEnabled(true);\n calculateJButton.setEnabled(true);\n findPathJMenuItem.setEnabled(true);\n bruteForceJRadioButton.setEnabled(false);\n bruteForceJRadioButtonMenuItem.setEnabled(false);\n }\n }",
"boolean isSetControlType();",
"public void VerifyButtons(){\n if (currentTurn.getSiguiente() == null){\n next_turn.setEnabled(false);\n } else{\n next_turn.setEnabled(true);\n }\n if (currentTurn.getAnterior() == null){\n prev_turn.setEnabled(false);\n } else{\n prev_turn.setEnabled(true);\n }\n if (current.getSiguiente() == null){\n next_game.setEnabled(false);\n } else{\n next_game.setEnabled(true);\n }\n if (current.getAnterior() == null){\n prev_game.setEnabled(false);\n } else{\n prev_game.setEnabled(true);\n }\n }",
"public boolean[] checkAvailableMode()\n {\n if (player == null)\n throw new IllegalStateException(\"Carta: \" + name + \" non appartiene a nessun giocatore.\");//If this card doesn't belong to any player, it launches an exception\n\n\n availableMethod[0] = false;//I suppose that the modes can't be used\n availableMethod[1] = false;\n availableMethod[2] = false;\n\n List<Square> squareList = new ArrayList<>();\n\n squareList.addAll(MethodsWeapons.squareThatSee(player));\n squareList.remove(player.getSquare());\n\n\n if (isLoaded() && MethodsWeapons.areSquareISeeNotMineNotEmpty(player, squareList))\n availableMethod[0] = true;\n\n if (isLoaded() && player.getAmmoBlue() > 0 && (!checkRocketJumpColors().isEmpty()) && availableMethod[0])\n availableMethod[1] = true;\n\n\n if (isLoaded() && player.getAmmoYellow() > 0 && availableMethod[0])\n availableMethod[2] = true;\n\n return availableMethod;\n\n }",
"public void showButtonsSettingsModeSwitch() {\n FloatingActionButton btn_settings = (FloatingActionButton)findViewById(R.id.btn_settings);\n btn_settings.setVisibility(View.VISIBLE);\n\n FloatingActionButton btn_mode_select = (FloatingActionButton)findViewById(R.id.btn_mode_select);\n btn_mode_select.setVisibility(View.VISIBLE);\n\n FloatingActionButton btn_mode_guide = (FloatingActionButton)findViewById(R.id.btn_guided);\n btn_mode_guide.setVisibility(View.VISIBLE);\n }",
"boolean hasPower();",
"public boolean checkWin() throws Exception {\r\n\t\treturn getOcean().checkWin();\r\n\t}",
"public void checkEnabled(Activity context) {\r\n if(menuShown)\r\n this.show(context,false);\r\n }",
"private void checkEnableBt() {\n if (mBtAdapter == null || !mBtAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n }",
"public void initializationMode() {\n int noOfPumpsOn;\n if (this.steamMessage.getDoubleParameter() != 0) { // steam measuring device is defective\n this.mode = State.EMERGENCY_STOP;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n return;\n }\n\n // check for water level detection failure\n if (waterLevelFailure()) {\n this.outgoing.send(new Message(MessageKind.LEVEL_FAILURE_DETECTION));\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n this.mode = State.EMERGENCY_STOP;\n return;\n }\n\n this.waterLevel = this.levelMessage.getDoubleParameter();\n this.steamLevel = this.steamMessage.getDoubleParameter();\n\n // checks if water level is ready to go to normal\n if (this.levelMessage.getDoubleParameter() > this.configuration.getMinimalNormalLevel()\n && this.levelMessage.getDoubleParameter() < this.configuration.getMaximalNormalLevel()) {\n\n turnOnPumps(-1);\n this.outgoing.send(new Message(MessageKind.PROGRAM_READY));\n return;\n }\n if (this.levelMessage.getDoubleParameter() > this.configuration.getMaximalNormalLevel()) {\n // empty\n this.outgoing.send(new Message(MessageKind.VALVE));\n this.openValve = true;\n } else if (this.levelMessage.getDoubleParameter() < this.configuration\n .getMinimalNormalLevel()) { // fill\n\n if (this.openValve) { // if valve is open, shuts valve\n this.outgoing.send(new Message(MessageKind.VALVE));\n this.openValve = false;\n }\n noOfPumpsOn = estimatePumps(this.steamMessage.getDoubleParameter(),\n this.levelMessage.getDoubleParameter());\n turnOnPumps(noOfPumpsOn);\n }\n\n }",
"boolean getPowerBox();",
"public boolean CheckWin(){\n\t return false;\n\t }",
"public void Click_defineSetupPage_Alert() {\r\n\t\tclickOn(SensorConfiguration_Btn);\r\n\t}",
"boolean isSMSPromptEnabled();",
"private void activationON() {\n\n switch(afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.activatedContents();\n shell.layout();\n break;\n case AFFICHE_USER :\n ecranUser.activatedContents();\n shell.layout();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.activatedContents();\n shell.layout();\n break;\n default: break;\n }\n\n }",
"public boolean VerifyButtonStatus() throws InterruptedException {\n\n Thread.sleep(10000);\n if(roundTripButton.isSelected()) {\n System.out.println(\"round trip Button is already selected\");\n wait.until(ExpectedConditions.elementToBeClickable(oneWayButton));\n oneWayButton.click();\n System.out.println(\"Switched to One Way button\");\n }\n else if(oneWayButton.isSelected()){\n System.out.println(\"One way button is already selected\");\n roundTripButton.click();\n System.out.println(\"Switched to Round Trip button\");\n\n }\n return true;\n }",
"private void CheckBtIsOn() {\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if (!mBluetoothAdapter.isEnabled()) {\n Toast.makeText(getApplicationContext(), \"Bluetooth Disabled!\",\n Toast.LENGTH_SHORT).show();\n\n // Start activity to show bluetooth options\n Intent enableBtIntent = new Intent(mBluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n }",
"public boolean verifyNoInactives() {\n\t\treturn !btnInactives.isEnabled();\n\n\t}",
"private void actionChangedEstimatorON ()\r\n\t{\r\n\t\tmainFormLink.getComponentPanelLeft().getComponentRadioEstimatorSetFile().setEnabled(true);\r\n\t\tmainFormLink.getComponentPanelLeft().getComponentRadioEstimatorSetManual().setEnabled(true);\r\n\r\n\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(false);\r\n\r\n\t\t//---- Switch on if manual mode on\r\n\t\tif (mainFormLink.getComponentPanelLeft().getComponentRadioEstimatorSetManual().isSelected())\r\n\t\t{\r\n\t\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(true);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(true);\r\n\t\t}\r\n\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorAlgorithmType().setEnabled(true);\r\n\t}",
"private static boolean getState(Context context) {\n return Settings.System.getInt(context.getContentResolver(),\n Settings.System.AIRPLANE_MODE_ON, 0) == 1;\n }",
"@Test(priority=3)\n\tpublic void verifySignUpBtn() {\n\t\tboolean signUpBtn = driver.findElement(By.name(\"websubmit\")).isEnabled();\n\t\tAssert.assertTrue(signUpBtn);\n\t}",
"public List getTeachModes() throws ULMSSysException\r\n {\r\n return codeMaintainDAO.getTeachModes();\r\n }",
"private void checkGame() {\n if (game.checkWin()) {\n rollButton.setDisable(true);\n undoButton.setDisable(true);\n this.dialogFlag = true;\n if (game.isDraw()) {\n showDrawDialog();\n return;\n }\n if (game.getWinner().getName().equals(\"Computer\")) {\n showLoserDialog();\n return;\n }\n showWinnerDialog(player1);\n }\n }",
"public boolean getPowerState() {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE,\n\t\t\t\tContext.MODE_PRIVATE);\n\t\treturn settings.getBoolean(TOGGLE_KEY, true);\n\t}",
"@Test\r\n\tpublic void testDeliveryChuteEnable() {\r\n\t\tdcListen.doorOpened(vend.getDeliveryChute());\r\n\t\tdcListen.doorClosed(vend.getDeliveryChute());\r\n\t\tassertFalse(vend.getDeliveryChute().isDisabled());\r\n\t}",
"public boolean openSettings(){\n return true;\n }",
"private void updateDemoModeOn() {\n boolean z = false;\n if (Settings.Global.getInt(getContext().getContentResolver(), \"sysui_tuner_demo_on\", 0) != 0) {\n z = true;\n }\n this.mOnSwitch.setChecked(z);\n }",
"public void testCIConfifigurationUI() throws Exception {\r\n selenium.click(\"link=Card Issuer\");\r\n selenium.waitForPageToLoad(\"30000\");\r\n selenium.click(\"link=Configure\");\r\n selenium.waitForPageToLoad(\"30000\");\r\n assertEquals(\"Configuration Parameters\", selenium.getText(\"//form[@id='configuration']/table/tbody/tr[2]/td\"));\r\n assertTrue(selenium.isElementPresent(\"cardName\"));\r\n assertEquals(\"Card Name\", selenium.getText(\"//form[@id='configuration']/table/tbody/tr[3]/td[1]\"));\r\n assertTrue(selenium.isElementPresent(\"validPeriod\"));\r\n assertEquals(\"Valid Period\", selenium.getText(\"//form[@id='configuration']/table/tbody/tr[4]/td[1]\"));\r\n assertEquals(\"Supporting Token Types\", selenium.getText(\"//form[@id='configuration']/table/tbody/tr[5]/td[1]\"));\r\n assertEquals(\"SAML10\", selenium.getText(\"//form[@id='configuration']/table/tbody/tr[5]/td[2]/div[1]\"));\r\n assertEquals(\"SAML11\", selenium.getText(\"//form[@id='configuration']/table/tbody/tr[5]/td[2]/div[2]\"));\r\n assertEquals(\"SAML20\", selenium.getText(\"//form[@id='configuration']/table/tbody/tr[5]/td[2]/div[3]\"));\r\n assertEquals(\"OpenID\", selenium.getText(\"//form[@id='configuration']/table/tbody/tr[5]/td[2]/div[4]\"));\r\n assertEquals(\"Symmetric binding used\", selenium.getText(\"//form[@id='configuration']/table/tbody/tr[6]/td[1]\"));\r\n }",
"@Override\n protected Result check()\n {\n return this.gitLabModeInfos.isEmpty() ? Result.unhealthy(\"No GitLab modes available\") : Result.healthy();\n }",
"private static void SetMode() {\n Enum[] modes = {Mode.SINGLEPLAYER, Mode.MULTIPLAYER};\r\n // setting GameMode by passing in array to validator which will prompt what Enum is wanted\r\n Game.GameMode = (Mode) Validator.Mode(modes);\r\n }",
"public static boolean isVolteEnhancedConfCallSupport() {\n if (sEnableVolteConfForTest) {\n return true;\n } else {\n return MTK_ENHANCE_VOLTE_CONF_CALL && MTK_IMS_SUPPORT && MTK_VOLTE_SUPPORT;\n }\n }",
"public static void verifyRefreshingAllEquipmentModal(WebDriver driver) {\n FindElement.waitForElementXpath(driver, \"//h3[text() = 'Refreshing All Equipment...']\", \"TV Troubleshooting - modem Reset modal\");\n }",
"void setBasicMode() {basicMode = true;}",
"public void VerifyMainMenuItems() {\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Dashboard);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Initiatives);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_LiveMediaPlans);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_MediaPlans);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Audiences);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Offers);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_CreativeAssets);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Reports);\n\t}",
"public void testModeEnable(boolean enable) {\n if(enable)\n sapServer.setTestMode(SapMessage.TEST_MODE_ENABLE);\n else\n sapServer.setTestMode(SapMessage.TEST_MODE_DISABLE);\n }",
"public static void verifyActivateEquipmentPage(WebDriver driver) {\n String URL = driver.getCurrentUrl();\n Comparison.verifyStringMatch(\".*activate.spectrum.net.*\",URL);\n }",
"boolean isPopUpOpened();",
"private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(Ter.this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n\n }",
"public boolean verifyEditTermAndCondition(ExtentTest extentedReport) throws Exception {\n\t\tboolean toReturn = false;\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tWaitUtils.waitForElementPresent(driver, termsAndConditionsSection,\n\t\t\t\t\t\t\"Failed to locate Terms and condition check box\");\n\t\t\t\ttermsAndConditionsSection.click();\n\t\t\t\tWaitUtils.waitForSpinner(driver);\n\t\t\t\tLog.message(\"Clicked on Terms and Condition Section\", extentedReport);\n\t\t\t} catch (Exception f) {\n\t\t\t\tLog.message(\"Failed to click on Terms and Condition Section\", extentedReport);\n\t\t\t}\n\t\t\tif (btnAttachTermAndCondition.isDisplayed()) {\n\t\t\t\tbtnAttachTermAndCondition.click();\n\t\t\t\tWaitUtils.waitForSpinner(driver);\n\t\t\t\tLog.message(\"Clicked on button - Attach Term and Condition\", driver, extentedReport);\n\t\t\t\tThread.sleep(3000);\n\t\t\t\tif (firstTermAndConditionInList.isDisplayed()) {\n\t\t\t\t\tfirstTermAndConditionInList.click();\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\tWaitUtils.waitForSpinner(driver);\n\t\t\t\t\tLog.message(\"Clicked on first term and condition from the list\", driver, extentedReport);\n\t\t\t\t\tif (!selectTAC.isDisplayed() && !btnEditTermAndCondition.isDisplayed()) {\n\t\t\t\t\t\tfirstTermAndConditionInList.click();\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t\tWaitUtils.waitForSpinner(driver);\n\t\t\t\t\t\tLog.message(\"Clicked Again on first term and condition from the list\", driver, extentedReport);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Exception(\"First Term and condition not visible\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"Button Attach Term and Condition not visible\");\n\t\t\t}\n\t\t\tboolean isTACreadable = false;\n\t\t\tif (selectTAC.getText().length() > 0) {\n\t\t\t\tLog.message(\"Can read the terms and condition\", extentedReport);\n\t\t\t\tLog.message(\"Terms and Conditions : \" + selectTAC.getText(), extentedReport);\n\t\t\t\tisTACreadable = true;\n\t\t\t} else {\n\t\t\t\tLog.message(\"Cannot read the terms and condition\", extentedReport);\n\t\t\t}\n\t\t\tif (isTACreadable == true) {\n\t\t\t\tString actualContent = selectTAC.getText();\n\t\t\t\tif (btnEditTermAndCondition.isDisplayed()) {\n\t\t\t\t\tbtnEditTermAndCondition.click();\n\t\t\t\t\tWaitUtils.waitForSpinner(driver);\n\t\t\t\t\tLog.message(\"Clicked on Edit button\", extentedReport);\n\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\tJavascriptExecutor js = (JavascriptExecutor) driver;\n\t\t\t\t\tjs.executeScript(\n\t\t\t\t\t\t\t\"document.getElementById('C2__C1__QUE_3A056143913CF4954126787_R2').innerHTML = 'Modified TAC content'\");\n\t\t\t\t\ttoReturn = (selectTAC.getText().contains(\"Modified TAC content\")) ? true : false;\n\t\t\t\t\tLog.message(\"Actual Content : \" + actualContent, extentedReport);\n\t\t\t\t\tLog.message(\"Modified Content : \" + selectTAC.getText(), extentedReport);\n\t\t\t\t\tLog.message(\"Able to Edit the Term and Condition\", extentedReport);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Exception(\"Edit button not visible\");\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn toReturn;\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\"Unable to edit the Terms and Conditions\" + e);\n\t\t}\n\t}",
"private void checkReminder(boolean expectEnabled) {\n enableRemindersToggle.check(matches(isCompletelyDisplayed()));\n\n if (expectEnabled) {\n enableRemindersToggle.check(matches(isChecked()));\n countdownDisplay.check(matches(isCompletelyDisplayed()));\n countdownDisplay.check(matches(isClickable()));\n } else {\n enableRemindersToggle.check(matches(isNotChecked()));\n countdownDisplay.check(matches(not(isDisplayed())));\n }\n\n alarmPeriodTextField.check(matches(isCompletelyDisplayed()));\n alarmPeriodTextField.check(matches(isEnabled()));\n }",
"boolean setMode(int mode);",
"@Test\n @SmallTest\n @Feature(\"MultiWindow\")\n public void testCanEnterMultiWindowMode_isAutomotive_returnsFalse() {\n assertFalse(doTestCanEnterMultiWindowMode(\n /* isAutomotive */ true,\n /* aospMultiWindowModeSupported */ false,\n /* customMultiWindowModeSupported */ false));\n }"
] |
[
"0.64810723",
"0.61305517",
"0.59847444",
"0.593697",
"0.58312833",
"0.5668442",
"0.56098706",
"0.5580155",
"0.5564981",
"0.55101377",
"0.54992664",
"0.5480811",
"0.5459903",
"0.54193074",
"0.5414189",
"0.5409705",
"0.5409273",
"0.5395018",
"0.53818536",
"0.53047734",
"0.529954",
"0.5283792",
"0.52834225",
"0.52817357",
"0.5269382",
"0.5236816",
"0.52015203",
"0.5175398",
"0.51644266",
"0.516097",
"0.51584834",
"0.51584834",
"0.51430607",
"0.51298696",
"0.5092515",
"0.509045",
"0.50860626",
"0.5085242",
"0.50754166",
"0.50639987",
"0.5057285",
"0.5053287",
"0.5050716",
"0.504995",
"0.504903",
"0.50485665",
"0.5044722",
"0.5044542",
"0.5040347",
"0.5039173",
"0.5035719",
"0.50296223",
"0.5022218",
"0.50177014",
"0.5017069",
"0.50099254",
"0.5000124",
"0.49958804",
"0.4989379",
"0.49708623",
"0.49673253",
"0.49664113",
"0.4961762",
"0.49564564",
"0.49507564",
"0.49498713",
"0.49472505",
"0.4934495",
"0.4934003",
"0.493059",
"0.4929952",
"0.4929656",
"0.49274123",
"0.492505",
"0.49202108",
"0.49173835",
"0.49127474",
"0.4910158",
"0.49056345",
"0.4904683",
"0.49039933",
"0.4898873",
"0.48987576",
"0.48941088",
"0.4891914",
"0.48858446",
"0.4882666",
"0.48772305",
"0.48769292",
"0.48737776",
"0.4872432",
"0.48672476",
"0.48599267",
"0.4858974",
"0.48552936",
"0.48540246",
"0.48539373",
"0.4852872",
"0.48495942",
"0.48454592"
] |
0.74920326
|
0
|
Created by vitaliy on 25.05.17.
|
public interface GitApi {
@GET("users/mvvOrigin/repos")
Observable<ResponseBody> getUserRepositories();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public final void mo51373a() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"private void poetries() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo38117a() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n public void init() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n public void init() {}",
"@Override\r\n\tpublic void init() {}",
"@Override\n void init() {\n }",
"@Override\n protected void init() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"private void init() {\n\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"protected boolean func_70814_o() { return true; }",
"@Override\n protected void getExras() {\n }",
"@Override\n public void memoria() {\n \n }",
"Petunia() {\r\n\t\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"private void kk12() {\n\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"public Pitonyak_09_02() {\r\n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}"
] |
[
"0.5850848",
"0.57828486",
"0.56889933",
"0.5652311",
"0.5645705",
"0.5608183",
"0.5608183",
"0.5584148",
"0.5579271",
"0.5564947",
"0.55372804",
"0.55255044",
"0.55220187",
"0.5509613",
"0.5477517",
"0.54504883",
"0.54504883",
"0.54504883",
"0.54504883",
"0.54504883",
"0.5433509",
"0.54323554",
"0.54293996",
"0.5426943",
"0.54159486",
"0.5413444",
"0.54132783",
"0.5402432",
"0.5376756",
"0.5366994",
"0.53654706",
"0.53644896",
"0.53610116",
"0.53604895",
"0.53604895",
"0.5359478",
"0.5337262",
"0.533653",
"0.53333086",
"0.5327192",
"0.5327192",
"0.5327192",
"0.5324775",
"0.5324775",
"0.53130907",
"0.53130907",
"0.53130907",
"0.5310805",
"0.5310413",
"0.5307338",
"0.5285963",
"0.5284077",
"0.5284077",
"0.5284077",
"0.5284077",
"0.5284077",
"0.5284077",
"0.5283491",
"0.5283241",
"0.5283241",
"0.5283241",
"0.52766985",
"0.5272678",
"0.5272678",
"0.5272096",
"0.5268768",
"0.52675337",
"0.5263816",
"0.52607095",
"0.525748",
"0.5245509",
"0.5238794",
"0.5238794",
"0.5238794",
"0.5238794",
"0.5238794",
"0.5238794",
"0.5238794",
"0.5236858",
"0.5236346",
"0.52319056",
"0.52311605",
"0.5227499",
"0.5223527",
"0.52215457",
"0.52053714",
"0.52027124",
"0.5195326",
"0.5192846",
"0.5191139",
"0.51863754",
"0.518029",
"0.5167361",
"0.5159259",
"0.5158955",
"0.5158955",
"0.51547223",
"0.5151277",
"0.5146257",
"0.5146257",
"0.51454556"
] |
0.0
|
-1
|
Creates new form randomJPanel
|
public EditorPanel() throws Exception {
initComponents();
//Gör Id kolumnem i min JTable osynlig men jag behöver id-numret sparat någonstans för att kunna referera till editors id-nummer när man tar
//bort någon eller ändrar en editor.
//Anledningen till att jag gör det osynligt för att jag tycker det är onödigt för en användare att få se den informationen.
editorTable.getColumnModel().getColumn(0).setMinWidth(0);
editorTable.getColumnModel().getColumn(0).setMaxWidth(0);
//Sätter färgen på min Jtable
JTableHeader headerSearch = editorTable.getTableHeader();
headerSearch.setBackground( new Color(190, 227, 219) );
headerSearch.setForeground( new Color(85, 91, 110) );
addComboBox();
addComboBoxTable();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public NewJPanel() {\n initComponents();\n }",
"public NewJPanel() {\n initComponents();\n }",
"private void createManualJPanel() {\r\n createJPanelWithManual();\r\n JFrame frame = new JFrame();\r\n customizeFrame(frame);\r\n }",
"public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }",
"public void newGame() {\n NJPanel = new JPanel(new BorderLayout());\n setGame = new JButton(new ImageIcon(\"images\\\\set.png\"));\n setGame.addActionListener(setGameHand);\n setGame.setBackground(Color.white);\n randomGame = new JButton(new ImageIcon(\"images\\\\random.png\"));\n randomGame.setBackground(Color.white);\n randomGame.addActionListener(randGameHand);\n mixGame = new JButton(new ImageIcon(\"images\\\\mix.png\"));\n mixGame.setBackground(Color.white);\n mixGame.addActionListener(mixGameHand);\n jlabel = new JLabel(String.format(\"%120s\", \"Choose a form of game\"));\n NJPanel.add(jlabel, BorderLayout.NORTH);\n NJPanel.add(setGame, BorderLayout.EAST);\n NJPanel.add(randomGame, BorderLayout.CENTER);\n NJPanel.add(mixGame, BorderLayout.WEST); \n add(NJPanel);\n }",
"public JPanel createHeroList()\n\t{\t\n\t\t//create heroPanel\n\t\tJPanel heroPanel = new JPanel();\n\t\t//set the layout\n\t\theroPanel.setLayout(new GridLayout(3,1));\n\t\t//create the font for the panel and the labels\n\t\tFont heroFont = new Font(\"Comic Sans MS\",Font.BOLD,16);\n\t\t\n\t\t//create colorButton\n\t\tcolorButton = new JButton(\"Choose the Color\");\n\t\t//set font\n\t\tcolorButton.setFont(heroFont);\n\t\t//add the button to the panel\n\t\theroPanel.add(colorButton);\n\t\tcolorButton.setForeground(Color.ORANGE);\n\t\tcolorButton.setBackground(Color.BLACK);\n\t\tcolorButton.setOpaque(true);\n\t\t//implement action listener\n\t\tcolorButton.addActionListener(this);\n\t\t\n\t\t//create intro Label\n\t\tintroLabel = new JLabel(\"Super Hero Twenty Questions!!!\");\n\t\t//set the font\n\t\tintroLabel.setFont(heroFont);\n\t\tintroLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tintroLabel.setForeground(Color.ORANGE);\n\t\tintroLabel.setBackground(Color.BLACK);\n\t\tintroLabel.setOpaque(true);\n\t\t//add to the panel\n\t\theroPanel.add(introLabel);\n\t\t\n\t\t//create hero label and pick your favorite super hero\n\t\theroLabel = new JLabel(\"Choose your Favorite Super Hero!!!\");\n\t\t//set horizontal alignment\n\t\theroLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\theroLabel.setForeground(Color.ORANGE);\n\t\theroLabel.setBackground(Color.BLACK);\n\t\theroLabel.setOpaque(true);\n\t\theroLabel.setFont(heroFont);\n\t\t//add the label ot panel\n\t\theroPanel.add(heroLabel);\n\t\t//return Panel\n\t\treturn heroPanel;\n\t}",
"public CreateNewEventJPanel() {\n }",
"private void createPanel() {\n JPanel panel = new JPanel();\n \n for(int i = 0; i < button.size(); i++){\n panel.add(button.get(i));\n }\n panel.add(label);\n \n add(panel);\n }",
"private void createdComponent() {\r\n\r\n\t\tloadImage();\r\n\t\tresizeImage();\r\n\t\ttry {\r\n\t\t\tif (customFont == null) {\r\n\t\t\t\tcustomFont = FontLoader.getInstance().getXenipa();\r\n\t\t\t\tif (customFont == null) {\r\n\t\t\t\t\tcustomFont = new FontLoader().importFont();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (FontFormatException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (UnsupportedLookAndFeelException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tthis.init();\r\n\t\tthis.createpanel1();\r\n\t\tthis.createpanel2();\r\n\t\tthis.createpanel3();\r\n\t\tthis.createpanel4();\r\n\t\tthis.revalidate();\r\n\t}",
"public JPanel createPersonGuessPanel() {\n\t\tJPanel panel = new JPanel();\n\t\tJComboBox<String> comboBox = new JComboBox<String>();\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(), \"Person Guess\"));\n\t\tcomboBox.addItem(\"Unsure\");\n\t\tcomboBox.addItem(\"Miss Scarlet\");\n\t\tcomboBox.addItem(\"Colonel Mustard\");\n\t\tcomboBox.addItem(\"Mr. Green\");\n\t\tcomboBox.addItem(\"Mrs. White\");\n\t\tcomboBox.addItem(\"Mrs. Peacock\");\n\t\tcomboBox.addItem(\"Professor Plum\");\n\t\tpanel.add(comboBox);\n\t\treturn panel;\n\t}",
"private void createUI() throws FactoryException {\n assert theGame != null;\n assert ghostController != null;\n\n buttonPanel = new ButtonPanel(this);\n buttonPanel.initialize();\n\n pi = new PacmanInteraction(this, theGame);\n pi.addController(ghostController);\n buttonPanel.setListener(pi);\n this.addKeyListener(new PacmanKeyListener(pi));\n\n boardView = createBoardView();\n animator = new Animator(boardView);\n pi.addController(animator);\n\n points = new PointsPanel();\n points.initialize(theGame.getPointManager());\n theGame.attach(points);\n\n JPanel mainGrid = new JPanel();\n mainGrid.setLayout(new BorderLayout());\n mainGrid.setName(\"jpacman.topdown\");\n mainGrid.add(points, BorderLayout.NORTH);\n mainGrid.add(boardView, BorderLayout.CENTER);\n mainGrid.add(buttonPanel, BorderLayout.SOUTH);\n\n getContentPane().add(mainGrid);\n\n int width = Math.max(boardView.windowWidth(), buttonPanel.getWidth());\n int height = boardView.windowHeight() + buttonPanel.getHeight();\n setSize(width, height);\n setGridSize();\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n setName(\"jpacman.main\");\n setTitle(\"JPacman\");\n }",
"@Override\r\n public void actionPerformed(ActionEvent actionEvent) {\r\n createManualJPanel();\r\n }",
"private void initialize() throws IOException {\r\n\r\n\t\tplayername = JOptionPane.showInputDialog(\"What is your player name?\");\r\n\t\tJOptionPane.showMessageDialog(null, \"Welcome, \" + playername + \"!\");\r\n\t\t\r\n\t\tfrmSpotThenSequence = new JFrame();\r\n\t\tfrmSpotThenSequence.setLocationByPlatform(true);\r\n\t\tfrmSpotThenSequence.setResizable(false);\r\n\t\tfrmSpotThenSequence.setVisible(true);\r\n\t\tfrmSpotThenSequence.setFont(new Font(\"Courier New\", Font.PLAIN, 12));\r\n\t\tfrmSpotThenSequence.setForeground(SystemColor.desktop);\r\n\t\tfrmSpotThenSequence.setBackground(SystemColor.desktop);\r\n\t\tfrmSpotThenSequence.setTitle(\"Spot Then Sequence\");\r\n\t\tfrmSpotThenSequence.setBounds(100, 100, 554, 536);\r\n\t\tfrmSpotThenSequence.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmSpotThenSequence.getContentPane().setLayout(null);\r\n\t\t\r\n\t\t\r\n\t\tString[] images = {\"/a.png\", \"/b.png\", \"/c.png\", \"/d.png\", \"/e.png\", \"/f.png\", \"/g.png\", \"/h.png\", \"/i.png\", \"/j.png\", \"/k.png\", \"/l.png\", \"/m.png\"};\r\n\t\tRandom rand = new Random();\r\n\t\tint num = rand.nextInt(images.length-1) + 1;\r\n\t\t\r\n\t\tRandom rand2 = new Random();\r\n\t\tint num2 = rand2.nextInt(images.length-1) + 1;\r\n\t\t\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"\");\r\n\t\tlblNewLabel_1.setIcon(new ImageIcon(\"C:\\\\Users\\\\lauri\\\\Downloads\\\\rank.png\"));\r\n\t\tlblNewLabel_1.setBounds(398, 35, 39, 53);\r\n\t\tfrmSpotThenSequence.getContentPane().add(lblNewLabel_1);\r\n\t\tImage img = new ImageIcon(this.getClass().getResource(images[num])).getImage();\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"New button\");\r\n\t\tbtnNewButton.setBounds(698, 549, 115, 29);\r\n\t\tfrmSpotThenSequence.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBackground(SystemColor.activeCaption);\r\n\t\tpanel.setBounds(0, 227, 548, 272);\r\n\t\tfrmSpotThenSequence.getContentPane().add(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tpanel_1.setBounds(15, 16, 518, 242);\r\n\t\tpanel.add(panel_1);\r\n\t\tpanel_1.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel_2 = new JLabel(\"\");\r\n\t\tlblNewLabel_2.setIcon(new ImageIcon(img));\r\n\t\t\r\n\t\tJTextArea textArea = new JTextArea();\r\n\t\ttextArea.setDisabledTextColor(SystemColor.desktop);\r\n\t\ttextArea.setBackground(SystemColor.menu);\r\n\t\ttextArea.setForeground(SystemColor.desktop);\r\n\t\ttextArea.setFont(new Font(\"SimSun\", Font.PLAIN, 12));\r\n\t\ttextArea.setEnabled(false);\r\n\t\ttextArea.setEditable(false);\r\n\t\ttextArea.setBounds(295, 83, 243, 128);\r\n\t\tfrmSpotThenSequence.getContentPane().add(textArea);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"\");\r\n\t\tlblNewLabel.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\ttextArea.append(playername + \" \" + cal.getTime());\r\n\r\n\t\t\t\tswitch (num){\r\n\t\t\t\t\tcase 0:\r\n\t\t\t\t\t\tplayermatch = \"TREE\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tplayermatch = \"BALLOON\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\tplayermatch = \"HAND\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\tplayermatch = \"CANDLE\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\tplayermatch = \"TARGET\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 5:\r\n\t\t\t\t\t\tplayermatch = \"ICE\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 6:\r\n\t\t\t\t\t\tplayermatch = \"BOMB\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 7:\r\n\t\t\t\t\t\tplayermatch = \"LIPS\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 8:\r\n\t\t\t\t\t\tplayermatch = \"DOLPHIN\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 9:\r\n\t\t\t\t\t\tplayermatch = \"SHADES\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 10:\r\n\t\t\t\t\t\tplayermatch = \"BULB\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 11:\r\n\t\t\t\t\t\tplayermatch = \"YINYANG\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 12:\r\n\t\t\t\t\t\tplayermatch = \"TARGET\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tlblNewLabel.setBounds(176, 16, 63, 76);\r\n\t\tpanel_1.add(lblNewLabel);\r\n\t\t\r\n\t\t// RIGHT\r\n\t\tJLabel label = new JLabel(\"\");\r\n\t\tlabel.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\ttextArea.append(playername + \" \" + cal.getTime());\r\n\t\t\t\t\r\n\t\t\t\tswitch (num){\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tplayermatch = \"DOLPHIN\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tplayermatch = \"SHADES\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tplayermatch = \"CHEESE\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tplayermatch = \"TREE\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tplayermatch = \"ICE\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tplayermatch = \"YINYANG\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 6:\r\n\t\t\t\t\tplayermatch = \"LIPS\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\tplayermatch = \"BALLOON\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 8:\r\n\t\t\t\t\tplayermatch = \"TARGET\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 9:\r\n\t\t\t\t\tplayermatch = \"CHEESE\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 10:\r\n\t\t\t\t\tplayermatch = \"BOMB\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 11:\r\n\t\t\t\t\tplayermatch = \"BULB\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 12:\r\n\t\t\t\t\tplayermatch = \"HAND\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tlabel.setBounds(236, 73, 63, 97);\r\n\t\tpanel_1.add(label);\r\n\t\t\r\n\t\t// BOTTOM\r\n\t\tJLabel label_1 = new JLabel(\"\");\r\n\t\tlabel_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\ttextArea.append(playername + \" \" + cal.getTime());\r\n\t\t\t\t\r\n\t\t\t\tswitch (num){\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tplayermatch = \"BULB\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tplayermatch = \"TREE\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tplayermatch = \"BOMB\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tplayermatch = \"TARGET\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tplayermatch = \"BALLOON\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tplayermatch = \"CANDLE\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 6:\r\n\t\t\t\t\tplayermatch = \"ICE\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\tplayermatch = \"HAND\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 8:\r\n\t\t\t\t\tplayermatch = \"YINYANG\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 9:\r\n\t\t\t\t\tplayermatch = \"DOLPHIN\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 10:\r\n\t\t\t\t\tplayermatch = \"CANDLE\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 11:\r\n\t\t\t\t\tplayermatch = \"LIPS\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 12:\r\n\t\t\t\t\tplayermatch = \"SHADES\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tlabel_1.setBounds(176, 124, 57, 76);\r\n\t\tpanel_1.add(label_1);\r\n\t\t\r\n\t\t// LEFT\r\n\t\tJLabel label_2 = new JLabel(\"\");\r\n\t\tlabel_2.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\ttextArea.setText(\"\" + cal.getTime());\r\n\t\t\t\t\r\n\t\t\t\tswitch (num){\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tplayermatch = \"ICE\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ICE\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tplayermatch = \"YINYANG\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"YINYANG\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tplayermatch = \"TREE\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"TREE\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tplayermatch = \"LIPS\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"LIPS\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tplayermatch = \"CHEESE\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"CHEESE\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tplayermatch = \"HAND\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"HAND\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 6:\r\n\t\t\t\t\tplayermatch = \"SHADES\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"SHADES\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\tplayermatch = \"DOLPHIN\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"DOLPHIN\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 8:\r\n\t\t\t\t\tplayermatch = \"BOMB\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"BOMB\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 9:\r\n\t\t\t\t\tplayermatch = \"CANDLE\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"CANDLE\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 10:\r\n\t\t\t\t\tplayermatch = \"BALLOON\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"BALLOON\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 11:\r\n\t\t\t\t\tplayermatch = \"CHEESE\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"CHEESE\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 12:\r\n\t\t\t\t\tplayermatch = \"BULB\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"BULB\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tlabel_2.setBounds(119, 73, 63, 81);\r\n\t\tpanel_1.add(label_2);\r\n\t\tlblNewLabel_2.setBounds(108, 0, 211, 236);\r\n\t\tpanel_1.add(lblNewLabel_2);\r\n\t\t\r\n\t\tSystem.out.println(\"NUM: \" + num);\r\n\t\tSystem.out.println(\"NUM2 (Server): \" + num2);\r\n\t\t\r\n\t\tJButton btnPass = new JButton(\"PASS\");\r\n\t\tbtnPass.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));\r\n\t\tbtnPass.setBackground(SystemColor.activeCaption);\r\n\t\tbtnPass.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\tbtnPass.setVerticalAlignment(SwingConstants.BOTTOM);\r\n\t\tbtnPass.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnPass.setFont(new Font(\"Surabanglus\", Font.PLAIN, 25));\r\n\t\tbtnPass.setBounds(370, 97, 115, 40);\r\n\t\tpanel_1.add(btnPass);\r\n\t\tbtnPass.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\t\r\n\t\tJTextArea txtrPlayerName = new JTextArea();\r\n\t\ttxtrPlayerName.setEditable(false);\r\n\t\ttxtrPlayerName.setLineWrap(true);\r\n\t\ttxtrPlayerName.setText(playername);\r\n\t\ttxtrPlayerName.setFont(new Font(\"Surabanglus\", Font.PLAIN, 20));\r\n\t\ttxtrPlayerName.setBackground(SystemColor.menu);\r\n\t\ttxtrPlayerName.setBounds(398, 0, 135, 42);\r\n\t\tfrmSpotThenSequence.getContentPane().add(txtrPlayerName);\r\n\t\t\r\n\t\tJLabel lblNewLabel_3 = new JLabel(\"New label\");\r\n\t\tlblNewLabel_3.setBounds(65, 16, 202, 197);\r\n\t\tfrmSpotThenSequence.getContentPane().add(lblNewLabel_3);\r\n\t\tImage img_server = new ImageIcon(this.getClass().getResource(images[num2])).getImage();\r\n\t\tlblNewLabel_3.setIcon(new ImageIcon(img_server));\r\n\t\t\r\n\t\tJLabel lblNewLabel_4 = new JLabel(\"New label\");\r\n\t\tlblNewLabel_4.setIcon(new ImageIcon(\"C:\\\\Users\\\\lauri\\\\Downloads\\\\spot-then-sequence-master\\\\spot-then-sequence-master\\\\Back_1.png\"));\r\n\t\tlblNewLabel_4.setBounds(40, 16, 202, 195);\r\n\t\tfrmSpotThenSequence.getContentPane().add(lblNewLabel_4);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tJTextArea txtrRanks = new JTextArea();\r\n\t\ttxtrRanks.setEditable(false);\r\n\t\ttxtrRanks.setFont(new Font(\"Surabanglus\", Font.BOLD, 35));\r\n\t\ttxtrRanks.setBackground(SystemColor.control);\r\n\t\ttxtrRanks.setText(\"RANKS\");\r\n\t\ttxtrRanks.setBounds(435, 19, 98, 69);\r\n\t\tfrmSpotThenSequence.getContentPane().add(txtrRanks);\r\n\t}",
"protected void createComponents() {\n sampleText = new JTextField(20);\n displayArea = new JLabel(\"\");\n displayArea.setPreferredSize(new Dimension(200, 75));\n displayArea.setMinimumSize(new Dimension(200, 75));\n }",
"public void createPartyPanel()\n {\n setPartyLabel(game.getPartyPane(), 0);\n //setPartyLabel(\"EMPTY\", 1);\n //setPartyLabel(\"EMPTY\", 2);\n //setPartyLabel(\"EMPTY\", 3);\n reloadPartyPanel();\n }",
"private void initialize() {\n\t\tfrmRandomEvaluation = new JFrame();\n\t\tfrmRandomEvaluation.setTitle(\"Random Evaluation\");\n\t\tfrmRandomEvaluation.setBounds(100, 100, 450, 413);\n\t\tfrmRandomEvaluation.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmRandomEvaluation.getContentPane().setLayout(null);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(6, 6, 438, 139);\n\t\tfrmRandomEvaluation.getContentPane().add(panel);\n\t\tpanel.setLayout(new GridLayout(0, 2, 0, 0));\n\n\t\tJLabel lblMethod = new JLabel(\"Method\");\n\t\tpanel.add(lblMethod);\n\n\t\tcomboMethod = new JComboBox<Methods>();\n\t\tcomboMethod.setName(\"comboMethod\");\n\t\tcomboMethod.setModel(new DefaultComboBoxModel<Methods>(random.Methods.values()));\n\t\tpanel.add(comboMethod);\n\n\t\tJLabel lblQuantity = new JLabel(\"Quantity\");\n\t\tpanel.add(lblQuantity);\n\n\t\tspnQuantity = new JSpinner();\n\t\tpanel.add(spnQuantity);\n\t\tspnQuantity.setValue(100);\n\n\t\tJLabel lblFrom = new JLabel(\"From\");\n\t\tpanel.add(lblFrom);\n\n\t\tspnFrom = new JSpinner();\n\t\tpanel.add(spnFrom);\n\n\t\tJLabel lblTo = new JLabel(\"To\");\n\t\tpanel.add(lblTo);\n\n\t\tspnTo = new JSpinner();\n\t\tspnTo.setValue(1000);\n\t\tpanel.add(spnTo);\n\n\t\tJLabel lblDuplicatesAreAllowed = new JLabel(\"Duplicates are allowed\");\n\t\tpanel.add(lblDuplicatesAreAllowed);\n\n\t\tcomboDuplicate = new JComboBox<Duplicate>();\n\t\tcomboDuplicate.setName(\"comboDuplicate\");\n\t\tcomboDuplicate.setModel(new DefaultComboBoxModel<Duplicate>(random.Duplicate.values()));\n\t\tpanel.add(comboDuplicate);\n\n\t\tJLabel lblGeneratedNumbers = new JLabel(\"Generated numbers\");\n\t\tlblGeneratedNumbers.setBounds(6, 157, 138, 16);\n\t\tfrmRandomEvaluation.getContentPane().add(lblGeneratedNumbers);\n\n\t\tlist = new JList<String>();\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tJScrollPane scrollPane = new JScrollPane(list);\n\t\tscrollPane.setBounds(6, 185, 172, 196);\n\t\tfrmRandomEvaluation.add(scrollPane);\n\n\t\tJLabel lblStatistics = new JLabel(\"Statistics\");\n\t\tlblStatistics.setBounds(190, 157, 61, 16);\n\t\tfrmRandomEvaluation.getContentPane().add(lblStatistics);\n\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBounds(190, 186, 254, 33);\n\t\tfrmRandomEvaluation.getContentPane().add(panel_1);\n\t\tpanel_1.setLayout(new GridLayout(0, 3, 0, 0));\n\n\t\tJLabel lblDup = new JLabel(\"Duplicates\");\n\t\tpanel_1.add(lblDup);\n\n\t\tlblDuplicates = new JLabel(\"duplicates\");\n\t\tlblDuplicates.setText(\"-\");\n\t\tpanel_1.add(lblDuplicates);\n\n\t\tlblPercduplicates = new JLabel(\"percDuplicates\");\n\t\tlblPercduplicates.setText(\"-%\");\n\t\tpanel_1.add(lblPercduplicates);\n\n\t\ttableReincidence = new JTable();\n\t\tJScrollPane scrollTable = new JScrollPane(tableReincidence);\n\t\tscrollTable.setBounds(190, 231, 254, 150);\n\t\tfrmRandomEvaluation.getContentPane().add(scrollTable);\n\n\t\tJButton btnRun = new JButton(\"Run\");\n\t\tbtnRun.setAction(runButton);\n\t\tbtnRun.setBounds(327, 152, 117, 29);\n\t\tfrmRandomEvaluation.getContentPane().add(btnRun);\n\t}",
"public JPanel createRoomGuessPanel() {\n\t\tJPanel panel = new JPanel();\n\t\tJComboBox<String> comboBox = new JComboBox<String>();\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(), \"Room Guess\"));\n\t\tcomboBox.addItem(\"Unsure\");\n\t\tcomboBox.addItem(\"Conservatory\");\n\t\tcomboBox.addItem(\"Kitchen\");\n\t\tcomboBox.addItem(\"Ballroom\");\n\t\tcomboBox.addItem(\"Library\");\n\t\tcomboBox.addItem(\"Arcade room\");\n\t\tcomboBox.addItem(\"Gun room\");\n\t\tcomboBox.addItem(\"Trophy room\");\n\t\tcomboBox.addItem(\"Pantry\");\n\t\tcomboBox.addItem(\"Sauna\");\t\n\t\tpanel.add(comboBox);\n\t\treturn panel;\n\t}",
"public JJPanel() {\n\n\t}",
"private Panel designPanel() {\n Panel panel = new Panel();\n contentLayout = new FormLayout();\n wrapperLayout = new VerticalLayout();\n numberOfDatasetsBox = new ComboBox<>();\n numberOfReplicatesBox = new ComboBox<>(\"Select number of Replicates\");\n\n\n List<Integer> possibleDatasetNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfDatasetsBox.setItems(possibleDatasetNumber);\n\n List<Integer> possibleReplicateNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfReplicatesBox.setItems(possibleReplicateNumber);\n\n datasetAccordion = new Accordion();\n datasetAccordion.setWidth(\"100%\");\n\n panel.setContent(wrapperLayout);\n return panel;\n }",
"public HoaDonJPanel() {\n initComponents(); \n this.init();\n }",
"public PrintsPanel() {\n initComponents();\n createPanels();\n\n }",
"private void btnNewActionPerformed(java.awt.event.ActionEvent evt) {\n\n initPanel();\n }",
"private void fillPanel(){\n\t\t\tcontent.setLayout(new GridLayout(9,1));\n\t\t\tcontent.setBackground(Color.BLACK);\n\t\t\tcontent.add(playerNameLabel);\n\t\t\tcontent.add(playerNameField);\n\t\t\tcontent.add(placeHolder);\n\t\t\tcontent.add(passwordLabel);\n\t\t\tcontent.add(passwordField);\n\t\t\tcontent.add(passwordLabelRepeat);\n\t\t\tcontent.add(passwordFieldRepeat);\n\t\t\tcontent.add(placeHolder2);\n\t\t\tcontent.add(createButton);\t\n\t\t}",
"private void createpanel1() {\r\n\t\theader = new JLabel();\r\n\t\theader.setText(\"Type in Userinformation\");\r\n\t\theader.setFont(customFont.deriveFont(25f));\r\n\t\theader.setForeground(Color.WHITE);\r\n\r\n\t\tpanels[0].add(header);\r\n\t\tpanels[0].setOpaque(false);\r\n\t\tallComponents.add(panels[0]);\r\n\r\n\t}",
"private static void createAndShowGUI() {\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame(\"Color test\");\n\t\tframe.setPreferredSize(new Dimension(700, 700));\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t//Create and set up the content pane.\n\t\tJComponent newContentPane = new ColorTest();\n\t\tnewContentPane.setOpaque(true); //content panes must be opaque\n\t\tframe.setContentPane(newContentPane);\n\n\t\t//Display the window.\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}",
"protected Panel createButtonPanel() {\n Panel panel = new Panel();\n panel.setLayout(new PaletteLayout(2, new Point(2,2), false));\n return panel;\n }",
"public JPanel createWeaponGuessPanel() {\n\t\tJPanel panel = new JPanel();\n\t\tJComboBox<String> comboBox = new JComboBox<String>();\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(), \"Weapon Guess\"));\n\t\tcomboBox.addItem(\"Unsure\");\n\t\tcomboBox.addItem(\"Rope\");\n\t\tcomboBox.addItem(\"Lead Pipe\");\n\t\tcomboBox.addItem(\"Knife\");\n\t\tcomboBox.addItem(\"Wrench\");\n\t\tcomboBox.addItem(\"Candlestick\");\n\t\tcomboBox.addItem(\"Revolver\");\t\n\t\tpanel.add(comboBox);\n\t\treturn panel;\n\t}",
"public TestGUI() {\n initComponents();\n this.test = new Test(); \n super.setTitle(\"User Test\"); \n this.jButton1.setEnabled(false); \n this.jButton2.setEnabled(false); \n this.jButton3.setEnabled(false); \n this.jLabel3.setVisible(false);\n // this.jPanel1.add( new TFQPanel()); \n // this.jPanel1.repaint(); \n }",
"public void preparePanelPoder(){\n\t\tpanelNombrePoder = new JPanel();\n\t\tpanelNombrePoder.setLayout( new GridLayout(3,1,0,0 ));\n\t\t\n\t\tString name = ( game.getCurrentSorpresa() == null )?\" No hay sorpresa\":\" \"+game.getCurrentSorpresa().getClass().getName();\n\t\tn1 = new JLabel(\"Sorpresa actual:\"); \n\t\tn1.setForeground(Color.WHITE);\n\t\t\n\t\tn2 = new JLabel();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t\tn2.setForeground(Color.WHITE);\n\t\t\n\t\tpanelNombrePoder.add(n1);\n\t\tpanelNombrePoder.add(n2);\n\t\tpanelNombrePoder.setBounds( 34,200 ,110,50);\n\t\tpanelNombrePoder.setOpaque(false);\n\t\tthis.add( panelNombrePoder);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public SnowmanPanel()\n {\n setPreferredSize(new Dimension(300,225));\n setBackground(Color.cyan);\n }",
"protected JPanel makeNewJPanel() {\n\t\t// a variable tempPanel holds an instance of JPanel\n\t\tfinal JPanel tempPanel = new JPanel();\n\t\t// set the Layout of tempPanel to be a FlowLayout aligned left\n\t\ttempPanel.setLayout(new FlowLayout(FlowLayout.LEFT));\n\t\t// function returns the tempPanel\n\t\treturn tempPanel;\n\t}",
"private JPanel makePanel()\n {\n JPanel mainPanel = new JPanel();\n mainPanel.add(myLoginPanel);\n\n return mainPanel;\n }",
"private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"MRALD Color Chooser\");\n\n //Create and set up the content pane.\n JComponent newContentPane = new MraldColorChooser(coloringItems);\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Gomaku - 5 In A Row\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(600, 600);\n\n //Add the ubiquitous \"Hello World\" label.\n JPanel board = new JPanel();\n board.setSize(400, 400);\n board.set\n frame.getContentPane().add(board);\n\n //Display the window.\n frame.setVisible(true);\n }",
"public CreateJPanel(Car car) {\n initComponents();\n this.car=car;\n }",
"void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }",
"public DrawTextPanel() {\n\t\tfileChooser = new SimpleFileChooser();\n\t\tundoMenuItem = new JMenuItem(\"Remove Item\");\n\t\tundoMenuItem.setEnabled(false);\n\t\tmenuHandler = new MenuHandler();\n\t\tsetLayout(new BorderLayout(3,3));\n\t\tsetBackground(Color.BLACK);\n\t\tsetBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\n\t\tcanvas = new Canvas();\n\t\tadd(canvas, BorderLayout.CENTER);\n\t\tJPanel bottom = new JPanel();\n\t\tbottom.add(new JLabel(\"Text to add: \"));\n\t\tinput = new JTextField(\"Hello World!\", 40);\n\t\tbottom.add(input);\n\t\tadd(bottom, BorderLayout.SOUTH);\n\t\t\n\t\tJButton button = new JButton(\"Generate Random\");\n\t\tbottom.add(button);\n\t\t\n\t\tcanvas.addMouseListener( new MouseAdapter() {\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tdoMousePress( e.getX(), e.getY() ); \n\t\t\t}\n\t\t} );\n\t\t\n\t\tbutton.addActionListener(new ActionListener() { \n\t\t\tpublic void actionPerformed(ActionEvent e) { \n\t\t\t\tfor (int i = 0; i < 150; i++) { \n\t\t\t\t\tint X = new Random().nextInt(800); \n\t\t\t\t\tint Y = new Random().nextInt(600);\n\t\t\t\t\tdoMousePress(X, Y); \n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t}",
"private JPanel getJPanel() {\r\n\t\tif (jPanel == null) {\r\n\t\t\tjLabel = new JLabel();\r\n\t\t\tjLabel.setBounds(new Rectangle(40, 68, 105, 29));\r\n\t\t\tjLabel.setText(\" Enter your word\");\r\n\t\t\tjPanel = new JPanel();\r\n\t\t\tjPanel.setLayout(null);\r\n\t\t\tjPanel.setBackground(new Color(0, 255, 51));\r\n\t\t\tjPanel.setPreferredSize(new Dimension(100, 100));\r\n\t\t\tjPanel.add(jLabel, null);\r\n\t\t\tjPanel.add(getJTextField(), null);\r\n\t\t\tjPanel.add(getJTextArea(), null);\r\n\t\t\tjPanel.add(getJButton1(), null);\r\n\t\t\tjPanel.add(getJButton2(), null);\r\n\t\t\tjPanel.add(getJButton(), null);\r\n\t\t\tjPanel.add(getJButton3(), null);\r\n\t\t\tjPanel.add(getJTextArea1(), null);\r\n\t\t\tjPanel.add(getJScrollBar(), null);\r\n\t\t}\r\n\t\treturn jPanel;\r\n\t}",
"public static void newGame() throws IOException {\n\t\tmancalaFrame.setContentPane( new BoardGraphicsLabel() ); // bottom level board\t\r\n\t\tmancalaFrame.add( new PitsGraphicsPanel() ); // add pits jbuttons from custom layered pane\r\n\t\t\t\t\r\n\t\t// create the top layer glass pane for repainting stones and labels\r\n\t\t// glass pane allows buttons to be pushed with components on top\r\n\t\tstonePaintGlassPane = new StonePaintGlassPane( mancalaFrame.getContentPane() );\r\n\t\t\r\n\t\tmancalaFrame.setGlassPane( stonePaintGlassPane );\r\n\t\t\t\t\r\n\t\t\t\t// grid bag layout, will be used to place pit buttons in proper location\r\n\t\t\t\t// in Class PitsGraphicsPanel\r\n\t\tmancalaFrame.setLayout( new GridBagLayout() );\r\n\t\t\t\t// set true to glassPane\r\n\t\tstonePaintGlassPane.setVisible(true);\r\n\t\t\t\t\r\n\t\t\t\t// keep frame one size so we don't have to calculate resizing\r\n\t\t\t\t// sorry for the laziness\r\n\t\tmancalaFrame.setResizable(false);\r\n\t\tmancalaFrame.pack(); // set all proper sizes to prefered size\r\n\t\tmancalaFrame.setVisible(true); // set visible\r\n\t}",
"public LoginJPanel() {\n initComponents();\n }",
"public static JPanel newPanel() {\n\t\treturn null;\n\t}",
"private void createpanel3() {\r\n\t\tpanels[2].setLayout(new GridLayout(1, 2));\r\n\r\n\t\tdescription[1] = new JLabel(\"Password: \");\r\n\t\tdescription[1].setFont(smallfont);\r\n\t\tdescription[1].setHorizontalAlignment(JLabel.CENTER);\r\n\t\tpasswordbox = new JPasswordField() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\tpasswordbox.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\tpasswordbox.setForeground(Color.BLACK);\r\n\t\tpasswordbox.setOpaque(false);\r\n\t\tpanels[2].add(description[1]);\r\n\t\tpanels[2].add(passwordbox);\r\n\t\tpanels[2].setOpaque(false);\r\n\t\tallComponents.add(panels[2]);\r\n\t\tpanels[2].revalidate();\r\n\t}",
"public Panel() {\n initComponents();\n\n\n }",
"private void generateButtonPanel() {\n buttonsPanel = new JPanel();\n playPauseButton = addButton(\"Play/Pause\");\n restartButton = addButton(\"Restart\");\n speedUpButton = addButton(\"Speed Up\");\n slowDownButton = addButton(\"Slow Down\");\n loopbackButton = addButton(\"Loopback\");\n keyCommandsButton = addButton(\"Key Commands\");\n textViewButton = addButton(\"Animation Text\");\n\n addShapeButton = addButton(\"Add Shape\");\n removeShapeButton = addButton(\"Remove Shape\");\n addKeyframeButton = addButton(\"Add Keyframe\");\n removeKeyframeButton = addButton(\"Remove Keyframe\");\n editKeyframeButton = addButton(\"Edit Keyframe\");\n clearAnimationButton = addButton(\"Clear Animation\");\n clearShapeButton = addButton(\"Clear Shape\");\n buttonsPanel.setLayout(new FlowLayout());\n\n mainPanel.add(buttonsPanel);\n }",
"public AddCourseJPanel() { \n initComponents(); \n }",
"public DrawPanel() {\n initComponents();\n }",
"public void addToJPanel() {\r\n\t\tedit_terrain.add(header);\r\n\t\tJLabel blank1 = new JLabel(\"\");\r\n\t\tedit_terrain.add(blank1);\r\n\t\t\r\n\t\tedit_terrain.add(add_terrain);\r\n\t\tJLabel blank2 = new JLabel(\"\");\r\n\t\tedit_terrain.add(blank2);\r\n\t\t\r\n\t\tedit_terrain.add(scale_lb);\r\n\t\tedit_terrain.add(scale);\r\n\t\t\r\n\t\tedit_terrain.add(shape_lb);\r\n\t\tedit_terrain.add(shape_cb);\r\n\t\t\r\n\t\tedit_terrain.add(material_lb);\r\n\t\tedit_terrain.add(material_cb);\r\n\t\t\r\n\t\tedit_terrain.add(colour_lb);\r\n\t\tedit_terrain.add(colour_cb);\r\n\t\t\r\n\t\tedit_terrain.add(position_x_lb);\r\n\t\tedit_terrain.add(position_x);\r\n\t\t\r\n\t\tedit_terrain.add(position_y_lb);\r\n\t\tedit_terrain.add(position_y);\r\n\t\t\r\n\t\tedit_terrain.add(apply_terrain);\r\n\t\tedit_terrain.add(reset_terrain);\r\n\t\t\r\n\t\tsetAllFont();\r\n\t}",
"private void initPanel() {\n\t\tthis.panel = new JPanel();\n\t\tthis.panel.setBounds(5, 5, 130, 20);\n\t\tthis.panel.setLayout(null); \n\n\t}",
"public JPanel createPeoplePanel() {\n\t\t//setup\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new GridLayout(3, 2));\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(), \"People\"));\n\t\tpanel.add(new JCheckBox(\"Miss Scarlet\"));\n\t\tpanel.add(new JCheckBox(\"Colonel Mustard\"));\n\t\tpanel.add(new JCheckBox(\"Mr. Green\"));\n\t\tpanel.add(new JCheckBox(\"Mrs. White\"));\n\t\tpanel.add(new JCheckBox(\"Mrs. Peacock\"));\n\t\tpanel.add(new JCheckBox(\"Professor Plum\"));\n\t\treturn panel;\t\t\n\t}",
"void addPanel() {\n \tPanel panel = new Panel();\r\n\r\n panel.setLayout(new GridLayout(4, 1));\r\n jSliderBrightness = makeTitledSilder(\"Helligkeit\", 0, 256, 128); // werte veraendert\r\n jSliderContrast = makeTitledSilder(\"Kontrast\", 0, 10, 5);\r\n jSliderSaturation = makeTitledSilder(\"Sättigung\", 0, 9, 4);\r\n jSliderHue = makeTitledSilder(\"Hue\", 0, 360, 0);\r\n //jSliderContrast = makeTitledSilder(\"Slider2-Wert\", 0, 100, 50);\r\n panel.add(jSliderBrightness);\r\n panel.add(jSliderContrast);\r\n panel.add(jSliderSaturation);\r\n panel.add(jSliderHue);\r\n \r\n add(panel);\r\n \r\n pack();\r\n }",
"public static void generateNewPanel(boolean newMap) {\r\n\t\tif (MapGPanel.getInstance() != null) {\r\n\t\t\tMapGFrame.getInstance().remove(MapGPanel.getInstance());\r\n\t\t}\r\n\t\tMapGFrame.getInstance().add(MapGPanel.init(15, 15, 64, newMap));\r\n\t}",
"private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }",
"public RandomCircle()\n {\n super(\"Random Circle\");\n\n //Setup frame\n getContentPane().setBackground(Color.WHITE);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Setup the menubar\n JMenuBar menuBar = new JMenuBar();\n JMenu fileMenu = new JMenu(\"File\");\n JMenuItem newCircleMenuItem = new JMenuItem(\"New Circle\");\n JMenuItem exitMenuItem = new JMenuItem(\"Exit\");\n\n newCircleMenuItem.addActionListener(e-> newCircle());\n exitMenuItem.addActionListener(e->dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING)));\n\n newCircleMenuItem.setMnemonic(KeyEvent.VK_N);\n newCircleMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, InputEvent.CTRL_DOWN_MASK));\n\n //Combine menu components and add to the frame\n fileMenu.add(newCircleMenuItem);\n fileMenu.add(exitMenuItem);\n menuBar.add(fileMenu);\n setJMenuBar(menuBar);\n\n //Setup the textarea and make it look good\n textArea.setLineWrap(false);\n textArea.setEditable(false);\n textArea.setBackground(Color.WHITE);\n textArea.setMargin(new Insets(10, 10, 0, 10));\n\n //Add all components to the frame\n add(panel, BorderLayout.NORTH);\n add(textArea, BorderLayout.SOUTH);\n }",
"public Creacion() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"private void genClientGui(){\n\n // client Frame\n clientFrame = new JFrame();\n\n colorLabel = new JLabel(\"Color:\");\n msgLabel = new JLabel();\n scoreLabel = new JLabel(\"Score: \" );\n boardComponent = new BoardComponent(this);\n\n btnNewGame = new JButton(\"New Game\");\n btnQuit = new JButton(\"Quit\");\n btnResign = new JButton(\"Resign\");\n\n // top panel, contains the color, score and message labels\n JPanel topPanel = new JPanel();\n topPanel.setLayout(new GridLayout(3, 1));\n topPanel.add(colorLabel);\n topPanel.add(scoreLabel);\n topPanel.add(msgLabel);\n\n // bottom panel, contains buttons\n JPanel bottomPanel = new JPanel();\n bottomPanel.add(btnNewGame);\n bottomPanel.add(btnResign);\n bottomPanel.add(btnQuit);\n\n\n\n // cneter panel, contains the game board\n centerPanel = new JPanel();\n centerPanel.add(boardComponent);\n centerPanel.setVisible(true);\n\n generateRightPanel();\n\n initiateClient();\n\n // add everything to the frame\n clientFrame.setSize(700, 500);\n clientFrame.setLocation(0, 200);\n clientFrame.setLayout(new BorderLayout());\n clientFrame.add(topPanel, BorderLayout.NORTH);\n clientFrame.add(centerPanel, BorderLayout.CENTER);\n clientFrame.add(bottomPanel, BorderLayout.SOUTH);\n clientFrame.add(rightPanel, BorderLayout.EAST);\n clientFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n clientFrame.setVisible(false);\n\n }",
"private void setPanel()\r\n\t{\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.setLayout(new GridLayout(5, 2));\r\n\t\t\r\n\t\tpanel.add(bubbleL);\r\n\t\tpanel.add(bubblePB);\r\n\t\t\r\n\t\tpanel.add(insertionL);\r\n\t\tpanel.add(insertionPB);\r\n\t\t\r\n\t\tpanel.add(mergeL);\r\n\t\tpanel.add(mergePB);\r\n\t\t\r\n\t\tpanel.add(quickL);\r\n\t\tpanel.add(quickPB);\r\n\t\t\r\n\t\tpanel.add(radixL);\r\n\t\tpanel.add(radixPB);\r\n\t}",
"private JPanel initializePanel() {\n JPanel myPanel = new JPanel();\n //myPanel.setPreferredSize(new Dimension(600,600));\n\n myPanel.setLayout(new GridLayout(8,8));\n myPanel.setSize(600,600);\n myPanel.setLocation(100,100);\n myPanel.setBorder(new LineBorder(Color.BLACK));\n return myPanel;\n }",
"private void createSchedulePanel()\n\t{\n\t\t//newWeek=new Week(selectedId);\n\t\t//contentPane.add(newWeek,BorderLayout.SOUTH);\n\t\t//System.out.println(\"first time load:\"+selectedId);\n\t\tschedule=new Schedule(selectedId, isSprinklerSelected);\n\t\tschedulePane=new JPanel();\n\t\tschedulePane.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\tschedulePane.add(schedule);\n\t\tcontentPane.add(schedulePane,BorderLayout.CENTER);//add to content pane\n\t}",
"private void makeDialog() {\n \t\tfinal BackgroundGame thisPanel = this;\n \n \t\tfinal JInternalFrame dialog = new JInternalFrame(\"Question!\");\n \t\tdialog.addInternalFrameListener(new InternalFrameListener() {\n \n \t\t\t@Override\n \t\t\tpublic void internalFrameOpened(InternalFrameEvent arg0) {\n \t\t\t}\n \n \t\t\t@Override\n \t\t\tpublic void internalFrameClosing(InternalFrameEvent arg0) {\n \t\t\t}\n \n \t\t\t@Override\n \t\t\tpublic void internalFrameClosed(InternalFrameEvent arg0) {\n \t\t\t\tthisPanel.requestFocusInWindow();\n \t\t\t}\n \n \t\t\t@Override\n \t\t\tpublic void internalFrameIconified(InternalFrameEvent arg0) {\n \t\t\t}\n \n \t\t\t@Override\n \t\t\tpublic void internalFrameDeiconified(InternalFrameEvent arg0) {\n \t\t\t}\n \n \t\t\t@Override\n \t\t\tpublic void internalFrameActivated(InternalFrameEvent arg0) {\n \t\t\t}\n \n \t\t\t@Override\n \t\t\tpublic void internalFrameDeactivated(InternalFrameEvent arg0) {\n \t\t\t}\n \t\t});\n \n \t\tQuestion randQuestion = questions.get(\n \t\t\t\t(int) (Math.random() * questions.size()));\n \n \t\tJLabel label = new JLabel(randQuestion.getQuestion());\n \t\tlabel.setHorizontalAlignment(SwingConstants.LEFT);\n \t\tFont font = label.getFont();\n \t\tlabel.setFont(label.getFont().deriveFont(font.PLAIN, 14.0f));\n \n \t\tJPanel a = new JPanel();\n \t\ta.setLayout(new BoxLayout(a, BoxLayout.Y_AXIS));\n \t\ta.add(label);\n \t\t\n \t\tJPanel choicesPanel = new JPanel();\n \t\tfor (int i = 1; i <= 4; ++i) {\n \t\t\tString choice = randQuestion.getChoice(i);\n \t\t\tJButton button = new JButton();\n \t\t\tif (randQuestion.answerIs(choice)) {\n \t\t\t\t//Remove the \"--\" marker\n \t\t\t\tchoice = choice.substring(0, choice.indexOf(\"--\"));\n \t\t\t\t\n \t\t\t\tbutton.addActionListener(new ActionListener() {\n \t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n \t\t\t\t\t\tdialog.setVisible(false);\n \t\t\t\t\t\tdialog.dispose();\n \t\t\t\t\t}\n \t\t\t\t});\n \n \t\t\t}\n \t\t\t\t\t\t\t\n \t\t\tbutton.setText(choice);\n \t\t\tchoicesPanel.add(button);\n \t\t}\n \t\ta.add(choicesPanel);\n \n \t\tdialog.setContentPane(a);\n \n \t\tdialog.pack();\n \t\tdialog.setVisible(true);\n \t\tadd(dialog);\n \n \t\tdialog.setLocation(\n \t\t\t\t(int) (Math.random() * (getWidth() - dialog.getWidth())),\n \t\t\t\t(int) (Math.random() * (getHeight() - dialog.getHeight())));\n \t\t/*\n \t\t\n \t\tfor (max = max; max >= 1; max--) {\n \t\ttest = choices.get((int) (Math.random() * max) + min);\n \t\tSystem.out.println(test);\n \t\tSystem.out.println(choices.indexOf(test));\n \t\tchoices.remove(test);\n \t\tSystem.out.println(max);\n \t\t}*/\n \n \t\tincreaseCpuUsage(2);\n \t}",
"public JPanelStartMafiaGame() {\n initComponents();\n\n }",
"private void createpanel4() {\r\n\t\tpanels[3].setLayout(new FlowLayout(FlowLayout.CENTER, 20, 0));\r\n\r\n\t\texecute = new JButton(\"Login\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\texecute.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\texecute.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\texecute.setForeground(Color.BLACK);\r\n\t\texecute.setBorderPainted(true);\r\n\t\texecute.setContentAreaFilled(false);\r\n\t\texecute.setFont(customFont.deriveFont(15f));\r\n\r\n\t\tcancel = new JButton(\"Cancel\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tcancel.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\tcancel.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\tcancel.setForeground(Color.BLACK);\r\n\t\tcancel.setBorderPainted(true);\r\n\t\tcancel.setContentAreaFilled(false);\r\n\t\tcancel.setFont(customFont.deriveFont(15f));\r\n\r\n\t\tcreateAccount = new JButton(\"New Account\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tcreateAccount.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\tcreateAccount.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\tcreateAccount.setForeground(Color.BLACK);\r\n\t\tcreateAccount.setBorderPainted(true);\r\n\t\tcreateAccount.setContentAreaFilled(false);\r\n\t\tcreateAccount.setFont(customFont.deriveFont(10f));\r\n\r\n\t\tcancel.setPreferredSize(new Dimension(120, 30));\r\n\t\tcreateAccount.setPreferredSize(new Dimension(120, 30));\r\n\t\texecute.setPreferredSize(new Dimension(120, 30));\r\n\r\n\t\tpanels[3].add(execute);\r\n\t\tpanels[3].add(createAccount);\r\n\t\tpanels[3].add(cancel);\r\n\t\tpanels[3].setOpaque(false);\r\n\t\tallComponents.add(panels[3]);\r\n\t\tthis.backPanel.add(allComponents);\r\n\t\tthis.getContentPane().add(backPanel);\r\n\t\tpanels[3].revalidate();\r\n\r\n\t\tcreateAccount.addMouseListener(\r\n\t\t\t\tnew LoginListener(createAccount, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t\tcancel.addMouseListener(new LoginListener(cancel, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t\texecute.addMouseListener(\r\n\t\t\t\tnew LoginListener(execute, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t}",
"public static JComponent[] generateComponents(int n) {\r\n\t\tRandom r = new Random(0);\r\n\t\tJComponent[] c = new JComponent[n];\r\n\t\tint m = n;\r\n\t\twhile (m > 0) {\r\n\t\t\tint i = r.nextInt(n);\r\n\t\t\tif (c[i] == null) {\r\n\t\t\t\tc[i] = new JLabel(\"Component \" + i, null, SwingConstants.CENTER);\r\n\t\t\t\tint w = 5 * (2 + r.nextInt(20));\r\n\t\t\t\tint h = 5 * (2 + r.nextInt(20));\r\n\t\t\t\tc[i].setPreferredSize(new Dimension(w, h));\r\n\t\t\t\tc[i].setBorder(new EtchedBorder());\r\n\t\t\t\tm --;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn c;\r\n\t}",
"private void initPanels() {\r\n\t\r\n\tpanel = new JPanel();\r\n\tpanel.setBounds(0, 0, ScreenSize.WIDTH + 25, ScreenSize.HEIGHT + 50);\r\n\tpanel.setLayout(new BorderLayout());\r\n\tpanel.addComponentListener(this);\r\n\r\n\tbord = new BordPanel();\r\n\tbord.setBounds(0 ,0 ,ScreenSize.WIDTH, ScreenSize.HEIGHT);\r\n\tbord.setOpaque(true);\r\n\r\n\tlabel = new JLabel();\r\n\tlabel.setText(\"Text\");\r\n\r\n\tpanel.add(label, BorderLayout.SOUTH);\r\n\tpanel.add(bord, BorderLayout.CENTER);\r\n\t\r\n\tframe.add(panel);\r\n }",
"public LoginInicialJPanel() {\n initComponents();\n }",
"public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}",
"public AddRandomList() {\n setTitleText(\"Add new random List\");\n\n addButton.setText(\"Add\");\n addButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addButtonActionPerformed(evt);\n }\n });\n addButton(addButton);\n }",
"public void createGui(){\n\t\twindow = this.getContentPane(); \n\t\twindow.setLayout(new FlowLayout());\n\n\t\t//\tAdd \"panel\" to be used for drawing \n\t\t_panel = new ResizableImagePanel();\n\t\tDimension d= new Dimension(1433,642);\n\t\t_panel.setPreferredSize(d);\t\t \n\t\twindow.add(_panel);\n\n\t\t// A menu-bar contains menus. A menu contains menu-items (or sub-Menu)\n\t\tJMenuBar menuBar; // the menu-bar\n\t\tJMenu menu; // each menu in the menu-bar\n\n\t\tmenuBar = new JMenuBar();\n\t\t// First Menu\n\t\tmenu = new JMenu(\"Menu\");\n\t\tmenu.setMnemonic(KeyEvent.VK_A); // alt short-cut key\n\t\tmenuBar.add(menu); // the menu-bar adds this menu\n\n\t\tmenuItem1 = new JMenuItem(\"Fruit\", KeyEvent.VK_F);\n\t\tmenu.add(menuItem1); // the menu adds this item\n\n\t\tmenuItem2 = new JMenuItem(\"Pacman\", KeyEvent.VK_S);\n\t\tmenu.add(menuItem2); // the menu adds this item\n\t\tmenuItem3 = new JMenuItem(\"Run\");\n\t\tmenu.add(menuItem3); // the menu adds this item \n\t\tmenuItem4 = new JMenuItem(\"Save Game\");\n\t\tmenu.add(menuItem4); // the menu adds this item\n\n\t\tmenuItem5 = new JMenuItem(\"Open Game\");\n\t\tmenu.add(menuItem5); // the menu adds this item\n\t\tmenuItem6 = new JMenuItem(\"Clear Game\");\n\t\tmenu.add(menuItem6); // the menu adds this item\n\t\tmenuItem1.addActionListener(this);\n\t\tmenuItem2.addActionListener(this);\n\t\tmenuItem3.addActionListener(this);\n\t\tmenuItem4.addActionListener(this);\n\t\tmenuItem5.addActionListener(this);\n\t\tmenuItem6.addActionListener(this);\n\n\t\tsetJMenuBar(menuBar); // \"this\" JFrame sets its menu-bar\n\t\t// panel (source) fires the MouseEvent.\n\t\t//\tpanel adds \"this\" object as a MouseEvent listener.\n\t\t_panel.addMouseListener(this);\n\t}",
"private void crearComponentes(){\n\tjdpFondo.setSize(942,592);\n\t\n\tjtpcContenedor.setSize(230,592);\n\t\n\tjtpPanel.setTitle(\"Opciones\");\n\tjtpPanel2.setTitle(\"Volver\");\n \n jpnlPanelPrincilal.setBounds(240, 10 ,685, 540);\n \n }",
"private void createpanel2() {\r\n\t\tpanels[1].setLayout(new GridLayout(1, 2));\r\n\r\n\t\tdescription[0] = new JLabel(\"Accountname: \");\r\n\t\tdescription[0].setFont(smallfont);\r\n\t\tdescription[0].setHorizontalAlignment(JLabel.CENTER);\r\n\t\tuserinfo = new JTextField() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\r\n\t\t\tuserinfo.setForeground(Color.WHITE);\r\n\t\t} else {\r\n\t\t\tuserinfo.setForeground(Color.BLACK);\r\n\t\t}\r\n\t\tuserinfo.setOpaque(false);\r\n\t\tuserinfo.setFont(smallfont);\r\n\t\tpanels[1].add(description[0]);\r\n\t\tpanels[1].add(userinfo);\r\n\t\tpanels[1].setOpaque(false);\r\n\t\tallComponents.add(panels[1]);\r\n\t\tpanels[0].revalidate();\r\n\t}",
"public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}",
"public void crearVentana3(){\n \n marco = new JFrame(\"ventana\");\n panel = new JPanel();\n boton = new JButton(\"boton 1\");\n boton2 = new JButton(\"boton 2\");\n etiqueta = new JLabel(\"\");\n liTexto = new JTextField(30);\n \n \n //le damos caracteristicas a a los componentes\n marco.setSize(900, 500);\n panel.setSize(800, 400);\n panel.setBackground(Color.cyan);\n etiqueta.setText(\"Nome\");\n \n etiqueta.setBounds(50, 100, 50, 10);\n \n liTexto.setBounds(100, 100, 300, 20);\n liTexto.setText(\"Nombre?\");\n \n boton.setBounds(200, 300, 100, 50);\n boton2.setBounds(400, 300, 100,50);\n \n\n \n panel.setLayout(null);\n \n\n //engadimos os componenetes\n panel.add(etiqueta);\n panel.add(liTexto);\n panel.add(boton);\n panel.add(boton2);\n marco.add(panel);\n \n \n marco.setVisible(true);\n marco.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n }",
"public JPanelCreateClient() {\r\n\t\tsuper(new BorderLayout());\r\n\t\tthis.title = new CustomLabel(ConstantView.TITLE_CREATE_CLIENT, null, Color.decode(\"#2E5569\"));\r\n\t\tthis.okButton = new JButton(\"REGISTRAR CLIENTE\");\r\n\t\tthis.returnButton = new JButton(ConstantView.BUTTON_RETURN_SIGNIN);\r\n\t\tthis.jPanelFormClient = new JPanelFormClient();\r\n\t\tControlClient.getInstance().setjPanelCreateClient(this);\r\n\t\tthis.init();\r\n\t}",
"public JPanel createSouthPanel() {\n\t\tsouth = new JPanel(new GridLayout(1, 1));\n\t\t// adds start button and its functionality\n\t\tstartGame();\n\t\treturn south;\n\t}",
"private void makeButtonPanel()\n {\n \n this.buttonPanel.setLayout(new GridLayout(10, 2, 30, 10));\n \n \n this.buttonPanel.add(this.fLabel);\n this.fName.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.fName);\n\n this.buttonPanel.add(this.lLabel);\n this.lName.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.lName);\n\n this.buttonPanel.add(this.idLabel);\n this.iD.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.iD);\n\n this.buttonPanel.add(this.courseLabel);\n this.course.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.course);\n\n this.buttonPanel.add(this.instructorLabel);\n this.instructor.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.instructor);\n\n this.buttonPanel.add(this.tutorLabel);\n this.tutor.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.tutor);\n \n this.buttonPanel.add(this.commentsLable);\n this.comments.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.comments);\n //Removed for appointment tabel\n //this.buttonPanel.add(this.appointmentLable);\n //this.buttonPanel.add(this.appointment);\n this.buttonPanel.add(this.sessionLenLabel);\n this.sessionLength.setColumns(COL_WIDTH);\n this.sessionLength.setText(\"30\");\n this.buttonPanel.add(this.sessionLength);\n\n this.ADD_BUTTON.addActionListener(new AddButtonListener());\n //buttonPanel.add(ADD_BUTTON);\n \n \n this.addSessionPlaceHolder.add(this.buttonPanel);\n }",
"public void createMainGame() {\n\t\tpanelIntro.setVisible(false);\n\t\tintroButtonPanel.setVisible(false);\n\t\t\n\t\tpanelMain = new JPanel();\n\t\t\n\t\tcon.add(panelMain);\n\t\t\n\t\tplayerPanel = new JPanel();\n\t\tplayerPanel.setBounds(50, 25, 924, 50);\n\t\tplayerPanel.setBackground(Color.DARK_GRAY);\n\t\tplayerPanel.setLayout(new GridLayout(1,4));\n\t\tpanelMain.add(playerPanel);\n\t\tcon.add(playerPanel);\n\t\t\n\t\tenergyLabel = new JLabel(\" Energie: \");\n\t\tenergyLabel.setFont(playerInfo);\n\t\tenergyLabel.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(energyLabel);\n\t\t\n\t\tenergyLabelNumber = new JLabel();\n\t\tenergyLabelNumber.setFont(playerInfo);\n\t\tenergyLabelNumber.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(energyLabelNumber);\n\t\t\n\t\tdoubtLevelLabel = new JLabel(\"Misstrauen: \");\n\t\tdoubtLevelLabel.setFont(playerInfo);\n\t\tdoubtLevelLabel.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(doubtLevelLabel);\n\t\t\n\t\tdLLNumber = new JLabel();\n\t\tdLLNumber.setFont(playerInfo);\n\t\tdLLNumber.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(dLLNumber);\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\t\n\t\tbirdText = new JTextArea();\n\t\tbirdText.setBackground(Color.BLACK);\n\t\tbirdText.setFont(dialogueText);\n\t\tbirdText.setForeground(Color.white);\n\t\tbirdText.setLineWrap(true);\n\t\tbirdText.setWrapStyleWord(true);\n\t\tbirdText.setBounds(354, 200, 250, 150);\n\t\tbirdText.setVisible(false);\n\t\tcon.add(birdText);\n\t\t\n\t\tbirdPanel = new JPanel();\n\t\tbirdPanel.setBounds(354, 387, 60, 82);\n\t\tbirdPanel.setBackground(Color.BLACK);\n\t\tbirdPanel.addMouseListener(new birdListener());\n\t\ttry {\n\t\t\tBufferedImage birdPicture = ImageIO.read(new File(\".//res//bird_kleiner.jpg\"));\n\t\t\tJLabel birdLabel = new JLabel(new ImageIcon(birdPicture));\n\t\t\tbirdPanel.add(birdLabel);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tcon.add(birdPanel);\n\t\t\n\t\thereComesTheText = new JTextArea();\n\t\thereComesTheText.setBounds(55, 100, 285, 370);\n\t\thereComesTheText.setBackground(Color.BLACK);\n\t\thereComesTheText.setForeground(Color.LIGHT_GRAY);\n\t\thereComesTheText.setFont(dialogueText);\n\t\thereComesTheText.setLineWrap(true);\n\t\thereComesTheText.setWrapStyleWord(true);\n\t\tpanelMain.add(hereComesTheText);\n\t\tcon.add(hereComesTheText);\n\t\t\n\t\timagePanel.setBounds(427, 95, 546, 375);\n\t\timagePanel.setBackground(Color.black);\n\t\tpanelMain.add(imagePanel);\n\t\tcon.add(panelMain);\n\t\t\n\t\timagePanel.add(imageLabel);\n\t\t\n\t\tcon.add(imagePanel);\n\t\t\n\t\tpanelButtons = new JPanel();\n\t\tpanelButtons.setBounds(50, 510, 924, 200);\n\t\tpanelButtons.setBackground(Color.black);\n\t\tpanelButtons.setLayout(new GridLayout(2, 2));\n\t\tcon.add(panelButtons);\n\t\t\n\t\tfor(int i=1; i<5; i++) {\n\t\t\tbuttons.get(i).setBackground(Color.black);\n\t\t\tbuttons.get(i).setForeground(Color.LIGHT_GRAY);\n\t\t\tbuttons.get(i).setFont(runningText);\n\t\t\tbuttons.get(i).setFocusPainted(false);\n\t\t\tpanelButtons.add(buttons.get(i));\n\t\t}\n\t}",
"private void createJPanelWithManual() {\r\n URL imageURL = getClass().getResource(manualPath);\r\n\r\n Image image = null;\r\n try {\r\n image = ImageIO.read(imageURL);\r\n } catch (IOException e) {\r\n new IOExceptionCall().getCall();\r\n }\r\n\r\n //scaling the image containing manual.jpg to width and height of panel and converting it to ImageIcon for its\r\n //setting to JLabel\r\n Image image2 = image.getScaledInstance(panel.getWidth(), panel.getHeight(), Image.SCALE_SMOOTH);\r\n ImageIcon imageIcon = new ImageIcon(image2);\r\n\r\n label.setIcon(imageIcon);\r\n panel.add(label, BorderLayout.CENTER);\r\n\r\n }",
"private void crearComponentes() {\n setTitle(\"Nueva Persona\");\r\n setDefaultLookAndFeelDecorated(true);\r\n try {\r\n //UIManager.setLookAndFeel(\"javax.swing.plat.metal.MetalLookAndFeel\");\r\n UIManager.setLookAndFeel(\"javax.swing.plaf.nimbus.NimbusLookAndFeel\");\r\n } catch (ClassNotFoundException | IllegalAccessException | InstantiationException | UnsupportedLookAndFeelException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n\r\n int numBorder;\r\n numBorder = 20;\r\n\r\n jPrincipal = new JPanel(new BorderLayout());\r\n jPrincipal.setBorder(new EmptyBorder(numBorder, numBorder, numBorder, numBorder));\r\n add(jPrincipal);\r\n\r\n JPcontent = new JPanel();\r\n JPcontent.setLayout(new BoxLayout(JPcontent, BoxLayout.PAGE_AXIS));\r\n numBorder = 10;\r\n\r\n JPanel nom = new JPanel();\r\n JPcontent.add(nom);\r\n nom.add(new JLabel(\"Nom: \"));\r\n JTxtFldNom = new JTextField(28);\r\n JTxtFldNom.addComponentListener(null);\r\n nom.add(JTxtFldNom);\r\n\r\n JPanel primerCognom = new JPanel();\r\n JPcontent.add(primerCognom);\r\n primerCognom.add(new JLabel(\"Primer cognom: \"));\r\n JTxtFldPrimerCognom = new JTextField(22);\r\n JTxtFldPrimerCognom.addComponentListener(null);\r\n primerCognom.add(JTxtFldPrimerCognom);\r\n\r\n JPanel segonCognom = new JPanel();\r\n JPcontent.add(segonCognom);\r\n segonCognom.add(new JLabel(\"Segon cognom: \"));\r\n JTxtFldSegonCognom = new JTextField(22);\r\n JTxtFldSegonCognom.addComponentListener(null);\r\n segonCognom.add(JTxtFldSegonCognom);\r\n\r\n JPanel nif = new JPanel();\r\n JPcontent.add(nif);\r\n nif.add(new JLabel(\"NIF: \"));\r\n JTxtFldNIF = new JTextField(28);\r\n JTxtFldNIF.addComponentListener(null);\r\n nif.add(JTxtFldNIF);\r\n\r\n JPanel numeroSS = new JPanel();\r\n JPcontent.add(numeroSS);\r\n numeroSS.add(new JLabel(\"Número SS: \"));\r\n JTxtFldNumeroSS = new JTextField(24);\r\n JTxtFldNumeroSS.addComponentListener(null);\r\n numeroSS.add(JTxtFldNumeroSS);\r\n\r\n JPanel telf = new JPanel();\r\n JPcontent.add(telf);\r\n telf.add(new JLabel(\"Teléfon: \"));\r\n JTxtFldTelf = new JTextField(26);\r\n JTxtFldTelf.addComponentListener(null);\r\n telf.add(JTxtFldTelf);\r\n\r\n JPanel ciutat = new JPanel();\r\n JPcontent.add(ciutat);\r\n ciutat.add(new JLabel(\"Ciutat: \"));\r\n JTxtFldCiutat = new JTextField(27);\r\n JTxtFldCiutat.addComponentListener(null);\r\n ciutat.add(JTxtFldCiutat);\r\n\r\n JPanel codiPostal = new JPanel();\r\n JPcontent.add(codiPostal);\r\n codiPostal.add(new JLabel(\"Codi postal: \"));\r\n JTxtFldCodiPostal = new JTextField(24);\r\n JTxtFldCodiPostal.addComponentListener(null);\r\n codiPostal.add(JTxtFldCodiPostal);\r\n\r\n JPanel carrer = new JPanel();\r\n JPcontent.add(carrer);\r\n carrer.add(new JLabel(\"Direcció: \"));\r\n JTxtFldCarrer = new JTextField(27);\r\n JTxtFldCarrer.addComponentListener(null);\r\n carrer.add(JTxtFldCarrer);\r\n\r\n if (clase == 0) {\r\n metge();\r\n }\r\n\r\n JPanel boto = new JPanel();\r\n boto.setBorder(new EmptyBorder(0, 0, 8, 0));\r\n JPcontent.add(boto);\r\n\r\n// jBtnCancelar = new JButton(\"Cancelar\");\r\n// boto.add(jBtnCancelar);\r\n// jBtnCancelar.addActionListener(new BotonesCrearPersona(clase));\r\n JBtnCrea = new JButton(\"Crear\");\r\n boto.add(JBtnCrea);\r\n JBtnCrea.addActionListener(new BotonesCrearPersona(clase));\r\n\r\n jPrincipal.add(JPcontent, BorderLayout.CENTER);\r\n\r\n pack();\r\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\r\n this.setLocation(dim.width / 2 - this.getSize().width / 2, dim.height / 2 - this.getSize().height / 2);\r\n }",
"private JPanel createPanel(String title) {\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new GridLayout(0, 1));\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(), title));\n\t\treturn panel;\n\t}",
"public void Random(){\n Random rd=new Random();\n jTextField1.setText(\"\"+rd.nextInt(5000+1));\n }",
"public void addToJPanel() {\r\n\t\tsave_objects.add(header);\r\n\t\tJLabel blank1 = new JLabel(\"\");\r\n\t\tsave_objects.add(blank1);\r\n\t\t\r\n\t\tsave_objects.add(title_lb);\r\n\t\tsave_objects.add(title);\r\n\t\t\r\n\t\tsave_objects.add(width_lb);\r\n\t\tsave_objects.add(width);\r\n\t\t\r\n\t\tsave_objects.add(height_lb);\r\n\t\tsave_objects.add(height);\r\n\t\t\r\n\t\tsave_objects.add(save);\r\n\t\tsave_objects.add(reset);\r\n\t\t\r\n\t\tsetAllFont();\r\n\t}",
"public Graphics() { \n super(\"STRATEGO\");\n this.setIconImage(Toolkit.getDefaultToolkit().getImage(\"images\\\\myLogo.png\"));\n newGame();\n \n JMenu optionMenu = new JMenu(\"Options\");\n \n JMenuItem restartItem = new JMenuItem(\"Restart\");\n optionMenu.add(restartItem);\n restartItem.addActionListener((ActionEvent event) -> {\n NJPanel.removeAll();\n if(Cell != null) {\n for(int i = 1; i < 9; i++) {\n for(int j = 1; j < 11; j++) {\n NJPanel.remove(Cell[i][j]);\n }\n }\n }\n remove(NJPanel);\n newGame();\n repaint();\n revalidate();\n });\n \n JMenuItem exitItem = new JMenuItem(\"Exit\");\n optionMenu.add(exitItem);\n exitItem.addActionListener((ActionEvent event) -> {\n System.exit(0);\n });\n \n JMenuBar gameBar = new JMenuBar();\n setJMenuBar(gameBar);\n gameBar.add(optionMenu);\n }",
"private static void createAndShowGUI() {\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"ButtonDemo\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n ButtonDemo newContentPane = new ButtonDemo();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }",
"private void inicialitzarComponents() {\n\t\tsetLayout(new BorderLayout(0, 0));\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setOpaque(false);\n\t\tadd(panel, BorderLayout.NORTH);\n\n\t\tBox verticalBox = Box.createVerticalBox();\n\t\tverticalBox.setOpaque(false);\n\t\tpanel.add(verticalBox);\n\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setOpaque(false);\n\t\tverticalBox.add(panel_2);\n\n\t\tJPanel panel_3 = new JPanel();\n\t\tpanel_3.setOpaque(false);\n\t\tverticalBox.add(panel_3);\n\n\t\tJLabel lblNewLabel = new JLabel(nomUsuari);\n\t\tlblNewLabel.setFont(lblNewLabel.getFont().deriveFont(30f));\n\t\tpanel_3.add(lblNewLabel);\n\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setOpaque(false);\n\t\tadd(panel_1, BorderLayout.CENTER);\n\n\t\tBox verticalBox_1 = Box.createVerticalBox();\n\t\tverticalBox_1.setOpaque(false);\n\t\tpanel_1.add(verticalBox_1);\n\n\t\tJPanel panel_4 = new JPanel();\n\t\tpanel_4.setOpaque(false);\n\t\tverticalBox_1.add(panel_4);\n\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Peces girades:\");\n\t\tpanel_4.add(lblNewLabel_1);\n\n\t\tJLabel lblNewLabel_2 = new JLabel(String.valueOf(records.get(\"pecesGirades\")));\n\t\tpanel_4.add(lblNewLabel_2);\n\n\t\tJPanel panel_5 = new JPanel();\n\t\tpanel_5.setOpaque(false);\n\t\tverticalBox_1.add(panel_5);\n\n\t\tJLabel lblNewLabel_3 = new JLabel(\"Partides blanques guanyades:\");\n\t\tpanel_5.add(lblNewLabel_3);\n\n\t\tJLabel lblNewLabel_4 = new JLabel(String.valueOf(records.get(\"partidesBlanquesGuanyades\")));\n\t\tpanel_5.add(lblNewLabel_4);\n\n\t\tJPanel panel_6 = new JPanel();\n\t\tpanel_6.setOpaque(false);\n\t\tverticalBox_1.add(panel_6);\n\n\t\tJLabel lblNewLabel_5 = new JLabel(\"Partides negres guanyades:\");\n\t\tpanel_6.add(lblNewLabel_5);\n\n\t\tJLabel lblNewLabel_6 = new JLabel(String.valueOf(records.get(\"partidesNegresGuanyades\")));\n\t\tpanel_6.add(lblNewLabel_6);\n\n\t\tpanellRanking.setLayout(new BorderLayout());\n\t\tpanellRanking.add(menu, BorderLayout.NORTH);\n\t\tpanellRanking.add(taulaHoritzontal, BorderLayout.CENTER);\n\t\tpanellRanking.setBorder(BorderFactory.createLineBorder(Color.white, 4));\n\t\tJPanel panel_7 = new JPanel();\n\t\tpanel_7.setOpaque(false);\n\t\tpanel_7.setSize(20, 20);\n\t\tpanel_7.add(panellRanking);\n\t\tverticalBox_1.add(panel_7);\n\t}",
"private void initComponents() {\r\n\r\n\t\tjPanel1 = new javax.swing.JPanel();\r\n\t\tlblCreateHeroName = new javax.swing.JLabel();\r\n\t\ttxtCreateName = new javax.swing.JTextField();\r\n\t\tbtnCreateHero = new javax.swing.JButton();\r\n\r\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\r\n\t\tjPanel1.setBackground(new java.awt.Color(51, 51, 0));\r\n\t\tjPanel1.setLayout(null);\r\n\r\n\t\tlblCreateHeroName.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n\t\tlblCreateHeroName.setForeground(new java.awt.Color(153, 153, 0));\r\n\t\tlblCreateHeroName.setText(\"Name:\");\r\n\t\tjPanel1.add(lblCreateHeroName);\r\n\t\tlblCreateHeroName.setBounds(170, 40, 60, 15);\r\n\r\n\t\ttxtCreateName.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttxtCreateName.setText(\"Todor\");\r\n\t\tjPanel1.add(txtCreateName);\r\n\t\ttxtCreateName.setBounds(50, 90, 290, 30);\r\n\r\n\t\tbtnCreateHero.setText(\"DO IT\");\r\n\t\tbtnCreateHero.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(final java.awt.event.ActionEvent evt) {\r\n\t\t\t\tbtnCreateHeroActionPerformed();\r\n\t\t\t}\r\n\t\t});\r\n\t\tjPanel1.add(btnCreateHero);\r\n\t\tbtnCreateHero.setBounds(160, 140, 70, 23);\r\n\r\n\t\tfinal javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n\t\tgetContentPane().setLayout(layout);\r\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n\t\t\t\t.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE));\r\n\t\tlayout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n\t\t\t\t.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 218, Short.MAX_VALUE));\r\n\r\n\t\tpack();\r\n\t}",
"public Prob4GUI() {\n initComponents();\n }",
"public RummyUI(){\n \n //Call method initComponents\n initComponents();\n \n }",
"public TemporizadorPanel() {\n initComponents();\n }",
"public void createComponents(JComponent panel) {\r\n\t\t// Array display\r\n\t\tpanel.setLayout(new FlowLayout());\r\n\t\tpanel1.setLayout(new BorderLayout());\r\n\t\tcanvas.addMouseListener(aml);\r\n\t\tcanvas.addMouseMotionListener(aml);\r\n\t\tpanel1.add(canvas);\r\n\t\tpanel1.add(instr, BorderLayout.NORTH);\r\n\t\t\r\n\t\tpanel.add(panel1);\r\n\r\n\t\t// Controls\r\n\t\tpanel2.setLayout(new GridLayout(5, 2));\t\r\n\t\t\r\n\t\tJButton createArrayButton = new JButton(\"Create Customized Array\");\r\n\t\tpanel2.add(createArrayButton);\r\n\t\tcreateArrayButton.addActionListener(new createArrayListener());\r\n\r\n\t\tJButton changeValueButton = new JButton(\"Change Element Value\");\r\n\t\tpanel2.add(changeValueButton);\r\n\t\tchangeValueButton.addActionListener(new changeValueListener());\r\n\r\n\t\tJButton accessButton = new JButton(\"Access Element\");\r\n\t\tpanel2.add(accessButton);\r\n\t\taccessButton.addActionListener(new accessListener());\r\n\t\t\r\n\t\tJButton findButton = new JButton(\"Search Element\");\r\n\t\tpanel2.add(findButton);\r\n\t\tfindButton.addActionListener(new findListener());\r\n\t\t\r\n\t\tJButton clearButton = new JButton(\"Clear Previous Content\");\r\n\t\tpanel2.add(clearButton);\r\n\t\tclearButton.addActionListener(new ClearListener());\t\r\n\t\t\r\n\t\tpanel.add(panel2);\t\r\n\t}",
"private void addComponents() {\n //this.getContentPane().add(new ViewDeckComputer(), BorderLayout.NORTH);\n createTopPanel();\n createCentralPanel();\n createBottomPanel();\n }",
"public PanelJuego() {\r\n\t\tsetLayout(new GridLayout(3, 3, 20, 20));// Se crea una matriz 3x3 con un\r\n\t\t\t\t\t\t\t\t\t\t\t\t// espaciado tanto horizontal\r\n\t\t\t\t\t\t\t\t\t\t\t\t// como vertical.\r\n\t\tposicion = new JTextField[9];\r\n\t\tllenarPanel();\r\n\t\tsetBackground(Color.BLACK);// Se pinta el fondo de negro.\r\n\t\tsetVisible(true);\r\n\t}",
"FuelCan(){\n\t\tsuper();\n\t\tsetSize(randInt(3,6));\n\t}",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Combo box editabel\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //2. kreirati kontrole i pobacati kako nam kaže neki manager LayoutManager\n JComponent comboBoxPanel = new ComboBoxPanel2();\n comboBoxPanel.setOpaque(true);\n frame.setContentPane(comboBoxPanel);\n\n //3. prikazati prozor\n frame.pack();\n frame.setVisible(true);\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\townPanel = new NicePanel();\n\t\tframe.setTitle(\"Per Seconde Wijzer\");\n\t\tframe.setContentPane(ownPanel);\n\t\t// frame.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 1280, 720);\n\t\tframe.setLocationRelativeTo(null);\n\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(\n\t\t\t\tnew MigLayout(\"\", \"[300.00,grow,left][100.00,grow,fill][100.00,grow][300.00,grow]\",\n\t\t\t\t\t\t\"[157.00,grow,fill][160px:172.00px:180px,fill][][][][][157.00,grow]\"));\n\n\t\tJLabel lblNewLabel = new JLabel(\"<html>PER<br />\\nSECONDE<br />\\nWIJZER</html>\");\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.BOLD, 42));\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\townPanel.add(lblNewLabel, \"cell 1 1 2 1\");\n\n\t\ttxtVulHierJe = new JTextField();\n\t\ttxtVulHierJe.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\ttxtVulHierJe.setText(TXT_PLACEH_NAAM_INPUT);\n\t\tframe.getContentPane().add(txtVulHierJe, \"cell 1 2 2 1,growx\");\n\t\ttxtVulHierJe.setColumns(10);\n\n\t\t// Als er met de mouse geklikt wordt zal de placeholder text verwijderd\n\t\t// worden\n\t\ttxtVulHierJe.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tif (arg0.getButton() == 0x1 && txtVulHierJe.getText().equals(TXT_PLACEH_NAAM_INPUT))\n\t\t\t\t\ttxtVulHierJe.setText(\"\");\n\t\t\t}\n\t\t});\n\t\t// Placeholder wijzgen d.m.v. een keypress\n\t\ttxtVulHierJe.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif (txtVulHierJe.getText().equals(TXT_PLACEH_NAAM_INPUT)) txtVulHierJe.setText(\"\");\n\t\t\t}\n\t\t});\n\n\t\tNiceButton btnNewButton = new NiceButton(\"Spelregels\");\n\t\tfinal HelpScherm helpScherm = new HelpScherm(this);\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\topenPanel(helpScherm);\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnNewButton, \"cell 1 3,growx\");\n\n\t\tNiceButton btnNewButton_3 = new NiceButton(\"Start\");\n\t\tbtnNewButton_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\n\t\ttxtVulHierJe.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\tif (arg0.getKeyCode() == KeyEvent.VK_ENTER) startGame();\n\t\t\t}\n\t\t});\n\n\t\tbtnNewButton_3.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tstartGame();\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnNewButton_3, \"cell 2 3 1 2,grow\");\n\n\t\tNiceButton btnNewButton_2 = new NiceButton(\"Highscores\");\n\t\tbtnNewButton_2.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\topenPanel(new Highscore(spel));\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnNewButton_2, \"cell 1 4,growx\");\n\t}",
"public GUI_Crear_Funcionario() {\r\n initComponents();\r\n lbl1.setVisible(false);\r\n lbl2.setVisible(false);\r\n lbl3.setVisible(false);\r\n lbl4.setVisible(false);\r\n lbl5.setVisible(false);\r\n lbl6.setVisible(false);\r\n lbl7.setVisible(false);\r\n lbl8.setVisible(false);\r\n lbl9.setVisible(false);\r\n lbl10.setVisible(false);\r\n groupSexoBtn.add(rBtn1);\r\n groupSexoBtn.add(rBtn2);\r\n cargarImagen(jdp4,foto1);\r\n ocultarBarraTitulo();\r\n \r\n }",
"private void createGUI() {\n ResizeGifPanel newContentPane = new ResizeGifPanel();\n newContentPane.setOpaque(true); \n setContentPane(newContentPane); \n }",
"public void llenarPanel(int minas, int filas, int columnas){\n System.out.println(\"ESTO: \"+minas);\n lbMinas.setText(\"\"+minas);\n \n //inicializamos variables\n int filaBomb, columnaBomb, alturaBtn, anchuraBtn;\n boton = new JButton[filas][columnas];\n \n anchuraBtn =500/filas;\n alturaBtn = 500/columnas;\n \n \n \n for(int i =0; i<filas; i++){\n for(int j=0; j<columnas; j++){\n \n boton[i][j]= new JButton();\n \n //SetBound(x, y, wigth, higth);\n boton[i][j].setBounds(j*(anchuraBtn), i*(alturaBtn), anchuraBtn, alturaBtn);\n boton[i][j].setContentAreaFilled(false);\n boton[i][j].setBorder(javax.swing.BorderFactory.createEtchedBorder());\n pnlMinas.add(boton[i][j]);\n \n \n }\n \n }\n \n \n //Agregamos bombas aleatoreamente\n for(int i=0; i<minas; i++){\n filaBomb = (int)(Math.random()* filas); \n columnaBomb = (int)(Math.random()* columnas); \n \n System.out.println(\"i= \"+i+\" \"+filaBomb+\"\"\n + \" \"+columnaBomb);\n \n String valor = boton[filaBomb][columnaBomb].getText();\n \n if( valor.equals(\" \") ){\n i--;\n }else{\n boton[filaBomb][columnaBomb].setText(\" \");\n \n }\n }\n \n \n \n //Agregamos un action listener a cada boton\n for(int i =0; i<filas; i++){\n for(int j=0; j<columnas; j++){\n boton[i][j].addActionListener(this);\n }\n }\n \n }",
"private void shuffleButtons()\n {\n int index=(int)(Math.random()*3);\n if (index==1)\n {\n a.setBounds(350,500,a.getPreferredSize().height+80,30);\n b.setBounds(200,500,b.getPreferredSize().height+80,30);\n c.setBounds(500,500,c.getPreferredSize().height+80,30);\n }\n else if (index==2)\n {\n a.setBounds(500,500,a.getPreferredSize().height+80,30);\n c.setBounds(200,500,c.getPreferredSize().height+80,30);\n b.setBounds(350,500,b.getPreferredSize().height+80,30);\n }\n else\n {\n a.setBounds(200,500,a.getPreferredSize().height+80,30);\n b.setBounds(350,500,b.getPreferredSize().height+80,30);\n c.setBounds(500,500,c.getPreferredSize().height+80,30);\n }\n }",
"private JPanel addPannelName(){\n\t\tJPanel panNom = new JPanel();\n\t\tpanNom.setPreferredSize(new Dimension(175, 75));\n\t\tnameT = new JTextField();\n\t\tnameT.setPreferredSize(new Dimension(100, 25));\n\t\tpanNom.setBorder(BorderFactory.createTitledBorder(\"Channel name\"));\n\t\tname = new JLabel(\"Put a name :\");\n\t\tpanNom.add(name);\n\t\tpanNom.add(nameT);\n\t\treturn panNom;\n\t}",
"private void startNewGame(boolean blueRandom, boolean redRandom) {\n this.mMessageStack.clear();\n this.mUndoStack.clear();\n this.mMessageLog.clear();\n\n // Update the Strategy Flags\n this.mBlueRandom = blueRandom;\n this.mRedRandom = redRandom;\n\n // Create new Instance of Game\n this.mGameBoard = new GameBoard(selectKeyCard(this.mKeyCardCollection), mOutbox);\n\n // Create and update Scene\n BoardPane newBoardPane = new BoardPane(mGameBoard.getCards(), mGameBoard.getKeyCard(), mInbox);\n this.mGameScene.setRoot(newBoardPane);\n\n // Rebind Observer\n this.mOutbox.deleteObservers();\n this.mOutbox.addObserver(newBoardPane);\n }",
"void generateNewBoard() {\n createAvailableDice();\n\n // Add them to board\n generateBoardLayout();\n }",
"public GameLostPanel() {\n initComponents();\n }"
] |
[
"0.69613004",
"0.69613004",
"0.6731264",
"0.6592849",
"0.6572714",
"0.6347989",
"0.6343969",
"0.6337679",
"0.62941045",
"0.6231673",
"0.6183802",
"0.61581534",
"0.6156472",
"0.61347026",
"0.6054213",
"0.60412",
"0.6022576",
"0.59775937",
"0.5951518",
"0.5940801",
"0.5927746",
"0.5925292",
"0.5923433",
"0.59084284",
"0.59004873",
"0.5898064",
"0.5895121",
"0.58929724",
"0.5889764",
"0.58880925",
"0.5887421",
"0.58837366",
"0.5848919",
"0.5835741",
"0.58346474",
"0.5830587",
"0.5824009",
"0.58190113",
"0.58178574",
"0.5788051",
"0.5766448",
"0.5763115",
"0.57621515",
"0.5761521",
"0.5752671",
"0.5748895",
"0.574886",
"0.5747729",
"0.5745083",
"0.57399756",
"0.57379264",
"0.5737306",
"0.57365054",
"0.572947",
"0.57255626",
"0.5721714",
"0.57180035",
"0.57143015",
"0.5703458",
"0.56978416",
"0.5695314",
"0.56950366",
"0.56932014",
"0.56910306",
"0.56870514",
"0.5683867",
"0.56819314",
"0.56751686",
"0.56723654",
"0.56616867",
"0.5661093",
"0.56593525",
"0.56509566",
"0.56450677",
"0.5635145",
"0.56290185",
"0.5622729",
"0.5608069",
"0.56019074",
"0.5598859",
"0.5593899",
"0.55917364",
"0.55868644",
"0.55858576",
"0.5585699",
"0.55801135",
"0.55748266",
"0.5571709",
"0.5569803",
"0.5568307",
"0.5563284",
"0.55573744",
"0.5557331",
"0.5555302",
"0.55526274",
"0.55525774",
"0.5551921",
"0.5549659",
"0.5549348",
"0.55491805",
"0.55490565"
] |
0.0
|
-1
|
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.
|
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
editorSearchButton = new javax.swing.JButton();
jScrollPane1 = new javax.swing.JScrollPane();
editorTable = new javax.swing.JTable();
editorSearchField = new javax.swing.JTextField();
editorClearFields = new javax.swing.JButton();
editorEditList = new javax.swing.JButton();
editorPanelAddButton = new javax.swing.JButton();
showFullListButton = new javax.swing.JButton();
txtName = new javax.swing.JTextField();
txtContact = new javax.swing.JTextField();
txtInterestedIn = new javax.swing.JTextField();
txtPublisherName = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jComboBoxAdd = new javax.swing.JComboBox<>();
setBackground(new java.awt.Color(190, 227, 219));
setPreferredSize(new java.awt.Dimension(714, 543));
editorSearchButton.setFont(new java.awt.Font("Verdana", 0, 13)); // NOI18N
editorSearchButton.setText("Search");
editorSearchButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
editorSearchButtonActionPerformed(evt);
}
});
editorTable.setFont(new java.awt.Font("Verdana", 0, 13)); // NOI18N
editorTable.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
},
new String [] {
"", "Editor Name", "Editor Contact", "Editor Interested In", "Publisher Name"
}
));
editorTable.setRowHeight(40);
editorTable.setSelectionForeground(new java.awt.Color(255, 102, 102));
jScrollPane1.setViewportView(editorTable);
if (editorTable.getColumnModel().getColumnCount() > 0) {
editorTable.getColumnModel().getColumn(1).setPreferredWidth(20);
}
editorSearchField.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
editorSearchFieldKeyPressed(evt);
}
});
editorClearFields.setFont(new java.awt.Font("Verdana", 0, 13)); // NOI18N
editorClearFields.setText("Clear list");
editorClearFields.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
editorClearFieldsActionPerformed(evt);
}
});
editorEditList.setFont(new java.awt.Font("Verdana", 0, 13)); // NOI18N
editorEditList.setText("Edit list");
editorEditList.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
editorEditListActionPerformed(evt);
}
});
editorPanelAddButton.setFont(new java.awt.Font("Verdana", 0, 13)); // NOI18N
editorPanelAddButton.setText("Add to list");
editorPanelAddButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
editorPanelAddButtonActionPerformed(evt);
}
});
showFullListButton.setFont(new java.awt.Font("Verdana", 0, 13)); // NOI18N
showFullListButton.setText("Show full list");
showFullListButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
showFullListButtonActionPerformed(evt);
}
});
txtPublisherName.setText("New Publisher");
txtPublisherName.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
txtPublisherNameActionPerformed(evt);
}
});
jLabel1.setFont(new java.awt.Font("Verdana", 0, 13)); // NOI18N
jLabel1.setText("Editor Name:");
jLabel2.setFont(new java.awt.Font("Verdana", 0, 13)); // NOI18N
jLabel2.setText("Editor Contact:");
jLabel3.setFont(new java.awt.Font("Verdana", 0, 13)); // NOI18N
jLabel3.setText("Editor Interested In:");
jLabel4.setFont(new java.awt.Font("Verdana", 0, 13)); // NOI18N
jLabel4.setText("Publisher Name:");
jLabel5.setFont(new java.awt.Font("Verdana", 0, 36)); // NOI18N
jLabel5.setText("Editors");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(12, 12, 12)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel4)
.addComponent(jLabel2)
.addComponent(jLabel1))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(31, 31, 31)
.addComponent(jComboBoxAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 309, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(txtPublisherName, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
.addGroup(layout.createSequentialGroup()
.addGap(37, 37, 37)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addComponent(txtContact, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(editorPanelAddButton, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(82, 82, 82))))))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(txtInterestedIn, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel5)
.addGroup(layout.createSequentialGroup()
.addComponent(editorSearchField, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(editorSearchButton, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(showFullListButton, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(editorClearFields, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(editorEditList, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 683, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(0, 19, Short.MAX_VALUE))))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(66, 66, 66)
.addComponent(jLabel5)
.addGap(49, 49, 49)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(editorSearchField)
.addComponent(editorSearchButton)
.addComponent(showFullListButton)
.addComponent(editorClearFields)
.addComponent(editorEditList))
.addGap(26, 26, 26)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(48, 48, 48)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel1)
.addGap(18, 18, 18)
.addComponent(jLabel2)
.addGap(8, 8, 8)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(txtInterestedIn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(jComboBoxAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(txtPublisherName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(10, 10, 10))
.addGroup(layout.createSequentialGroup()
.addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(txtContact, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(editorPanelAddButton, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(62, 62, 62))))
);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\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, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\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, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\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.createParallelGroup(\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\tAlignment.LEADING)\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.addComponent(label22,\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\tGroupLayout.PREFERRED_SIZE,\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\tGroupLayout.DEFAULT_SIZE,\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\tGroupLayout.PREFERRED_SIZE)\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.addGroup(\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\tlayout.createSequentialGroup()\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.addGap(3)\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.addComponent(\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\tlabel23,\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\tGroupLayout.PREFERRED_SIZE,\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\tGroupLayout.DEFAULT_SIZE,\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\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\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, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] |
[
"0.73191476",
"0.72906625",
"0.72906625",
"0.72906625",
"0.72860986",
"0.7248112",
"0.7213479",
"0.72078276",
"0.7195841",
"0.71899796",
"0.71840525",
"0.7158498",
"0.71477973",
"0.7092748",
"0.70800966",
"0.70558053",
"0.69871384",
"0.69773406",
"0.69548076",
"0.69533914",
"0.6944929",
"0.6942576",
"0.69355655",
"0.6931378",
"0.6927896",
"0.69248974",
"0.6924723",
"0.69116884",
"0.6910487",
"0.6892381",
"0.68921053",
"0.6890637",
"0.68896896",
"0.68881863",
"0.68826133",
"0.68815064",
"0.6881078",
"0.68771756",
"0.6875212",
"0.68744373",
"0.68711984",
"0.6858978",
"0.68558776",
"0.6855172",
"0.6854685",
"0.685434",
"0.68525875",
"0.6851834",
"0.6851834",
"0.684266",
"0.6836586",
"0.6836431",
"0.6828333",
"0.68276715",
"0.68262815",
"0.6823921",
"0.682295",
"0.68167603",
"0.68164384",
"0.6809564",
"0.68086857",
"0.6807804",
"0.6807734",
"0.68067646",
"0.6802192",
"0.67943805",
"0.67934304",
"0.6791657",
"0.6789546",
"0.6789006",
"0.67878324",
"0.67877173",
"0.6781847",
"0.6765398",
"0.6765197",
"0.6764246",
"0.6756036",
"0.6755023",
"0.6751404",
"0.67508715",
"0.6743043",
"0.67387456",
"0.6736752",
"0.67356426",
"0.6732893",
"0.6726715",
"0.6726464",
"0.67196447",
"0.67157453",
"0.6714399",
"0.67140275",
"0.6708251",
"0.6707117",
"0.670393",
"0.6700697",
"0.66995865",
"0.66989213",
"0.6697588",
"0.66939527",
"0.66908985",
"0.668935"
] |
0.0
|
-1
|
End of variables declaration//GENEND:variables
|
@SuppressWarnings("unchecked")
private void addComboBox() throws Exception{
Connection con = Coagent.getConnection();
PreparedStatement query = con.prepareStatement("SELECT Publisher_Name FROM publishers;");
ResultSet result = query.executeQuery();
while(result.next()){
jComboBoxAdd.addItem(result.getString(1));
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo21779D() {\n }",
"public final void mo51373a() {\n }",
"protected boolean func_70041_e_() { return false; }",
"public void mo4359a() {\n }",
"public void mo21782G() {\n }",
"private void m50366E() {\n }",
"public void mo12930a() {\n }",
"public void mo115190b() {\n }",
"public void method_4270() {}",
"public void mo1403c() {\n }",
"public void mo3376r() {\n }",
"public void mo3749d() {\n }",
"public void mo21793R() {\n }",
"protected boolean func_70814_o() { return true; }",
"public void mo21787L() {\n }",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo21780E() {\n }",
"public void mo21792Q() {\n }",
"public void mo21791P() {\n }",
"public void mo12628c() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo97908d() {\n }",
"public void mo21878t() {\n }",
"public void mo9848a() {\n }",
"public void mo21825b() {\n }",
"public void mo23813b() {\n }",
"public void mo3370l() {\n }",
"public void mo21879u() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void mo21785J() {\n }",
"public void mo21795T() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void m23075a() {\n }",
"public void mo21789N() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void mo21794S() {\n }",
"public final void mo12688e_() {\n }",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public void mo6944a() {\n }",
"public static void listing5_14() {\n }",
"public void mo1405e() {\n }",
"public final void mo91715d() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public void mo9137b() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void func_70295_k_() {}",
"void mo57277b();",
"public void mo21877s() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"void berechneFlaeche() {\n\t}",
"public void mo115188a() {\n }",
"public void mo21880v() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void mo21784I() {\n }",
"private stendhal() {\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"public void mo56167c() {\n }",
"public void mo44053a() {\n }",
"public void mo21781F() {\n }",
"public void mo2740a() {\n }",
"public void mo21783H() {\n }",
"public void mo1531a() {\n }",
"double defendre();",
"private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }",
"public void stg() {\n\n\t}",
"void m1864a() {\r\n }",
"private void poetries() {\n\n\t}",
"public void skystonePos4() {\n }",
"public void mo2471e() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private void yy() {\n\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }",
"static void feladat4() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }",
"public void furyo ()\t{\n }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"protected void mo6255a() {\n }"
] |
[
"0.6359434",
"0.6280371",
"0.61868024",
"0.6094568",
"0.60925734",
"0.6071678",
"0.6052686",
"0.60522056",
"0.6003249",
"0.59887564",
"0.59705925",
"0.59680873",
"0.5967989",
"0.5965816",
"0.5962006",
"0.5942372",
"0.5909877",
"0.5896588",
"0.5891321",
"0.5882983",
"0.58814824",
"0.5854075",
"0.5851759",
"0.58514243",
"0.58418584",
"0.58395296",
"0.5835063",
"0.582234",
"0.58090156",
"0.5802706",
"0.5793836",
"0.57862717",
"0.5784062",
"0.5783567",
"0.5782131",
"0.57758564",
"0.5762871",
"0.5759349",
"0.5745087",
"0.57427835",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.57326084",
"0.57301426",
"0.57266665",
"0.57229686",
"0.57175463",
"0.5705802",
"0.5698347",
"0.5697827",
"0.569054",
"0.5689405",
"0.5686434",
"0.56738997",
"0.5662217",
"0.56531453",
"0.5645255",
"0.5644223",
"0.5642628",
"0.5642476",
"0.5640595",
"0.56317437",
"0.56294966",
"0.56289655",
"0.56220204",
"0.56180173",
"0.56134313",
"0.5611337",
"0.56112075",
"0.56058615",
"0.5604383",
"0.5602629",
"0.56002104",
"0.5591573",
"0.55856615",
"0.5576992",
"0.55707216",
"0.5569681",
"0.55570376",
"0.55531484",
"0.5551123",
"0.5550893",
"0.55482954",
"0.5547471",
"0.55469507",
"0.5545719",
"0.5543553",
"0.55424106",
"0.5542057",
"0.55410767",
"0.5537739",
"0.55269134",
"0.55236584",
"0.55170715",
"0.55035424",
"0.55020875"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public Map<String, Object> selectPage(String whereSql, int currentPage, int pageSize) throws Exception {
return null;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
This method is for Filtering Institute list
|
public void selectInstitute(String school, String school_id) {
common.waitFor(1000);
selectSchoolTextField.click();
selectSchoolTextField.sendKeys(school);
selectSchoolFromList(school_id);
// 1st from dropdown
clickNextButton.click(); // next button
common.waitForElement(hideKeyboard);
hideKeyboard.click();
common.waitForElement(checkLogin.loginPageText, 60);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n List<EnquiryModel> filteredList = new ArrayList<>();\n\n if(constraint == null || constraint.length() == 0){\n //show all data\n filteredList.addAll(enquiryAll);\n }else {\n //filter using keys\n String filterPattern = constraint.toString().toLowerCase().trim();\n for(EnquiryModel enquiryModel : enquiryAll){\n if(enquiryModel.getUser_name().toLowerCase().contains(filterPattern) || enquiryModel.getUser_email().toLowerCase().contains(filterPattern)|| enquiryModel.getHostel_name().contains(filterPattern)|| enquiryModel.getEnquiry_status().contains(filterPattern)){\n filteredList.add(enquiryModel); //store those enquiry whose hostel name contains list as asked.\n }\n }\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredList;\n\n return filterResults;\n }",
"private void filter(String text){\n ArrayList<BloodBank> filteredList=new ArrayList<>();\n for(BloodBank bloodBank:lstBloodBanks){\n if(bloodBank.getName().toLowerCase().contains(text.toLowerCase())){\n filteredList.add(bloodBank);\n }\n }\n\n adapter.filterList(filteredList);\n }",
"@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n List<CasesItem> filteredList = new ArrayList<>();\n if(constraint == null || constraint.length() == 0) {\n\n filteredList.addAll(mItemCasesAll);\n } else {\n\n String filterPattern = constraint.toString().toLowerCase().trim();\n for(CasesItem items: mItemCasesAll) {\n\n if(items.getmCountryName().toLowerCase().contains(filterPattern)) {\n\n filteredList.add(items);\n }\n }\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredList;\n return filterResults;\n }",
"private void filter(String text) {\n List<UserModel> filterdNames = new ArrayList<>();\n\n //looping through existing elements\n for (UserModel item : userModels) {\n //if the existing elements contains the search input\n if (item.getFirstName().toLowerCase().contains(text.toLowerCase())||item.getId().toLowerCase().contains(text.toLowerCase())||item.getEmail().toLowerCase().contains(text.toLowerCase())){\n //adding the element to filtered list\n filterdNames.add(item);\n }\n }\n userAdapter.filterList(filterdNames);\n }",
"@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n String searchText = constraint.toString().toLowerCase();\n\n List<MapDataModel> filteredList = new ArrayList<>();\n\n if(searchText.isEmpty() || searchText.length() == 0){\n filteredList.addAll(doctorslist);\n }else{\n for (MapDataModel doctorlist: doctorslist){\n\n if (doctorlist.getDoctorname().toLowerCase().contains(searchText)){\n filteredList.add(doctorlist);\n }\n }\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredList;\n\n return filterResults;\n }",
"@Override\n public Filter getFilter() {\n\n return new Filter() {\n @Override\n protected FilterResults performFiltering(CharSequence charSequence) {\n\n String charString = charSequence.toString();\n\n if (charString.isEmpty()) {\n\n mDataset = mArrayList;\n } else {\n\n ArrayList<DataObject> filteredList = new ArrayList<>();\n\n for (DataObject data : mArrayList) {\n\n if (data.getid().toLowerCase().contains(charString.toLowerCase()) || data.getname().toLowerCase().contains(charString.toLowerCase())) {\n\n filteredList.add(data);\n }\n }\n\n mDataset = filteredList;\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = mDataset;\n return filterResults;\n }\n\n @Override\n protected void publishResults(CharSequence charSequence, FilterResults filterResults) {\n mDataset = (ArrayList<DataObject>) filterResults.values;\n notifyDataSetChanged();\n }\n };\n }",
"ObservableList<Venue> getFilteredVenueList();",
"public ArrayList<Student> filterSearchStudentList(int stuNum){\n \n ArrayList<Student> filteredList = new ArrayList<Student>();\n \n int existance = 0;\n\n for(int i = 0; i<studList.size(); i++){\n \n if(studList.get(i).getStuNumber() <= stuNum){\n \n Student keyListOb = new Student(studList.get(i).getFullName(), studList.get(i).getStuNumber(), studList.get(i).getGPA());\n filteredList.add(keyListOb);\n }\n \n else{\n existance++;\n }\n }\n if(existance == studList.size()){\n System.out.println(\"\\nNo results\");\n }\n\n for(int i =0; i<filteredList.size();i++){\n System.out.println(\"Student Name: \" + filteredList.get(i).getFullName() + \", Student Number: \" + filteredList.get(i).getStuNumber() + \", Student GPA: \" + filteredList.get(i).getGPA());\n }\n\n return filteredList;\n }",
"private void filter(String text) {\n ArrayList<ChildItem> filterdNames = new ArrayList<>();\n\n //looping through existing elements\n for (ChildItem s : dataParent ) {\n\n //if the existing elements contains the search input\n if (s.getKode_barang().toLowerCase().contains(text.toLowerCase())) {\n //adding the element to filtered list\n filterdNames.add(s);\n }\n }\n\n //calling a method of the adapter class and passing the filtered list\n adapter.filterList(filterdNames);\n }",
"private void setUpFilter() {\n List<Department> departmentsList = departmentService.getAll(0, 10000);\n departments.setItems(departmentsList);\n departments.setItemLabelGenerator(Department::getDepartment_name);\n departments.setValue(departmentsList.get(0));\n category.setItems(\"Consumable\", \"Asset\", \"%\");\n category.setValue(\"%\");\n status.setItems(\"FREE\", \"IN USE\", \"%\");\n status.setValue(\"%\");\n show.addClickListener(click -> updateGrid());\n }",
"private void filterData(String tit, String loc, String datef, String datet, String cat, String cou){\n String t = tit;\n String l = loc;\n String df = datef;\n String dt = datet;\n String c = cat;\n String country = cou;\n filteredData.clear();\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\", Locale.US);\n\n //All empty\n if(t.length() == 0 && country.length() == 0 && c.length() == 0){\n for(int i = 0; i < data.size(); i++){\n filteredData.add(data.get(i));\n }\n }\n\n //only title\n if(t.length() != 0 && country.length() == 0 && c.length() == 0 && df.length() == 0){\n for(int i = 0; i < data.size(); i++){\n if(data.get(i).getTitle().equals(t)){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //only country\n if(t.length() == 0 && country.length() != 0 && c.length() == 0 && df.length() == 0){\n for(int i = 0; i < data.size(); i++){\n if(data.get(i).getCountry().equals(country)){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //only category\n if(t.length() == 0 && country.length() == 0 && c.length() != 0 && df.length() == 0){\n for(int i = 0; i < data.size(); i++){\n if(data.get(i).getCategory().equals(c)){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //only date\n if(t.length() == 0 && country.length() == 0 && c.length() == 0 && df.length() != 0 && dt.length() != 0){\n for(int i = 0; i < data.size(); i++){\n String dateeee = data.get(i).getDate();\n try {\n datefrom = dateFormat.parse(df);\n dateto = dateFormat.parse(dt);\n datadate = dateFormat.parse(dateeee);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(datadate.compareTo(datefrom) >= 0 && datadate.compareTo(dateto) <= 0){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //title and country\n if(t.length() != 0 && country.length() != 0 && c.length() == 0 && df.length() == 0){\n for(int i = 0; i < data.size(); i++){\n if(data.get(i).getTitle().equals(t) && data.get(i).getCountry().equals(country)){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //title and category\n if(t.length() != 0 && country.length() == 0 && c.length() != 0 && df.length() == 0){\n for(int i = 0; i < data.size(); i++){\n if(data.get(i).getCategory().equals(c) && data.get(i).getTitle().equals(t)){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //title, date\n if(t.length() != 0 && country.length() == 0 && c.length() == 0 && df.length() != 0){\n for(int i = 0; i < data.size(); i++){\n String dateeee = data.get(i).getDate();\n try {\n datefrom = dateFormat.parse(df);\n dateto = dateFormat.parse(dt);\n datadate = dateFormat.parse(dateeee);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(data.get(i).getTitle().equals(t) && datadate.compareTo(datefrom) >= 0 && datadate.compareTo(dateto) <= 0){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //country, category\n if(t.length() == 0 && country.length() != 0 && c.length() != 0 && df.length() == 0){\n for(int i = 0; i < data.size(); i++){\n if(data.get(i).getCategory().equals(c) && data.get(i).getCountry().equals(country)){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //country, date\n if(t.length() == 0 && country.length() != 0 && c.length() == 0 && df.length() != 0){\n for(int i = 0; i < data.size(); i++){\n String dateeee = data.get(i).getDate();\n try {\n datefrom = dateFormat.parse(df);\n dateto = dateFormat.parse(dt);\n datadate = dateFormat.parse(dateeee);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(data.get(i).getCountry().equals(country) && data.get(i).getTitle().equals(t) && datadate.compareTo(datefrom) >= 0 && datadate.compareTo(dateto) <= 0){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //category, date\n if(t.length() == 0 && country.length() == 0 && c.length() != 0 && df.length() != 0){\n for(int i = 0; i < data.size(); i++){\n String dateeee = data.get(i).getDate();\n try {\n datefrom = dateFormat.parse(df);\n dateto = dateFormat.parse(dt);\n datadate = dateFormat.parse(dateeee);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(data.get(i).getCategory().equals(c) && datadate.compareTo(datefrom) >= 0 && datadate.compareTo(dateto) <= 0){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //title, country, category\n if(t.length() != 0 && country.length() != 0 && c.length() != 0 && df.length() == 0){\n for(int i = 0; i < data.size(); i++){\n if(data.get(i).getTitle().equals(t) && data.get(i).getCountry().equals(country) && data.get(i).getCategory().equals(c)){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //title, country, date\n if(t.length() != 0 && country.length() != 0 && c.length() == 0 && df.length() != 0){\n for(int i = 0; i < data.size(); i++){\n String dateeee = data.get(i).getDate();\n try {\n datefrom = dateFormat.parse(df);\n dateto = dateFormat.parse(dt);\n datadate = dateFormat.parse(dateeee);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(data.get(i).getTitle().equals(t) && data.get(i).getCountry().equals(country) && datadate.compareTo(datefrom) >= 0 && datadate.compareTo(dateto) <= 0){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //title, category, date\n if(t.length() != 0 && country.length() == 0 && c.length() != 0 && df.length() != 0){\n for(int i = 0; i < data.size(); i++){\n String dateeee = data.get(i).getDate();\n try {\n datefrom = dateFormat.parse(df);\n dateto = dateFormat.parse(dt);\n datadate = dateFormat.parse(dateeee);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(data.get(i).getTitle().equals(t) && data.get(i).getCategory().equals(c) && datadate.compareTo(datefrom) >= 0 && datadate.compareTo(dateto) <= 0){\n filteredData.add(data.get(i));\n }\n }\n }\n\n\n //country, category, date\n if(t.length() == 0 && country.length() != 0 && c.length() != 0 && df.length() != 0){\n for(int i = 0; i < data.size(); i++){\n String dateeee = data.get(i).getDate();\n try {\n datefrom = dateFormat.parse(df);\n dateto = dateFormat.parse(dt);\n datadate = dateFormat.parse(dateeee);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(data.get(i).getCategory().equals(c) && data.get(i).getCountry().equals(country) && datadate.compareTo(datefrom) >= 0 && datadate.compareTo(dateto) <= 0){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //title, country, category and date\n if(t.length() != 0 && country.length() != 0 && c.length() != 0 && df.length() != 0){\n for(int i = 0; i < data.size(); i++){\n String dateeee = data.get(i).getDate();\n try {\n datefrom = dateFormat.parse(df);\n dateto = dateFormat.parse(dt);\n datadate = dateFormat.parse(dateeee);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(data.get(i).getTitle().equals(t) && data.get(i).getCategory().equals(c) && data.get(i).getCountry().equals(country) && datadate.compareTo(datefrom) >= 0 && datadate.compareTo(dateto) <= 0){\n filteredData.add(data.get(i));\n }\n }\n }\n }",
"public ArrayList<Sighting> filter(ArrayList<Sighting> rawSightings);",
"public void filter(String charText) {\n charText = charText.toLowerCase();\n\n //countries.clear();\n //countries = DashboardFragment.countriesList;\n CountryFragment.countriesList.clear();\n if (charText.length() == 0) {\n CountryFragment.countriesList.addAll(countries);\n // countries.addAll(DashboardFragment.countriesList);\n } else {\n for (Countries wp : countries) {\n if (wp.getCountry().toLowerCase().contains(charText)) {\n CountryFragment.countriesList.add(wp);\n //countries.add(wp);\n }\n }\n }\n notifyDataSetChanged();\n }",
"public static List<Student> filterExample(){\n\t\tList<Student> genderFilter = StudentDataBase.getAllStudents().stream()\n\t\t\t\t.filter(stu->stu.getGender().equals(\"female\")).collect(Collectors.toList());\n\t\treturn genderFilter;\n\t}",
"FilterResults performFiltering(CharSequence charSequence) { // Aplicamos el filtro\n String charString = charSequence.toString(); // String con el filtro\n if (charString.isEmpty()) { // Si esta vacio\n filteredSites = allSites; // No hay filtro y se muestran todas las instalaciones\n } else { // Si no\n ArrayList<ULLSiteSerializable> auxFilteredList = new ArrayList<>();\n for (ULLSiteSerializable site : allSites) { // Para todas las instalaciones \n // Se comprueba si el nombre la filtro coincide con la instalacion\n if (site.getName().toLowerCase().contains(charString.toLowerCase())) \n auxFilteredList.add(site); // Si coincide se agregan a la lista\n // auxiliar\n }\n filteredSites = auxFilteredList; // La lista auxiliar es igual a la de \n } // las instalaciones filtradas a mostrar\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredSites;\n return filterResults; // Se devuelve el resultado del filtro\n }",
"ObservableList<Patient> getFilteredPatientList();",
"public void relevantInstructor(ArrayList<Instructor> listINS){\n\t\t//CODE HERE\n\t\tboolean check = true;\n\t\tfor(Instructor instructor:listINS){\n\t\t\tfor (RegCourse course:registeredCourses){\n\t\t\t\tif(instructor.checkTeaching(course.getCourseCode())){\n\t\t\t\t\tif(check){\n\t\t\t\t\t\tSystem.out.println(\"[Relevant Instructor]\");\n\t\t\t\t\t\tcheck=false;\n\t\t\t\t\t}\n\t\t\t\t\tinstructor.printInfo();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void testFilterStudent() {\n System.out.println(\"filterStudent\");\n HashMap<String, Student> result = new HashMap<>();\n School instance = new School();\n\n result.put(student1.getId(), student1);\n result.put(student2.getId(), student2);\n result.put(student3.getId(), student3);\n instance.setStudents(students);\n\n assertEquals(result, instance.filterStudent(\"\", students));\n assertEquals(result, instance.filterStudent(\" \", students));\n System.out.println(\"PASS with null filter\");\n\n result.remove(student1.getId());\n result.remove(student2.getId());\n assertEquals(result, instance.filterStudent(\"Hong\", students));\n System.out.println(\"PASS with name field\");\n\n result.put(student1.getId(), student1);\n result.put(student2.getId(), student2);\n assertEquals(result, instance.filterStudent(\"@\", students));\n assertEquals(result, instance.filterStudent(\"0909090909\", students));\n assertEquals(result, instance.filterStudent(\"08-0808-0808\", students));\n System.out.println(\"PASS with other fields\");\n\n result.clear();\n assertEquals(result, instance.filterStudent(\"qwerty\", students));\n System.out.println(\"PASS with not-found filter\");\n\n System.out.println(\"PASS ALL\");\n }",
"@Override\n protected Filter.FilterResults performFiltering(CharSequence constraint) {\n final Filter.FilterResults filterResults = new Filter.FilterResults();\n final List<Scenario> results = new ArrayList<Scenario>();\n\n if (original != null) {\n boolean noConstraint = constraint == null || constraint.toString().trim().isEmpty();\n for (Scenario s : original) {\n if (noConstraint || Integer.toString(s.getScenarioId()).contains(constraint) || s.getScenarioName().toLowerCase().contains(constraint)) {\n results.add(s);\n }\n }\n }\n filterResults.values = results;\n filterResults.count = results.size();\n return filterResults;\n\n }",
"void updateFilteredPersonList(Set<String> keywords);",
"private List<ClinicItem> filter(List<ClinicItem> cList, String query){\n query = query.toLowerCase();\n final List<ClinicItem> filteredModeList = new ArrayList<>();\n\n for(ClinicItem vetClinic:cList){\n if(vetClinic.getName().toLowerCase().contains(query)){\n filteredModeList.add(vetClinic); }\n }\n return filteredModeList;\n }",
"@Override\n public List<Client> filterByName(String searchString){\n log.trace(\"filterByName -- method entered\");\n Iterable<Client> clients = clientRepository.findAll();\n List<Client> result = StreamSupport.stream(clients.spliterator(),false).filter((c)->c.getName().contains(searchString)).collect(Collectors.toList());\n log.trace(\"filterByName: result = {}\", result);\n return result;\n\n }",
"public void filterList(String text) {\n filter.filter(text);\n }",
"ObservableList<Person> getFilteredPersonList();",
"private void filterClub(String filter) throws JSONException, InterruptedException {\r\n\t /**Database Manager Object used to access mlab.com*/\r\n db.setDataBaseDestination(cDatabase, null, true);\r\n db.accessDatabase();\r\n\r\n MongoCollection<Document> col = db.getEntireDatabaseResults();\r\n \r\n // iterator to go through clubs in database\r\n Iterable<Document> iter;\r\n iter = col.find();\r\n \r\n // ArrayList of clubs matching the filter type \r\n ArrayList<JSONObject> clubs = new ArrayList<>();\r\n \r\n // check clubs to see if they match the type input by the user\r\n for (Document doc : iter) {\r\n JSONObject profile = new JSONObject(doc);\r\n \r\n if (filter.equals(profile.get(\"type\").toString()))\r\n \t clubs.add(profile);\r\n }\r\n \r\n if (clubs.isEmpty()) {\r\n \t logger.log(Level.INFO, \"There are no clubs matching that type.\");\r\n \t displayFilter();\r\n }\r\n else \r\n \t filter(clubs); \r\n}",
"public List<TableData> filter(List<TableData> incomeData) throws Exception{\r\n return filterByNote(filterByCategory(filterByDate(incomeData)));\r\n }",
"void updateFilteredListsToShowAll();",
"public static void filter() {\n\t\t\n\t\tResult.filter(toggleGroup.getSelectedToggle().getUserData(), ((ComboBox)hbox3.getChildren().get(0)).getValue());\n\t\t\n\t}",
"public List<PedidoIndividual> filtrar(PedidoIndividual filtro);",
"@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n List<EventDTO> filteredList = new ArrayList<>();\n /* If the given charSequence (Users input in searchview) is 0 or null, if so readies all events to be searched through */\n if(constraint == null || constraint.length() == 0) {\n filteredList.addAll(itemsToAdaptComplete);\n } else {\n /* Makes input not case sensitive */\n String filterPattern = constraint.toString().toLowerCase().trim(); // Locale.ROOT\n /* Searches through all of the events to check for matching characters */\n for (EventDTO item : itemsToAdaptComplete) {\n if (item.getName().toLowerCase().contains(filterPattern)) {\n filteredList.add(item);\n }\n }\n }\n /* Sets results */\n FilterResults results = new FilterResults();\n results.values = filteredList;\n return results;\n }",
"@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n if (constraint.length() == 0) {\n array = arrayList_copy;\n\n } else {\n\n if (filterType == 0) {\n array = getItemFilter(constraint.toString().toLowerCase());\n } else {\n array = getCodeFilter(constraint.toString().toLowerCase());\n }\n\n }\n FilterResults filterResults = new FilterResults();\n filterResults.values = array;\n\n\n return filterResults;\n }",
"@Override\n public void run() {\n filteredList.clear();\n\n // If there is no search value, then add all original list items to filter list\n if (TextUtils.isEmpty(text)) {\n if (dataList != null)\n filteredList.addAll(dataList);\n\n } else {\n if (dataList != null) {\n // Iterate in the original List and add it to filter list...\n for (InTransitTransactionData item : dataList) {\n if (item.getdropAt().toLowerCase().contains(text.toLowerCase())\n || item.getLrNumber().toLowerCase().contains(text.toLowerCase())\n || item.getVehicleNumber().toLowerCase().contains(text.toLowerCase())) {\n // Adding Matched items\n filteredList.add(item);\n }\n }\n }\n }\n\n // Set on UI Thread\n (activity).runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // Notify the List that the DataSet has changed...\n if (filteredList.size() == 0) {\n //Utils.toast(\"No data found\");\n }\n notifyDataSetChanged();\n }\n });\n\n }",
"public ArrayList<CampusEvent> eventListFilter (ArrayList<CampusEvent> campusEvents, Filters filter) {\n ArrayList<CampusEvent> newList = new ArrayList<CampusEvent>();\n //if all the filters are zero, return original list\n Log.d(Globals.TAGG, \"Showing what the filters are\");\n\n if (filter == null) {\n Log.d(Globals.TAGG, \"All filters are null\");\n return campusEvents;\n } else {\n if (filter.getfFood() == 0 && filter.getfEventType() == 0 && filter.getfProgramType() == 0 && filter.getfGender() == 0 && filter.getfGreekSociety() == 0 && filter.getfMajor() == 0 && filter.getfYear() == 0) {\n return campusEvents;\n }\n if (filter.getfFood() != 0) {\n for (CampusEvent event : campusEvents) {\n int scaleval = filter.getfFood() - 1;\n if (event.getFood() == scaleval) {\n newList.add(event);\n }\n }\n }\n if (filter.getfEventType() != 0) {\n for (CampusEvent event : campusEvents) {\n int scaleval = filter.getfEventType() - 1;\n if (event.getEventType() == scaleval) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfProgramType() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getProgramType() == filter.getfProgramType()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfYear() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getYear() == filter.getfYear()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfMajor() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getMajor() == filter.getfMajor()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfGender() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getGender() == filter.getfGender()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfGreekSociety() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getGreekSociety() == filter.getfGreekSociety()) {\n newList.add(event);\n }\n }\n }\n\n return newList;\n }\n }",
"@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n constraint = constraint.toString().toLowerCase();\n FilterResults result = new FilterResults();\n if (constraint != null && constraint.toString().length() > 0) {\n List<Message> filt = new ArrayList<Message>(); //filtered list\n for (int i = 0; i < originalData.size(); i++) {\n Message m = originalData.get(i);\n if (m.getSender().getEmailAddress().getName().toLowerCase().contains(constraint)) {\n filt.add(m); //add only items which matches\n }\n }\n result.count = filt.size();\n result.values = filt;\n } else { // return original list\n synchronized (this) {\n result.values = originalData;\n result.count = originalData.size();\n }\n }\n return result;\n }",
"@Override\n protected void publishResults(CharSequence constraint, FilterResults results) {\n @SuppressWarnings(\"unchecked\")\n ArrayList<Exercice> filteredList = (ArrayList<Exercice>) results.values;\n if(results.count > 0) {\n clear();\n for (Exercice e : filteredList) {\n add(e);\n }\n notifyDataSetChanged();\n }\n }",
"public ArrayList<University> fieldSearch(String schoolName, String state, String location, int numStudentsMin,\n\t\t\tint numStudentsMax, float percentFemaleMin, float percentFemaleMax, int SATVerbalMin, int SATVerbalMax,\n\t\t\tint SATMathMin, int SATMathMax, int expensesMin, int expensesMax, float PercentFinancialAidMin,\n\t\t\tfloat percenetFinancialAidMax, int numberApplicantsMin, int numberApplicatnsMax, float percentAddmittedMin,\n\t\t\tfloat percentAdmittedMax, float percentEnrolledMin, float percentEnrolledMax, int academicScaleMin,\n\t\t\tint academicScaleMax, int socialScalemin, int socialScaleMax, int qualityOfLifeMin, int qualityOfLifeMax,\n\t\t\tString[] emphases, String control) {\n\t\tArrayList<University> matchSchools;\n\n\t\tif (!sfCon.loggedIn) {\n\n\t\t\tif (schoolName.equals(\"\") && state.equals(\"\") && location.equals(\"\") && numStudentsMin == -1\n\t\t\t\t\t&& numStudentsMax == -1 && percentFemaleMin == -1 && percentFemaleMax == -1 && SATVerbalMin == -1\n\t\t\t\t\t&& SATVerbalMax == -1 && SATMathMin == -1 && SATMathMax == -1 && expensesMin == -1\n\t\t\t\t\t&& expensesMax == -1 && PercentFinancialAidMin == -1 && percenetFinancialAidMax == -1\n\t\t\t\t\t&& numberApplicantsMin == -1 && numberApplicatnsMax == -1 && percentAddmittedMin == -1\n\t\t\t\t\t&& percentAdmittedMax == -1 && percentEnrolledMin == -1 && percentEnrolledMax == -1\n\t\t\t\t\t&& academicScaleMin == -1 && academicScaleMax == -1 && socialScalemin == -1 && socialScaleMax == -1\n\t\t\t\t\t&& qualityOfLifeMin == -1 && qualityOfLifeMax == -1 && control.equals(\"\")) {\n\t\t\t\tthrow new IllegalArgumentException(\"Sorry, you must input at least one search field\");\n\t\t\t}\n\n\t\t\telse if ((numStudentsMax < numStudentsMin && numStudentsMax != -1)\n\t\t\t\t\t|| (percentFemaleMax < percentFemaleMin && percentFemaleMax != -1)\n\t\t\t\t\t|| (SATVerbalMax < SATVerbalMin && SATVerbalMax != -1)\n\t\t\t\t\t|| (SATMathMax < SATMathMin && SATMathMax != -1) || (expensesMax < expensesMin && expensesMax != -1)\n\t\t\t\t\t|| (percenetFinancialAidMax < PercentFinancialAidMin && percenetFinancialAidMax != -1)\n\t\t\t\t\t|| (numberApplicatnsMax < numberApplicatnsMax && numberApplicatnsMax != -1)\n\t\t\t\t\t|| (percentAdmittedMax < percentAddmittedMin && percentAdmittedMax != -1)\n\t\t\t\t\t|| (percentEnrolledMax < percentEnrolledMin && percentEnrolledMax != -1)\n\t\t\t\t\t|| (academicScaleMax < academicScaleMin && academicScaleMax != -1)\n\t\t\t\t\t|| (socialScaleMax < socialScalemin && socialScaleMax != -1)\n\t\t\t\t\t|| (qualityOfLifeMax < qualityOfLifeMin && qualityOfLifeMax != -1)) {\n\t\t\t\tthrow new IllegalArgumentException(\"Sorry, your no minimum can be greater than a maximum\");\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tmatchSchools = sfCon.search(schoolName, state, location, numStudentsMin, numStudentsMax,\n\t\t\t\t\t\tpercentFemaleMin, percentFemaleMax, SATVerbalMin, SATVerbalMax, SATMathMin, SATMathMax,\n\t\t\t\t\t\texpensesMin, expensesMax, PercentFinancialAidMin, percenetFinancialAidMax, numberApplicantsMin,\n\t\t\t\t\t\tnumberApplicatnsMax, percentAddmittedMin, percentAdmittedMax, percentEnrolledMin,\n\t\t\t\t\t\tpercentEnrolledMax, academicScaleMin, academicScaleMax, socialScalemin, socialScaleMax,\n\t\t\t\t\t\tqualityOfLifeMin, qualityOfLifeMax, emphases, control);\n\t\t\t\tfor (int i = 0; i < matchSchools.size(); i++) {\n\t\t\t\t\tSystem.out.println(matchSchools.get(i).getName());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse {\n\t\t\tthrow new IllegalArgumentException(\"Sorry, you must be logged in to access this functionality\");\n\t\t}\n\n\t\treturn matchSchools;\n\t}",
"public void setAvailabilitiesFiltered(List<Availability> parsedAvailabilities){\n for(int i=0; i<flights.size(); i++){\n for(int j=0; j<parsedAvailabilities.size();j++) {\n if(flights.get(i).getFlightNumber().equals(parsedAvailabilities.get(j).getFlightNumber()) && flights.get(i).getDepartureDate().equals(parsedAvailabilities.get(j).getDepartureDate()) && flights.get(i).getAirlineCode().equals(parsedAvailabilities.get(j).getAirlineCode()) ){\n availabilities.add(parsedAvailabilities.get(j));\n }\n }\n }\n }",
"@FXML\n public void filterIngredients(){\n String searchText = searchIngredient.getText();\n List<Ingredient> filteredList = ingredientsFromDatabase.stream().filter(new Predicate<Ingredient>() {\n @Override\n public boolean test(Ingredient ingredient) {\n //inclusive of the upper cases makes it case insensitive\n if (ingredient.getName().toUpperCase().contains(searchText.toUpperCase())){\n return true;\n } else {\n return false;\n }\n }\n }).collect(Collectors.toList());\n filterObservableList = FXCollections.observableList(filteredList);\n ingredientsList.setItems(filterObservableList);\n }",
"public void init() {\n\t\texternallyManaged = getCourse().isExternallyManaged();\n\n\t\t// Get the default search text\n\t\tif(StringUtils.trimToNull(searchText) == null) {\n\t\t\tsearchText = JsfUtil.getLocalizedMessage(\"roster_search_text\");\n\t\t}\n\n\t\t// Get the site enrollments\n\t\tList siteStudents;\n\t\tif(searchText.equals(JsfUtil.getLocalizedMessage(\"roster_search_text\"))) {\n\t\t\tsiteStudents = getSectionManager().getSiteEnrollments(getSiteContext());\n\t\t} else {\n\t\t\tsiteStudents = getSectionManager().findSiteEnrollments(getSiteContext(), searchText);\n\t\t}\n\t\t\n\t\t// Get the section enrollments\n\t\tSet studentUids = new HashSet();\n\t\tfor(Iterator iter = siteStudents.iterator(); iter.hasNext();) {\n\t\t\tParticipationRecord record = (ParticipationRecord)iter.next();\n\t\t\tstudentUids.add(record.getUser().getUserUid());\n\t\t}\n\t\tSectionEnrollments sectionEnrollments = getSectionManager().getSectionEnrollmentsForStudents(getSiteContext(), studentUids);\n\t\t\n\t\t// Construct the decorated enrollments for the UI\n\t\tList unpagedEnrollments = new ArrayList();\n\t\tcategories = getSectionManager().getSectionCategories(getSiteContext());\n\t\t\n\t\tfor(Iterator iter = siteStudents.iterator(); iter.hasNext();) {\n\t\t\tEnrollmentRecord enrollment = (EnrollmentRecord)iter.next();\n\t\t\t\n\t\t\t// Build a map of categories to sections in which the student is enrolled\n\t\t\tMap map = new HashMap();\n\t\t\tfor(Iterator catIter = categories.iterator(); catIter.hasNext();) {\n\t\t\t\tString cat = (String)catIter.next();\n\t\t\t\tCourseSection section = sectionEnrollments.getSection(enrollment.getUser().getUserUid(), cat);\n\t\t\t\tmap.put(cat, section);\n\t\t\t}\n\t\t\tEnrollmentDecorator decorator = new EnrollmentDecorator(enrollment, map);\n\t\t\tunpagedEnrollments.add(decorator);\n\t\t}\n\n\t\t// Sort the list\n\t\tCollections.sort(unpagedEnrollments, getComparator());\n\t\t\n\t\t// Filter the list\n\t\tenrollments = new ArrayList();\n\t\tint lastRow;\n\t\tint maxDisplayedRows = getPrefs().getRosterMaxDisplayedRows();\n\t\tif(maxDisplayedRows < 1 || firstRow + maxDisplayedRows > unpagedEnrollments.size()) {\n\t\t\tlastRow = unpagedEnrollments.size();\n\t\t} else {\n\t\t\tlastRow = firstRow + maxDisplayedRows;\n\t\t}\n\t\tenrollments.addAll(unpagedEnrollments.subList(firstRow, lastRow));\n\t\tenrollmentsSize = unpagedEnrollments.size();\n\t}",
"public void filter(String charText) {\n charText = charText.toLowerCase();\n listData.clear(); // clear the listData\n\n if (charText.length() == 0) { // if nothing is written in the searchbar\n listData.addAll(copie); // refill the listData with all comic\n } else {\n for (Comic searchComic : copie) {\n // else, it will fill the lisData with the comic responding to the charText in th searchbar\n if (searchComic.getTitre().toLowerCase().contains(charText)) {\n listData.add(searchComic);\n }\n }\n }\n notifyDataSetChanged(); // notify to the data that the list had changed\n }",
"@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n FilterResults results=new FilterResults();\n\n if(constraint != null && constraint.length()>0)\n {\n //CONSTARINT TO UPPER\n constraint=constraint.toString().toUpperCase();\n\n ArrayList<Busqueda> filters=new ArrayList<Busqueda>();\n\n //get specific items\n for(int i=0;i<FilterDatos.size();i++)\n {\n if(FilterDatos.get(i).getTitulo().toUpperCase().contains(constraint))\n {\n Busqueda p=new Busqueda();\n p.setId(FilterDatos.get(i).getId());\n p.setTitulo(FilterDatos.get(i).getTitulo());\n p.setDescripcion(FilterDatos.get(i).getDescripcion());\n p.setContraseña(FilterDatos.get(i).getContraseña());\n p.setLongitud(FilterDatos.get(i).getLongitud());\n p.setTerminada(FilterDatos.get(i).getTerminada());\n p.setPuntos(FilterDatos.get(i).getPuntos());\n filters.add(p);\n }\n }\n\n results.count=filters.size();\n results.values=filters;\n\n }else\n {\n results.count=FilterDatos.size();\n results.values=FilterDatos;\n\n }\n\n return results;\n }",
"@Override\n public void run() {\n filtered_list.clear();\n\n // If there is no search value, then add all original list items to filter list\n if (TextUtils.isEmpty(searchText)) {\n if (original_data != null)\n filtered_list.addAll(original_data);\n\n } /*\n\n naco to tu je??\n\n else {\n // Iterate in the original List and add it to filter list...\n for (MnozstvaTovaru item : original_data) {\n if (item.getTovarNazov().toLowerCase().contains(searchText.toLowerCase())) {\n // Adding Matched items\n filtered_list.add(item);\n }\n }\n } */\n\n // Set on UI Thread\n ((Activity) context).runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // Notify the List that the DataSet has changed...\n notifyDataSetChanged();\n }\n });\n\n }",
"public void filter(String charText) {\n try {\n charText = charText.toLowerCase(Locale.getDefault());\n arrayListVideoDTOs.clear();\n if (charText.length() == 0) {\n arrayListVideoDTOs.addAll(listSearch);\n } else {\n for (VideoDTO dto : listSearch) {\n if (dto.getVideoShortDescription().toLowerCase(Locale.getDefault())\n .contains(charText) ||\n dto.getVideoName().toLowerCase(Locale.getDefault()).contains(charText) ||\n dto.getVideoTags().toLowerCase(Locale.getDefault()).contains(charText)) {\n if (!containsLocation(arrayListVideoDTOs, dto.getVideoName()))\n arrayListVideoDTOs.add(dto);\n }\n }\n }\n notifyDataSetChanged();\n }catch(Exception e)\n {\n e.printStackTrace();\n }\n }",
"public static void streamFilter(List<Associate> associateList, String filter) {\n\n\t\tString filter2 = filter.toLowerCase();\n\n\t\tassociateList.stream()\n\t\t\t\t.filter((Associate a) -> new StringBuilder(a.getFirstname().toLowerCase()).indexOf(filter2) != -1)\n\n\t\t\t\t.forEach((Associate a) -> {\n\t\t\t\t\tSystem.out.println(a.getFirstname());\n\n\t\t\t\t});\n\t}",
"public void filterArticles() {\n filterAgent.score(articles, filterType);\n articles = insertionSort(articles); // sorted articles list\n\n refreshTable();\n if (articles.size() > 0) {\n currentArt = (NewsArticle) articles.elementAt(0);\n }\n }",
"public List<StudentRecord> filter(IFilter filter) {\n\t\tList<StudentRecord> temporaryList = new ArrayList<>();\n\n\t\tfor (StudentRecord studentRecord : studentRecords) {\n\t\t\tif (filter.accepts(studentRecord)) {\n\t\t\t\ttemporaryList.add(studentRecord);\n\t\t\t}\n\t\t}\n\t\treturn temporaryList;\n\t}",
"public GroupsOnlySenseFilter() {\n \n }",
"public abstract List<Course> getByFilter(HashMap<String, String> filter);",
"@Override\n public void filter(String type) {\n\n List<Doctor> newDocs = new ArrayList<>();\n \n for (Doctor doctor : doctors) {\n //If doctor's specialization matches user searched specialization add to new doctor list\n if (doctor.getSpecialization()!=null && doctor.getSpecialization().equals(type)) {\n newDocs.add(doctor);\n }\n }\n \n //Set new doctor list as the doctor list\n doctors = newDocs;\n }",
"@FXML\n public void filterCupboardIngredients(){\n String searchText = searchIngredientCupboard.getText();\n List<Ingredient> filteredList = ingredientsFromDatabase.stream().filter(new Predicate<Ingredient>() {\n @Override\n public boolean test(Ingredient ingredient) {\n //inclusive of the upper cases makes it case insensitive\n if (ingredient.getName().toUpperCase().contains(searchText.toUpperCase())){\n return true;\n } else {\n return false;\n }\n }\n }).collect(Collectors.toList());\n filterObservableList = FXCollections.observableList(filteredList);\n allIngredientsCupboardPane.setItems(filterObservableList);\n }",
"ObservableList<Appointment> getFilteredAppointmentList();",
"void updateFilteredListToShowAll();",
"void updateFilteredListToShowAll();",
"Collection<? extends String> getHasInstitutionName();",
"private void applyFilters() {\n Task task = new Task() {\n @Override\n public Object call() {\n long start = System.currentTimeMillis();\n System.out.println(\"Applying filters! \" + filterList.size());\n filteredRowItemList = fullCustomerRowItemList;\n for (CustomerListFilter eachFilter : filterList) {\n eachFilter.setCustomerList(filteredRowItemList);\n filteredRowItemList = eachFilter.run();\n }\n System.out.println(\"Filtering took : \" + (System.currentTimeMillis() - start) + \" ms\");\n searchResultsTable.setItems(filteredRowItemList);\n customerCountStatus.setText(Integer.toString(filteredRowItemList.size()));\n return null;\n }\n };\n task.run();\n }",
"public void filterTable(String filter) {\n\t\tif (fullBackup.isEmpty() || fullBackup == null) {\n\t\t\tfullBackup.addAll(list);\n\t\t}\n\n\t\t// always clear selected items\n\t\tselectionModel.clear();\n\t\tlist.clear();\n\n\t\tif (filter.equalsIgnoreCase(\"\")) {\n\t\t\tlist.addAll(fullBackup);\n\t\t} else {\n\t\t\tfor (Attribute attr : fullBackup){\n\t\t\t\t// store facility by filter\n\t\t\t\tif (attr.getFriendlyName().toLowerCase().startsWith(filter.toLowerCase())) {\n\t\t\t\t\tlist.add(attr);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tdataProvider.flush();\n\t\tdataProvider.refresh();\n\t\tloaderImage.loadingFinished();\n\n\t}",
"public abstract void filter();",
"public void showAllSchedulesFiltered(ArrayList<Scheduler> schedulesToPrint) {\n ArrayList<String> filters = new ArrayList<>();\n while (yesNoQuestion(\"Would you like to filter for another class?\")) {\n System.out.println(\"What is the Base name of the class you want to filter for \"\n + \"(eg. CPSC 210, NOT CPSC 210 201)\");\n filters.add(scanner.nextLine());\n }\n for (int i = 0; i < schedulesToPrint.size(); i++) {\n for (String s : filters) {\n if (Arrays.stream(schedulesToPrint.get(i).getCoursesInSchedule()).anyMatch(s::equals)) {\n System.out.println(\" ____ \" + (i + 1) + \":\");\n printSchedule(schedulesToPrint.get(i));\n System.out.println(\" ____ \");\n }\n }\n }\n }",
"private void filter(String text) {\n ArrayList<Pokemon> filteredList = new ArrayList();\n\n for (Pokemon p : team) {\n ArrayList<Type> types = p.getTypes();\n ArrayList<String> typesStringArray = getTypesStringArray(types);\n String typesString = getTypesString(typesStringArray);\n\n boolean nameContainsSearchedText = p.getName().toLowerCase().contains(text.toLowerCase());\n boolean typesContainsSearchedText = typesString.toLowerCase().contains(text.toLowerCase());\n\n if (nameContainsSearchedText || typesContainsSearchedText) {\n filteredList.add(p);\n }\n }\n\n adapter.filteredList(filteredList);\n }",
"public void searchByEmail() {\n System.out.println(\"enter email to get that person details:\");\n Scanner sc = new Scanner(System.in);\n String email = sc.nextLine();\n Iterator itr = list.iterator();\n while (itr.hasNext()) {\n Contact person = (Contact) itr.next();\n if (email.equals(person.getEmail())) {\n List streamList = list.stream().filter(n -> n.getEmail().contains(email)).collect(Collectors.toList());\n System.out.println(streamList);\n }\n }\n }",
"private void filter(String text) {\n List<Target> filteredlist = new ArrayList<>();\n // running a for loop to compare elements.\n for (Target item : repositoryList) {\n // checking if the entered string matched with any item of our recycler view.\n if (item.getNameTarget().toLowerCase().contains(text.toLowerCase())) {\n // if the item is matched we are\n // adding it to our filtered list.\n filteredlist.add(item);\n }\n } adapter.updateData(filteredlist);\n }",
"public static void filter(Object filterBy, Object filterValue) {\n\n\t\tif(filterBy.equals(\"Course\")) { // Filter by course\n\n\t\t\tArrayList<QuizData> list = new ArrayList<QuizData>();\n\n\t\t\tArrayList<QuizData> quizList = BrowserData.quizList();\n\n\t\t\tfor (int i = 0; i < quizList.size(); i++) {\n\n\t\t\t\tif(filterValue.equals(quizList.get(i).getCourse())) {\n\n\t\t\t\t\tlist.add(quizList.get(i));\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tresultList = list;\n\t\t\tResult.instance().draw();\n\t\t}\n\n\t\tif(filterBy.equals(\"Author\")) { // Filter by author\n\n\t\t\tArrayList<QuizData> list = new ArrayList<QuizData>();\n\n\t\t\tArrayList<QuizData> quizList = BrowserData.quizList();\n\n\t\t\tfor (int i = 0; i < quizList.size(); i++) {\n\n\t\t\t\tif(filterValue.equals(quizList.get(i).getUser().getLastName() + \", \" + quizList.get(i).getUser().getFirstName())) {\n\n\t\t\t\t\tlist.add(quizList.get(i));\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tresultList = list;\n\t\t\tResult.instance().draw();\n\n\t\t}\n\n\t\tif(filterBy.equals(\"None\")) { // Apply no filter\n\n\t\t\tresultList = BrowserData.quizList();\n\t\t\tResult.instance().draw();\n\n\t\t}\n\n\t}",
"private List<Scholarship> filter(List<Scholarship> models, String query) {\n query = query.toLowerCase();\n final List<Scholarship> filteredModelList = new ArrayList<>();\n for (final Scholarship model : models) {\n final String text = model.getTitle().toLowerCase();\n if (text.contains(query)) {\n filteredModelList.add(model);\n }\n }\n return filteredModelList;\n }",
"List<Accessprofile> listWithCriteras(List<SearchCriteria> searchCriterias);",
"@RequestMapping(value = \"/{institutionCode}/students\", method = RequestMethod.GET)\n\tpublic ResponseEntity<StudentListWrapper> getAllStudentsByInstitution(\n\t\t\t@PathVariable(\"institutionCode\") final String institutionCode) {\n\t\t\n\t\tfinal Collection<Course> courses = new ArrayList<>(); \n\t\tfinal Collection<Student> students = new ArrayList<>();\n\t\tcourses.addAll(institutionService.findAllCoursesByInstitutionCode(institutionCode));\n\t\tstudents.addAll(institutionService.findAllStudentsByInstitution(institutionCode));\n\t\tfinal StudentListWrapper studentsWrapper = new StudentListWrapper(students, courses);\n\t\treturn new ResponseEntity<>(studentsWrapper, HttpStatus.OK);\n\t}",
"@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n FilterResults results = new FilterResults();\n if (constraint != null && constraint.length() > 0) {\n\n ArrayList<VehicleData> filterList = new ArrayList<>();\n\n for (int i = 0; i < mflatFilterList.size(); i++) {\n if (\n mflatFilterList.get(i).getName().toLowerCase().contains(constraint.toString().toLowerCase())\n || mflatFilterList.get(i).getNumber().toLowerCase().contains(constraint.toString().toLowerCase())\n || mflatFilterList.get(i).getModel().toLowerCase().contains(constraint.toString().toLowerCase())\n || mflatFilterList.get(i).getColor().toLowerCase().contains(constraint.toString().toLowerCase())\n || mflatFilterList.get(i).getFlat().getNumber().toLowerCase().contains(constraint.toString().toLowerCase())\n || mflatFilterList.get(i).getFlat().getName().toLowerCase().contains(constraint.toString().toLowerCase())\n ) {\n filterList.add(mflatFilterList.get(i));\n }\n }\n\n results.count = filterList.size();\n\n results.values = filterList;\n\n } else {\n results.count = mflatFilterList.size();\n results.values = mflatFilterList;\n }\n return results;\n }",
"public String askArrFilter();",
"public LinkedList<Article> filterArticleList(int filter)\n\t{\n\t\treturn null;\n\t}",
"@Override\n public void initializeListOfCompaniesWithoutParticipants() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"initializeListOfCompaniesWithoutParticipants\");\n }\n\n EntityManager em = EntityManagerService.provideEntityManager();\n companiesWithoutParticipants = new ArrayList<Institution>();\n List<ConnectathonParticipant> foundParticipantsPerCompany;\n TestingSession ts = TestingSession.getSelectedTestingSession();\n List<Institution> companiesParticipating = TestingSession.getListOfInstitutionsParticipatingInSession(ts);\n\n for (Institution inst : companiesParticipating) {\n Query query = em\n .createQuery(\"SELECT cp FROM ConnectathonParticipant cp WHERE cp.testingSession = :inTestingSession AND cp.institution = \" +\n \":inInstitution\");\n query.setParameter(IN_TESTING_SESSION, ts);\n query.setParameter(IN_INSTITUTION, inst);\n foundParticipantsPerCompany = query.getResultList();\n\n if (foundParticipantsPerCompany.size() == 0) {\n companiesWithoutParticipants.add(inst);\n }\n }\n }",
"@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n FilterResults results = new FilterResults();\n if (constraint != null && constraint.length() > 0) {\n //CONSTARINT TO UPPER\n constraint = constraint.toString().toUpperCase();\n List<Product> filters = new ArrayList<Product>();\n //get specific items\n for (int i = 0; i < filterList.size(); i++) {\n if (filterList.get(i).getAdi().toUpperCase().contains(constraint)) {\n Product p = new Product(filterList.get(i).getIncKey(),filterList.get(i).getCicekPasta(),filterList.get(i).getUrunKodu(),\n filterList.get(i).getSatisFiyat(),filterList.get(i).getKdv(),filterList.get(i).getResimKucuk(),\n filterList.get(i).getSiparisSayi(),filterList.get(i).getDefaultKategori(),filterList.get(i).getCicekFiloFiyat(),\n filterList.get(i).getAdi(), filterList.get(i).getResimBuyuk(), filterList.get(i).getIcerik());\n filters.add(p);\n }\n }\n results.count = filters.size();\n results.values = filters;\n if(filters.size()==0){ // if not found result\n TextView tv= (TextView) mainActivity.findViewById(R.id.sonucyok);\n tv.setText(\"Üzgünüz, aradığınız sonucu bulamadık..\");\n Log.e(\"bbı\",\"oıfnot\");\n }\n else\n mainActivity.findViewById(R.id.sonucyok).setVisibility(View.INVISIBLE);\n\n } else {\n results.count = filterList.size();\n results.values = filterList;\n }\n return results;\n }",
"private void filterStudents() {\n Scanner sc = new Scanner(System.in);\n System.out.print(\"The string with which you want the student first name to start: \");\n String anAwesomeString = sc.next();\n\n System.out.println(\"Filtered students (the ones whose first name start with \" + anAwesomeString + \"):\");\n Set<Student> students = ctrl.filterStudentsByFirstName(anAwesomeString);\n if (students.isEmpty())\n System.out.println(\"There isnt't any student whose name starts with the given string!\");\n else\n students.forEach(System.out::println);\n }",
"protected Map<String, String> getFilter() {\n\t\tMap<String, String> filterMap = new HashMap<String, String>();\n\t\tfilterMap.clear();\n\t\tString filterGrade = \"\";\n\t\tString elemGrade=\"\";\n\t\t\n\t\tString eleGrade = getSelectedFilter(eleGradePanelUc);\n\t\tif (!eleGrade.isEmpty()) {\n\t\t\tfilterGrade+=eleGrade;\n\t\t}\n\t\tString midGrade = getSelectedFilter(middleGradePanelUc);\n\t\tif (!midGrade.isEmpty()) {\n\t\t\tif(filterGrade.equals(\"\")){\n\t\t\t\tif(elemGrade.isEmpty()){\n\t\t\t\t\tfilterGrade+=midGrade;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tfilterGrade+=\",\"+midGrade;\n\t\t\t}\n\t\t}\n\t\tString highGrade = getSelectedFilter(highrGradePanelUc);\n\t\tif (!highGrade.isEmpty()) {\n\t\t\tif(filterGrade.equals(\"\")){\n\t\t\t\tfilterGrade+=highGrade;\n\t\t\t}else{\n\t\t\t\tfilterGrade+=\",\"+highGrade;\n\t\t\t}\n\t\t}\n\t\tif(filterGrade!=null && !filterGrade.equals(\"\")){\n\t\t\tfilterMap.put(IsSearchView.GRADE_FLT, filterGrade);\n\t\t}\n\t\tString selectedSubject = getSelectedFilter(subjectPanelUc, \"~~\");\n\t\tif (!selectedSubject.isEmpty()) {\n\t\t\tfilterMap.put(IsSearchView.SUBJECT_FLT, selectedSubject);\n\t\t}\n\t\treturn filterMap;\n\t}",
"public static List<Person> getPersonsListByPlanet(List<Person> personsList , String planet)\n\t{\n\t\tList<Person> filteredList = personsList.stream().filter(x ->x.getPlanetOfResidence().equalsIgnoreCase(planet)).collect(Collectors.toList());\n\t\treturn filteredList;\n\t}",
"public void setFilter(List<DataEntity> dataEntities) {\n dataEntityList = new ArrayList<>();\n dataEntityList.addAll(dataEntities);\n Log.d(\"ttt\", \"setFilter: \" + dataEntities.size());\n notifyDataSetChanged();\n\n }",
"@Override\n public Filter getFilter() {\n return main_list_filter;\n }",
"List<String> getFilters();",
"public List getInwDepartCompetences(InwDepartCompetence inwDepartCompetence);",
"private void listDepartments(String filterText) {\n TextField filter = new TextField();\r\n filter.setPlaceholder(\"Filter by last name\");\r\n filter.setValueChangeMode(ValueChangeMode.EAGER);\r\n filter.addValueChangeListener(e -> listDepartments(e.getValue()));\r\n add(filter, grid);\r\n\r\n if (StringUtils.isEmpty(filterText)){\r\n grid.setItems(repo.findAll());\r\n }\r\n else{\r\n grid.setItems(repo.findByNameOfDepartmentStartsWithIgnoreCase(filterText));\r\n }\r\n\r\n }",
"public ArrayList<Question> filterBySubj(ArrayList<Question> input, Subject subj) {\n\n /* The final filtered arraylist */\n ArrayList<Question> filtered = new ArrayList<Question>();\n\n /* Loops through the passed in array */\n for (int i=0; i < input.size(); i++) {\n\n /* if the question matches the criteria, add it to the arraylist */\n if (input.get(i).getSubject().getName().equals(subj.getName())) {\n filtered.add(input.get(i));\n }\n }\n\n return filtered;\n }",
"ObservableList<Booking> getFilteredBookingList();",
"ObservableList<Doctor> getFilteredDoctorList();",
"private void updateFilteredData() {\n mainApp.getFilteredData().clear();\n\n for (FilmItem p : mainApp.getFilmData()) {\n if (matchesFilter(p)) {\n \tmainApp.getFilteredData().add(p);\n }\n }\n }",
"List<ChartBean> returnResearchFundingByDepartmentInstituteCenter();",
"public FilterResults performFiltering(CharSequence constraint) {\n FilterResults results = new FilterResults();\n if (constraint == null || constraint.length() == 0) {\n results.values = CaSiAdapter.this.listSort;\n results.count = CaSiAdapter.this.listSort.size();\n } else {\n ArrayList<CaSi> lsSach = new ArrayList<>();\n Iterator it = CaSiAdapter.this.list.iterator();\n while (it.hasNext()) {\n CaSi p = (CaSi) it.next();\n if (String.valueOf(p.getMaCS()).toUpperCase().contains(constraint.toString().toUpperCase()) || p.getHoTenCS().toUpperCase().contains(constraint.toString().toUpperCase())) {\n lsSach.add(p);\n }\n }\n results.values = lsSach;\n results.count = lsSach.size();\n }\n return results;\n }",
"@Override\n public List<FoodItem> filterByName(String substring) {\n //turn foodItemList into a stream to filter the list and check if any food item matched \n return foodItemList.stream().filter(x -> x.getName().toLowerCase() \n .contains(substring.toLowerCase())).collect(Collectors.toList());\n }",
"public void searchByName() {\n System.out.println(\"enter a name to search\");\n Scanner sc = new Scanner(System.in);\n String fName = sc.nextLine();\n Iterator itr = list.iterator();\n while (itr.hasNext()) {\n Contact person = (Contact) itr.next();\n if (fName.equals(person.getFirstName())) {\n List streamlist = list.stream().\n filter(n -> n.getFirstName().\n contains(fName)).\n collect(Collectors.toList());\n System.out.println(streamlist);\n }\n }\n }",
"@Test\n public void searchItems_LocationIsInCityInfo_ReturnListOfItems(){\n assertEquals(Arrays.toString(workerI.searchItems(\"David\", null)), Collections.singletonList(\"Ho Chi Minh City, Downtown\").toString());\n assertNotEquals(Arrays.toString(workerI.searchItems(\"David\", null)), Collections.singletonList(\"Crescent Mall\").toString());\n assertNotEquals(Arrays.toString(workerI.searchItems(\"David\", null)), Collections.singletonList(\"abc\").toString());\n assertNotEquals(Arrays.toString(workerI.searchItems(\"David\",null)), Collections.singletonList(\"\").toString());\n }",
"public static List<StudentInfo> searchStudentInfo(String firtname, String lastname) {\r\n \r\n List<StudentInfo> students = new ArrayList<>();\r\n \r\n // declare resultSet\r\n ResultSet rs = null;\r\n \r\n // declare prepared statement\r\n PreparedStatement preparedStatement = null;\r\n \r\n // declare connection\r\n Connection conn = null;\r\n try {\r\n // get connection\r\n conn = DBUtils.getConnection();\r\n\r\n // set prepared statement\r\n preparedStatement = conn\r\n .prepareStatement(\"SELECT instructor.FName, instructor.LName,\" +\r\n \" IF(EXISTS ( SELECT * FROM gra WHERE gra.StudentId = phdstudent.StudentId) , 'GRA', \" +\r\n \" IF(EXISTS ( SELECT * FROM gta WHERE gta.StudentId = phdstudent.StudentId) , 'GTA', \" +\r\n \" IF(EXISTS ( SELECT * FROM scholarshipsupport WHERE scholarshipsupport.StudentId = phdstudent.StudentId) , 'scholarship', \" +\r\n \" IF(EXISTS ( SELECT * FROM selfsupport WHERE selfsupport.StudentId = phdstudent.StudentId) , 'self', ''))\" +\r\n \" )) AS StudentType, \" +\r\n \" milestone.MName, milestonespassed.PassDate\" +\r\n \" FROM phdstudent left join instructor on instructor.InstructorId = phdstudent.Supervisor\"\r\n + \" left join milestonespassed on phdstudent.StudentId = milestonespassed.StudentId\"\r\n + \" left join milestone on milestonespassed.MID = milestone.MID\" +\r\n \" WHERE phdstudent.FName = ? AND phdstudent.LName = ?\");\r\n \r\n // execute query\r\n preparedStatement.setString(1, firtname);\r\n preparedStatement.setString(2, lastname); \r\n\r\n rs = preparedStatement.executeQuery();\r\n \r\n //iterate and create the StudentInfo objects\r\n while (rs.next()) {\r\n \r\n students.add(new StudentInfo(rs.getString(1)+ \" \" + rs.getString(2), rs.getString(3), rs.getString(4), \r\n utils.Utils.toDate(rs.getDate(5))));\r\n\r\n }\r\n }catch(Exception ex){\r\n ex.printStackTrace();\r\n }\r\n finally {\r\n DBUtils.closeResource(conn);\r\n DBUtils.closeResource(preparedStatement);\r\n DBUtils.closeResource(rs);\r\n } \r\n \r\n return students; \r\n }",
"@SuppressWarnings(\"unchecked\")\n public List<String> getAllInstitutionNames() { \n Query query = sessionFactory.getCurrentSession().createQuery(\n \"select name from Institution where retired = false order by name\");\n\n return (List<String>) query.list();\n }",
"private void filter(ArrayList<JSONObject> clubs) throws JSONException, InterruptedException {\r\n\t int index; \r\n\t String back = \"\";\r\n\t boolean done;\r\n\t \r\n\t // print clubs \r\n\t do {\r\n\t for (JSONObject c : clubs) {\r\n\t \t index = clubs.indexOf(c) + 1;\r\n\t \t logger.log(Level.INFO, index + \". \" + c.get(cName).toString());\r\n\t }\r\n\t\r\n\t index = -1;\r\n \r\n \t logger.log(Level.INFO, \"Please enter the number of the club you\" +\r\n\t\t \" would like to view or 'back' to return to the filter page\");\r\n \t \r\n \t if (in.hasNextInt()) \r\n \t index = in.nextInt();\r\n else\r\n \t back = in.nextLine();\r\n \t \r\n \t // if user wants to view club page go to page\r\n\t if (index > 0 && index <= clubs.size()) {\r\n\t \t done = true;\r\n\t \t clubs.get(index);\r\n\t }\r\n\t else if (\"back\".equals(back)) {\r\n\t \t done = true;\r\n\t \t displayFilter();\r\n\t }\r\n\t else {\r\n\t \t done = false;\r\n\t \t logger.log(Level.INFO, \"Invalid option.\\n\");\r\n\t }\r\n } while (!done);\r\n }",
"public interface ArmorFilter {\n List<Equipment> filter(List<Equipment> equipmentList);\n}",
"public static void main(String[] args) {\n List<String> al =new ArrayList<String>(); // creating object for the array list and map it to the interface-(List)\n al.add(\"India\");\n al.add(\"Canada\");\n al.add(\"China\");\n al.add(\"USA\");\n al.add(\"Australia\");\n\n al.add(2,\"Africa\");//inserts data\n System.out.println(al.contains(\"canada\"));//finds an value\n\n System.out.println(al.get(0)); // prints \"India\"\n\n Iterator<String> iter =al.iterator(); // helps to print all the values in the arraylist\n while(iter.hasNext()) //hasNext() is a boolean.. it says whether there is next value in a arraylist\n {\n String country = iter.next();\n System.out.println(country);\n }\n }",
"public interface IFilter {\n\t\n\t/**\n\t * Returns true if student record satisfies\n\t * condition\n\t * @param record - student record\n\t * @return {@code true} if student record satisfies\n\t *\t\t\t condition\n\t */\n\tpublic boolean accepts(StudentRecord record);\n}",
"private void filterClients()\n {\n System.out.println(\"filtered Clients (membership of type 'Gold''):\");\n Set<Client> clients = ctrl.filterClientsByMembershipType(\"Gold\");\n clients.stream().forEach(System.out::println);\n }",
"@Override\r\n\tpublic ArrayList<SchoolValue> getValuesFiltered(Boolean searchByPcode, String pCode, Double radius, Boolean searchByDistrict, String district, Boolean searchByString, String search, Boolean searchByClassSize, int minSize, int maxSize) {\r\n\t\t// 3 preps here, for defensive coding (not bothering to search for something if it's null) and to fill latitude, longitude\r\n\t\t// pCode prep\r\n\t\tLatLong aLatLong = null;\r\n\t\tDouble latitude = 0.0;\r\n\t\tDouble longitude = 0.0;\r\n\t\tif (pCode != null) {\r\n\t\t\taLatLong = findLatLong(pCode);\r\n\t\t\tif (aLatLong != null) {\r\n\t\t\t\tlatitude = aLatLong.getLatitude();\r\n\t\t\t\tlongitude = aLatLong.getLongitude();\r\n\t\t\t} else {\r\n\t\t\t\tsearchByPcode = false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tsearchByPcode = false;\r\n\t\t}\r\n\t\t\r\n\t\t// district prep\r\n\t\tif (district == null)\r\n\t\t\tsearchByDistrict = false;\r\n\t\t\r\n\t\t// search prep\r\n\t\tif (search == null)\r\n\t\t\tsearchByString = false;\r\n\t\t\r\n\t\t// populate a list of districts \r\n\t\tArrayList<District> districts = BCDistricts.getInstance().getDistricts();\r\n\r\n\t\t// populate a list of schools from districts\r\n\t\tArrayList<School> schools = new ArrayList<School>();\r\n\t\tfor (int i = 0; i<districts.size();i++) {\r\n\t\t\tschools.addAll(districts.get(i).schools);\r\n\t\t}\r\n\t\t\r\n\t\t// populate a list of schoolvalues from schools, filtering\r\n\t\tArrayList<SchoolValue> schoolValues = new ArrayList<SchoolValue>();\r\n\t\t\r\n\t\tfor (int i = 0; i<schools.size();i++) {\r\n\t\t\tSchool school = schools.get(i);\r\n\t\t\t// (!searching || result) && (!searching || result) && (!searching || result)\r\n\t\t\t// T T => T, T F => F, F T => T, F F => T\r\n\t\t\t// for a filter component to pass, either we're not searching for something (ignore result)\r\n\t\t\t// or we are and result is true, thus (!searching || result) && (...) format\r\n\t\t\tif ((!searchByPcode || areWithinRange(latitude, longitude, school.getLat(), school.getLon(), radius)) && // TODO: EXTRACT TESTING METHOD\r\n\t\t\t\t(!searchByDistrict || stringMatchesTo(district, school.getDistrict().name)) &&\r\n\t\t\t\t(!searchByString || ( stringMatchesTo(search, school.getName()) ||\r\n\t\t\t\t\t\t\t\t\t\tstringMatchesTo(search, school.getLocation()) || \r\n\t\t\t\t\t\t\t\t\t\tstringMatchesTo(search, school.getDistrict().name))) &&\r\n\t\t\t\t(!searchByClassSize || ((school.getClassSize() >= minSize) && (school.getClassSize() <= maxSize)))) { \r\n\r\n\t\t\tschoolValues.add(school.getEquivSchoolValue());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// TODO: ADD SORTING\r\n\t\t}\r\n\t\t\r\n\t\treturn schoolValues;\r\n\t}",
"public void updateFilterList() {\n filteredList.clear();\n filteredList.addAll(searchList);\n filteredList.retainAll(mediaCategoryList);\n }",
"public void updateAllFilteredListToShowAllActiveEntries();",
"private void changeTableBookOnSearch(){\n FilteredList<TeacherBookIssue> filteredData = new FilteredList<>(teacherBooksData,p -> true);\r\n \r\n //set the filter predicate whenever the filter changes\r\n teacher_searchTeacherID.textProperty().addListener((observable,oldValue,newValue)->{\r\n \r\n filteredData.setPredicate(TeacherBookIssue -> {\r\n \r\n //if filter text is empty, display all product\r\n if (newValue == null || newValue.isEmpty()) {\r\n return true;\r\n }\r\n \r\n //compare product id and product name of every product with the filter text\r\n String lowerCaseFilter =newValue.toLowerCase();\r\n \r\n if (TeacherBookIssue.getTeacherID().toLowerCase().contains(lowerCaseFilter)) {\r\n return true; // Filter matches product Id\r\n } \r\n \r\n return false; // Do not match \r\n });\r\n \r\n });\r\n \r\n //wrap the filteredList in a sortedList\r\n SortedList<TeacherBookIssue> sortedData = new SortedList<>(filteredData);\r\n \r\n //bind the sortedData to the Tableview\r\n sortedData.comparatorProperty().bind(teachserIssuedTable.comparatorProperty());\r\n \r\n //add sorted and filtered data to the table\r\n teachserIssuedTable.setItems(sortedData); \r\n }",
"public ArrayList getSchools();",
"@SuppressWarnings(\"unchecked\")\n @Override\n protected void publishResults(CharSequence constraint, FilterResults results) {\n filteredList = (ArrayList<Project>) results.values;\n notifyDataSetChanged();\n }",
"public void searchByState() {\n System.out.println(\"enter a name of state to fetch person data fro state :--\");\n String state = scanner.next();\n\n Iterator it = list.iterator();\n while (it.hasNext()) {\n Contact person = (Contact) it.next();\n if (state.equals(person.getState())) {\n List stream = list.stream().filter(n -> n.getCity().contains(state)).collect(Collectors.toList());\n System.out.println(stream);\n }\n }\n }"
] |
[
"0.6072407",
"0.5854474",
"0.5836132",
"0.5814842",
"0.57381445",
"0.5709573",
"0.5601259",
"0.55570537",
"0.5519235",
"0.5453434",
"0.5434272",
"0.5428028",
"0.5424131",
"0.541354",
"0.53720385",
"0.5347643",
"0.53277254",
"0.5323824",
"0.5313124",
"0.5307694",
"0.5288663",
"0.527551",
"0.5271389",
"0.5270328",
"0.5262932",
"0.52508765",
"0.52363753",
"0.52270967",
"0.522667",
"0.522645",
"0.52187383",
"0.52142197",
"0.51844347",
"0.51754344",
"0.517358",
"0.5172236",
"0.5161321",
"0.5160139",
"0.51430225",
"0.51414394",
"0.51302886",
"0.51254654",
"0.51233786",
"0.5113232",
"0.5100947",
"0.510043",
"0.5100191",
"0.50866383",
"0.50685817",
"0.5066766",
"0.5063157",
"0.50628257",
"0.50628257",
"0.50462055",
"0.5041276",
"0.50382507",
"0.50346184",
"0.5033962",
"0.50332457",
"0.5031089",
"0.5026592",
"0.50099695",
"0.500964",
"0.49970183",
"0.49908218",
"0.49853134",
"0.4973237",
"0.49730355",
"0.49643564",
"0.4940008",
"0.49386767",
"0.4938256",
"0.49310184",
"0.49285376",
"0.49258333",
"0.49255732",
"0.4922778",
"0.4921979",
"0.49206755",
"0.49150756",
"0.49127758",
"0.49094513",
"0.49088734",
"0.49081838",
"0.49063888",
"0.4897271",
"0.48902616",
"0.48894012",
"0.48874533",
"0.48807657",
"0.48778826",
"0.48769104",
"0.4867562",
"0.48654196",
"0.48600596",
"0.48487735",
"0.48482051",
"0.48478717",
"0.4847427",
"0.4843866",
"0.48390508"
] |
0.0
|
-1
|
This method is for selecting Institute from the list
|
public void selectSchoolFromList(String schoolId) {
common.waitForElement(selectSchoolTable, 60);
shcoolIdList = selectSchoolTable.findElements(By.className("Cell"));
WebElement selectedSchoolId = null;
for (WebElement id : shcoolIdList) {
WebElement staticText = id.findElement(By.className("StaticText"));
if (staticText.getText().equals(schoolId)) {
selectedSchoolId = id;
break;
}
}
selectedSchoolId.click();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getInstitute() {\n return institute;\n }",
"public void setInstitute(String institute) {\n this.institute = institute;\n }",
"List selectByExample(TResearchTeachExample example);",
"public void selectVenue() {\n\t\t\r\n\t}",
"private void hireInstructor(int index) {\n\t\tSystem.out.println(\"Hire instructor called...\");\n\t\t// get current semester code\n\t\tJdbcConnector connector = new JdbcConnector();\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = connector.getConnection();\n\t\t\tjava.sql.Statement stmt = conn.createStatement();\n\n\t\t\tString selectInstructorIdSql = \"Select id, instructor_id from assignments \"\n\t\t\t\t\t+ \"where semester_code = 1 and display_index = \" + index + \";\";\n\n\t\t\tResultSet selectInstructorIdRs = stmt.executeQuery(selectInstructorIdSql);\n\t\t\tint instructorId = 0;\n\t\t\tint id = 0;\n\t\t\tif (selectInstructorIdRs.next()) {\n\t\t\t\tinstructorId = selectInstructorIdRs.getInt(\"instructor_id\");\n\t\t\t\tid = selectInstructorIdRs.getInt(\"id\");\n\t\t\t}\n\t\t\tSystem.out.println(\"Instructor id is - \" + instructorId);\n\n\t\t\tString sql = \"SELECT * From semester_instructor_map where semester_code = 1 and instructor_id = \"\n\t\t\t\t\t+ instructorId + \";\";\n\t\t\tSystem.out.println(\"SQL - \" + sql);\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\n\t\t\tif (rs.next()) {\n\t\t\t\tSystem.out.println(Constants.INSTRUCTOR_ALREADY_SELECTED);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Instructor not selected yet...\");\n\t\t\t\tPreparedStatement insertMap = conn.prepareStatement(\n\t\t\t\t\t\t\"INSERT INTO semester_instructor_map(semester_code, instructor_id) VALUES (?,?);\");\n\t\t\t\tinsertMap.setInt(1, 1);\n\t\t\t\tinsertMap.setInt(2, instructorId);\n\t\t\t\tSystem.out.println(\"execute insert - \" + insertMap.executeUpdate());\n\t\t\t\tinsertMap.close();\n\n\t\t\t\tPreparedStatement updatMap = conn\n\t\t\t\t\t\t.prepareStatement(\"UPDATE assignments SET assigned = 'Y' WHERE id = ?\");\n\t\t\t\tupdatMap.setInt(1, id);\n\t\t\t\tSystem.out.println(\"execute upate - \" + updatMap.executeUpdate());\n\t\t\t\tupdatMap.close();\n\t\t\t}\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tconnector.closeConnection(conn);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// Get the record from UI\n\t\t// Hire!!!\n\n\t}",
"List<InspectionAgency> selectByExample(InspectionAgencyExample example);",
"@Override\n @SuppressWarnings(\"unchecked\")\n @Restrict(\"#{s:hasPermission('InstitutionManager', 'viewInstitution', null)}\")\n public String viewInstitutionForTM(final Institution inSelectedInstitution) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"viewInstitutionForTM\");\n }\n if (inSelectedInstitution == null) {\n return null;\n }\n selectedInstitution = entityManager.find(Institution.class, inSelectedInstitution.getId());\n Query query = entityManager\n .createQuery(\"select p from Person p join p.personFunction function, Institution i where p.institution = i and p.institution = \" +\n \":inInstitution and function = :inFunction\");\n query.setParameter(\"inFunction\", PersonFunction.getBillingFunction(entityManager));\n query.setParameter(\"inInstitution\", selectedInstitution);\n\n List<Person> foundContacts = query.getResultList();\n\n if (foundContacts.size() > 1) {\n LOG.error(\"-----------------------------------------------------------------------------\");\n LOG.error(\"Institution = Id(\" + selectedInstitution.getId() + \") \" + selectedInstitution.getName());\n LOG.error(\"Several FINANCIAL contacts found for that institution ! ONE IS REQUIRED ! FATAL Error ! FOUND = \"\n + foundContacts.size());\n\n for (int l = 0; l < foundContacts.size(); l++) {\n LOG.error(l + \" - FINANCIAL contact = Id(\" + foundContacts.get(l).getId() + \") \"\n + foundContacts.get(l).getLastname() + \" \" + foundContacts.get(l).getFirstname());\n\n }\n LOG.error(\"-----------------------------------------------------------------------------\");\n selectedContact = foundContacts.get(0);\n\n } else if (foundContacts.size() == 0) {\n\n selectedContact = new Person();\n\n } else if (foundContacts.size() == 1) {\n selectedContact = foundContacts.get(0);\n }\n\n checkInvoiceIntanciation(selectedInstitution);\n\n return \"/users/institution/showInstitution.seam\";\n }",
"public void setInstitution(String institution1) {\n this.institution = institution1;\n }",
"List<NeeqCompanyAccountingFirmOnline> selectByExample(NeeqCompanyAccountingFirmOnlineExample example);",
"List<TrainingCourse> selectByExample(TrainingCourseExample example);",
"public Institution() {\n this.name = \"Institution\";\n }",
"Collection<? extends String> getHasInstitutionName();",
"public String getInstitution() {\n return this.institution;\n }",
"List<ReEducation> selectByExample(ReEducationExample example);",
"@Override\n\tpublic Iterator<Student> selectAll() {\n\t\tString sql=\"SELECT a.id,a.num,a.name,a.email,a.phone,a.degree,a.project,a.school,b.name,a.is_cap from tc_student as a,tc_school as b where a.school=b.id\";\n\t\tArrayList<Student> arr=new ArrayList<Student>();\n\t\tResultSet rs=mysql.query(sql);\n\t\ttry {\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tStudent stu=new Student();\n\t\t\t\tstu.setId(rs.getInt(1));\n\t\t\t\tstu.setNum(rs.getString(2));\n\t\t\t\tstu.setName(rs.getString(3));\n\t\t\t\tstu.setEmail(rs.getString(4));\n\t\t\t\tstu.setPhone(rs.getString(5));\n\t\t\t\tstu.setDegree(rs.getShort(6));\n\t\t\t\tstu.setProject(rs.getInt(7));\n\t\t\t\tstu.setSchool(rs.getInt(8));\n\t\t\t\tstu.setSchoolstring(rs.getString(9));\n\t\t\t\tstu.setIs_cap(rs.getInt(10));\n\t\t\t\tstu.setDegreestring(degreemap[stu.getDegree()]);\n\t\t\t\tarr.add(stu);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn arr.iterator();\n\t}",
"public ArrayList getSchools();",
"@RequestMapping(value = \"/{institutionCode}/students\", method = RequestMethod.GET)\n\tpublic ResponseEntity<StudentListWrapper> getAllStudentsByInstitution(\n\t\t\t@PathVariable(\"institutionCode\") final String institutionCode) {\n\t\t\n\t\tfinal Collection<Course> courses = new ArrayList<>(); \n\t\tfinal Collection<Student> students = new ArrayList<>();\n\t\tcourses.addAll(institutionService.findAllCoursesByInstitutionCode(institutionCode));\n\t\tstudents.addAll(institutionService.findAllStudentsByInstitution(institutionCode));\n\t\tfinal StudentListWrapper studentsWrapper = new StudentListWrapper(students, courses);\n\t\treturn new ResponseEntity<>(studentsWrapper, HttpStatus.OK);\n\t}",
"@Override\n\tpublic Record findByInsititutionName(String institution) {\n\t\treturn Db.findFirst(\"select *from institution_info where institution_name = '\"+institution+\"'\");\n\t}",
"public void seleccionSitio() {\r\n\t\tif (sitioId != null) {\r\n\t\t\tsitio = hashSitios.get(sitioId);\r\n\t\t\tcargarEstudiantesSitio();\r\n\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\tSystem.out.println(libres);\r\n\t\t}\r\n\t}",
"public void selectInstitute(String school, String school_id) {\n\t\tcommon.waitFor(1000);\n\t\tselectSchoolTextField.click();\n\t\tselectSchoolTextField.sendKeys(school);\n\t\tselectSchoolFromList(school_id);\n\t\t// 1st from dropdown\n\t\tclickNextButton.click(); // next button\n\t\tcommon.waitForElement(hideKeyboard);\n\t\thideKeyboard.click();\n\t\tcommon.waitForElement(checkLogin.loginPageText, 60);\n\t}",
"public String getInstitution()\n\t{\n\t\treturn this.institution;\n\t}",
"@Override\r\n\tpublic List<Student> selectStudent(String name, String alias) {return null;\r\n\t}",
"public Counselor(String first, String last, String password, String p1, String p2, String p3, String p4, \n String p5, String p6, String p7, String p8)\n {\n super(first, last, password, p1, p2, p3, p4, p5, p6, p7, p8);\n students = new ArrayList<Student>();\n }",
"List<TSubjectInfo> selectByExample(TSubjectInfoExample example);",
"List<Online> selectByExample(OnlineExample example);",
"List<WordSchool> selectByExample(WordSchoolExample example);",
"public FindStudy() {\n initComponents();\n \n //identifiers.put(studyUID,identifier);\n //identifiers.get(studyUID);\n \n }",
"@SuppressWarnings(\"unchecked\")\n public List<String> getAllInstitutionNames() { \n Query query = sessionFactory.getCurrentSession().createQuery(\n \"select name from Institution where retired = false order by name\");\n\n return (List<String>) query.list();\n }",
"public InstitutionVO inquireInstitution(String id) {\n\t\tSystem.out.println(\"Institution is inquired\");\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<String> selectAdvertiserNameList(BaseSearchData searchData)\n\t\t\tthrows Exception {\n\t\tList<String> list=uscAdvertIncomeMapper.selectAdvertiserNameList(searchData);\n\t\treturn list;\n\t}",
"List<CompanyExtend> selectByExample(CompanyExtendExample example);",
"java.util.List<hr.domain.ResumeDBOuterClass.Education> \n getEducationsList();",
"public void updateUniversidades() {\n\t\t\n\t\tlistaUniversidades = (ArrayList<Universidades>)hibernateController.selectUniversidades();\n\t}",
"public void relevantInstructor(ArrayList<Instructor> listINS){\n\t\t//CODE HERE\n\t\tboolean check = true;\n\t\tfor(Instructor instructor:listINS){\n\t\t\tfor (RegCourse course:registeredCourses){\n\t\t\t\tif(instructor.checkTeaching(course.getCourseCode())){\n\t\t\t\t\tif(check){\n\t\t\t\t\t\tSystem.out.println(\"[Relevant Instructor]\");\n\t\t\t\t\t\tcheck=false;\n\t\t\t\t\t}\n\t\t\t\t\tinstructor.printInfo();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"List<CliStaffProject> selectByExample(CliStaffProjectExample example);",
"public String getInstitutionName() {\n return institutionName;\n }",
"public void chooseFortifyGivers(){\n gameState = GameState.FORTIFYGIVER;\n currentTerritoriesOfInterest = Player.getTerritoryStringArray(currentPlayer.getFortifyGivers());\n notifyObservers();\n }",
"public void setInstitutionCountry(String institutionCountry) {\n this.institutionCountry = institutionCountry;\n }",
"public String getInstitutionCountry() {\n return institutionCountry;\n }",
"@Override\n public void initializeListOfCompaniesWithoutParticipants() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"initializeListOfCompaniesWithoutParticipants\");\n }\n\n EntityManager em = EntityManagerService.provideEntityManager();\n companiesWithoutParticipants = new ArrayList<Institution>();\n List<ConnectathonParticipant> foundParticipantsPerCompany;\n TestingSession ts = TestingSession.getSelectedTestingSession();\n List<Institution> companiesParticipating = TestingSession.getListOfInstitutionsParticipatingInSession(ts);\n\n for (Institution inst : companiesParticipating) {\n Query query = em\n .createQuery(\"SELECT cp FROM ConnectathonParticipant cp WHERE cp.testingSession = :inTestingSession AND cp.institution = \" +\n \":inInstitution\");\n query.setParameter(IN_TESTING_SESSION, ts);\n query.setParameter(IN_INSTITUTION, inst);\n foundParticipantsPerCompany = query.getResultList();\n\n if (foundParticipantsPerCompany.size() == 0) {\n companiesWithoutParticipants.add(inst);\n }\n }\n }",
"Continent getSelectedContinent();",
"public void setInstitutionName(String institutionName) {\n this.institutionName = institutionName;\n }",
"@Override\n\tpublic Student selectStudent(String matriculation) {\n\t\t// FIX ME\n\t\treturn (Student) users.getStudents().get(matriculation);\n\t}",
"List<Course> selectByExample(CourseExample example);",
"@Override\n @Restrict(\"#{s:hasPermission('InstitutionManager', 'updateInstitution', null)}\")\n public String updateInstitutionForTM(final int inSelectedInstitutionId) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"updateInstitutionForTM\");\n }\n\n selectedInstitution = entityManager.find(Institution.class, inSelectedInstitutionId);\n\n Contexts.getSessionContext().set(\"selectedInstitution\", selectedInstitution);\n // Initialization for Address\n\n checkInvoiceIntanciation(selectedInstitution);\n\n List<Person> foundContacts = Person.listAllBillingContacts(entityManager, selectedInstitution);\n\n if ((foundContacts == null) || (foundContacts.size() == 0)) {\n\n selectedContact = new Person();\n selectedContact.setInstitution(selectedInstitution);\n\n List<PersonFunction> functions = new ArrayList<PersonFunction>();\n functions.add(PersonFunction.getBillingFunction(entityManager));\n selectedContact.setPersonFunction(functions);\n\n } else if (foundContacts.size() > 1) {\n LOG.error(\"-----------------------------------------------------------------------------\");\n LOG.error(\"Institution = Id(\" + selectedInstitution.getId() + \") \" + selectedInstitution.getName());\n LOG.error(\"Several FINANCIAL contacts found for that institution ! ONE IS REQUIRED ! FATAL Error ! FOUND = \"\n + foundContacts.size());\n\n for (int l = 0; l < foundContacts.size(); l++) {\n LOG.error(l + \" - FINANCIAL contact = Id(\" + foundContacts.get(l).getId() + \") \"\n + foundContacts.get(l).getLastname() + \" \" + foundContacts.get(l).getFirstname());\n\n }\n\n LOG.error(\"-----------------------------------------------------------------------------\");\n\n selectedContact = foundContacts.get(0);\n\n } else if (foundContacts.size() == 1) {\n selectedContact = foundContacts.get(0);\n }\n\n if (selectedContact != null) {\n selectedContact.getAddress();\n }\n // We check the financial contact if it exists, we set it as currentConcact\n Contexts.getSessionContext().set(\"selectedContact\", selectedContact);\n Contexts.getSessionContext().set(\"selectedInstitution\", selectedInstitution);\n\n return \"/users/institution/editInstitution.seam\";\n }",
"private void getUniversities() {\n ProgressDialog dialog = new ProgressDialog(this, \"Caricamento...\");\n application.databaseCall(\"universities.php\", UNIVERSITY_SELECTION_TAG, dialog);\n }",
"List<IymDefAssignment> selectByExample(IymDefAssignmentExample example);",
"List<ScPartyMember> selectAll();",
"List<ProSchoolWare> selectByExample(ProSchoolWareExample example);",
"public void setInstitution( final String institution )\n\t{\n\t\tthis.institution = institution;\n\t}",
"@Override\r\n\t\tpublic void onIndexSelect(String str) {\n\t\t\tsearch_contact_suoyin.setVisibility(View.VISIBLE);\r\n\t\t\tsearch_contact_suoyin.setText(str);\r\n\t\t\tfor(int i = 0; i < listItems.size(); i++){\r\n\t\t\t\tif(listItems.get(i).getSuoyin().equals(str)){\r\n\t\t\t\t\tsearch_contact_listview.setSelection(i);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"@Override\n public List<ArrayList<String>> queryInstructor(Token token, int instructorID) {\n // TODO Auto-generated method stub\n return null;\n }",
"public static void main(String[] args) {\n List<String> al =new ArrayList<String>(); // creating object for the array list and map it to the interface-(List)\n al.add(\"India\");\n al.add(\"Canada\");\n al.add(\"China\");\n al.add(\"USA\");\n al.add(\"Australia\");\n\n al.add(2,\"Africa\");//inserts data\n System.out.println(al.contains(\"canada\"));//finds an value\n\n System.out.println(al.get(0)); // prints \"India\"\n\n Iterator<String> iter =al.iterator(); // helps to print all the values in the arraylist\n while(iter.hasNext()) //hasNext() is a boolean.. it says whether there is next value in a arraylist\n {\n String country = iter.next();\n System.out.println(country);\n }\n }",
"hr.domain.ResumeDBOuterClass.Education getEducations(int index);",
"public void setSchools(ArrayList value);",
"List<Student> selectByExample(StudentExample example);",
"private void createGrpClinicSelection() {\n\n\t}",
"public void setInstitution(Long institution) {\n this.institution = institution;\n }",
"public List<StudyVO> listSubject(Criteria cri) {\n \n\t\t\t \n\tList<StudyVO> list =mapper.listSubject(cri);\n\tlogger.info(\"service계층에서list는\"+mapper.listSubject(cri));\n\tSystem.out.println(\"servicesubject:\"+cri);\n\treturn list;\n\t\n\t\n\n }",
"List<County> selectByExample(CountyExample example);",
"private void setupSchoolSpinner(){\n //region Used to set up the school spinner\n\n schools = new ArrayList<>(SchoolManager.getListOfAllSchools());\n\n ArrayAdapter<School> schoolAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, schools);\n schoolAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n schoolSpinner.setAdapter(schoolAdapter);\n schoolSpinner.setOnItemSelectedListener(this);\n\n //endregion End code for school spinner\n }",
"@Transactional\n\tpublic List<University> listAllUniversity() {\n\n\t\tCriteriaBuilder builder = getSession().getCriteriaBuilder();\n\t\tCriteriaQuery<University> criteriaQuery = builder.createQuery(University.class);\n\t\tRoot<University> root = criteriaQuery.from(University.class);\n\t\tcriteriaQuery.select(root);\n\t\tQuery<University> query = getSession().createQuery(criteriaQuery);\n\n\t\t// query.setFirstResult((page - 1) * 5);\n\t\t// query.setMaxResults(5);\n\t\treturn query.getResultList();\n\t}",
"public Long getInstitution() {\n return institution;\n }",
"@Override\n\tpublic List<Entrust> select() {\n\t\treturn entrustServiceImpl.select();\n\t}",
"@Override\n\tpublic List<StudentVO> sellectAll() {\n\t\treturn null;\n\t}",
"public String getInstitutionCode() {\n\t\treturn institutionCode;\n\t}",
"List<HomeWork> selectByExample(HomeWorkExample example);",
"@Override\n public String manageCompany(Institution inInstitution) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"manageCompany\");\n }\n\n renderAddPanel = false;\n choosenInstitutionForAdmin = entityManager.find(Institution.class, inInstitution.getId());\n Contexts.getSessionContext().set(CHOOSEN_INSTITUTION_FOR_ADMIN, selectedInstitution);\n\n return \"/users/connectathon/listParticipants.seam\";\n }",
"@Override\n\tpublic List<Student> selectStudent2(int classId) {\n\t\tString sql=\"SELECT stu_id,stu_no,stu_name,stu_profession FROM tb_student where class_id=?\";\n\t\tObject[] classid={classId};\n\t\tList<Student> stu=ORMUtil.ormutil().selectList(sql, classid, Student.class);\n\t\treturn stu;\n\t}",
"@Override\r\n\tpublic void seleccionarPersona() {\n\t\t\r\n\t}",
"public static void setsemesterId(int semesterId) {\n ListOfSubjects.semesterId =semesterId;\n\n }",
"List<Kaiwa> selectByExample(KaiwaExample example);",
"public void getUniversityCode(final Spinner qualifi){\n\n StringRequest stringRequest = new StringRequest(Request.Method.POST, DatabaseInfo.GetUniversityURL,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.d(\"Volleyresponse\",response.toString());\n try {\n JSONArray jArray;\n JSONObject Jobject = (JSONObject) new JSONTokener(response).nextValue();\n Log.e(\"volleyJson\", Jobject.toString());\n try {\n jArray = Jobject.getJSONArray(\"qualif\");\n Toast.makeText(getApplicationContext(),String.valueOf(jArray.length()+1),Toast.LENGTH_SHORT).show();\n int jarraylength=jArray.length()+1;\n\n String c1[] = new String[jarraylength];\n String c2[] = new String[jarraylength];\n String c3[] = new String[jarraylength];\n String sname,cid;\n for (int i = 0; i <jarraylength+1; i++) {\n JSONObject json_data = jArray.getJSONObject(i);\n\n\n cid = json_data.getString(\"id\");\n sname = json_data.getString(\"university\");\n Log.e(sname, \"got\");\n Log.e(\"got\",json_data.toString());\n Log.e(cid, \"got\");\n c1[i]=cid;\n c3[i]=sname;\n // Log.e(\"list sizzeeeee\",String.valueOf(countrycodename.size()+1));\n university2.add(i,sname);\n\n\n\n\n }\n\n\n } catch (Exception e) {\n }\n university2.add(0,\"Select University\");\n// countrycodid.add(0,\"0\");\n\n ArrayAdapter<String> spinnerAdapter =new ArrayAdapter<String>(getApplicationContext(),R.layout.spinner_iltem,university2);\n spinnerAdapter.setDropDownViewResource(R.layout.spinner_iltem);\n\n qualifi.setAdapter(spinnerAdapter);\n qualifi.setSelection(0);\n // Toast.makeText(getApplicationContext(),\" country code size \"+String.valueOf(Arrays.asList(countrycodid.size())),Toast.LENGTH_SHORT).show();\n\n // Toast.makeText(getApplicationContext(),\"country string array count \"+countrycodename.length,Toast.LENGTH_SHORT).show();\n\n } catch (Exception e) {\n }\n// pDialog.hide();\n // Toast.makeText(getActivity().getApplication(),response,Toast.LENGTH_LONG).show();\n }\n },\n\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n// pDialog.hide();\n Toast.makeText(MatrimonyRegistration.this,error.toString(), Toast.LENGTH_LONG).show();\n }\n }) {\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n return params;\n }\n\n };\n\n //Adding the string request to the queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(stringRequest);\n\n stringRequest.setRetryPolicy(new DefaultRetryPolicy(10000,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n }",
"public void setSelectedEducation(String sValue) {\n if (sValue == null || sValue.trim().length() < 1 || vecEducationKeys.indexOf(sValue) == -1)\n return;\n cbxEducation.setSelectedIndex(vecEducationKeys.indexOf(sValue));\n }",
"public void selectCompany() throws Exception {\n\t\tLoginSignupCompanyPage sp = new LoginSignupCompanyPage(driver);\n\t\tWebElement Companyelement = driver.findElement(By.xpath(\"//select[@name='j_client_id']\"));\n\t\tSelect se = new Select(Companyelement);\n\t\tse.selectByVisibleText(BasePage.getCellData(xlsxName, sheetName, 2, 0));\n\n\t}",
"public static SchoolCourse schoolCourseSelection() {\n Scanner input = new Scanner(System.in);\n printListOfSchoolCourses();\n int choice = validateInputArrayList(input.nextInt(), listOfSchoolCourses);\n return listOfSchoolCourses.get(choice - 1);\n\n }",
"List<Disease> selectByExample(DiseaseExample example);",
"@Override\n\tpublic List<Idol> selectList() {\n\t\treturn session.selectList(\"idols.selectList\");\n\t}",
"@Override\n\tpublic List<StudentVO> selectName(String name) {\n\t\treturn null;\n\t}",
"public List<Player> selectByNationality(String nationality) throws Exception;",
"public void registerStudents(List<E> listStudents, int courseCode){}",
"@Override\r\n\tpublic List<ManageNursingContentVO> selectByExampleAndProject(\r\n\t\t\tString nursingNurseid) throws Exception {\n\t\treturn mContentMapper.selectByExampleAndProject(nursingNurseid);\r\n\t}",
"private void initializeStudentRegList() {\r\n try {\r\n String query = \"SELECT * FROM ongoingregistrations WHERE studentid=?\";\r\n PreparedStatement pstmt = conn.prepareStatement(query);\r\n pstmt.setInt(1, id);\r\n ResultSet rs = pstmt.executeQuery();\r\n studentRegList = new ArrayList<>();\r\n while (rs.next()) {\r\n studentRegList.add(new Registration(rs.getInt(\"studentid\"), rs.getInt(\"courseid\"), rs.getInt(\"secnum\"), rs.getString(\"grade\"), conn));\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"List<Assist_table> selectByExample(Assist_tableExample example);",
"public static void main(String[] args) {\n Student s1 = new Student(\"Azat\");\n Student s2 = new Student(\"Saida\");\n Student s3 = new Student(\"Adil\");\n Student s4 = new Student(\"Sabira\");\n Student s5 = new Student(\"Saniya\");\n\n\n List<Student> cybertekStudents = new ArrayList<>(Arrays.asList(s1, s2, s3, s4, s5));\n\n School cybertek = new School(\"Cybertek\", cybertekStudents);\n\n cybertekStudents.add(new Student(\"Denis\"));\n cybertekStudents.add(new Student(\"Irina\"));\n\n System.out.println(cybertek);\n System.out.println(cybertek.schoolName);\n System.out.println(cybertek.allStudentsList);\n\n Student[] students = {new Student(\"Gulnaz\"),\n new Student(\"Sardar\")};\n cybertek.addNewStudent(students);\n System.out.println(cybertek.allStudentsList);\n\n for (Student each : cybertekStudents) {\n System.out.println(each.studentName);\n //347-785-9417 munavvar\n //donna fro Wic, how she is share info 718 616 4338\n\n\n }\n }",
"List<organize_infoBean> selectByExample(organize_infoBeanExample example);",
"Collection<? extends Object> getHasInstitutionHomePage();",
"public void setInstitutionCode(String institutionCode) {\n\t\tthis.institutionCode = institutionCode;\n\t}",
"public String listResearchers();",
"@Override\n\tpublic Student selectId(int id) {\n\t\tString sql=\"SELECT a.id,a.num,a.name,a.email,a.phone,a.degree,a.project,a.school,b.name,a.is_cap from tc_student as a,tc_school as b where a.school=b.id and a.id=\"+id;\n\t\tResultSet rs=mysql.query(sql);\n\t\tStudent stu=new Student();\n\t\ttry {\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tstu.setId(rs.getInt(1));\n\t\t\t\tstu.setNum(rs.getString(2));\n\t\t\t\tstu.setName(rs.getString(3));\n\t\t\t\tstu.setEmail(rs.getString(4));\n\t\t\t\tstu.setPhone(rs.getString(5));\n\t\t\t\tstu.setDegree(rs.getShort(6));\n\t\t\t\tstu.setProject(rs.getInt(7));\n\t\t\t\tstu.setSchool(rs.getInt(8));\n\t\t\t\tstu.setSchoolstring(rs.getString(9));\n\t\t\t\tstu.setIs_cap(rs.getInt(10));\n\t\t\t\tstu.setDegreestring(degreemap[stu.getDegree()]);\n\t\t\t}\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 stu;\n\t}",
"List<SysTeam> selectByExample(SysTeamExample example);",
"@Override\n\tpublic List<Subject> findMajorSubject() {\n\t\tList<Integer> types=new ArrayList<Integer>();\n\t\ttypes.add(0);\n\t\t\n\t\t\n\t\treturn dao.findByTypeIn(types);\n\t}",
"public University(String name){\n this.name = name;\n }",
"List<LawPerson> selectByExample(LawPersonExample example);",
"List<mailIdentify> selectByExample(mailIdentifyExample example);",
"public List<Student> selectStudentAll() {\n\t\treturn this.studentMaper.selectStudentAll();\r\n\t}",
"List<IceApp> selectByExample(IceAppExample example);",
"List<Visituser> selectByExample(VisituserExample example);",
"List<CommunityInform> selectAll();",
"List<Course> selectAll();"
] |
[
"0.5577801",
"0.5498566",
"0.5367782",
"0.5351886",
"0.5351702",
"0.53480506",
"0.52909744",
"0.5219442",
"0.5214544",
"0.52021444",
"0.52010095",
"0.5179275",
"0.51653004",
"0.5162375",
"0.5156051",
"0.5139893",
"0.5095817",
"0.50835633",
"0.50772697",
"0.50461066",
"0.50005335",
"0.49804738",
"0.49740863",
"0.49564153",
"0.4949542",
"0.4942763",
"0.49390942",
"0.49268618",
"0.49220306",
"0.49212295",
"0.49207437",
"0.49190918",
"0.4914839",
"0.49146387",
"0.4911413",
"0.49113965",
"0.48984876",
"0.48977757",
"0.4893743",
"0.48916644",
"0.48806757",
"0.48740366",
"0.486956",
"0.486927",
"0.48670164",
"0.48626554",
"0.48606038",
"0.48579043",
"0.48551214",
"0.48485127",
"0.48423934",
"0.4840075",
"0.48381862",
"0.48375723",
"0.48371634",
"0.4825148",
"0.48188606",
"0.48145634",
"0.48064315",
"0.480466",
"0.4801985",
"0.48001733",
"0.47910467",
"0.47906336",
"0.47867128",
"0.47839358",
"0.4779086",
"0.47790468",
"0.477613",
"0.47732633",
"0.47643852",
"0.47621143",
"0.47579548",
"0.4755844",
"0.47535023",
"0.47497997",
"0.47445682",
"0.47412065",
"0.47314835",
"0.47278532",
"0.47265705",
"0.4726108",
"0.47233263",
"0.47168097",
"0.47149548",
"0.47125745",
"0.47110835",
"0.47082064",
"0.47063673",
"0.47042325",
"0.47024244",
"0.47003824",
"0.46845916",
"0.46837658",
"0.46824482",
"0.4679227",
"0.46651325",
"0.46646193",
"0.46644774",
"0.4662198"
] |
0.4785845
|
65
|
This method is for clicking back button to choose account from list
|
public void clickBackButton() {
backButton.click();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void handleBackButton(ActionEvent event) throws IOException {\n showUserAccountPage(event);\n }",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t\tif (cmd == ConstantTool.PAY_SUCCESS) {\r\n\t\t\tIntent intent = new Intent(OrderList.this, Homemenu.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t}\r\n\t}",
"@Override\n public void onBackPressed() {\n changeForm(R.id.btnSignInForm);\n }",
"public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}",
"public void back(){\n\t\tswitch(state){\n\t\tcase LOGINID:\n\t\t\tbreak; //do nothing, already at top menu\n\t\tcase LOGINPIN:\n\t\t\tloginMenu();\n\t\t\tbreak;\n\t\tcase TRANSACTION:\n\t\t\tbreak; //do nothing, user must enter the choice to log out\n\t\tcase DEPOSIT:\n\t\t\ttransactionMenu();\n\t\t\tbreak;\n\t\tcase DEPOSITNOTIFICATION:\n\t\t\tbreak; //do nothing, user must press ok\n\t\tcase WITHDRAW:\n\t\t\ttransactionMenu();\n\t\t\tbreak;\n\t\tcase BALANCE:\n\t\t\tbreak; //do nothing, user must press ok\n\t\tcase WITHDRAWALNOTIFICATION:\n\t\t\tbreak; //do onthing, user must press ok\n\t\t}\n\t\t\n\t\tcurrentInput = \"\";\n\t}",
"public void onBackPressed() {\n startActivity(new Intent(NewaccountActivity.this, MainActivity.class));\n }",
"private void goBack() {\n View.clearViews();\n View.cambiar(\"operador.cliente\", new RegistrarClientes(operador));\n }",
"public void back() {\n Views.goBack();\n }",
"private void configureBackButton(){\n Button backButton = (Button) findViewById(R.id.backButton);\n backButton.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view){\n //TODO add the code that erases saved login key\n\n //opens login page and closes home page stack\n startActivity(new Intent(homePage.this, MainActivity.class));\n finish();\n\n }\n });\n }",
"public void back(View view) {\n Intent bac = new Intent(this, Sign_In.class);\n startActivity(bac);\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tif (isLstVisible) { lst.setVisibility(View.INVISIBLE); isLstVisible = false; }\n\t\telse finish();\n\t}",
"@Override\n public void handleOnBackPressed() {\n Intent intent = new Intent(context, AdminSessionEdit.class);\n startActivity(intent);\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tIntent i = new Intent(this, PayOptions.class);\n\t\tstartActivity(i);\n\t\treturn;\n\t}",
"@Override\n public void onBackPressed()\n {\t\n \t//Return tu login activity\n \tif(mlv.getUsersView())\n \t\tthis.finish();\n \telse\n \t{\n \t\t//Return to users view\n \t\tmlv.activateUsersView(); \t\t\n \t}\n }",
"private void backButtonAction() {\n CurrentUI.changeScene(SceneNames.LOGIN);\n }",
"public void onBackPressed() {\n Intent i = new Intent();\n i.putExtra(\"listCanceled\", true);\n setResult(Activity.RESULT_OK, i);\n finish();\n }",
"public void backToHome(){\n logger.debug(\"click on Back to Home button\");\n driver.findElement(oBackToHome).click();\n }",
"private void backActionPerformed(ActionEvent e) {\r\n ctr_pres.principal();\r\n setVisible(false);\r\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\t\n\t\tremoveClickList();\n\t\tfinish();\n\t}",
"@Override\n public void onBackPressed() {\n backToHome();\n }",
"@Override\r\n\tpublic void onBackPressed() {\r\n\t\tsuper.onBackPressed();\r\n\t\tlogout();\r\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\n\t\tnavigatetoAppointmentsListingScreen(\"false\");\n\t}",
"@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}",
"default public void clickBack() {\n\t\tclickMenu();\n\t}",
"public void goBack() {\n goBackBtn();\n }",
"public void back() {\n driver.navigate().back();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tAccountManage.this.finish();\n\t\t\t}",
"public void back(ActionEvent actionEvent) throws IOException {\n new PageLoader().load(\"Login\");\n }",
"public void onBackPressed() {\n\n Intent i = new Intent(Saved_Address.this, User_Profile.class);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n\n }",
"@Override\n\tpublic void goToBack() {\n\t\tif(uiHomePrestamo!=null){\n\t\tuiHomePrestamo.getHeader().getLblTitulo().setText(constants.prestamos());\n\t\tuiHomePrestamo.getHeader().setVisibleBtnMenu(true);\n\t\tuiHomePrestamo.getContainer().showWidget(1);\n\t\t}else if(uiHomeCobrador!=null){\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tuiHomeCobrador.getContainer().showWidget(2);\n\t\t\tuiHomeCobrador.getUiClienteImpl().cargarClientesAsignados();\n\t\t\tuiHomeCobrador.getUiClienteImpl().reloadTitleCobrador();\n\t\t}\n\t}",
"@Override\n\tpublic void MyBack() {\n\t\tFindPasswordActivity.this.finish();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tcheckSavePwd();\n\t\tsuper.onBackPressed();\n\t}",
"public void back_searchResult(View view){\n // Goes back to Login page\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(i);\n }",
"public void Back(View view) // back button pressed - go back to previous class\n {\n Intent intent = new Intent(ImportingOCR.this, AddedCmc.class); // back to previous page--which should be addedcmc.class and not importing manual(i change to Addedcmc.class)\n intent.putExtra(\"personid\", personid);\n intent.putExtra(\"amount\", amount);\n intent.putExtra(\"date\", date);\n intent.putExtra(\"username\", uploader);\n startActivity(intent);\n }",
"@Override\n public void onBackPressed() {\n\n Intent startMain = new Intent(this, ListActivity.class);\n startActivity(startMain);\n\n }",
"public void clickbtnBack() {\n\t\tdriver.findElement(btnBack).click();\n\t}",
"private void setupBack() {\n\t\tmakeButton(\"Back\", (ActionEvent e) -> {\n\t\t\tchangeView(\"login\");\n\t\t});\n\t}",
"public void navigateToBack() {\n WebDriverManager.getDriver().navigate().back();\n }",
"@FXML\n public void backButtonPushed(ActionEvent event) throws IOException {\n View.goToView(\"SignUpOptionsPageView.fxml\", event);\n }",
"private void navBack() {\n Intent intent = new Intent(this, standard_home.class);\n startActivity(intent);\n }",
"void onGoBackButtonClick();",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(C2Functions.this,ListofSecondCard.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n }",
"@Override\n public void onBackPressed() {\n if(web.canGoBack()){\n web.goBack();\n } else {\n super.onBackPressed();\n }\n }",
"@Override\n\tpublic void onBackPressed()\n\t{\n\t\tIntent i=new Intent(AddContact.this,Contacts1.class);\n\t\tstartActivity(i);\n\t\treturn;\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}",
"@Override\n\tpublic void backButton() {\n\n\t}",
"@Override\n public void onClick(View view) {\n ((Page) Page.activity).selectPage(list.get(position) + 1);\n ((BookmarksActivity) context).finish();\n }",
"@Override\n public void onBackPressed() {\n logoutDialog();\n }",
"public static void back() {\n driver.navigate().back();\n }",
"public void back(){\n\t\tif(validaEditText(R.string.Registro_manual_llena_todos_los_campos)){\n\t\t\tif(guardaLasPreferencias()){\n\t\t\t\t\tDialogos.Toast(RegistroContactosEmergenciaActivity.this, getResources().getString(R.string.Registro_manual_datos_guardados), Toast.LENGTH_SHORT);\n\t\t\t\t\tsuper.onBackPressed();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"public void chooseAccount() {\n context.startActivityForResult(\n mCredential.newChooseAccountIntent(), REQUEST_ACCOUNT_PICKER);\n }",
"public void onGoBackClicked() {\r\n EnterChange();\r\n\r\n //condition to check if time is entered by customer\r\n if(textTime.getText().length() > 0){\r\n _ReservationList.load();\r\n\r\n EnterChange();\r\n Stage stage = (Stage) btnGoBack.getScene().getWindow();\r\n stage.close();\r\n }\r\n }",
"private void goBack() {\n Intent intent = new Intent(this, ReformTypeDetailActivity.class);\n intent.putExtra(Key.REFORM_TYPE_ID, mReformTypeId);\n intent.putExtra(Key.REFORM_TYPE_NAME, mReformType.getName());\n startActivity(intent);\n finish();\n }",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}",
"private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tKEY_IS_SEARCHING = false;\n\t\t\tKEY_BACK_FROM_PROFILE = false;\n\t\t\tonBackPressed();\n\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\ttry\n\t\t\t\t{if(wb.canGoBack())\n\t\t\t\t\twb.goBack();\n\t\t\t\t}catch(Exception e)\n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v){\n backIntent.putExtra(\"username\", intent.getStringExtra(\"username\"));\n backIntent.putExtra(\"password\", intent.getStringExtra(\"password\"));\n backIntent.putExtra(\"name\", intent.getStringExtra(\"name\"));\n backIntent.putExtra(\"gender\", intent.getStringExtra(\"gender\"));\n backIntent.putExtra(\"age\", intent.getStringExtra(\"age\"));\n\n startActivity(backIntent);\n finish();\n }",
"@Override\n public void backButton() {\n\n\n }",
"@Override\n public void onBackPressed() {\n replaceUseCase(meetingManager);\n replaceUseCase(traderManager);\n super.onBackPressed();\n }",
"public void goHome(View view) {\n String toastString = \"go home...\";\n Toast.makeText(FriendsList.this,toastString, Toast.LENGTH_SHORT).show();\n\n //TODO\n // go to list screen....\n Intent goToNextScreen = new Intent (this, AccountAccess.class);\n final int result = 1;\n startActivity(goToNextScreen);\n }",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent intent=new Intent();\n\t\t\tintent.putExtra(\"back\", \"Back Data\");\n\t\t\tsetResult(RESULT_CODE, intent);\n\t\t\tfinish();\n\t\t}",
"public static void clickBackBtn() {\t\n\t\ttry {\n\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"backquest\\\"]\")).click();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Back button doesnt work\");\n\t\t}\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\t\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\treturn;\n\t}",
"@Override\n public void onBackPressed() {\n\n Intent intent =new Intent(PlayersList.this,MainActivity.class);\n startActivity(intent);\n\n\n }",
"@Override\n\tpublic void onBackPressed() {\n\n\t}",
"public void button_BackOnClick(View v) {\n Intent intent = new Intent(\"com.cs360.michaelmesnikoff.lcs.LoginActivity\");\n startActivity(intent);\n }",
"@Override\n\tpublic void onBackPressed() {\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t}",
"@Override\n\tpublic void onBackPressed()\n\t{\n\t}",
"public void back(View v){\n Intent intent = new Intent(AddTripActivity.this,AdminMainActivity.class);\n finish();\n startActivity(intent);\n }",
"void actionBack();",
"@Override\n public void onBackPressed() {\n\n startActivity(new Intent(getApplicationContext(),ProfileActivity.class));\n finish();\n }",
"public void goBack(View view){\n /*Check whether it is user or admin to decide which\n activity to go to*/\n if (userInfo[0].substring(0,5).equals(\"ADMIN\")){\n Intent intent = new Intent(this, AdminActivity.class);\n intent.putExtra(\"userInformation\", userInfo);\n intent.putExtra(\"system\", system);\n startActivity(intent);\n }else {\n Intent intent = new Intent(this, ClientActivity.class);\n intent.putExtra(\"userInformation\", userInfo);\n intent.putExtra(\"system\", system);\n intent.putExtra(\"bookedItins\", bookedItins);\n startActivity(intent);\n }\n }",
"@Secured(\"@\")\n public void doBackPage() {\n infoOrderDetail = false;\n haveDepositPrice = false;\n orderStockTag.resetOrderStock();\n }",
"@Override\n public void backPressed(){\n }",
"private void goBack(int listPositionIndex, String selectedItemText)\n {\n String returnedData;\n\n Intent intent = getIntent();\n intent.putExtra(\"listPositionIndex\", listPositionIndex);\n intent.putExtra(\"selectedItemText\", selectedItemText);\n\n returnedData = \"Go back from list\";\n intent.putExtra(\"returnedData\", returnedData);\n\n //Toast.makeText(this, \"Come Back with ... \" + returnedData, Toast.LENGTH_SHORT).show();\n setResult(RESULT_OK, intent);\n finish();\n }",
"@Override\n public void onBackPressed() {\n\n finish();\n }",
"@Override\n\t\tpublic void onBackPressed() {\n\t\t\tIntent homeScreenIntent = new Intent(ActivityDeleteDeliveryList.this, ActivityAdminHomeScreen.class);\n\t\t\thomeScreenIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\tstartActivity(homeScreenIntent);\n\t\t\tfinish();\t\t\t\t\t\n\t\t}",
"@Override\n public void onBackPressed() {\n Intent i = new Intent(StockAdjustmentList.this, ActivityHomeScreen.class);\n startActivity(i);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n finish();\n }",
"@Override\n\tpublic void onBackPressed()\n\t\t{\n\t\tbackPressed();\n\t\t}",
"@Override\n\tpublic void onBackPressed(){\n\t\tif (isinsubstate){\n\t\t\t//ITEMS = ;\n\t\t\t//ABOVE DATABASE CALL FOR CATAGORIES\n\t\t\tsetListAdapter(new ArrayAdapter<String>(context, R.layout.view_foodcatagories,ITEMS));\n\t\t\tisinsubstate = false;\n\t\t}else{\n\t\t\tsuper.onBackPressed();\n\t\t}\n\t\t\n\t}",
"public void backToFlights(){\n logger.debug(\"click on Back To Flights button\");\n driver.findElement(oBackToFlights).click();\n }",
"public static boolean onBackPressed(Context context2) {\n\t\tStaticStore.eLobbyLocationFlag = false;\r\n\t\tStaticStore.initialMyOwnAccFlag = false;\r\n\t\tStaticStore.secondMyOwnAccFlag = false;\r\n\t\tStaticStore.forAddBiller = false;\r\n\t\tStaticStore.LogPrinter('i',\"onBackPressed List Onback index counter ==> \"+StaticStore.indexCtr);\r\n\t\t\tif(StaticStore.indexCtr == 1)\r\n\t\t\t{\r\n\t\t\t\tStaticStore.midlet.isImageTextList = true;\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tStaticStore.midlet.isImageTextList = false;\r\n\t\t\t}\r\n\r\n\t\t\t/*else if (keyCode == KeyEvent.KEYCODE_BACK && index == 121 && index == 106) {\r\n\t\t\tStaticStore.selectedGridIndex = 0;\r\n\t\t\tStaticStore.midlet.startFragment(getActivity(),new Intent(getActivity(),GridScreenView.class));\r\n\t\t\treturn true;\r\n\t\t}*/\r\n\t if (StaticStore.isMenuFromDashBoard) {\t\r\n\t\t\tStaticStore.midlet.startFragment(context2,new Intent(context2,FirstPageActivity.class));\r\n\t\t\treturn true;\r\n\t }else if (index == 63) {\r\n//\t\t\texit();\r\n\t\t\treturn false; \r\n\t\t}else if(StaticStore.depositAccBalance && !StaticStore.isInbox){\r\n\t\t\tStaticStore.depositAccBalance = false;\r\n\t\t\tIntent myIntent = StaticStore.midlet.get_AccountsMenu(context2);\r\n\t\t\tStaticStore.midlet.startFragment(context2,myIntent);\r\n\t\t\treturn true;\r\n\t\t}else if(StaticStore.loanBalance && !StaticStore.isInbox){\r\n\t\t\tStaticStore.loanBalance = false;\r\n\t\t\tIntent myIntent = StaticStore.midlet.get_AccountsMenu(context2);\r\n\t\t\tStaticStore.midlet.startFragment(context2,myIntent);\r\n\t\t\treturn true;\r\n\t\t}else if ( (index == 1 || index == 12 || index == 75 || index == 106 || index == 121 || index == 122 || index == 8 || index == 3 || index == 253)) {\r\n\t\t\tif(StaticStore.istablet){\r\n\t\t\t\tStaticStore.backlistIndex = index;\r\n\t\t\t\t\t\t\t\treturn false;\t\r\n\t\t\t}else{\r\n\t\t\tStaticStore.midlet.startFragment(context2,new Intent(context2,GridScreenView.class));\r\n\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}else if ( StaticStore.isInbox) {\r\n\t\t\tStaticStore.midlet.startFragment(context2,new Intent(context2,GridScreenView.class));\r\n\t\t\treturn true; \t\t\t\r\n\t\t}else if ( (index == 206 || index == 200)) {\r\n\t\t\tStaticStore.index = 218;\r\n\t\t\tStaticStore.FromListScreen = false;\r\n\t\t\tStaticStore.midlet.startFragment(context2,new Intent(context2,DynamicCanvas.class));\r\n\t\t\treturn true;\r\n\t\t}else if ( index == 203) {\r\n\t\t\tStaticStore.index = 209;\r\n\t\t\tStaticStore.FromListScreen = false;\r\n\t\t\tStaticStore.midlet.startFragment(context2,new Intent(context2,DynamicCanvas.class));\r\n\t\t\treturn true;\r\n\t\t}else if ( (index == 36 || index == 138 || index == 250)) {\r\n\t\t\tIntent myIntent = new Intent(context2,GridScreenViewActivation.class);\r\n\t\t\tStaticStore.midlet.startFragment(context2,myIntent);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t/*else if ( (!StaticStore.IsPermitted || !StaticStore.IsPersonalInfoGot)) {\r\n\t\t\texitMIDlet(new AlertDialog.Builder(this),\r\n\t\t\t\t\t\"Do you want to \"+(StaticStore.enableHome?\"logout\":\"exit\")+\"?\", 100,context2).show();\r\n\r\n\t\t\treturn true;\r\n\t\t} */else if ( StaticStore.isAirline && StaticStore.indexAir != 1000) {\r\n\t\t\t/*if(StaticStore.indexAir == 1000){\r\n\t new AirlineInput();\r\n\t }else{\r\n\t \tStaticStore.indexAir -= 6;\r\n\t \tStaticStore.LogPrinter('i',\">>>>>>>>inside on key down\"+StaticStore.indexAir);\r\n\t new AirlineInput(true);\r\n\t }*/\r\n\r\n\t\t\tif(StaticStore.indexAir > 0){\r\n\t\t\t\tStaticStore.indexAir -= 6;\r\n\t\t\t}else{\r\n\t\t\t\tStaticStore.indexAir = 1000;\r\n\t\t\t}\r\n\t\t\tnew AirlineInput(\"\");\r\n\t\t\tStaticStore.LogPrinter('i',\">>>>inside keycode back\"+StaticStore.indexAir);\r\n\t\t\tStaticStore.FromListScreen = false;\r\n\t\t\tStaticStore.midlet.startFragment(context2,new Intent(context2,\r\n\t\t\t\t\tDynamicCanvas.class));\r\n\t\t\t// new AirlineInput(midlet,display,getSelectedString());\r\n\r\n\t\t\treturn true;\r\n\t\t}else if ( StaticStore.isAirline && StaticStore.indexAir == 1000) {\r\n\t\t\tIntent intent = new Intent(context2 , DisplayableView.class);\r\n\t\t\tintent.putExtra(\"response\",StaticStore.midlet.airlineDispMsg);\r\n\t\t\tintent.putExtra(\"formName\", \"A100\");\r\n\t\t\tStaticStore.midlet.startFragment(context2,intent);\r\n\t\t\treturn true;\r\n\t\t}else if (StaticStore.indexCtr > 0 && index != 72 && (StaticStore.forBillerRegistration && heading.toUpperCase().startsWith(\"Biller Category\".toUpperCase()) || !StaticStore.forBillerRegistration)) {\r\n\t\t\tStaticStore.forBillerRegistration = false;\r\n\t\t\tStaticStore.isBack = true;\r\n\t\t\tif(index == 221 || index == 222){\r\n\t\t\t\tStaticStore.isFrom1T00Response = false;\r\n\t\t\t\tStaticStore.LogPrinter('e', StaticStore.isFrom1T00Response+\"\");\r\n\t\t\t}\r\n\t\t\tif(StaticStore.indexCtr > 0){\r\n\t\t\t\tStaticStore.indexCtr -= 1;\r\n\t\t\t}\r\n\t\t\tif(StaticStore.indexCtr == 1)\r\n\t\t\t{\r\n\t\t\t\tStaticStore.midlet.isImageTextList = true;\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tStaticStore.midlet.isImageTextList = false;\r\n\t\t\t}\r\n\t\t\tStaticStore.LogPrinter('i',\">>>>>>>>>>>>>>>\"+StaticStore.indexCtr+\"<<<<<<<<<<<<<<\"+StaticStore.listIndexArray[StaticStore.indexCtr]+\">>>>>>>>\"+StaticStore.selectedIndexArray[StaticStore.indexCtr]);\r\n\t\t\tint indexForBack = StaticStore.listIndexArray[StaticStore.indexCtr];\r\n\t\t\tint indexForSelectedBack = StaticStore.selectedIndexArray[StaticStore.indexCtr];\r\n\t\t\tIntent myIntent = StaticStore.midlet.getList(context2,indexForBack,indexForSelectedBack);\r\n\t\t\tStaticStore.midlet.startFragment(context2,myIntent);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse if ( index == 72){\r\n\t\t\t//Note: If u comment this else if part it will return to the Dyanamic canvas screen //Siva\r\n\t\t\t//\t\t\tStaticStore.index = 9;\r\n\t\t\t//\t\t\tStaticStore.selectClassBack = true;\r\n\t\t\t//\t\t\tStaticStore.menuDesc[9][6] = StaticStore.flightTiming;\r\n\t\t\t//\t\t\tStaticStore.midlet.startFragment(context2,new Intent(context2,\r\n\t\t\t//\t\t\t\t\tDynamicCanvas.class));\r\n\t\t\tStaticStore.indexCtr --;\r\n\t\t\tIntent myIntent = StaticStore.midlet.getAirlineMenu(context2);\r\n\t\t\tStaticStore.midlet.startFragment(context2,myIntent);\r\n\r\n\t\t\treturn true;\r\n\t\t}else if(StaticStore.forBillerRegistration && !heading.equals(\"Biller Category\")){\r\n\t\t\tIntent myIntent = StaticStore.midlet.getCategoryList(context2);\r\n\t\t\tStaticStore.midlet.startFragment(context2,myIntent);\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\tStaticStore.LogPrinter('i',\"Calinng default\");\r\n//\t\t\texit();\r\n\t\t\treturn false;//super.onKeyDown(keyCode, event);\r\n\t\t}\r\n\t}",
"@Override\r\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n finish();\n }",
"@Override\n public void onBackPressed() {\n if (this.path.get(this.path.size() - 1).equalsIgnoreCase(\"/\")) {\n finish();\n } else {\n this.path.remove(this.path.size() - 1);\n refreshList();\n // notify the list to be regenerated\n this.adapter.notifyDataSetChanged();\n }\n }",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t\tdoBack();\r\n\t}",
"@Override\r\n public void onClick(View view) {\r\n finish();\r\n onBackPressed();\r\n\r\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\t Intent intent3=new Intent(LoginActivity.this,MainActivity.class);\n\t\t\tstartActivity(intent3);\n\t\t\t\n\t}"
] |
[
"0.68444306",
"0.6840972",
"0.68364847",
"0.6783924",
"0.67798483",
"0.6756274",
"0.6655997",
"0.66380364",
"0.6618075",
"0.6606986",
"0.6586004",
"0.65778965",
"0.65690273",
"0.6527653",
"0.65164626",
"0.6510961",
"0.64623505",
"0.6453672",
"0.644478",
"0.64212555",
"0.6400229",
"0.6398846",
"0.6394708",
"0.6391565",
"0.6363495",
"0.6361216",
"0.63582665",
"0.63541013",
"0.63484496",
"0.63430387",
"0.63399357",
"0.6339892",
"0.63359565",
"0.63274527",
"0.6308601",
"0.6304911",
"0.62920123",
"0.6288964",
"0.6285117",
"0.62824786",
"0.6277446",
"0.62745005",
"0.62541527",
"0.62529963",
"0.6242081",
"0.6237654",
"0.62351596",
"0.62251204",
"0.6216472",
"0.620352",
"0.6198184",
"0.61951506",
"0.61882836",
"0.6184205",
"0.6184205",
"0.6176682",
"0.6170782",
"0.61570823",
"0.6150262",
"0.6149357",
"0.6138558",
"0.6136813",
"0.61297244",
"0.61229444",
"0.61225337",
"0.6121517",
"0.6120114",
"0.6106571",
"0.6106",
"0.61038303",
"0.61038303",
"0.61038303",
"0.61038303",
"0.60977274",
"0.60942334",
"0.6092285",
"0.6090101",
"0.6082292",
"0.6082149",
"0.6074136",
"0.6072421",
"0.60670674",
"0.60661894",
"0.60614824",
"0.6050737",
"0.60494226",
"0.6043315",
"0.60409683",
"0.6040265",
"0.6039283",
"0.6039283",
"0.6039283",
"0.6039283",
"0.6039283",
"0.6039283",
"0.6039283",
"0.6037078",
"0.6034145",
"0.60329247",
"0.6030016"
] |
0.64825255
|
16
|
TODO autogenerated by JUnit Helper.
|
public void test_type() throws Exception {
assertNotNull(YahooAuctionService.class);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"private void test() {\n\n\t}",
"@Test\n public void matchCorrect() {\n }",
"@Test\r\n public void elCerdoNoSePuedeAtender() {\n }",
"@Test\n\tpublic void testTotalPuzzleGenerated() {\n\t}",
"public void testGetInsDyn() {\n }",
"@Test\n public void testAddACopy() {\n }",
"@Test\r\n\tpublic void contents() throws Exception {\n\t}",
"@Test\n public void testDAM30203001() {\n testDAM30102001();\n }",
"@Override\n\tpublic void test() {\n\t\t\n\t}",
"@Override\n public void test() {\n \n }",
"@org.junit.Test\r\n\tpublic void test() {\n\t\t\t\t\r\n\t}",
"@Test\n public void temporaryTeamClosingUnavalableOption() {\n\n }",
"@Test\r\n\tpublic void testSanity() {\n\t}",
"public void testCheckOxyEmpty() {\n }",
"@Test\n public void testProgramElementsType() {\n // TODO: test ProgramElementsType\n }",
"@Test\n public void testingTheSixFlatbed2017Order() {\n }",
"@Test\n public void testSelectByNew() throws Exception{\n }",
"@Test\n public void testQueryList(){\n }",
"@Test\r\n\tpublic void test() {\r\n\t}",
"@Test\n void completeItemsAsString() {\n\n }",
"@Test\n public void testDAM30402001() {\n testDAM30101001();\n }",
"@Test\r\n public void testSetName() {\r\n\r\n }",
"public void testGetBasedata() {\n }",
"@Test\n\tvoid test() {\n\t\t\n\t}",
"@Test\n public void testGetOwner() {\n \n }",
"@Override\n public void testTwoRequiredGroups() {\n }",
"@Override\n public void testTwoRequiredGroups() {\n }",
"@Test\n\tpublic void test4() {\n\t}",
"public void testWriteOrders() throws Exception {\n }",
"@Test\n public void testGenerarIdentificacion() {\n }",
"@Test\n public void iterator() {\n }",
"@Test\n public void testDAM30601001() {\n testDAM30102001();\n }",
"public void testAddEntry(){\n }",
"@Test\n public void testingTheTwoPlane2016Order() {\n }",
"@Test\n\tpublic void test04() throws Throwable {\n\t}",
"public void testGetOrder() {\n }",
"@Test\r\n\tpublic void testGetFirst() {\n\t}",
"@Test\n public void test_getSub_1() throws Exception {\n }",
"private test5() {\r\n\t\r\n\t}",
"@Override\n public void testOneRequiredGroup() {\n }",
"@Override\n public void testOneRequiredGroup() {\n }",
"@Test\n public void questionIfNotAlreadyAccusedTest() throws Exception {\n\n }",
"@Test\n public void testCreateIndexType() throws Exception {\n//TODO: Test goes here... \n }",
"@Before\n\t public void setUp() {\n\t }",
"@Test\n void completeItemsAsString() {\n }",
"@Test\n public void testQuickMapList() {\n//TODO: Test goes here... \n }",
"@Test\n\tpublic void test() {\n\t}",
"@Test\n\tpublic void test() {\n\t}",
"@Override\n public void runTest() {\n }",
"@Test public void testNode() {\n \n }",
"@Test\n public void findProductListExceptionTest(){\n }",
"@Test\n public void testGetNext() throws Exception {\n//TODO: Test goes here... \n }",
"@Override\n public void setUp() {\n }",
"@Test\n public void testGetProductInfo() throws Exception {\n }",
"@Test\n public void testCarregarTrimestre() {\n }",
"@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}",
"@Test\n public void testWalkForPduTarget() throws Exception {\n//TODO: Test goes here... \n }",
"@Test\n public void accuseSuccesTest() throws Exception {\n }",
"@Override\n @Before\n public void setUp() throws IOException {\n }",
"@Override\n protected void tearDown() {\n }",
"@Test\n public void testPrintPosLnS() throws Exception\n {\n//TODO: Test goes here... \n }",
"public void testRemoveOrder() {\n }",
"@Test\n public void testGetSizeOfCheckoutList() {\n }",
"@Test\n public void testDAM30903001() {\n testDAM30802001();\n }",
"@Override\n public void setUp() throws Exception {}",
"@Before\n\tpublic void setUp() {\n\t}",
"@Test\n public void testSelectAll() throws Exception {\n\n }",
"@Test\n public void shouldBeZeroForTolkienAuthor() {\n\n }",
"@Test\n\tpublic void getTest() {\n\t}",
"@Test\n\tpublic void testQuery1() {\n\t}",
"public void testaReclamacao() {\n\t}",
"@Test\n\tpublic void testSet() {\n\t}",
"@Before\n\tpublic void setUp() throws Exception {\n\t\t\n\t}",
"@Test\n\tpublic void testNormalPuzzleGeneration() {\n\t}",
"@Test\n public void testRemoveACopy() {\n }",
"@Test\r\n public void testFindAll() throws Exception {\r\n }",
"@Before\n public void setUp () {\n }",
"public void testGetTaskActorE(){\n }",
"public void testLoadOrder() throws Exception {\n }",
"public void testFindByCatalogo() {\n }",
"@Test\n public void placeholder() {\n assertTrue(true);\n }",
"@Test\n public void testGetAuthor() {\n }",
"@Test\n\tpublic void testEvilPuzzleGeneration() {\n\t}",
"@Test\n\tpublic void testInsertObj() {\n\t}",
"@Override\r\n\tpublic void setUp() {\n\r\n\t}",
"@Test\r\n public void testAddition() {\n }",
"@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}",
"@Test\n public void needSetACrowdTest() {\n // TODO: test needSetACrowd\n }",
"@Test\n\tpublic void testDoGeneration() {\n\t}",
"@Test\n\tpublic void getWorksTest() throws Exception {\n\t}",
"@Test\n public void testPrintErrPosLnS() throws Exception\n {\n//TODO: Test goes here... \n }",
"@Test\n void listAsString() {\n }",
"@Test\n void listAsString() {\n }",
"@Test\n public void testCreate() {\n\n }",
"@Test\n public void delims() {\n }",
"@Test\npublic void testFindDtoListBySql() throws Exception { \n//TODO: Test goes here... \n}",
"@Before\r\n\tpublic void setUp() {\n\t}",
"@Test\r\n\tpublic void testOrderPerform() {\n\t}",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }"
] |
[
"0.7146449",
"0.6545277",
"0.6495495",
"0.6454115",
"0.6442214",
"0.64405274",
"0.6428992",
"0.64183205",
"0.64071083",
"0.6404801",
"0.64026535",
"0.6381404",
"0.63808465",
"0.63549465",
"0.6350992",
"0.6343862",
"0.6330191",
"0.63242733",
"0.6303299",
"0.6299538",
"0.62917346",
"0.6288912",
"0.6286213",
"0.6272799",
"0.6271908",
"0.6267165",
"0.62607396",
"0.62607396",
"0.62538373",
"0.6252003",
"0.6247384",
"0.62473226",
"0.6245343",
"0.62418413",
"0.62391824",
"0.62367105",
"0.62304986",
"0.6225655",
"0.6220702",
"0.6213908",
"0.6208524",
"0.6208524",
"0.62022936",
"0.6197785",
"0.6195552",
"0.61912227",
"0.61858535",
"0.6181908",
"0.6181908",
"0.61800843",
"0.6177563",
"0.61701024",
"0.6167711",
"0.6166529",
"0.61601985",
"0.6160176",
"0.61588204",
"0.61582464",
"0.61570334",
"0.6155534",
"0.6153068",
"0.6152",
"0.61517185",
"0.61479837",
"0.61448807",
"0.6141774",
"0.61391896",
"0.6136878",
"0.6136023",
"0.6135187",
"0.6134977",
"0.61293066",
"0.61236",
"0.6121992",
"0.6117724",
"0.6114665",
"0.6109013",
"0.6095934",
"0.60938346",
"0.60913914",
"0.6088562",
"0.60874355",
"0.6084532",
"0.6079594",
"0.60747385",
"0.60690284",
"0.606788",
"0.6067105",
"0.60623324",
"0.60618263",
"0.60601217",
"0.6059172",
"0.6057388",
"0.6057388",
"0.6057378",
"0.6055079",
"0.6054594",
"0.6054003",
"0.6052046",
"0.6048896",
"0.6048896"
] |
0.0
|
-1
|
TODO autogenerated by JUnit Helper.
|
public void test_instantiation() throws Exception {
YahooAuctionService target = new YahooAuctionService();
assertNotNull(target);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"private void test() {\n\n\t}",
"@Test\n public void matchCorrect() {\n }",
"@Test\r\n public void elCerdoNoSePuedeAtender() {\n }",
"@Test\n\tpublic void testTotalPuzzleGenerated() {\n\t}",
"public void testGetInsDyn() {\n }",
"@Test\n public void testAddACopy() {\n }",
"@Test\r\n\tpublic void contents() throws Exception {\n\t}",
"@Test\n public void testDAM30203001() {\n testDAM30102001();\n }",
"@Override\n\tpublic void test() {\n\t\t\n\t}",
"@Override\n public void test() {\n \n }",
"@org.junit.Test\r\n\tpublic void test() {\n\t\t\t\t\r\n\t}",
"@Test\n public void temporaryTeamClosingUnavalableOption() {\n\n }",
"@Test\r\n\tpublic void testSanity() {\n\t}",
"public void testCheckOxyEmpty() {\n }",
"@Test\n public void testProgramElementsType() {\n // TODO: test ProgramElementsType\n }",
"@Test\n public void testingTheSixFlatbed2017Order() {\n }",
"@Test\n public void testSelectByNew() throws Exception{\n }",
"@Test\n public void testQueryList(){\n }",
"@Test\r\n\tpublic void test() {\r\n\t}",
"@Test\n void completeItemsAsString() {\n\n }",
"@Test\n public void testDAM30402001() {\n testDAM30101001();\n }",
"@Test\r\n public void testSetName() {\r\n\r\n }",
"public void testGetBasedata() {\n }",
"@Test\n\tvoid test() {\n\t\t\n\t}",
"@Test\n public void testGetOwner() {\n \n }",
"@Override\n public void testTwoRequiredGroups() {\n }",
"@Override\n public void testTwoRequiredGroups() {\n }",
"@Test\n\tpublic void test4() {\n\t}",
"public void testWriteOrders() throws Exception {\n }",
"@Test\n public void testGenerarIdentificacion() {\n }",
"@Test\n public void iterator() {\n }",
"@Test\n public void testDAM30601001() {\n testDAM30102001();\n }",
"public void testAddEntry(){\n }",
"@Test\n public void testingTheTwoPlane2016Order() {\n }",
"@Test\n\tpublic void test04() throws Throwable {\n\t}",
"public void testGetOrder() {\n }",
"@Test\r\n\tpublic void testGetFirst() {\n\t}",
"@Test\n public void test_getSub_1() throws Exception {\n }",
"private test5() {\r\n\t\r\n\t}",
"@Override\n public void testOneRequiredGroup() {\n }",
"@Override\n public void testOneRequiredGroup() {\n }",
"@Test\n public void questionIfNotAlreadyAccusedTest() throws Exception {\n\n }",
"@Test\n public void testCreateIndexType() throws Exception {\n//TODO: Test goes here... \n }",
"@Before\n\t public void setUp() {\n\t }",
"@Test\n void completeItemsAsString() {\n }",
"@Test\n public void testQuickMapList() {\n//TODO: Test goes here... \n }",
"@Test\n\tpublic void test() {\n\t}",
"@Test\n\tpublic void test() {\n\t}",
"@Override\n public void runTest() {\n }",
"@Test public void testNode() {\n \n }",
"@Test\n public void findProductListExceptionTest(){\n }",
"@Test\n public void testGetNext() throws Exception {\n//TODO: Test goes here... \n }",
"@Override\n public void setUp() {\n }",
"@Test\n public void testGetProductInfo() throws Exception {\n }",
"@Test\n public void testCarregarTrimestre() {\n }",
"@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}",
"@Test\n public void testWalkForPduTarget() throws Exception {\n//TODO: Test goes here... \n }",
"@Test\n public void accuseSuccesTest() throws Exception {\n }",
"@Override\n @Before\n public void setUp() throws IOException {\n }",
"@Override\n protected void tearDown() {\n }",
"@Test\n public void testPrintPosLnS() throws Exception\n {\n//TODO: Test goes here... \n }",
"public void testRemoveOrder() {\n }",
"@Test\n public void testGetSizeOfCheckoutList() {\n }",
"@Test\n public void testDAM30903001() {\n testDAM30802001();\n }",
"@Override\n public void setUp() throws Exception {}",
"@Before\n\tpublic void setUp() {\n\t}",
"@Test\n public void testSelectAll() throws Exception {\n\n }",
"@Test\n public void shouldBeZeroForTolkienAuthor() {\n\n }",
"@Test\n\tpublic void getTest() {\n\t}",
"@Test\n\tpublic void testQuery1() {\n\t}",
"public void testaReclamacao() {\n\t}",
"@Test\n\tpublic void testSet() {\n\t}",
"@Before\n\tpublic void setUp() throws Exception {\n\t\t\n\t}",
"@Test\n\tpublic void testNormalPuzzleGeneration() {\n\t}",
"@Test\n public void testRemoveACopy() {\n }",
"@Test\r\n public void testFindAll() throws Exception {\r\n }",
"@Before\n public void setUp () {\n }",
"public void testGetTaskActorE(){\n }",
"public void testLoadOrder() throws Exception {\n }",
"public void testFindByCatalogo() {\n }",
"@Test\n public void placeholder() {\n assertTrue(true);\n }",
"@Test\n public void testGetAuthor() {\n }",
"@Test\n\tpublic void testEvilPuzzleGeneration() {\n\t}",
"@Test\n\tpublic void testInsertObj() {\n\t}",
"@Override\r\n\tpublic void setUp() {\n\r\n\t}",
"@Test\r\n public void testAddition() {\n }",
"@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}",
"@Test\n public void needSetACrowdTest() {\n // TODO: test needSetACrowd\n }",
"@Test\n\tpublic void testDoGeneration() {\n\t}",
"@Test\n\tpublic void getWorksTest() throws Exception {\n\t}",
"@Test\n public void testPrintErrPosLnS() throws Exception\n {\n//TODO: Test goes here... \n }",
"@Test\n void listAsString() {\n }",
"@Test\n void listAsString() {\n }",
"@Test\n public void testCreate() {\n\n }",
"@Test\n public void delims() {\n }",
"@Test\npublic void testFindDtoListBySql() throws Exception { \n//TODO: Test goes here... \n}",
"@Before\r\n\tpublic void setUp() {\n\t}",
"@Test\r\n\tpublic void testOrderPerform() {\n\t}",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }"
] |
[
"0.7146449",
"0.6545277",
"0.6495495",
"0.6454115",
"0.6442214",
"0.64405274",
"0.6428992",
"0.64183205",
"0.64071083",
"0.6404801",
"0.64026535",
"0.6381404",
"0.63808465",
"0.63549465",
"0.6350992",
"0.6343862",
"0.6330191",
"0.63242733",
"0.6303299",
"0.6299538",
"0.62917346",
"0.6288912",
"0.6286213",
"0.6272799",
"0.6271908",
"0.6267165",
"0.62607396",
"0.62607396",
"0.62538373",
"0.6252003",
"0.6247384",
"0.62473226",
"0.6245343",
"0.62418413",
"0.62391824",
"0.62367105",
"0.62304986",
"0.6225655",
"0.6220702",
"0.6213908",
"0.6208524",
"0.6208524",
"0.62022936",
"0.6197785",
"0.6195552",
"0.61912227",
"0.61858535",
"0.6181908",
"0.6181908",
"0.61800843",
"0.6177563",
"0.61701024",
"0.6167711",
"0.6166529",
"0.61601985",
"0.6160176",
"0.61588204",
"0.61582464",
"0.61570334",
"0.6155534",
"0.6153068",
"0.6152",
"0.61517185",
"0.61479837",
"0.61448807",
"0.6141774",
"0.61391896",
"0.6136878",
"0.6136023",
"0.6135187",
"0.6134977",
"0.61293066",
"0.61236",
"0.6121992",
"0.6117724",
"0.6114665",
"0.6109013",
"0.6095934",
"0.60938346",
"0.60913914",
"0.6088562",
"0.60874355",
"0.6084532",
"0.6079594",
"0.60747385",
"0.60690284",
"0.606788",
"0.6067105",
"0.60623324",
"0.60618263",
"0.60601217",
"0.6059172",
"0.6057388",
"0.6057388",
"0.6057378",
"0.6055079",
"0.6054594",
"0.6054003",
"0.6052046",
"0.6048896",
"0.6048896"
] |
0.0
|
-1
|
TODO autogenerated by JUnit Helper.
|
public void test_extractKeyphrase_A$String() throws Exception {
YahooAuctionService target = new YahooAuctionService();
String text = "せどり初心者は中古と新品ではどちらが向いているか?";
List<String> actual = target.extractKeyphrase(text);
List<String> expected = null;
assertEquals(expected, actual);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"private void test() {\n\n\t}",
"@Test\n public void matchCorrect() {\n }",
"@Test\r\n public void elCerdoNoSePuedeAtender() {\n }",
"@Test\n\tpublic void testTotalPuzzleGenerated() {\n\t}",
"public void testGetInsDyn() {\n }",
"@Test\n public void testAddACopy() {\n }",
"@Test\r\n\tpublic void contents() throws Exception {\n\t}",
"@Test\n public void testDAM30203001() {\n testDAM30102001();\n }",
"@Override\n\tpublic void test() {\n\t\t\n\t}",
"@Override\n public void test() {\n \n }",
"@org.junit.Test\r\n\tpublic void test() {\n\t\t\t\t\r\n\t}",
"@Test\n public void temporaryTeamClosingUnavalableOption() {\n\n }",
"@Test\r\n\tpublic void testSanity() {\n\t}",
"public void testCheckOxyEmpty() {\n }",
"@Test\n public void testProgramElementsType() {\n // TODO: test ProgramElementsType\n }",
"@Test\n public void testingTheSixFlatbed2017Order() {\n }",
"@Test\n public void testSelectByNew() throws Exception{\n }",
"@Test\n public void testQueryList(){\n }",
"@Test\r\n\tpublic void test() {\r\n\t}",
"@Test\n void completeItemsAsString() {\n\n }",
"@Test\n public void testDAM30402001() {\n testDAM30101001();\n }",
"@Test\r\n public void testSetName() {\r\n\r\n }",
"public void testGetBasedata() {\n }",
"@Test\n\tvoid test() {\n\t\t\n\t}",
"@Test\n public void testGetOwner() {\n \n }",
"@Override\n public void testTwoRequiredGroups() {\n }",
"@Override\n public void testTwoRequiredGroups() {\n }",
"@Test\n\tpublic void test4() {\n\t}",
"public void testWriteOrders() throws Exception {\n }",
"@Test\n public void testGenerarIdentificacion() {\n }",
"@Test\n public void iterator() {\n }",
"@Test\n public void testDAM30601001() {\n testDAM30102001();\n }",
"public void testAddEntry(){\n }",
"@Test\n public void testingTheTwoPlane2016Order() {\n }",
"@Test\n\tpublic void test04() throws Throwable {\n\t}",
"public void testGetOrder() {\n }",
"@Test\r\n\tpublic void testGetFirst() {\n\t}",
"@Test\n public void test_getSub_1() throws Exception {\n }",
"private test5() {\r\n\t\r\n\t}",
"@Override\n public void testOneRequiredGroup() {\n }",
"@Override\n public void testOneRequiredGroup() {\n }",
"@Test\n public void questionIfNotAlreadyAccusedTest() throws Exception {\n\n }",
"@Test\n public void testCreateIndexType() throws Exception {\n//TODO: Test goes here... \n }",
"@Before\n\t public void setUp() {\n\t }",
"@Test\n void completeItemsAsString() {\n }",
"@Test\n public void testQuickMapList() {\n//TODO: Test goes here... \n }",
"@Test\n\tpublic void test() {\n\t}",
"@Test\n\tpublic void test() {\n\t}",
"@Override\n public void runTest() {\n }",
"@Test public void testNode() {\n \n }",
"@Test\n public void findProductListExceptionTest(){\n }",
"@Test\n public void testGetNext() throws Exception {\n//TODO: Test goes here... \n }",
"@Override\n public void setUp() {\n }",
"@Test\n public void testGetProductInfo() throws Exception {\n }",
"@Test\n public void testCarregarTrimestre() {\n }",
"@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}",
"@Test\n public void testWalkForPduTarget() throws Exception {\n//TODO: Test goes here... \n }",
"@Test\n public void accuseSuccesTest() throws Exception {\n }",
"@Override\n @Before\n public void setUp() throws IOException {\n }",
"@Override\n protected void tearDown() {\n }",
"@Test\n public void testPrintPosLnS() throws Exception\n {\n//TODO: Test goes here... \n }",
"public void testRemoveOrder() {\n }",
"@Test\n public void testGetSizeOfCheckoutList() {\n }",
"@Test\n public void testDAM30903001() {\n testDAM30802001();\n }",
"@Override\n public void setUp() throws Exception {}",
"@Before\n\tpublic void setUp() {\n\t}",
"@Test\n public void testSelectAll() throws Exception {\n\n }",
"@Test\n public void shouldBeZeroForTolkienAuthor() {\n\n }",
"@Test\n\tpublic void getTest() {\n\t}",
"@Test\n\tpublic void testQuery1() {\n\t}",
"public void testaReclamacao() {\n\t}",
"@Test\n\tpublic void testSet() {\n\t}",
"@Before\n\tpublic void setUp() throws Exception {\n\t\t\n\t}",
"@Test\n\tpublic void testNormalPuzzleGeneration() {\n\t}",
"@Test\n public void testRemoveACopy() {\n }",
"@Test\r\n public void testFindAll() throws Exception {\r\n }",
"@Before\n public void setUp () {\n }",
"public void testGetTaskActorE(){\n }",
"public void testLoadOrder() throws Exception {\n }",
"public void testFindByCatalogo() {\n }",
"@Test\n public void placeholder() {\n assertTrue(true);\n }",
"@Test\n public void testGetAuthor() {\n }",
"@Test\n\tpublic void testEvilPuzzleGeneration() {\n\t}",
"@Test\n\tpublic void testInsertObj() {\n\t}",
"@Override\r\n\tpublic void setUp() {\n\r\n\t}",
"@Test\r\n public void testAddition() {\n }",
"@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}",
"@Test\n public void needSetACrowdTest() {\n // TODO: test needSetACrowd\n }",
"@Test\n\tpublic void testDoGeneration() {\n\t}",
"@Test\n\tpublic void getWorksTest() throws Exception {\n\t}",
"@Test\n public void testPrintErrPosLnS() throws Exception\n {\n//TODO: Test goes here... \n }",
"@Test\n void listAsString() {\n }",
"@Test\n void listAsString() {\n }",
"@Test\n public void testCreate() {\n\n }",
"@Test\n public void delims() {\n }",
"@Test\npublic void testFindDtoListBySql() throws Exception { \n//TODO: Test goes here... \n}",
"@Before\r\n\tpublic void setUp() {\n\t}",
"@Test\r\n\tpublic void testOrderPerform() {\n\t}",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }"
] |
[
"0.7146449",
"0.6545277",
"0.6495495",
"0.6454115",
"0.6442214",
"0.64405274",
"0.6428992",
"0.64183205",
"0.64071083",
"0.6404801",
"0.64026535",
"0.6381404",
"0.63808465",
"0.63549465",
"0.6350992",
"0.6343862",
"0.6330191",
"0.63242733",
"0.6303299",
"0.6299538",
"0.62917346",
"0.6288912",
"0.6286213",
"0.6272799",
"0.6271908",
"0.6267165",
"0.62607396",
"0.62607396",
"0.62538373",
"0.6252003",
"0.6247384",
"0.62473226",
"0.6245343",
"0.62418413",
"0.62391824",
"0.62367105",
"0.62304986",
"0.6225655",
"0.6220702",
"0.6213908",
"0.6208524",
"0.6208524",
"0.62022936",
"0.6197785",
"0.6195552",
"0.61912227",
"0.61858535",
"0.6181908",
"0.6181908",
"0.61800843",
"0.6177563",
"0.61701024",
"0.6167711",
"0.6166529",
"0.61601985",
"0.6160176",
"0.61588204",
"0.61582464",
"0.61570334",
"0.6155534",
"0.6153068",
"0.6152",
"0.61517185",
"0.61479837",
"0.61448807",
"0.6141774",
"0.61391896",
"0.6136878",
"0.6136023",
"0.6135187",
"0.6134977",
"0.61293066",
"0.61236",
"0.6121992",
"0.6117724",
"0.6114665",
"0.6109013",
"0.6095934",
"0.60938346",
"0.60913914",
"0.6088562",
"0.60874355",
"0.6084532",
"0.6079594",
"0.60747385",
"0.60690284",
"0.606788",
"0.6067105",
"0.60623324",
"0.60618263",
"0.60601217",
"0.6059172",
"0.6057388",
"0.6057388",
"0.6057378",
"0.6055079",
"0.6054594",
"0.6054003",
"0.6052046",
"0.6048896",
"0.6048896"
] |
0.0
|
-1
|
Interfejs dla DAO do atrybutow slownikowych.
|
public interface DictionaryDao<Type extends DictionaryProperty<Id>, Id extends Serializable> {
/**
* <!-- begin-UML-doc -->
* Zwraca wszystkie mozliwe wartosci slownika.
* <!-- end-UML-doc -->
* @return
* @generated "UML to Java (com.ibm.xtools.transform.uml2.java5.internal.UML2JavaTransform)"
*/
public List<Type> getAll();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}",
"void iniciarOperacion() throws DAOException;",
"public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}",
"public static ru.terralink.mvideo.sap.Orders findByPrimaryKey(java.lang.String IV_FO_TOR_ID\n ,java.lang.String IV_FU_TOR_ID)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.findByPrimaryKey\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n \n \n String _selectSQL = \"SELECT x.\\\"a\\\",x.\\\"b\\\",x.\\\"c\\\",x.\\\"d\\\",x.\\\"e\\\",x.\\\"f\\\",x.\\\"g\\\",x.\\\"h\\\",x.\\\"i\\\",x.\\\"j\\\",x.\\\"l\\\",x.\\\"m\\\",x.\\\"n\\\",x.\\\"o\\\",x.\\\"p\\\",x.\\\"q\\\",x.\\\"r\\\",x.\\\"s\\\",x.\\\"t\\\",x.\\\"u\\\",x.\\\"v\\\",x.\\\"w\\\",x.\\\"x\\\",x.\\\"y\\\",x.\\\"z\\\",x.\\\"ba\\\",x.\\\"bb\\\",x.\\\"bc\\\",x.\\\"bd\\\",x.\\\"be\\\",x.\\\"bf\\\",x.\\\"bg\\\",x.\\\"bh\\\",x.\\\"bi\\\",x.\\\"bj\\\",x.\\\"bl\\\",x.\\\"bm\\\",x.\\\"pending\\\",x.\\\"_pc\\\",x.\\\"_rp\\\",x\"\n + \".\\\"_rf\\\",x.\\\"relationsFK\\\",x.\\\"bn\\\",x.\\\"_rc\\\",x.\\\"_ds\\\",x.\\\"cvpOperation_length\\\",x.\\\"cvpOperationLobs_length\\\" FROM \\\"mvideo5_1_0_orders\\\" x WHERE (((x.\\\"pending\\\" = 1 or not exists (select x_os.\\\"bn\\\" from \\\"mvideo5_1_0_orders_os\\\" x_os where x_os.\\\"bn\\\" = x.\\\"bn\\\")))) and ( x.\\\"bl\\\" = ? AND x.\\\"bm\\\" = ?)\";\n String[] ids = new String[0];\n com.sybase.reflection.DataType[] dts = new com.sybase.reflection.DataType[]{ \n com.sybase.reflection.DataType.forName(\"string\"),\n com.sybase.reflection.DataType.forName(\"string\"),\n };\n Object[] values = new Object[] { \n IV_FO_TOR_ID,\n IV_FU_TOR_ID,\n };\n Object res = DELEGATE.findWithSQL(_selectSQL, dts, values, ids, ru.terralink.mvideo.sap.Orders.class);\n return (ru.terralink.mvideo.sap.Orders)res;\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }",
"public interface AdDao extends GenericDao<Ad, Long> {\n\n\t/**\n\t * Retourne toutes les publicité éligible\n\t * @param date\n\t * @return\n\t * @throws Exception\n\t */\n\tList<Ad> getAll(Date date)throws Exception;\n\n \n}",
"public interface DBDao {\n /**\n * 添加本地缓存\n * @param url 插入的数据的url\n * @param content 插入的数据的json串\n */\n public void insertData(String url,String content,String time);\n\n /**\n * 删除指定的本地存储数据\n * @param url 指定url\n */\n public void deleteData(String url);\n\n /**\n * 更新本地缓存数据\n * @param url 指定url\n * @param content 需要更新的内容\n * @param time 更新的时间\n */\n public void updateData(String url,String content,String time);\n\n /**\n * 查询指定url的缓存数据\n * @param url 指定的url\n * @return 返回缓存数据content\n */\n public String queryData(String url);\n /**\n * 查询指定url的缓存数据\n * @param url 指定的url\n * @return 返回缓存数据的存储时间\n */\n public String queryDataTime(String url);\n}",
"public interface DcSquadDAO {\n /**\n * Insert one <tt>DcSquadDO</tt> object to DB table <tt>dc_squad</tt>, return primary key\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>insert into dc_squad(squad_name,squad_desc,axiser,cubers,followers,investors,status,gmt_create,gmt_modify,attention) values (?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?)</tt>\n *\n *\t@param dcSquad\n *\t@return long\n *\t@throws DataAccessException\n */\n public long insert(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad</tt>\n *\n *\t@return List<DcSquadDO>\n *\t@throws DataAccessException\n */\n public List<DcSquadDO> load() throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (squad_name = ?)</tt>\n *\n *\t@param squadName\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadByName(String squadName) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set squad_name=?, squad_desc=?, axiser=?, cubers=?, followers=?, investors=?, status=?, gmt_modify=CURRENT_TIMESTAMP where (id = ?)</tt>\n *\n *\t@param dcSquad\n *\t@return int\n *\t@throws DataAccessException\n */\n public int update(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Delete records from DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>delete from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int deleteById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where ((squad_name = ?) AND (axiser = ?) AND (cubers = ?) AND (followers = ?) AND (investors = ?) AND (status = ?) AND (gmt_create = ?) AND (gmt_modify = ?))</tt>\n *\n *\t@param squadName\n *\t@param axiser\n *\t@param cubers\n *\t@param followers\n *\t@param investors\n *\t@param status\n *\t@param gmtCreate\n *\t@param gmtModify\n *\t@param pageSize\n *\t@param pageNum\n *\t@return PageList\n *\t@throws DataAccessException\n */\n public PageList query(String squadName, String axiser, String cubers, String followers,\n String investors, String status, Date gmtCreate, Date gmtModify,\n int pageSize, int pageNum) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set attention=? where (id = ?)</tt>\n *\n *\t@param attention\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int updateAttention(long attention, long id) throws DataAccessException;\n\n}",
"public interface DAO<PK extends Serializable, T> {\n\t/**\n\t * Enumerate para saber de que forma ordenar los resultados ASC o DESC\n\t * \n\t * @author Victor Huerta\n\t * \n\t */\n\tpublic enum Ord {\n\t\tASCENDING(\"ASC\"), DESCENDING(\"DESC\"), UNSORTED(\"\");\n\t\tprivate final String ord;\n\n\t\tprivate Ord(String ord) {\n\t\t\tthis.ord = ord;\n\t\t}\n\n\t\tpublic String getOrd() {\n\t\t\treturn ord;\n\t\t}\n\t}\n\n\t/**\n\t * Metodo para recuperar la session actual\n\t * \n\t * @return la session actual\n\t */\n\tSession getCurrentSession();\n\n\t/**\n\t * Metodo para guardar un registro\n\t * \n\t * @param entity\n\t * Entidad a guardar\n\t * @return true si se guardo correctamente false en otro caso\n\t */\n\tBoolean save(T entity);\n\n\t/**\n\t * Metodo para eliminar un registro\n\t * \n\t * @param entity\n\t * Registro a borrar\n\t * @return true si se elimino correctamente false en otro caso\n\t */\n\tBoolean delete(T entity);\n\n\t/**\n\t * Metodo para recuperar todos los objetos de la tabla\n\t * \n\t * @return lista con todos los objetos de la tabla\n\t */\n\tList<T> getAll();\n\n\t/**\n\t * Metodo para recuberar un objeto por el id, este metodo esta destinado a\n\t * los objetos que ya tienen definido el tipo T\n\t * \n\t * @param id\n\t * El id el objeto que se busca\n\t * @return El objeto encontrado\n\t */\n\tT getById(PK id);\n\n\t/**\n\t * Con este metodo se pueden buscar registros con propiedades similares a\n\t * las del objeto que se pasa, no sirve para buscaquedas por id.\n\t * \n\t * @param entity\n\t * Entidad con propiedades que se van a buscar\n\t * @return Lista de entidades encontradas\n\t */\n\tList<T> searchByExample(T entity);\n\n\t/**\n\t * Metodo para buscar registros con propiedades similares a la del objeto\n\t * que recibe, ordenarlos por el campo que manda con el limite y paginas\n\t * dadas\n\t * \n\t * @param entity\n\t * Ejemplo para la busqueda\n\t * @param sortBy\n\t * Campor por el que se desea ordenar\n\t * @param limit\n\t * Numero maximo de registros\n\t * @param page\n\t * Numero de pagina\n\t * @return\n\t */\n\tList<T> searchByExamplePages(T entity, String sortBy, Ord ord,\n\t\t\tInteger limit, Integer page);\n\n\t/**\n\t *\n\t * Metodo para buscar registros con propiedades similares a la del objeto\n\t * que recibe, ordenarlos por el campo que manda con el limite y paginas\n\t * dadas.\n\t * \n\t * @param entity\n\t * Ejemplo para la busqueda\n\t * @param sortBy\n\t * Campor por el que se desea ordenar\n\t * @param limit\n\t * Numero maximo de registros\n\t * @param page\n\t * Numero de pagina\n\t * @param associations\n\t * \t\t\t Mapa propiedad objeto\n\t * \n\t * @return List<T>\n\t */\n\n\tList<T> searchByExamplePages(T entity, String sortBy, Ord ord,\n\t\t\tInteger limit, Integer page, Map<String, Object> associations);\n\n\t/**\n\t * Cuenta todos los registros de la tabla\n\t * \n\t * @return Numero de registros en la tabla\n\t */\n\tInteger countAll();\n\n\t/**\n\t * Cuenta todos los resultados que coinciden con un ejemplo\n\t * \n\t * @param entity\n\t * Entidad de ejemplo para la busqueda\n\t * @return Numero de registros encontrados\n\t */\n\tInteger countByExample(T entity);\n\n\t/**\n\t * Numero de paginas que se obtendran buscando con el ejemplo dado y usando\n\t * un limite\n\t * \n\t * @param entity\n\t * Entidad de ejemplo para la busqueda\n\t * @param limit\n\t * Limite de registros por pagina\n\t * @return\n\t */\n\tInteger countByExamplePages(T entity, Integer limit);\n\n\t/**\n\t * Retorna la clase del tipo generico, la clase de la entidad. Destinada a\n\t * solo funcionar cuando se implemente esta interfaz definiendo el tipo T\n\t * \n\t * @return Clase del tipo generico\n\t */\n\tClass<?> getEntityClass();\n}",
"public interface DutyManageDao {\r\n\r\n void getDutyRecordByUID(Page<DutyMainUserVo,DutyMainUserVo> page );\r\n\r\n List<Map<String,Object>> getDutyStatistics(DutyMonthUserQuery dutyMonthUserQuery);\r\n\r\n int interDutyMain(List<DutyMain> dutyMain);\r\n List<DutyTypeVo> getDutyType(DutyMain main);\r\n List<String> getUsersByTypeId(String typeId,String searchText);\r\n int setInUserInfo(DutyMainUserVo userVo);\r\n int setDelUser(String id);\r\n int insertToMain(DutyMain dutyMain); //插入duty_main表格中一条数据\r\n int insertToUser(List<DutyMainUserVo> userList);\r\n List<DutyMain> selectDutyList(DutyTypeVo dutyTypeVo);\r\n\r\n List<DutyMain> selectAllDutyList(DutyTypeVo dutyTypeVo);\r\n\r\n List<DutyMainUserVo> getDutyInfoByDutyDate(DutyTypeVo dutyTypeVo);\r\n int insertToMainLine(DutyMain dutyMain); //向itsm_duty_main中插入一行数据得到dutyId\r\n int insertToMainList(List<DutyMainUserVo> listVo); //将复制的数据插入到duty_main_user表中\r\n Date getMaxDate(); //获得日期表中最大时间\r\n String getMinDate(); //获得日期表中最小日期\r\n int updateDutyState(DutyMainUserVo dutyMainUserVo); //更新值班状态\r\n int delLineUser(List<Long> delIds); //编辑保存时删除itsm_duty_main_user表格中的数据\r\n int getMainUserInfo(String typeUserName,String dutyTypeId); //根据人员名查相关的信息userId\r\n int addMan(List<DutyMainUserVo> addMan); //编辑时添加的人员\r\n long checkByDutyDate(String shiftDate); //根据时间查询该时间是否排班\r\n\r\n List<DutyMain> getDutyDateByUserId(Long id,String startDate,String endDate);\r\n\r\n List<DutyMainUserVo> getDutyUserByDate(String today);\r\n\r\n List<DutyMain> getDutyMainByDate(String date);\r\n\r\n List<DutyMonthUser> getUserDutyInfoList(Page page);\r\n\r\n int getTypeNumByUserId(long userId, int type);\r\n\r\n int getHasDutyMonth(long userId, int dutyType);\r\n\r\n List<DutyTypeVo> listAll();\r\n List<DutyTypeVo> listAllByDomainId(String domainId);\r\n\r\n void insertDutyTypeRecord(List<DutyTypeVo> dutyTypeVos);\r\n List<DutyTypeVo> selectDutyTypeById (long dutyId);\r\n List<DutyMainUserVo> selectDutyManById (long dutyId);\r\n List<DutyTypeVo> getDutyClassByTime(String shiftTime, long userId);\r\n\r\n List<DutyTypeVo> getShiftDutyClassByTime (Map timeMap);\r\n List<DutyMainUserVo> getShiftDutyClassByTimeAndDutyType(long shiftType,String time) throws ParseException;\r\n\r\n Long getLeaveDateByUserId(Long id, String startDate, String endDate);\r\n\r\n\r\n void addDutyLog(DutyLog dutyLog);\r\n\r\n List<DutyLog> getDutyLogBydutyTime(String dutyTime,Long subDutLogUserId);\r\n\r\n List<DutyLog> findDutyLog(Long dutyMainId,Long subDutyUserId);\r\n\r\n DutyLog findDutyLog(Long dutyMainId,Long dutyTypeId,Long subDutyUserId);\r\n\r\n DutyLog findAdminDutyLog(Map<String,Object> map);\r\n\r\n void delDutyLogById(Long id);\r\n\r\n void updateDutyLog(DutyLog dutyLog);\r\n\r\n List<DutyMain> findAllDutyList(DutyTypeVo dutyTypeVo);//根据域获取值班日期\r\n\r\n List<String> findUserByDomainId(String typeId, String searchText, Long domainId);\r\n\r\n List<DutyMainUserVo> selectDutyManById(Long dutyId, Long domainId);\r\n\r\n List<DutyTypeVo> findAllDutyTypeByDomainId(Long domainId);\r\n\r\n Date getMaxDate(Long domainId);\r\n\r\n List<DutyTypeVo> selectDutyTypeById(Long dutyId, Long domainId);\r\n\r\n List<Map<String, Object>> getDutyStatistics(Date beginTime, Date endTime, String domainId);\r\n\r\n /*保存延续按周排班*/\r\n int addWeek(List<DutyWeekUserVo> dutyWeekUserVo);\r\n\r\n List<DutyWeekUserVo> findWeek();\r\n\r\n\r\n List<DutyTypeVo> findDutyTypeById(Long dutyTypeId);\r\n\r\n List<Long> findDutyTime();\r\n\r\n List<DutyWeekUserVo> findWeekDuty(Long dutyId);\r\n\r\n /*更新编辑按周排班*/\r\n int delWeekUser(List<Long> delIds);\r\n\r\n int delMainUserByIds(List<Long> delIds);\r\n\r\n int addMans(List<DutyWeekUserVo> addMan);\r\n\r\n int addDutyMans(List<DutyMainUserVo> addMan);\r\n\r\n List<DutyTypeUserVo> findTypeUser(Long typeId,String searchText);\r\n\r\n List<DutyMainUserVo> findDutyMainUserByTypeId(Long typeId);\r\n\r\n void updateDutyMainUser(DutyMainUserVo dutyMainUserVo);\r\n\r\n int delWeekUsers();\r\n\r\n List<Long> findMinId();\r\n\r\n //查询最大时间\r\n Date findDesc();\r\n //查询最小时间\r\n Date findAsc();\r\n\r\n List<DutyMainUserVo> findDutyMainUserListByListID(Long listId);\r\n\r\n /**\r\n * jwt 同findDutyMainUserListByListID一样,只是获取itsm_duty_main_user的startTime和endTime\r\n * @param listId\r\n * @return\r\n */\r\n List<DutyMainUserVo> selectDutyMainUserListByListID(Long listId);\r\n\r\n List<DutyMainUserVo> findDutyMainUserListByDate(Map<String,Object> map);\r\n\r\n List<DutyMain> findDutyMainByListId(Long listId);\r\n\r\n List<DutyMain> findDutyMainByListId(Map<String,Object> map);\r\n\r\n List<DutyMainUserVo> findDutyMainUserListByDutyId(Long dutyId);\r\n\r\n void deleteDutyMainByDate(Map<String,Object> map);\r\n\r\n void deleteDutyMainByListId(Long listId);\r\n\r\n void deleteRecordByDutyId(Long dutyId);\r\n\r\n List<DutyMain> getAllDutyDateByDomainId(Map<String,Object> map);\r\n\r\n void upDateDutyUserContactsInfo(DutyMainUserVo dutyMainUserVo);\r\n\r\n\r\n void getMyDutyPage(Page<DutyMainUserVo,DutyMainUserQo> page);\r\n\r\n void updateDutyUserStatus(DutyMainUserVo dutyMainUserVo);\r\n\r\n List<DutyLog> getLogListByDutyIdAndTypeId(Map<String,Object> map);\r\n\r\n List<DutyTypeJobVo> findDutyMainTypeListByCDate(String currentDate);\r\n\r\n List<DutyMainUserVo> findUserListByDutyIdAndTypeId(Map<String,Object> map);\r\n\r\n void batchOffDutyList(Map<String,Object> map);\r\n\r\n void updateDutyLogByDutyTypeUser(DutyLog dutyLog);\r\n\r\n //jwt query获取itsm_duty_main_user表\r\n List<DutyMainUserVo> queryDutyMainUser(Page<DutyMainUserPageVo,DutyMainUserPageVo> page);\r\n}",
"public void queryDataFromDatabase() {\n AppDatabase database = Room.databaseBuilder(this, AppDatabase.class, DB_NAME).allowMainThreadQueries().build();\n runningdao = database.getRunningdataDAO();\n List<Runningdata> runningdata_list = runningdao.getAllRuningdata();\n for (int i = 0; i < runningdata_list.size(); i++) {\n int oldId = runningdata_list.get(i).getId();\n String oldStarttime = runningdata_list.get(i).getStarttime();\n double oldDistance = runningdata_list.get(i).getDistance();\n double oldCalorie = runningdata_list.get(i).getCalorie();\n System.out.println(\"Database shows here: \"+\"i:\"+i+\"oldId:\"+oldId +\"oldStarttime\"+oldStarttime+\"oldDistance\"+oldDistance+\"oldCalorie\"+oldCalorie);\n }\n // delete data from database by ID\n //runningdao.deleteById(10);\n }",
"@Dao\r\npublic interface HealthReadingDAO {\r\n\r\n @Insert\r\n void addNewRecord(HealthReading healthReading);\r\n\r\n @Query(\"SELECT * FROM health_table\")\r\n List<HealthReading> getAllRecords();\r\n\r\n @Query(\"SELECT * FROM health_table WHERE reading_time >= :lastAlarmTimeInMilli AND reading_time<= :offsetTime AND protocol_id IS NOT NULL AND protocol_id <> '' \")\r\n List<HealthReading> getLastAlarmRecords(long lastAlarmTimeInMilli,long offsetTime);\r\n\r\n\r\n @Query(\"DELETE FROM health_table\")\r\n void deleteAllRecords();\r\n}",
"public interface FakturaTekstVDAO extends DAO<FakturaTekstV> {\r\n\t/**\r\n\t * Finner tekster tilhørende faktura\r\n\t * \r\n\t * @param fakturaId\r\n\t * @return tekster\r\n\t */\r\n\tList<FakturaTekstV> findByFakturaId(Integer fakturaId);\r\n}",
"public interface SGroupAsIndexQueryDAO extends TableDAO<SGroupAsDO> { \n /**\n * 根据以下索引字段查询实体对象集\n * @param gid 抽象类型id\n * @param sortField 排序字段,传入null时表示不写入sql\n * @param isDesc 排序为降序\n * @param offset 其实位置\n * @param limit 返回条数\n * @return\n */\n public List<SGroupAsDO> queryByGid(@Param(\"gid\") long gid,@Param(\"sortField\") String sortField,@Param(\"isDesc\") boolean isDesc,@Param(\"offset\") int offset,@Param(\"limit\") int limit);\n\r\n\r /**\n * 根据以下索引字段查询实体对象集\n * @param gid 抽象类型id\n * @param asid \n * @param sortField 排序字段,传入null时表示不写入sql\n * @param isDesc 排序为降序\n * @param offset 其实位置\n * @param limit 返回条数\n * @return\n */\n public List<SGroupAsDO> queryByGidAndAsid(@Param(\"gid\") long gid, @Param(\"asid\") long asid,@Param(\"sortField\") String sortField,@Param(\"isDesc\") boolean isDesc,@Param(\"offset\") int offset,@Param(\"limit\") int limit);\n\r\n\r /**\n * 根据以下索引字段计算count\n * @param gid 抽象类型id\n * @return\n */\n public long countByGid(@Param(\"gid\") long gid);\n\r\n\r /**\n * 根据以下索引字段计算count\n * @param gid 抽象类型id\n * @param asid \n * @return\n */\n public long countByGidAndAsid(@Param(\"gid\") long gid, @Param(\"asid\") long asid);\n\r\n\r}",
"public interface RightInfoDAO extends BaseDAO {\n /** The name of the DAO */\n public static final String NAME = \"RightInfoDAO\";\n\n\t/**\n\t * Insert one <tt>RightInfoDTO</tt> object to DB table <tt>azdai_right_info</tt>, return primary key\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>insert into azdai_right_info(code,title,memo,gmt_create,gmt_modify) values (?, ?, ?, ?, ?)</tt>\n\t *\n\t *\t@param rightInfo\n\t *\t@return String\n\t *\t@throws DataAccessException\n\t */\t \n public String insert(RightInfoDTO rightInfo) throws DataAccessException;\n\n\t/**\n\t * Update DB table <tt>azdai_right_info</tt>.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>update azdai_right_info set title=?, memo=?, gmt_modify='NOW' where (code = ?)</tt>\n\t *\n\t *\t@param rightInfo\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int update(RightInfoDTO rightInfo) throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info where (code = ?)</tt>\n\t *\n\t *\t@param code\n\t *\t@return RightInfoDTO\n\t *\t@throws DataAccessException\n\t */\t \n public RightInfoDTO find(String code) throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info order by code ASC</tt>\n\t *\n\t *\t@return List<RightInfoDTO>\n\t *\t@throws DataAccessException\n\t */\t \n public List<RightInfoDTO> findAll() throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info order by code ASC</tt>\n\t *\n\t *\t@param userNo\n\t *\t@return List<RightInfoDTO>\n\t *\t@throws DataAccessException\n\t */\t \n public List<RightInfoDTO> findUserRights(String userNo) throws DataAccessException;\n\n\t/**\n\t * Delete records from DB table <tt>azdai_right_info</tt>.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>delete from azdai_right_info where (code = ?)</tt>\n\t *\n\t *\t@param code\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int delete(String code) throws DataAccessException;\n\n}",
"public interface ServicoDao extends EntidadeDao<Servico> {\n Long contarTotalServicos();\n Long contarServicosStatus(StatusServico statusServico);\n @Override\n List<Servico> listar();\n\n List<Servico> listarServicos();\n public List<Servico> listarMeusServicos(Long id);\n public List<Servico> listarServicosEmAberto();\n Long servicoPorSetor(Long id);\n Servico BuscarPorId(Long id);\n void salvarLogServico(LogServico logServico);\n\n public void verificarConlusaoEAtualizar(Long id);\n\n Long meusServicos();\n Long contarPorSetor(Long id);\n List<Object[]> contarDeAteDataPorSetorDESC(LocalDate dtDe, LocalDate dtAte);\n List<Object[]> contarAPartirDePorSetorDESC(LocalDate dtDe);\n List<Object[]> contarAteDataPorSetorDESC(LocalDate dtAte);\n List<Object[]> contarDeAteDataDESC(LocalDate dtDe, LocalDate dtAte);\n List<Servico> filtrarDeAteDataPorSetorDESC(Long id, LocalDate dtDe, LocalDate dtAte);\n List<Servico> filtrarAPartirDePorSetorDESC(Long id, LocalDate dtDe);\n List<Servico> filtrarAteDataPorSetorDESC(Long id, LocalDate dtAte);\n List<Servico> filtrarDeAteDataDESC(LocalDate dtDe, LocalDate dtAte);\n\n List<Servico> filtrarMaisRecentesPorSetor(Long id);\n}",
"public interface ReWelfareDAO {\n int deleteByPrimaryKey(Long welfareId);\n\n void insert(ReWelfare record);\n\n void insertSelective(ReWelfare record);\n\n void insertBatch(List<ReWelfare> records);\n\n ReWelfare selectByPrimaryKey(Long welfareId);\n\n int updateByPrimaryKeySelective(ReWelfare record);\n\n int updateByPrimaryKey(ReWelfare record);\n\n /**\n * 精选列表\n * @param platform\n * @return\n */\n List<ReWelfare> selectSelectionListByPlatform(int platform);\n\n /**\n * 福利\n *\n * @param platform\n * @param welfareId\n * @param welfareType\n * @return\n */\n List<ReWelfare> selectListByPlatform(int platform, Long welfareId, Integer welfareType);\n\n /**\n * 从mysql中获取福利id列表\n * @param platform 平台\n * @param welfareType 类型\n * @return\n */\n List<Long> selectWelfareIdListOrderByUpdateTimeDesc(int platform,Integer welfareType);\n}",
"O obtener(PK id) throws DAOException;",
"public interface ResourceDAO {\n //通过资源信息获取id\n @Select(\" SELECT r.resourceId \" +\n \" FROM btl_resource r \" +\n \" WHERE r.resourceURL = #{resourceURL} \" +\n \" AND r.resourceMethodType = #{resourceMethodType} \" +\n \" AND r.systemId = #{systemId} \")\n public List<Long> findIdByResourceInfo(@Param(\"resourceURL\") String resourceURL,\n @Param(\"resourceMethodType\") int resourceMethodType,\n @Param(\"systemId\") int systemId) ;\n\n //通过资源信息和可用性获取可用id\n @Select(\" SELECT r.resourceId \" +\n \" FROM btl_resource r \" +\n \" WHERE r.resourceURL = #{resourceURL} \" +\n \" AND r.resourceMethodType = #{resourceMethodType} \" +\n \" AND r.systemId = #{systemId} \" +\n \" AND r.state = #{state} \")\n public List<Long> findIdByResourceInfoAndState(@Param(\"resourceURL\") String resourceURL,\n @Param(\"resourceMethodType\") int resourceMethodType,\n @Param(\"systemId\") int systemId,\n @Param(\"state\") int state) ;\n\n //通过ids获取资源记录\n @Select({\"<script>\" ,\n \" SELECT * \",\n \" FROM btl_resource r \",\n \" WHERE r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findByIds(@Param(\"ids\") List<Long> ids) ;\n\n //通过ids获取可用的资源记录\n @Select({\"<script>\" ,\n \" SELECT * \",\n \" FROM btl_resource r \",\n \" WHERE r.state = #{state} \",\n \" AND r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findByIdsAndState(@Param(\"ids\") List<Long> ids , @Param(\"state\") int state) ;\n\n //通过ids获取资源信息\n @Select({\"<script>\" ,\n \" SELECT r.resourceId , r.resourceURL , r.resourceMethodType , r.systemId \",\n \" FROM btl_resource r \",\n \" WHERE r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findIdsWithResourceInfosByIds(@Param(\"ids\") List<Long> ids) ;\n\n //通过ids获取资源名称\n @Select({\"<script>\" ,\n \" SELECT r.resourceId , r.resourceName \",\n \" FROM btl_resource r \",\n \" WHERE r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findIdsWithResourceNameByIds(@Param(\"ids\") List<Long> ids) ;\n\n //通过ids获取资源可用信息\n @Select({\"<script>\" ,\n \" SELECT r.resourceId , r.state \",\n \" FROM btl_resource r \",\n \" WHERE r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findIdsWithStateByIds(@Param(\"ids\") List<Long> ids) ;\n\n\n //获取所有处于某种状态下的资源信息\n @Select(\" SELECT r.resourceId , r.resourceURL , r.resourceMethodType , r.systemId \" +\n \" FROM btl_resource r \" +\n \" WHERE r.state = #{state} \")\n public List<ResourceRecord> findIdsWithResourceInfoByState(@Param(\"state\") int state) ;\n\n //通过名字获取资源记录(分页)\n @Select(\" SELECT * \" +\n \" FROM btl_resource r \" +\n \" WHERE r.resourceName LIKE CONCAT('%' , #{name} , '%') \" +\n \" LIMIT ${skip},${size} \")\n public List<ResourceRecord> findByNameInPage(@Param(\"name\") String name,\n @Param(\"skip\") int skip,\n @Param(\"size\") int size);\n //通过名字获取资源数\n @Select(\" SELECT count(1) \" +\n \" FROM btl_resource r \" +\n \" WHERE r.resourceName LIKE CONCAT('%' , #{name} , '%') \")\n long getCountByName(@Param(\"name\") String name);\n\n\n //获取资源树信息\n @Select(\"SELECT r.resourceId , r.resourceName , r.parentId , r.state FROM btl_resource r\")\n public List<ResourceRecord> findAllRoleIdsWithRoleNameAndParentIdAndState() ;\n\n //添加资源\n @Insert(\" INSERT IGNORE INTO btl_resource(createTime , resourceCode , resourceName , resourceURL , resourceMethodType , systemId , state , parentId , resourceMemo) \" +\n \" VALUES(now() , #{re.resourceCode} , #{re.resourceName} , #{re.resourceURL} , #{re.resourceMethodType} , #{re.systemId} , #{re.state} , #{re.parentId} , #{re.resourceMemo}) \")\n public int insertResource(@Param(\"re\") ResourceRecord re);\n\n //删除资源\n @Delete(\"DELETE FROM btl_resource WHERE resourceId=#{resourceId}\")\n public int deleteById(@Param(\"resourceId\") long resourceId);\n\n //更新资源\n @Update(\"UPDATE btl_resource SET \" +\n \" resourceCode = #{re.resourceCode} , \" +\n \" resourceName = #{re.resourceName} , \" +\n \" resourceURL = #{re.resourceURL} , \" +\n \" resourceMethodType = #{re.resourceMethodType} , \" +\n \" systemId = #{re.systemId} , \" +\n \" state = #{re.state} , \" +\n \" parentId = #{re.parentId} , \" +\n \" resourceMemo = #{re.resourceMemo} \" +\n \" WHERE resourceId = #{re.resourceId}\")\n public int updateResource(@Param(\"re\") ResourceRecord re);\n\n}",
"public interface EepHeadLoadDAO extends DAO<EepHeadLoad> {\r\n\t/**\r\n\t * Sletter alle linjer tilhørende gitt hode\r\n\t * \r\n\t * @param head\r\n\t */\r\n\tvoid deleteImportFile(EepHeadLoad head);\r\n\r\n\t/**\r\n\t * Finner alle for gitt sekvensnummer\r\n\t * \r\n\t * @param nr\r\n\t * @return alle for gitt sekvensnummer\r\n\t */\r\n\tEepHeadLoad findBySequenceNumber(Integer nr);\r\n}",
"public interface TipoDao {\r\n\r\n /**\r\n * Inserta un nuevo registro en la tabla Tipos.\r\n */\r\n public TipoPk insert(Tipo dto) throws TipoDaoException;\r\n\r\n /**\r\n * Actualiza un unico registro en la tabla Tipos.\r\n */\r\n public void update(TipoPk pk, Tipo dto) throws TipoDaoException;\r\n\r\n /**\r\n * Elimina un unico registro en la tabla Tipos.\r\n */\r\n public void delete(TipoPk pk) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna un unico registro en la tabla Tipos que conicida con la\r\n * primary-key especificada.\r\n */\r\n public Tipo findByPrimaryKey(TipoPk pk) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna un registro de la tabla Tipos que coincida con el criterio\r\n * 'id_tipo = :idTipo'.\r\n */\r\n public Tipo findByPrimaryKey(Integer idTipo) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna todos los registros de la tabla Tipos que coincidan con el\r\n * criterio 'nombre_tipo LIKE %:nombre%'.\r\n */\r\n public Tipo[] findByName(String nombre) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna un registro de la tabla Tipos que coincida con el\r\n * criterio 'nombre_tipo = :nombre'.\r\n */\r\n public Tipo findByFullName(String nombre) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna todas las filas de la tabla Tipos.\r\n */\r\n public Tipo[] findAll() throws TipoDaoException;\r\n\r\n /**\r\n * Retorna todos los registros de la tabla Tipos que coincidan con la\r\n * sentencia SQL especificada arbitrariamente\r\n */\r\n public Tipo[] findByDynamicSelect(String sql, Object[] sqlParams)\r\n throws TipoDaoException;\r\n\r\n /**\r\n * Retorna todos los registros de la tabla Tipos que coincidan con el WHERE\r\n * SQL especificado arbitrariamente\r\n */\r\n public Tipo[] findByDynamicWhere(String sql, Object[] sqlParams)\r\n throws TipoDaoException;\r\n\r\n /**\r\n * Sets the value of maxRows\r\n */\r\n public void setMaxRows(int maxRows);\r\n\r\n /**\r\n * Gets the value of maxRows\r\n */\r\n public int getMaxRows();\r\n\r\n /**\r\n * Retorna la conexión actual del usuario\r\n * \r\n * @return Connection\r\n */\r\n public Connection getUserConn();\r\n\r\n /**\r\n * Setea la conexión a usar con la BD\r\n * \r\n * @param userConn\r\n */\r\n public void setUserConn(Connection userConn);\r\n\r\n}",
"public interface ProgramaTVDAO {\n\t/**\n\t * Crea una nueva monitorización\n\t * @param titulo Título del programa\n\t * @param episodeCode Código del Episodio (ej. T01E03)\n\t * @param fechaInicio Fecha y hora de Inicio\n\t * @param fechaFin Fecha y hora de Fin\n\t * @param hashtag Hashtag que se monitorizará\n\t * @return Objeto ProgramaTV\n\t */\n\tpublic ProgramaTV crearMonitorizacion(String titulo, String episodeCode, Date fechaInicio, Date fechaFin, String hashtag);\n\n\t/**\n\t * Monitorización por clave primaria\n\t * @param primaryKey Clave primaria\n\t * @return Objeto ProgramaTV\n\t */\n\tpublic ProgramaTV programaPorId(Long primaryKey);\n\t\n\t/**\n\t * Todas las monitorizaciones que llevan el mismo hashtag\n\t * @param hashtag Hashtag\n\t * @return Lista de objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> ProgramasPorHashtag(String hashtag);\n\t\n\t/**\n\t * Lista de monitorizaciones del mismo programa\n\t * @param titulo Título del programa\n\t * @return Lista de objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> programasPorTitulo(String titulo);\n\t\n\t /**\n\t * Todas las monitorizaciones\n\t * @return Lists de todos los objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> todosLosProgramas();\n\t\n\t/**\n\t * Top 5 programas más vistos\n\t * @return Array ordenado de los 5 programas más vistos\n\t */\n\tpublic ProgramaTV[] programasTop5();\n\n\t/**\n\t * Actualiza monitorizacion\n\t * @param prog Objeto ProgramaTV\n\t */\n\tpublic void updateProgramaTV(ProgramaTV prog);\n\n\n\t/**\n\t * Borra una monitorización\n\t * @param prog Clave primaria de la monitorización\n\t */\n\tpublic void deleteProgramaTV(Long prog);\n\t\n\t/**\n\t * Borra todos los programas\n\t */\n\tpublic void deleteAll();\n\t\n\n\t\n\n\t}",
"public interface EscalaDAO {\r\n\r\n /**\r\n * Select numero manifiesto aeat.\r\n *\r\n * @param srvcId\r\n * the srvc id\r\n * @return the string\r\n */\r\n String selectNumeroManifiestoAeat(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del estado de una escala a partir del estado de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateRecalcularEstado(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del codigo de exencion de una escala a partir del codigo de exencion de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateExencion(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de estancia de una escala a partir del tipo de estancia de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateEstancia(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de navegacion de entrada de una escala a partir del puerto anterior.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateNavegacionEntrada(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de navegacion de salida de una escala a partir del puerto siguiente.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateNavegacionSalida(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de IVA de una escala a partir de datos de la escala.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateTipoIva(final Long srvcId);\r\n\r\n /**\r\n * Modificacion de las fechas de inicio/fin de una escala a partir las fechas de inicio/fin de sus\r\n * atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateRecalcularFechas(final Long srvcId);\r\n}",
"public interface InterfaceDao<T>{\n //int COUNT_ROWS = 8;\n /**\n *\n * Чья реализауия.\n * @return\n */\n String WhoIsIt();\n\n /**\n *\n * @param El Добавление обьекта <b>EL<b>\n * @throws SQLException\n */\n void insert(T El) throws SQLException;\n\n /**\n *\n * @param El Обновить обьект <b>EL<b>\n * @throws SQLException\n */\n void update(T El) throws SQLException;\n\n /**\n * Получить обьекта по id\n * @param id идентификатор\n * @return возвращает обьект заданного типа\n * @throws SQLException\n */\n\n /**\n * Получить список обьектов\n * @return список\n * @throws SQLException\n */\n List getAll(Class <T> clazz) throws SQLException;\n\n /**\n * Удалить элемент из БД\n * @param El\n * @throws SQLException\n */\n void delete(T El) throws SQLException;\n\n long getCount(Class<T> clazz) throws SQLException;\n\n List getSubList(int position, int count, Class<T> clazz) throws SQLException;\n}",
"protected abstract Dao getDaoIntance(Context context);",
"public interface SiacTAttoLeggeDao extends Dao<SiacTAttoLegge,Integer> {\n\t\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @param attoLegge the atto legge\n\t * @return the siac t atto legge\n\t */\n\tSiacTAttoLegge create(SiacTAttoLegge attoLegge);\n\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#update(java.lang.Object)\n\t */\n\tSiacTAttoLegge update(SiacTAttoLegge attoDiLeggeDB);\n\t\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#findById(java.lang.Object)\n\t */\n\tSiacTAttoLegge findById (Integer uid);\n\t\n}",
"public interface IITDIndexDAO {\n\n /**\n * Inserts a list of itdIndices into the persistent storage.\n *\n * @param itdIndices A list of {@link ScripITD} instances.\n *\n * @return The number of successful inserts.\n *\n * @throws DataAccessException In case an exception is encountered during\n * the data access operation.\n */\n int insert( final List<ScripITD> itdIndices )\n throws DataAccessException ;\n\n /**\n * Inserts an instance of ScripITD into the persistent storage.\n *\n * @param itdIndices A list of {@link ScripITD} instances.\n *\n * @return The number of successful inserts.\n *\n * @throws DataAccessException In case an exception is encountered during\n * the data access operation.\n */\n int insert( final ScripITD itdIndex )\n throws DataAccessException ;\n\n /**\n * Returns a list of the latest Scrip ITD instances for all the symbols\n * for whom the intra day data is available.\n *\n * @return A list of {@link ScripITD}. If there are no intra day data for\n * the specified date, an empty list is returned, never null.\n *\n * @throws DataAccessException In case an exception is encountered during\n * the data access operation.\n */\n List<ScripITD> getLatestScripITD() throws DataAccessException ;\n\n /**\n * Returns a list of all the intra day ITD markers for the specified symbol\n * for the specified date.\n *\n * @param symbol The NSE symbol for which the ITD data has to be fetched\n * @param date The date for which the data has to be fetched.\n *\n * @return A list of {@link ScripITD}. If there are no intra day data for\n * the specified date, an empty list is returned, never null.\n *\n * @throws DataAccessException In case an exception is encountered during\n * the data access operation.\n */\n List<ScripITD> getScripITD( final String symbol, final Date date )\n throws DataAccessException ;\n\n /**\n * Returns a list of all the intra day ITD markers for the specified symbol\n * and the date range specified.\n *\n * @param symbol The NSE symbol for which the ITD data has to be fetched\n * @param start The start date of the date range\n * @param end The end date of the date range\n *\n * @return A list of {@link ScripITD}. If there are no intra day data for\n * the specified date, an empty list is returned, never null.\n *\n * @throws DataAccessException In case an exception is encountered during\n * the data access operation.\n */\n List<ScripITD> getScripITD( final String symbol, final Date start,\n final Date end )\n throws DataAccessException ;\n\n /**\n * Moves all records in the SCRIP_ITD_DATA table which have a date attribute\n * which is in the past, relative to the boundary date passed as parameter.\n * Please note that this operation does not delete the data from the live\n * table. If you want to delete the live data which has been archived, you\n * need to call on the deleteLiveRecords operation within the same transaction\n * boundary.\n *\n * @param boundary The date which implies that any record with date in the\n * past as compared to the boundary will be archived.\n *\n * @throws DataAccessException If an exception is encountered during the\n * archival process.\n */\n void archiveLiveRecords( final Date boundary )\n throws DataAccessException ;\n\n /**\n * Deletes all records in the SCRIP_ITD_DATA table which have a date attribute\n * which is in the past, relative to the boundary date passed as parameter.\n * Please note that this operation does not copy the data from the live\n * table to the archive table. If you want to copy the live data which is\n * about to be deleted, you need to call on the archiveLiveRecords\n * before this call, within the same transaction boundary.\n *\n * @param boundary The date which implies that any record with date in the\n * past as compared to the boundary will be deleted.\n *\n * @throws DataAccessException If an exception is encountered during the\n * archival process.\n */\n void deleteLiveRecords( final Date boundary )\n throws DataAccessException ;\n}",
"public interface PertenenciaDAO extends GenericDao<Pertenencia, Long> {\n\n}",
"@Override\r\n\tpublic DAOInterface getDAO() {\n\t\treturn new TimeSeriesDAO(context);\r\n\t}",
"@DAO(catalog = \"ABC\")\npublic interface AddressDAO {\n static final String TABLE_NAME= \"address\";\n static final String FIELDS = \"id,type,user_id,city,province ,district,phone,address,create_time,update_time,user_device_id\" ;\n static final String INSERT_FIELDS = \"type,user_id,city,province ,district,phone,address,update_time,user_device_id\" ;\n\n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where id =:1\")\n public Address getAddress(long id);\n\n\t@SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1 order by type desc limit :2,:3\")\n\tpublic List<Address> getAddresses(long user_id, int start, int offset);\n\n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddress(Address address);\n\n @SQL(\"update \" + TABLE_NAME + \" set city=:1.city,phone =:1.phone, address = :1.address ,update_time=now()\" + \" where id = :1.id\")\n public int updateAddress(Address address);\n\n @SQL(\"delete from \" + TABLE_NAME + \" where id = :1.id\")\n public int delAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type=1 where id = :1\")\n public int defaultAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_id = :1\")\n public int cleanDefaultAddress(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_device_id = :1\")\n public int cleanDefaultAddressByUserDeviceId(long userDeviceId);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where device_user_id =:1\")\n\tpublic List<Address> getAddressesByDeviceUserId(long user_id);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1\")\n\tpublic List<Address> getAddresses(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set user_id=:1,user_device_id= -1 where user_device_id = :2\")\n public Integer bindAddress2User(long userId,long userDeviceId);\n \n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddressByUserApp(Address address);\n\n}",
"public interface DAOOperations<T> {\n\t\n\t\n\t/**\n\t * Executes the SQL insert, update or delete statements and return the\n\t * number of affected rows.\n\t * @param sql the SQL statement\n\t * @return the number of executed inserts/deletes/updates\n\t * @throws DataAccessException\n\t */\n\tpublic int updateDb (final String sql) throws DataAccessException;\n\t\n\t/**\n\t * Gets the row count number given the sql query.\n\t * \n\t * @param sql the sql query.\n\t * @return the row count number.\n\t * @throws DataAccessException\n\t */ \n\tpublic int selectRowCount (final String sql) throws DataAccessException;\n\t\n\t/**\n\t * Gets a list of beans given a sql query.\n\t * \n\t * @param sql the sql query.\n\t * @return a list of beans.\n\t * @throws DataAccessException\n\t */\n\t@SuppressWarnings(\"hiding\")\n\tpublic <T> List<T> selectDb (final String sql, T bean) throws DataAccessException;\n\t\n\n}",
"public abstract ZALogDao mo87644a();",
"@Dao\npublic interface TripGearDao {\n @Query(\"SELECT * FROM tripgear\")\n List<TripGear> getAll();\n\n\n @Query(\"SELECT * FROM tripgear WHERE tripId = :id\")\n List<TripGear> getAllByTripId(int id);\n\n @Query(\"SELECT tripgear.* FROM tripgear LEFT JOIN catch ON catch.gearId == tripgear.id WHERE tripId = :id AND catch.gearId == tripgear.id\")\n List<TripGear> getAllByCatchedTripId(int id);\n\n\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId\")\n List<ShowTripGearModel> getAll_(int tripId);\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId AND tripgear.number <> '' \")\n List<ShowTripGearModel> getSetDataAll_(int tripId);\n\n @Query(\"SELECT * FROM tripgear WHERE id IN (:id)\")\n List<TripGear> loadAllByIds(int id);\n\n @Insert\n void insert(TripGear tripGear);\n\n @Query(\"DELETE FROM tripgear\")\n void deleteAll();\n\n @Delete\n void delete(TripGear tripGear);\n\n @Query(\"UPDATE tripgear SET number = :number , startDate = :startDate , startGpsLat = :startGpsLat, startGpsLon = :startGpsLon, endGpsLat = :endGpsLat,endGpsLon = :endGpsLon, endDate = :endDate WHERE id = :lineId\")\n void updateSetData(int lineId, String number, String startDate, String startGpsLat, String startGpsLon, String endGpsLat , String endGpsLon, String endDate);\n}",
"@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}",
"@Dao\r\npublic interface IPointBusDAO {\r\n @Insert\r\n void save(PointBus pointBus);\r\n\r\n @Delete\r\n void delete(PointBus pointBus);\r\n\r\n @Query(\"SELECT * FROM pointBus\")\r\n List<PointBus> findAll();\r\n\r\n @Query(\"SELECT * FROM pointBus WHERE `key` like :key\")\r\n PointBus get(String key);\r\n}",
"public interface GuruDao {\n public int findTotal();\n public int insertGuru(@Param(\"guru\") Guru guru);\n public int updateGuru(@Param(\"guru\") Guru guru);\n public Guru findGuru(@Param(\"context\") String context);\n public List<Guru> findByPage(@Param(\"start\") int start,@Param(\"rows\")int rows);\n}",
"public DTOSalida obtenerAccesosPlantilla(DTOOID dto) throws MareException\n { \n UtilidadesLog.info(\"DAOGestionComisiones.obtenerAccesosPlantilla(DTOOID dto): Entrada\"); \n StringBuffer query = new StringBuffer();\n RecordSet rs = new RecordSet(); \n DTOSalida dtos = new DTOSalida();\n BelcorpService bs = UtilidadesEJB.getBelcorpService(); \n query.append(\" SELECT DISTINCT A.ACCE_OID_ACCE OID, B.VAL_I18N DESCRIPCION \");\n query.append(\" FROM COM_PLANT_COMIS_ACCES A, V_GEN_I18N_SICC B, COM_PLANT_COMIS C \"); \n query.append(\" WHERE \");\n if(dto.getOid() != null) {\n query.append(\" A.PLCO_OID_PLAN_COMI = \" + dto.getOid() + \" AND \");\n }\n query.append(\" A.PLCO_OID_PLAN_COMI = C.OID_PLAN_COMI AND \"); \n query.append(\" C.CEST_OID_ESTA = \" + ConstantesCOM.ESTADO_ACTIVO + \" AND \"); \n \n query.append(\" B.ATTR_ENTI = 'SEG_ACCES' AND \"); \n query.append(\" B.ATTR_NUM_ATRI = 1 AND \");\n query.append(\" B.IDIO_OID_IDIO = \" + dto.getOidIdioma() + \" AND \");\n query.append(\" B.VAL_OID = A.ACCE_OID_ACCE \");\n query.append(\" ORDER BY DESCRIPCION \"); \n UtilidadesLog.debug(query.toString()); \n try {\n rs = bs.dbService.executeStaticQuery(query.toString());\n if(rs != null)\n dtos.setResultado(rs);\n }catch (Exception e) {\n UtilidadesLog.error(e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n } \n UtilidadesLog.info(\"DAOGestionComisiones.obtenerAccesosPlantilla(DTOOID dto): Salida\"); \n return dtos;\n }",
"public interface ChecklistItemDAOQuery {\n public final static String UUID = \"select REPLACE(UUID(),'-','')\";\n public final static String CREATE_ITEM = \"insert into checklist_items (id, taskid, title) \"+\n \"values (unhex(?), unhex(?), ?)\";\n public final static String CHECK_ITEM = \"update checklist_items set checked=TRUE WHERE id=unhex(?)\";\n public final static String GET_ITEM_BY_ID = \"select hex(i.id) as id, hex(i.taskid) as taskid, i.user_checked as user_checked, i.title, i.checked from checklist_items i where i.id=unhex(?)\";\n public final static String GET_ITEMS_FROM_TASK = \"select hex(i.id) as id, hex(i.taskid) as taskid, i.user_checked as user_checked, i.title, i.checked from checklist_items i where i.taskid=unhex(?)\";\n}",
"public interface BeeDataDao {\n\n /*获取兼职数据*/\n BeeJobTime getBeeJobTime();\n\n /*分页获取兼职数据*/\n BeeJobTime getBeeJobTimes(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n /*获取暑期工数据*/\n BeeSummerJob getBeeSummerJob();\n\n /*分页获取暑期工数据*/\n BeeSummerJob getBeeSummerJobs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n /*根据JID获取兼职详细信息*/\n BeeJobTimeDetailed getBeeJobTimeDetailed(int jid);\n\n /*根据SID获取兼职详细信息*/\n BeeSummerJobDetailed getSummerJobDetailed(int sid);\n\n /*分页获取兼职报名信息*/\n UserMessageList getSignUpJobFairs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n /*获取兼职报名List*/\n UserMessageList getSignUpJobFair();\n\n /*根据phone查询兼职报名人员*/\n UserMessageList selectJobFairUser(String phone);\n\n /*兼职报名*/\n void putSignUpJobFair(@Param(\"userMessage\") UserMessage userMessage);\n\n /*根据UserId查询报名人员*/\n String selectSignUpJobFairByUserId(int UserId);\n\n /*插入amount*/\n void insertAmount(@Param(\"amount\") String amount,@Param(\"jobNames\") String jobNames,@Param(\"userId\") int userId);\n\n /*暑期工报名*/\n void putSignUpSummerJob(@Param(\"userMessage\") UserMessage userMessage);\n\n /*暑期工发布*/\n void publishSummerJob(@Param(\"beeSummerJobDetailed\") BeeSummerJobDetailed beeSummerJobDetailed,@Param(\"tag\") String tag);\n\n /*兼职发布*/\n void publishJobFair(@Param(\"beeSummerJobDetailed\") BeeSummerJobDetailed beeSummerJobDetailed,@Param(\"tag\") String tag);\n\n /*分页获取暑期工报名信息*/\n UserMessageList getSignUpSummerJobs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n /*获取暑期工报名List*/\n UserMessageList getSignUpSummerJob();\n\n BeeSummerJobDetailedList AuditingJobFairs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n BeeSummerJobDetailedList AuditingJobFair();\n\n BeeSummerJobDetailedList AuditingSummerJob();\n\n BeeSummerJobDetailedList AuditingSummerJobs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n String selectSignUpJobFairByJIDS(int userId);\n\n UserMessageList selectSummerJobUser(String phone);\n\n String selectSignUpSummerJobByJIDS(int userId);\n\n String selectSignUpSummerJobByUserId(int userId);\n\n void insertAmount1(String jids, String jobNameS, int userId);\n\n int getSid(int id);\n\n int getJid(int id);\n\n void putOpenId(@Param(\"openId\") Object openId,@Param(\"targetId\") int targetId);\n\n BeeJobTime getAuditingBeeJobTimeByOpenId(String openId);\n\n BeeJobTime getAuditingBeeJobTimesByOpenId(@Param(\"openId\") String openId, @Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n BeeJobTime getBeeJobTimesByOpenId(@Param(\"openId\") String openId, @Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n BeeJobTime getBeeJobTimeByOpenId(String openId);\n\n int selectIsGet(int i);\n\n UserMessageList getSignUpJobFairsByJid();\n\n UserMessageList getSignUpJobFairByJid(@Param(\"jid\") String jid,@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n int selectargetId(String openId);\n\n BeeJobTimeDetailed getAuditingBeeJobTimeDetailed(int jid);\n\n int selectOpenId(Object openId);\n\n Object selectOpenIds(Object openId);\n\n List<Integer> getJidByOpenId(String openId);\n\n void getJobTimeUserByJid(List<Integer> jid);\n\n String getJidsByOpenId(String openId);\n\n BeeJobTime getJobTimeByOpenId(@Param(\"jidS\") List<String> jidS);\n\n BeeJobTime getBeeJobTimesByOpenIds(int startIndex, int endAmount);\n\n String getJidsByJid(int i);\n\n String[] getJids();\n}",
"@Dao\n@TypeConverters({DateConverter.class})\npublic interface DAO {\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insert(DatabaseModel databaseModels);\n\n @Query(\"Select *from todoitem\")\n LiveData<List<DatabaseModel>> getAllTask();\n\n @Query(\"Select * from todoitem where id = :id\")\n LiveData<DatabaseModel> getTaskById(int id);\n\n @Query(\"Select * from todoitem where tag = :tag\")\n LiveData<List<DatabaseModel>> getTaskByTag(String tag);\n\n @Query(\"Select * from todoitem where priority = :priority\")\n LiveData<List<DatabaseModel>> getTaskByPriority(String priority);\n\n @Query(\"Select * from todoitem where isTaskDone = :isDone\")\n LiveData<List<DatabaseModel>> getTaskByStatus(Boolean isDone);\n\n @Query(\"Delete from todoitem where id = :id\")\n void deleteById(int id);\n\n @Delete\n void delete(DatabaseModel databaseModel);\n\n\n}",
"public void refresh() {\n String sql = \"\";\n sql += \"select m.id\"\n + \", m.data\"\n + \", CAST(CONCAT(dep.nome, ' [', dep.id, ']') AS CHAR(50)) as deposito\"\n + \", cau.descrizione as causale\"\n + \", m.articolo\"\n + \", if (cau.segno = -1 , -m.quantita, m.quantita) as quantita\"\n + \", m.note\"\n + \", cast(concat(IF(m.da_tipo_fattura = 7, 'Scontr.', \"\n + \" IF(m.da_tabella = 'test_fatt', 'Fatt. Vend.', \"\n + \" IF(m.da_tabella = 'test_ddt', 'DDT Vend.',\"\n + \" IF(m.da_tabella = 'test_fatt_acquisto', 'Fatt. Acq.',\"\n + \" IF(m.da_tabella = 'test_ddt_acquisto', 'DDT Acq.', m.da_tabella)))))\"\n + \" , da_serie, ' ', da_numero, '/', da_anno, ' - [ID ', da_id, ']') as CHAR)as origine\"\n // + \", m.da_tabella\"\n // + \", m.da_anno\"\n // + \", m.da_serie\"\n // + \", m.da_numero\"\n // + \", m.da_id\"\n + \", m.matricola\"\n + \", m.lotto\"\n + \", a.codice_fornitore, a.codice_a_barre from movimenti_magazzino m left join articoli a on m.articolo = a.codice\"\n + \" left join tipi_causali_magazzino cau on m.causale = cau.codice\"\n + \" left join depositi dep ON m.deposito = dep.id\";\n sql += \" where 1 = 1\";\n System.out.println(\"articolo_selezionato_filtro_ref = \" + articolo_selezionato_filtro_ref);\n System.out.println(\"articolo_selezionato_filtro_ref get = \" + articolo_selezionato_filtro_ref.get());\n if (articolo_selezionato_filtro_ref.get() != null && StringUtils.isNotBlank(articolo_selezionato_filtro_ref.get().codice)) {\n sql += \" and m.articolo like '\" + Db.aa(articolo_selezionato_filtro_ref.get().codice) + \"'\";\n }\n if (filtro_barre.getText().length() > 0) {\n sql += \" and a.codice_a_barre like '%\" + Db.aa(filtro_barre.getText()) + \"%'\";\n }\n if (filtro_lotto.getText().length() > 0) {\n sql += \" and m.lotto like '%\" + Db.aa(filtro_lotto.getText()) + \"%'\";\n }\n if (filtro_matricola.getText().length() > 0) {\n sql += \" and m.matricola like '%\" + Db.aa(filtro_matricola.getText()) + \"%'\";\n }\n if (filtro_fornitore.getText().length() > 0) {\n sql += \" and a.codice_fornitore like '%\" + Db.aa(filtro_fornitore.getText()) + \"%'\";\n }\n if (filtro_deposito.getSelectedIndex() >= 0) {\n sql += \" and m.deposito = \" + cu.s(filtro_deposito.getSelectedKey());\n }\n sql += \" order by m.data desc, id desc\";\n System.out.println(\"sql movimenti: \" + sql);\n griglia.dbOpen(Db.getConn(), sql, Db.INSTANCE, true);\n griglia.dbSelezionaRiga();\n }",
"public interface BaseDao<T , PK> {\n\n /**\n * 获取列表\n *\n * @param queryRule\n * 查询条件\n * @return\n * @throws Exception\n */\n List<T> select(QueryRule queryRule) throws Exception;\n\n /**\n * 获取分页结果\n *\n * @param queryRule\n * 查询条件\n * @param pageNo\n * 页码\n * @param pageSize\n * 每页条数\n * @return\n * @throws Exception\n */\n Page<?> select(QueryRule queryRule , int pageNo , int pageSize) throws Exception;\n\n /**\n * 根据SQL获取列表\n *\n * @param sql\n * sql语句\n * @param args\n * 参数\n * @return\n * @throws Exception\n */\n List<Map<String , Object>> selectBySql(String sql , Object... args) throws Exception;\n\n /**\n * 根据SQL获取分页\n *\n * @param sql\n * SQL语句\n * @param param\n *\n * @param pageNo\n * 页码\n * @param pageSize\n * 每条页码数\n * @return\n * @throws Exception\n */\n Page<Map<String , Object>> selectBySqlToPage(String sql , Object[] param , int pageNo , int pageSize) throws Exception;\n\n /**\n * 删除一条记录\n * @param entity\n * entity中的id不能为空。如果id为空,其他条件不能为空。都为空不执行。\n * @return\n * @throws Exception\n */\n boolean delete(T entity) throws Exception;\n\n /**\n * 批量删除\n * @param list\n * @return 返回受影响的行数\n * @throws Exception\n */\n int deleteAll(List<T> list) throws Exception;\n\n /**\n * 插入一条记录并返回插入后的ID\n * @param entity\n * 只要entity不等于null,就执行插入\n * @return\n * @throws Exception\n */\n PK insertAndReturnId(T entity) throws Exception;\n\n /**\n * 插入一条记录,自增id\n * @param entity\n * @return\n * @throws Exception\n */\n boolean insert(T entity) throws Exception;\n\n /**\n * 批量插入\n *\n * @param list\n * @return\n * 返回受影响的行数\n * @throws Exception\n */\n int insertAll(List<T> list) throws Exception;\n\n /**\n * 修改一条记录\n * @param entity\n * entity中的ID不能为空。如果ID为空,其他条件不能为空。都为空不执行。\n * @return\n * @throws Exception\n */\n boolean update(T entity) throws Exception;\n}",
"@Test\n public void retriveByIdTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(1);\n assertNotNull(servizio,\"Should return true if return Servizio 1\");\n }",
"public interface ExampleDao {\r\n\r\n /**\r\n * 列出所有测\r\n * @return\r\n */\r\n public List<Example> findExamples() ;\r\n\r\n /**\r\n * 取得总记录数\r\n * @return 记录数量\r\n */\r\n int getExamplesCount();\r\n\r\n /**\r\n * 取得总记录数\r\n * @return 记录数量\r\n */\r\n int getExamplesCount(Query query);\r\n\r\n int getExamplesCount1(TimeQuery query);\r\n\r\n /**\r\n * 取得相关的记录数\r\n * @param query 查询参数\r\n * @return 相关记录\r\n */\r\n List<Example> findExamplesPage(Query query);\r\n\r\n List<Example>findExamplesPage1(TimeQuery query);\r\n\r\n /**\r\n * 创建对象\r\n * @param example\r\n */\r\n void createExample(Example example);\r\n\r\n List<Example> findExamplesByTime(String startDate,String endDate);\r\n\r\n\r\n List<Example> findExamplesByTime1(TimeQuery query);\r\n}",
"public interface KualitasAirDao extends GenericDao<KualitasAir, Long> {\n}",
"public interface FakturaDao extends GenericDao<Faktura, Long> {\n\n}",
"T queryForId(ID id) throws SQLException, DaoException;",
"public interface CamareroDAO extends CommonDAO<Camarero> {\n\n List<Object[]> obtenerConsultaCamarero(String queryNativo, String mapeador, Date fechaInicial, Date fechaFinal);\n\n}",
"public interface SeckillDao {\n\n /**\n * 减库存\n * @param seckillId\n * @param killTime\n * @return\n */\n public int reduceNumber(@Param(\"seckillId\") long seckillId,@Param(\"killTime\") Date killTime);\n\n /**\n * 根据seckillId查询仓库产品\n * @param seckillId\n * @return\n */\n public Seckill queryById(long seckillId);\n\n /**\n * 根据偏移量查询仓库产品集合\n * @param offset\n * @param limit\n * @return\n */\n public List<Seckill> querySeckillList(@Param(\"offset\") int offset,@Param(\"limit\") int limit);\n\n\n\n}",
"public static com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders> findByIV_FO_TOR_ID(java.lang.String IV_FO_TOR_ID, int skip, int take)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.findByIV_FO_TOR_ID\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n \n \n String _selectSQL = \" x.\\\"a\\\",x.\\\"b\\\",x.\\\"c\\\",x.\\\"d\\\",x.\\\"e\\\",x.\\\"f\\\",x.\\\"g\\\",x.\\\"h\\\",x.\\\"i\\\",x.\\\"j\\\",x.\\\"l\\\",x.\\\"m\\\",x.\\\"n\\\",x.\\\"o\\\",x.\\\"p\\\",x.\\\"q\\\",x.\\\"r\\\",x.\\\"s\\\",x.\\\"t\\\",x.\\\"u\\\",x.\\\"v\\\",x.\\\"w\\\",x.\\\"x\\\",x.\\\"y\\\",x.\\\"z\\\",x.\\\"ba\\\",x.\\\"bb\\\",x.\\\"bc\\\",x.\\\"bd\\\",x.\\\"be\\\",x.\\\"bf\\\",x.\\\"bg\\\",x.\\\"bh\\\",x.\\\"bi\\\",x.\\\"bj\\\",x.\\\"bl\\\",x.\\\"bm\\\",x.\\\"pending\\\",x.\\\"_pc\\\",x.\\\"_rp\\\",x.\\\"_rf\\\"\"\n + \",x.\\\"relationsFK\\\",x.\\\"bn\\\",x.\\\"_rc\\\",x.\\\"_ds\\\",x.\\\"cvpOperation_length\\\",x.\\\"cvpOperationLobs_length\\\" FROM \\\"mvideo5_1_0_orders\\\" x WHERE (((x.\\\"pending\\\" = 1 or not exists (select x_os.\\\"bn\\\" from \\\"mvideo5_1_0_orders_os\\\" x_os where x_os.\\\"bn\\\" = x.\\\"bn\\\")))) and ( x.\\\"bl\\\" = ?)\";\n _selectSQL = \"select \" + _selectSQL;\n String[] ids = new String[0];\n com.sybase.reflection.DataType[] dts = new com.sybase.reflection.DataType[]{ \n com.sybase.reflection.DataType.forName(\"string\"),\n };\n Object[] values = new Object[] { \n IV_FO_TOR_ID,\n };\n com.sybase.collections.GenericList<Object> res = DELEGATE.findWithSQL(_selectSQL, dts, values, ids, skip, take, ru.terralink.mvideo.sap.Orders.class);\n return (com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders>)(Object)res;\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }",
"public static com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders> findByIV_FU_TOR_ID(java.lang.String IV_FU_TOR_ID, int skip, int take)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.findByIV_FU_TOR_ID\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n \n \n String _selectSQL = \" x.\\\"a\\\",x.\\\"b\\\",x.\\\"c\\\",x.\\\"d\\\",x.\\\"e\\\",x.\\\"f\\\",x.\\\"g\\\",x.\\\"h\\\",x.\\\"i\\\",x.\\\"j\\\",x.\\\"l\\\",x.\\\"m\\\",x.\\\"n\\\",x.\\\"o\\\",x.\\\"p\\\",x.\\\"q\\\",x.\\\"r\\\",x.\\\"s\\\",x.\\\"t\\\",x.\\\"u\\\",x.\\\"v\\\",x.\\\"w\\\",x.\\\"x\\\",x.\\\"y\\\",x.\\\"z\\\",x.\\\"ba\\\",x.\\\"bb\\\",x.\\\"bc\\\",x.\\\"bd\\\",x.\\\"be\\\",x.\\\"bf\\\",x.\\\"bg\\\",x.\\\"bh\\\",x.\\\"bi\\\",x.\\\"bj\\\",x.\\\"bl\\\",x.\\\"bm\\\",x.\\\"pending\\\",x.\\\"_pc\\\",x.\\\"_rp\\\",x.\\\"_rf\\\"\"\n + \",x.\\\"relationsFK\\\",x.\\\"bn\\\",x.\\\"_rc\\\",x.\\\"_ds\\\",x.\\\"cvpOperation_length\\\",x.\\\"cvpOperationLobs_length\\\" FROM \\\"mvideo5_1_0_orders\\\" x WHERE (((x.\\\"pending\\\" = 1 or not exists (select x_os.\\\"bn\\\" from \\\"mvideo5_1_0_orders_os\\\" x_os where x_os.\\\"bn\\\" = x.\\\"bn\\\")))) and ( x.\\\"bm\\\" = ?)\";\n _selectSQL = \"select \" + _selectSQL;\n String[] ids = new String[0];\n com.sybase.reflection.DataType[] dts = new com.sybase.reflection.DataType[]{ \n com.sybase.reflection.DataType.forName(\"string\"),\n };\n Object[] values = new Object[] { \n IV_FU_TOR_ID,\n };\n com.sybase.collections.GenericList<Object> res = DELEGATE.findWithSQL(_selectSQL, dts, values, ids, skip, take, ru.terralink.mvideo.sap.Orders.class);\n return (com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders>)(Object)res;\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }",
"public interface IEatingDao {\n void getEatingByIndex(int index, String tableSize, Restaurant restaurant, OneObjectCallBack callBack);//通过index获得eating\n void deleteEatingByTableNumber(Integer number, String tableSize, String restaurantName);//通过桌号删除该桌号用餐的eating\n}",
"public abstract DbDAO AccessToDAO();",
"@Dao\npublic interface FParamDiskonItemVendorDao {\n /**\n * @param fParamDiskonItemVendor\n * Harus Menggunakan\n * .allowMainThreadQueries() pada Configurasi database utama agar tidak perlu menggunakan AsynT\n */\n @Insert\n void insert(FParamDiskonItemVendor fParamDiskonItemVendor);\n @Update\n void update(FParamDiskonItemVendor fParamDiskonItemVendor);\n @Delete\n void delete(FParamDiskonItemVendor fParamDiskonItemVendor);\n\n\n @Query(\"DELETE FROM fParamDiskonItemVendor\")\n void deleteAllFParamDiskonItemVendor();\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor \")\n LiveData<List<FParamDiskonItemVendor>> getAllFParamDiskonItemVendorLive();\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor \")\n List<FParamDiskonItemVendor> getAllFParamDiskonItemVendor();\n\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor WHERE id = :id \")\n List<FParamDiskonItemVendor> getAllById(int id);\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor WHERE fdivisionBean = :id \")\n List<FParamDiskonItemVendor> getAllByDivision(int id);\n\n}",
"@Override\r\n\tpublic ArrayList<TransferUsuario> buscarDesarroladorDescuento(int descuento) {\n Transaction transaccion= TransactionManager.getInstance().nuevaTransaccion();\r\n transaccion.start();\r\n\t\t\r\n //Obtenemos el DAO\r\n \r\n Query query = factoriaQuery.getInstance().getQuery(Eventos.QUERY_DESARROLLADOR);\t\t \r\n ArrayList<TransferUsuario> ret= (ArrayList<TransferUsuario>) query.execute(descuento);\r\n \r\n TransactionManager.getInstance().eliminarTransaccion();\r\n \r\n return ret;\r\n\t}",
"public interface PersistenceFinalTaskDao {\n\t\n\t/**\n\t * Persiste el total de operaciones en la tabla\n\t * de reporte final\n\t */\n\tpublic void persisteMontoOperaciones(BigDecimal montoTotal, String idProceso);\n\n\t/**\n\t * \n\t * obtiene la sumatoria de los montos de todas las\n\t * operaciones correspondienes a la carga de \n\t * un archivo de operaciones\n\t * \n\t */\n\tpublic BigDecimal conteoTotalDeOperaciones(String idProceso, String schema);\n\n\t/**\n\t * \n\t * Metodo para obtener el numero de errores\n\t * contenidos en un proceso @idProceso\n\t * \n\t * @param idProceso\n\t * @param schema\n\t * @return numero de errores correspontienes al proceso\n\t */\n\tpublic int numeroDeRegistrosCargadosConError(String idProceso, String schema);\n\n\t/**\n\t * Recibe sentencias sql para persistir,\n\t * el metodo itera la lista de sentencias\n\t * regresa el numero de registros insertados\n\t * el cual deberia ser igual al numero de sentencias recibidas\n\t * entro de la lista\n\t *\n\t * @param listQuriesToPersistence\n\t * @return\n\t */\n\tpublic int persisteInformacionArrayQuries(List<String> listQuriesToPersistence, String idProceso);\n\t\n\t/**\n\t * Metodo que contiene el llamado a base de datos para hacer \n\t * el select inser de los registros que no fueron marcados\n\t * como update y tampoco fueron rechazados.\n\t * \n\t * @param queryInserSelect\n\t * @param idProceso\n\t * @return numero de registros afectados\n\t * @throws Exception \n\t */\n\tpublic int persisteInformacionInsertSelect(String queryInserSelect, String idProceso) throws Exception;\n\t\n}",
"public interface IInterviewDAO {\n void insertInterview(Interview interview) throws SQLException;\n List<Interview> getAllInterviews() throws SQLException;\n Interview getInterviewById(int id) throws SQLException;\n void updateInterview(Interview interview) throws SQLException;\n void deleteInterview(int interviewId) throws SQLException;\n List<Interview> getPastInterviews() throws SQLException;\n List<Interview> getFutureInterviews() throws SQLException;\n List<Interview> getFutureInterviewsByDirectionId(int directionId) throws SQLException;\n}",
"public interface BannerDao {\n public int insert(Banner banner) throws Exception;\n public int modifyBanner(Banner banner) throws Exception;\n public Integer selectTotalCnt(Banner banner) throws Exception;\n public List<Banner> selectBannerList(Banner banner, PagingParam pagingParam);\n public Banner selectBanner(Banner banner);\n public Banner select(Banner banner) throws Exception;\n List<Banner> selectAllList();\n\n}",
"@Select(\"select * from deal_record where d_account=#{id} order by d_time desc\")\n List<Record> queryallRecord(Integer id);",
"public interface ICampaniaDAO {\n\t/**\n\t * Crear la campania en el repositorio\n\t * @param campania\n\t */\n\tvoid crearCampania(GestionPrecioDTO campania);\n\t\n\t\n\t/**\n\t * Actualizar la campania en el repositorio\n\t * @param campania\n\t */\n\tvoid actualizarCampania(GestionPrecioDTO campania, UserDto user);\n\t\n\t/** Metodo actualizarCampania, utilizado para actualizar una campania\n\t * @author srodriguez\n\t * 27/2/2015\n\t * @param campania\n\t * @param user\n\t * @return void\n\t */\n\tvoid actualizarCampania(GestionPrecioDTO campania, String user);\n\t\n\t/**\n\t * Buscar la campania por el código de referencia\n\t * de Loyalty\n\t * @param codigoCampaniaReferencia Código de Loyalty\n\t * @return\n\t */\n\tGestionPrecioDTO findCampania(String codigoCampaniaReferencia);\n /**\n * Verifica si una campania existe dado su clave primaria como\n * parámetro de búsqueda\n * @param id\n * @returnS\n */\n Boolean findExistsCampania(GestionPrecioID id) ;\n /**\n * Obtener todas las campanias existentes en el repositorio\n * @return\n */\n Collection<GestionPrecioDTO> findCampaniasPendientes() ;\n /**\n * Buscar un listado de campanias dado una plantilla de búsqueda y el\n * estado de cobro\n * @param gestionPrecio Plantilla de búsqueda\n * @param estadoCobro Estado de cobro. Ej: PENDIENTE, CONFIGURADA, COBRADA, EN CURSO, etc.\n * @return\n */\n Collection<GestionPrecioDTO> findCampaniasFiltros (GestionPrecioDTO gestionPrecio,String estadoCobro);\n \n /**\n * @author cbarahona\n * @param campania\n */\n void actualizarCampaniaLoyalty (GestionPrecioDTO campania);\n \n SearchResultDTO<GestionPrecioDTO> findCampaniasPendientesLazy (Integer firstResult, Integer pageSize, Boolean countAgain);\n \n SearchResultDTO<GestionPrecioDTO> findCampaniasFiltrosLazy (GestionPrecioDTO gestionPrecio, String estadoCobro,Integer firstResult, Integer pageSize, Boolean countAgain);\n \n GestionPrecioDTO findCampania(final String codigoReferencia, final Integer codigoCompania) throws SICException;\n \n void actualizarCampania(GestionPrecioDTO campania) throws SICException;\n \n /**\n * Metodo que valida si una campaña tiene participantes\n * @param codigoReferencia\n * @return\n * @throws SICException\n */\n Boolean tieneParticipantesCampania(String codigoReferencia) throws SICException;\n}",
"public ArrayList<AnuncioDTO> ObtenerAnuncios(){\n ArrayList<AnuncioDTO> ret=new ArrayList<AnuncioDTO>();\n\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\n InputStream is = new FileInputStream(sqlPropertiesPath);\n sqlProp.load(is);\n PreparedStatement ps = conect.prepareStatement(sqlProp.getProperty(\"getAll.Anuncio\"));\n ResultSet rs = ps.executeQuery();\n while(rs.next()){\n int id=rs.getInt(1);\n TipoAnuncio tipoAnuncio=TipoAnuncio.valueOf(rs.getString(2));\n String titulo = rs.getString(3);\n String cuerpo = rs.getString(4);\n Date fechaPublicacion = new Date(rs.getDate(5).getTime());\n Date fechaFin=null;\n if(tipoAnuncio.equals(TipoAnuncio.Flash)){\n fechaFin= new Date(rs.getDate(6).getTime());\n }\n String emailPropietario = rs.getString(7);\n EstadoAnuncio estadoAnuncio = EstadoAnuncio.valueOf(rs.getString(8));\n \n ArrayList<String>temas=null;\n if(tipoAnuncio.equals(TipoAnuncio.Tematico)){\n temas=new ArrayList<String>();\n ArrayList<String>temasId = null;\n temasId=new ArrayList<String>(Arrays.asList(rs.getString(9).split(\",\")));\n InteresesDAO interesesDAO = new InteresesDAO(sqlPropertiesPath);\n Hashtable<Integer,String> intereses = interesesDAO.DevolverIntereses();\n for(String interes : temasId){\n temas.add(intereses.get(Integer.parseInt(interes)));\n }\n\n }\n ArrayList<String>destinatarios = ObtenerDestinatariosAnuncio(id);\n AnuncioDTO anuncioDTO=new AnuncioDTO(id, tipoAnuncio, titulo, cuerpo, fechaPublicacion, fechaFin, emailPropietario, estadoAnuncio, temas,destinatarios);\n\n ret.add(anuncioDTO);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return ret;\n }",
"public interface SafeDao {\n /**\n * 写入数据库\n */\n int insertData(@Param(\"state\") String state, @Param(\"temperature\") String temperature, @Param(\"heartrate\") String heartrate, @Param(\"longitude\") String longitude, @Param(\"latitude\") String latitude, @Param(\"updateDate\") Date updateDate);\n List<SafeEntity> getList();\n List<SafeEntity> getOne();\n\n}",
"public interface ColumnDAO {\r\n public List queryObjs(Map condition) throws Exception;\r\n public List queryObjs(Map condition, int offset, int limit) throws Exception;\r\n public Column queryObj(String colid) throws Exception;\r\n public int queryCountObjs(Map condition) throws Exception;\r\n public int queryCountObj(String colid) throws Exception;\r\n public void execInsert(Column column) throws Exception;\r\n public void execUpdate(Column column) throws Exception;\r\n public void execDelete(String colid) throws Exception;\r\n}",
"public interface BaseDao<T> {\n /**\n * �����¼\n */\n public Integer insert(T t);\n\n /**\n * ��������\n */\n public Integer insertBatch(List<T> models);\n\n /**\n * ����ID, ɾ����¼\n *\n * @return �Ƿ�����ɹ�. true:ɾ���ɹ�, false:ɾ��ʧ��\n */\n public Boolean deleteById(Integer id);\n\n\n /**\n * ���Ӽ�¼����, ɾ����¼\n *\n * @param t ����\n * @return �Ƿ�����ɹ�. true:ɾ���ɹ�, false:ɾ��ʧ��\n */\n public Boolean deleteByCon(T t);\n\n /**\n * ���¶���\n * @param t Ŀ�����\n * @return ��������\n */\n public Integer updateById(T t, Integer id);\n\n /**\n * ���¶���\n *\n * @param source ԭ����\n * @param target Ŀ�����\n * @return ��������\n */\n public Integer updateByCon(T source, T target);\n\n /**\n * ���Ҽ�¼\n *\n * @return ���ҽ��, δ�ҵ�����null\n */\n public T findOne(Integer id);\n\n /**\n * ���Ҽ�¼\n *\n * @param t ��������\n * @return ���ҽ��, δ�ҵ�����null\n */\n public T findOne(T t);\n\n /**\n * ��ѯ��¼\n *\n * @param t ��������\n * @return ���ҽ��, δ�ҵ�����null\n */\n public List<T> findMany(T t);\n\n /**\n * ��ȡ��¼����\n *\n * @return ��¼����\n */\n public Integer total();\n\n /**\n * ��ȡ��¼����\n *\n * @param t ��������\n * @return ��¼����\n */\n public Integer total(T t);\n\n /**\n * ��ҳ��ѯ\n * @param page ��ҳ����\n * @return\n */\n public Page queryPage(Page<T> page);\n}",
"public interface WarningLogMapper {\n\n @Select(\"SELECT * \"\n + \" FROM warning_log \"\n + \"where devEUI = #{devEUI} and status=#{status} \")\n List<WarningLog> queryByDevAndStatus(@Param(\"devEUI\") String devEUI,@Param(\"status\") String status);\n\n @Select(\"SELECT * \"\n + \" FROM warning_log \"\n + \"where id = #{id} \")\n WarningLog queryWarningLog(@Param(\"id\") String id);\n\n @Select(\"<script>\"\n +\"SELECT * FROM warning_log where devEUI in \"\n + \"<foreach collection=\\\"list\\\" open=\\\"(\\\" close=\\\")\\\" separator=\\\",\\\" item=\\\"uid\\\" >\"\n + \"#{uid}\"\n + \"</foreach>\"\n + \"<if test =\\\"status !=null and status!=''\\\"> and status = #{start} </if>\"\n +\" order by status asc, createTime desc \"\n +\"</script>\")\n List<WarningLog> queryWarningLogByDevIds(@Param(\"list\") List<String> list, @Param(\"status\") String status);\n\n @Insert(\"insert into warning_log (devEUI,time,fPort,gatewayCount,rssi,fCnt,loRaSNR,data,devicePath,functionCode,dataLen,status,createTime)\"\n + \" values( #{devEUI},#{time},#{fPort},#{gatewayCount},#{rssi},#{fCnt},#{loRaSNR},#{data},#{devicePath},#{functionCode},#{dataLen}, #{status},#{createTime} ) \")\n int saveWarningLog(WarningLog log);\n\n /**\n * 将故障的设备标记为已修复\n * @param status\n * @param updateTime\n * @param devEUI\n * @return\n */\n @Update(\"update warning_log set status = #{status}, updateTime = #{updateTime} where devEUI=#{devEUI} and status ='0' \")\n int updateStatus(@Param(\"status\") String status, @Param(\"updateTime\") Date updateTime, @Param(\"devEUI\") String devEUI);\n\n @Select(\"<script>\"\n +\"SELECT count(id) FROM warning_log where devEUI in \"\n + \"<foreach collection=\\\"list\\\" open=\\\"(\\\" close=\\\")\\\" separator=\\\",\\\" item=\\\"uid\\\" >\"\n + \"#{uid}\"\n + \"</foreach>\"\n + \"<if test =\\\"status !=null and status!=''\\\"> and status = #{status} </if>\"\n +\"</script>\")\n int queryFaultCount(@Param(\"list\") List<String> list, @Param(\"status\") String status);\n\n\n}",
"public interface QueryAllianceDao extends BaseMapper<Alliance> {\r\n//\r\n List<AllianceRecord> findAlliancePage(Page<AllianceRecord> page, @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search, @Param(\"orderBy\") String orderBy,\r\n @Param(\"startingCycleStartTime\") Date startingCycleStartTime,\r\n @Param(\"startingCycleEndTime\") Date startingCycleEndTime,\r\n @Param(\"leftNumber\") Integer leftNumber, @Param(\"rightNumber\") Integer rightNumber);\r\n //rpc分页列表\r\n List<AllianceRecord> findAlliancePageShip(Page<AllianceRecord> page, @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search, @Param(\"orderBy\") String orderBy,\r\n @Param(\"startingCycleStartTime\") Date startingCycleStartTime,\r\n @Param(\"startingCycleEndTime\") Date startingCycleEndTime);\r\n //根据userID查询当月的订单\r\n List<Map> getCurrentMonthOrderByUserId(@Param(\"id\") Long id);\r\n //根据userID 查询盟友信息\r\n AllianceRecord selectAllianceOneByUserId(@Param(\"id\") Long id);\r\n //查询自营商品\r\n public List<Map> getSelfProductByUserId(@Param(\"id\") Long id);\r\n //充值套餐\r\n @Select(\"select CONCAT('充值',value) as title,value from t_config_field where group_id=1\")\r\n List<JSONObject> getSetMeal();\r\n //查询邀请码\r\n Long selectUserIdByInvitationCode(@Param(\"invitationCode\") String invitationCode);\r\n\r\n //查询盟友详情\r\n AllianceRecord allianceDetails(@Param(\"id\") Long id);\r\n //查询电话号码是否存在\r\n @Select(\"select alliance_phone from t_alliance where alliance_phone=#{phone} \")\r\n String queryPhone(@Param(\"phone\") String phone);\r\n\r\n //查询自己的团队\r\n List<AllianceRecord> myTeam(Page<AllianceRecord> page,\r\n @Param(\"id\") Long id,\r\n @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search);\r\n //查询自己的订单总额\r\n @Select(\"select total_price as totalPrice,user_id as userId from t_order where id=#{orderId}\")\r\n public JSONObject queryOrderMoney(@Param(\"orderId\") Long orderId);\r\n\r\n //一周内加入的盟友\r\n @Select(\"select b.* from t_alliance a INNER JOIN t_alliance b ON b.invitor_alliance_id=a.id where a.user_id=#{userId} and DATE_SUB(CURDATE(), INTERVAL 7 DAY)<b.alliance_ship_time\")\r\n public List<Alliance> queryWeekAlliance(@Param(\"userId\")Long userId);\r\n\r\n //一周内发货订单\r\n @Select(\"select * from t_order where user_id = 11 and status='DELIVERED_CONFIRM_PENDING' and DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= created_date\\n\")\r\n public List<JSONObject> queryWeekOrderDeliver(@Param(\"userId\") Long userId);\r\n\r\n //一周内盟友下单\r\n @Select(\"select a.alliance_name as allianceName,o.* from t_order o,(select b.user_id,b.alliance_name from t_alliance a INNER JOIN t_alliance b ON b.invitor_alliance_id=a.id where a.user_id=#{userId}\\n\" +\r\n \"and b.alliance_ship=0) as a where o.user_id = a.user_id and DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= o.created_date and o.status='PAID_CONFIRM_PENDING'\")\r\n public List<JSONObject> queryWeekOrder(@Param(\"userId\") Long userId);\r\n\r\n //重置userID\r\n @Update(\"update t_alliance set user_id=null where id=#{id}\")\r\n Integer resetUserId(@Param(\"id\")Long id);\r\n\r\n //团队下单奖励\r\n\r\n //团队盟友升级\r\n\r\n //删除表的数据\r\n @Delete(\"delete from ${tableName}\")\r\n public Integer deleteTableData(@Param(\"tableName\") String tableName);\r\n //获取数据库json字段信息测试\r\n @Select(\"select JSON_EXTRACT(t_product_settlement_proportion.proportion, '$.value') from t_product_settlement_proportion\")\r\n public List<Float> getJson();\r\n\r\n //查询userid\r\n @Select(\"select id from t_user where phone=${phone}\")\r\n Long queryUserIdByPhone(@Param(\"phone\") String phone);\r\n //同步t_user real_name 和 alliance表 alliance_name\r\n @Update(\"update t_user set real_name=#{name} where phone=#{alliancePhone}\")\r\n Integer upUserRealNameByPhone(@Param(\"alliancePhone\") String alliancePhone,@Param(\"name\") String name);\r\n\r\n //获取所有盟友的id\r\n @Select(\"select id from t_alliance\")\r\n List<Long> getAllAllianceIds();\r\n}",
"@Mapper\npublic interface ArticleDao {\n\n @Options(useGeneratedKeys = true)\n @Insert(\"insert into t_article(title,url) values(#{title},#{url})\" )\n void insert( Article article);\n\n @Update(\"update t_article set status = 1 where id = #{id}\" )\n void updateStatus(@Param(\"id\")Integer id);\n\n @Select(\"select * from t_article t where t.status = 0 or t.status is null limit 40\" )\n List<Article> selectByStatus();\n}",
"public interface UserDAO extends GenericDAO<Long, UserBO> {\n\n @GenericQuery(query = \"select count(f.id) from UserBO f where f.enabled = :status and u.estado = 1\")\n Integer countUserByStatus(@GenericWhere(element = \":status\") Boolean status);\n\n @GenericQuery(query = \"select new cl.bice.gestionactas.ejb.vo.UserVO(u.id, u.name, u.rut, u.email) from UserBO u where u.estado = 1\")\n @GenericSort(element = \"u.name\")\n List<UserVO> userByStatus(@GenericWhere(element = \"u.enabled\") Boolean status,\n @GenericWhere(element = \"*first\") int first,\n @GenericWhere(element = \"*max\") int max);\n\n @GenericQuery(query = \"select new cl.bice.gestionactas.ejb.vo.UserVO(u.id, u.name, u.rut, u.loginAD) from UserBO u where lower(u.name) like :name or lower(u.loginAD) like :login and u.estado = 1 order by :field\")\n List<UserVO> listarUsuariosPorCriterios(@GenericWhere(element = \":name\", optional = true) String name,\n @GenericWhere(element = \":login\", optional = true) String loginAD,\n @GenericWhere(element = \":field\", optional = true) String field,\n @GenericWhere(element = \"*first\") int first,\n @GenericWhere(element = \"*max\") int max);\n\n @GenericQuery(query = \"select new cl.bice.gestionactas.ejb.vo.UserVO(u.id, u.name, u.rut, u.loginAD) from UserBO u where lower(u.name) like :name and u.estado = 1 order by :field\")\n List<UserVO> listarUsuariosPorNombre(@GenericWhere(element = \":name\", optional = true) String name,\n @GenericWhere(element = \":field\", optional = true) String field,\n @GenericWhere(element = \"*first\") int first,\n @GenericWhere(element = \"*max\") int max);\n\n @GenericQuery(query = \"select new cl.bice.gestionactas.ejb.vo.UserVO(u.id, u.name, u.rut, u.loginAD) from UserBO u where lower(u.loginAD) like :login and u.estado = 1 order by :field\")\n List<UserVO> listarUsuariosPorLogin(@GenericWhere(element = \":login\", optional = true) String loginAD,\n @GenericWhere(element = \":field\", optional = true) String field,\n @GenericWhere(element = \"*first\") int first,\n @GenericWhere(element = \"*max\") int max);\n\n @GenericQuery(query = \"select new cl.bice.gestionactas.ejb.vo.UserVO(u.id, u.name, u.rut, u.loginAD) from UserBO u where u.estado = 1 order by :field\")\n List<UserVO> listarUsuariosPorSinParametro(@GenericWhere(element = \":field\", optional = true) String field,\n @GenericWhere(element = \"*first\") int first,\n @GenericWhere(element = \"*max\") int max);\n\n @GenericQuery(query = \"select count(u.id) from UserBO u where lower(u.name) like :name or lower(u.loginAD) like :login and u.estado = 1\")\n Integer countListarUsuariosPorCriterios(@GenericWhere(element = \":name\", optional = true) String name,\n @GenericWhere(element = \":login\", optional = true) String loginAD);\n\n @GenericQuery(query = \"select u from UserBO u where lower(u.loginAD) = :login and u.estado = 1\")\n UserBO obtenerUsuario(@GenericWhere(element = \":login\", optional = false) String username);\n}",
"public interface MysqldataQueryDao {\n public List<Map<String, Object>> Querydata(String sql);\n public List<Map<String, Object>> Querymaindata(String sql);\n\n}",
"public interface IDrinkingSpotDAO {\n\n List<DrinkingSpot> getAll() throws BeerBuddyException;\n\n DrinkingSpot getActiveByPersonId(long personId) throws BeerBuddyException;\n\n DrinkingSpot insertOrUpdate(DrinkingSpot drinkingSpot) throws BeerBuddyException;\n\n DrinkingSpot getById(long dsid) throws BeerBuddyException;\n\n void join(long dsid, long personId) throws BeerBuddyException;\n\n void deactivate(long dsid) throws BeerBuddyException;\n}",
"public interface VedioDao {\n void addVedio(Vedio vedio);\n\n void deleteVedio(Vedio news);\n\n int findCountVedioByCondition(int typeId, String vedioKey);\n\n List<Vedio> findVedioByCondition(int begin, int pageCount, int typeId, String vedioKey);\n\n void deleteMoreVedio(String[] checkVedioIDs);\n \n Vedio find(int vedio_id);\n}",
"public interface StorylineCachedDao extends BaseCachedDao{\n /**\n * 存储故事线\n * @param storylineEntity 故事线持久化对象\n * @return 存储后的持久化对象(如果没有存储成功会返回null)\n */\n StorylineEntity save(StorylineEntity storylineEntity);\n\n /**\n * 改\n * @param storylineEntity 故事线持久化对象\n * @return 是否成功\n */\n Boolean update(StorylineEntity storylineEntity);\n\n /**\n * 根据条件查询出故事线列表。按更新时间从新到旧排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderNews(int limit_begin, Integer rule, int show_num);\n\n /**\n * 根据条件查询出故事线列表。按更新时间从新到旧排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @param tag 按标签查询的“标签”\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderNews(int limit_begin, Integer rule, int show_num, String tag);\n\n /**\n * 根据用户id查询该用户发布的故事线列表\n * @param user_id 用户id\n * @param limit_begin 起始查询条数\n * @param show_num 查询数量\n * @return\n */\n List<StorylineEntity> findMoreByOrderNews(Integer user_id, int limit_begin, int show_num);\n\n /**\n * 根据条件查询出故事线列表。按观看次数由大到小排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderHot(int limit_begin, Integer rule, int show_num);\n\n /**\n * 根据条件查询出故事线列表。按观看次数由大到小排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @param tag 按标签查询的“标签”\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderHot(int limit_begin, Integer rule, int show_num, String tag);\n\n /**\n * 根据条件查询出故事线列表。按观看次数由大到小排序\n * @param storyline_commend_show_num 查找条数\n * @return 故事线文章列表\n */\n List<StorylineEntity> findMoreByOrderHot(int storyline_commend_show_num);\n\n /**\n * 通过count查询总条数\n * @return 总数\n */\n int findSumByCount();\n\n /**\n * 根据用户id查询该用户发布的故事线列表总数\n * @param user_id 用户id\n * @return 总数\n */\n int findSumByCount(Integer user_id);\n\n /**\n * 根据故事线id查询具体某故事线详情\n * @param storyline_id 故事线id\n * @return 某一个故事线详情\n */\n StorylineEntity findOneById(Integer storyline_id);\n}",
"public void queryOrder(){\n\t\ttry{\n\t\t\tlock.lock();\n\t\t\tSystem.out.println(Thread.currentThread().getName()+\"查询到数据:\"+System.currentTimeMillis());\n\t\t\tThread.sleep(2000);\n\t\t}catch( Exception e){\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tlock.unlock();\n\t\t}\n\t}",
"public interface SuccessKillDao {\n\n /**\n * 插入购买明细,可过滤重复\n * @param id\n * @param userPhone\n * @return 插入的行数\n */\n int insertSuccessKill(@Param(\"seckillId\") long seckillId, @Param(\"userPhone\") long userPhone,@Param(\"state\")short state);\n\n /**\n * 通过Id查询,并携带产品秒杀\n * @param seckillId\n * @return\n */\n SuccessKilled queryByIdWhithSecKill(@Param(\"seckillId\") long seckillId,@Param(\"userPhone\") long userPhone);\n}",
"public interface Dao<T> {\n\n\n T load(Serializable id);\n\n T get(Serializable id);\n\n\n\n void persist(T entity);\n\n void save(T entity);\n void update(T entity);\n /**\n * 查询所有实体数据\n * @return\n */\n List<T> findAll();\n\n /**\n * 求所有数量\n * @return\n */\n int count();\n\n /**\n * 通过HQL查询\n * @param hql hql语句\n * @param params 参数\n * @return\n */\n List<T> findByHql(String hql, Object... params);\n\n /**\n * 通过HQL语句查询,带分页\n * @param hql HQL语句\n * @param pageNo 页号,从1起\n * @param pageSize 页大小\n * @param params 参数\n * @return\n */\n List<T> findByHqlPage(String hql, int pageNo, int pageSize, Object... params) ;\n\n /**\n * 通过Like查询实体\n * @param example 条件\n * @return\n */\n List<T> findByExampleLike(T example);\n List<T> findByExampleLike(T example, String order);\n List<T> findByExampleLike(T example, MatchMode matchMode);\n List<T> findByExampleLike(T example, int pageNo, int pageSize);\n List<T> findByExampleLike(T example, int pageNo, int pageSize, String order);\n\n long countByExampleLike(T example);\n\n List<T> findByExampleEq(T example);\n List<T> findByExampleEq(T example, String order);\n List<T> findByExampleEq(T example, MatchMode matchMode);\n List<T> findByExampleEq(T example, int pageNo, int pageSize);\n List<T> findByExampleEq(T example, int pageNo, int pageSize, String order);\n\n long countByExampleEq(T example);\n\n\n\n\n List<T> findByExampleNeProperty(T example, int pageNo, int pageSize, Map<String, Object> neqProperty, Order order);\n\n List<T> findByExampleNeProperty(T example, int pageNo, int pageSize, Map<String, Object> neqProperty);\n\n long countByExampleNeProperty(T example, Map<String, Object> neqProperty);\n\n List<T> findByExampleLike(T example, int pageNo, int pageSize, Order order);\n\n\n\n void delete(Serializable id);\n\n boolean has(T example);\n\n void flush();\n int execUpdateSQL(String sql);\n}",
"public interface SeckillDao {\n int reduceNumber(long seckillId,Date killTime);\n\n Seckill queryByID(long seckillId);\n\n List<Seckill> queryAll(int offset, int limit);\n}",
"@Dao\npublic interface BookDao {\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertData(BookModel bookmodel);\n\n @Query(\"select * from booktable\")\n BookModel[] selectAllData();\n\n //fungsi update book\n @Update\n int updateBook(BookModel bookModel);\n\n //fungsi delete\n @Delete\n int deleteBook(BookModel bookModel);\n\n //fungsi get detailbyID\n @Query(\"select * from booktable WHERE bookId = :id Limit 1\")\n BookModel detailbyId(int id);\n}",
"@Dao\npublic interface TaskDao {\n\n @Query(\"Select * from Task\")\n List<Task> getAll();\n\n @Query(\"Select * from Task where id = :taskId \")\n Task findById(String taskId);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void addTask(Task task);\n\n @Update(onConflict = OnConflictStrategy.REPLACE)\n void updateTask(Task task);\n\n @Delete\n void delete(Task byId);\n}",
"public interface DataDao {\r\n\t/*\r\n\t * Get the latest data of a specific device despite of sensor data type.\r\n\t */\r\n\tpublic DataValue getLastDataByDeviceIdSortedByTimestamp(String deviceId) throws Exception;\r\n\t/*\r\n\t * Get the latest data of a specific device and a sensor data type.\r\n\t */\r\n\tpublic DataValue getLastDataByDeviceIdAndSensorTypeSortedByTimestamp(SensorValue sensorVal) throws Exception;\r\n\t/*\r\n\t * Get the data information list from database that is between a specific time interval.\r\n\t */\r\n\tpublic List<DataValue> getDataListByDeviceIdAndSensorTypeAndDateSortedByTimestamp(DataValue dataVal) throws Exception;\r\n\t/*\r\n\t * Insert new sensor data into database.\r\n\t */\r\n\tpublic int insertSensorData(DataValue dataVal) throws Exception;\r\n\t/*\r\n\t * Get the greatest data value of a specific sensor type.\r\n\t */\r\n\tpublic DataValue getGreatestDataByDeviceIdAndSensorType(SensorValue sensorVal) throws Exception;\r\n\t/*\r\n\t * Get the least data value of a specific sensor type.\r\n\t */\r\n\tpublic DataValue getLeastDataByDeviceIdAndSensorType(SensorValue sensorVal) throws Exception;\r\n}",
"@Dao\npublic interface WeatherDao {\n\n\n @Insert(onConflict = REPLACE)\n void saveWeather(Weather weather);\n\n @Query(\"DELETE FROM weather WHERE cityId LIKE :cityId\")\n void deleteWeather(String cityId);\n\n @Query(\"SELECT * FROM weather WHERE cityId LIKE :cityId\")\n Weather fetchWeather(String cityId);\n\n @Query(\"SELECT * FROM weather\")\n List<Weather> fetchFollowedWeather();\n}",
"public static String altaLogico(int id){\n String query=\"UPDATE empleado SET activo=1 WHERE idEmpleado=\"+id;\n return query;\n}",
"public interface BaseDao<T> {\n\n T get(Long id);\n\n int save(T t);\n\n int update(T t);\n\n int delete(T t);\n\n int delete(Long id);\n\n T getObj(String sql, Object... args);\n\n Long count(String sql, Object... args);\n\n List<T> getList(String sql);\n\n List<T> getList(String frameSql, Object... args);\n\n Page<T> getPage(Page page, String frameSql, Object[] args);\n\n}",
"public void llenarTabla(){\n pedidoMatDao.llenarTabla();\n }",
"public interface BattleDao {\n\n @Select(\"SELECT * FROM battle WHERE chapter_id = #{chapterId} order by id\")\n @Results({\n @Result(property = \"battleId\", column = \"battle_id\"),\n @Result(property = \"chapterId\", column = \"chapter_id\"),\n @Result(property = \"battleTitle\", column = \"battle_title\"),\n @Result(property = \"battleDesc\", column = \"battle_desc\"),\n })\n public ArrayList<Battle> getAllBattleByChapterId(String chapterId);\n\n @Select(\"SELECT * FROM battle order by id\")\n @Results({\n @Result(property = \"battleId\", column = \"battle_id\"),\n @Result(property = \"chapterId\", column = \"chapter_id\"),\n @Result(property = \"battleTitle\", column = \"battle_title\"),\n @Result(property = \"battleDesc\", column = \"battle_desc\"),\n })\n public ArrayList<Battle> getAllBattle();\n\n @Select(\"SELECT * FROM battle WHERE battle_id = #{battleId}\")\n @Results({\n @Result(property = \"battleId\", column = \"battle_id\"),\n @Result(property = \"chapterId\", column = \"chapter_id\"),\n @Result(property = \"battleTitle\", column = \"battle_title\"),\n @Result(property = \"battleDesc\", column = \"battle_desc\"),\n })\n public Battle getBattleById(String battleId);\n}",
"public interface TravelGroupDAO {\r\n\r\n /**\r\n * 从数据库取得指定id的Travel Group\r\n * \r\n * @param id\r\n * Travel Group的id\r\n * @return 返回指定的Travel Group\r\n */\r\n public TravelGroup getTravelGroup(Integer id);\r\n\r\n /**\r\n * get Travel Group List Count according to conditions\r\n * \r\n * @param conditions\r\n * search condition\r\n * @return list count\r\n */\r\n public int getTravelGroupListCount(Map conditions);\r\n\r\n /**\r\n * get Travel Group List according to conditions\r\n * \r\n * @param conditions\r\n * search condition\r\n * @param pageNo\r\n * start page no(0 based), ignored if -1\r\n * @param pageSize\r\n * page size, ignored if -1\r\n * @param order\r\n * search order\r\n * @param descend\r\n * asc or desc\r\n * @return Travel Group list\r\n */\r\n public List getTravelGroupList(Map conditions, int pageNo, int pageSize, TravelGroupQueryOrder order, boolean descend);\r\n\r\n /**\r\n * insert Travel Group to database\r\n * \r\n * @param travel\r\n * Group the Travel Group inserted\r\n * @return the Travel Group inserted\r\n */\r\n public TravelGroup insertTravelGroup(TravelGroup travelGroup);\r\n\r\n /**\r\n * update Travel Group to datebase\r\n * \r\n * @param travelGroup\r\n * the Travel Group updated\r\n * @return the Travel Group updated\r\n */\r\n public TravelGroup updateTravelGroup(TravelGroup travelGroup);\r\n\r\n}",
"public interface AdvertisementsDao extends GenericDao<Advertisement>{\n\n List<Advertisement> getAll() throws DaoException;\n\n Advertisement getById(int id) throws DaoException;\n}",
"public interface TipoActividadDAO {\n \n /**\n * Funció que engloba les funcións que s'utilitzen per crear tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String callCrear(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Verifica que no existeixi un tipus amb el mateix nom\n * @param tipoAct\n * @return int\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract int getTipoByName(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Inserta un tipus d'activitat en la base de dades\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String insertarTipoActividad(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Agafa els tipus d'activitats que esten actius\n * @return List de TipoActividad\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract List<TipoActividad> getTiposActividad() throws PersistenceException, ClassNotFoundException;\n \n /**\n * Agafa tots els tipus d'activitats \n * @return List de TipoActividad\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract List<TipoActividad> getTiposActividadAdm() throws PersistenceException, ClassNotFoundException;\n \n /**\n * Seleccionar el tipo de actividad d'una actividad\n * @param activity\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;\n\n /**\n * Guarda la sessió del tipus d'activitat\n * @param tipoAct\n * @param pagina\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract void guardarSession(TipoActividad tipoAct, String pagina) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Funció que engloba les funcións per editar un tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String callEditar(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Funció que permet editar el Tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String editarTipoActividad(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n}",
"@Dao\npublic interface PostDao {\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertPost(iPost iPosts);\n\n @Update\n void updatePost(iPost iPost);\n\n @Delete\n void deletePost(iPost iPost);\n\n @Query(\"SELECT * FROM iPost\")\n List<iPost> getAllPosts();\n\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n List<iPost> findPostsByThread(final int threadId);\n\n @Transaction\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n Single<List<PostsHelper>> getPostsFromThread(String threadId);\n}",
"public interface TrainDao {\n List<Train> getAllTrains();\n Train getTrainBytrainId(int trainId);//根据车次查询\n boolean insertTrain(Train train);\n boolean deleteTrainBytrainId(int trainId);\n boolean updateTrain(Train train);\n}",
"public interface AirWaybillDangerousDetailDao {\r\n \r\n public int count() throws DaoException;\r\n\r\n public int deleteById(Integer id) throws DaoException;\r\n\r\n public int insert(AirWaybillDangerousDetail airWaybillDangerousDetail) throws DaoException;\r\n\r\n public AirWaybillDangerousDetail findById(Integer id) throws DaoException;\r\n\t\r\n\tpublic int update(AirWaybillDangerousDetail airWaybillDangerousDetail) throws DaoException;\r\n\t\r\n\tpublic int countByAirWaybillDangerousDetailExample(AirWaybillDangerousDetailExample airWaybillDangerousDetailExample) throws DaoException;\r\n\t\r\n\tpublic AirWaybillDangerousDetail findByAirWaybillDangerousDetailExample(AirWaybillDangerousDetailExample airWaybillDangerousDetailExample) throws DaoException;\r\n\t\r\n public List<AirWaybillDangerousDetail> findAllByAirWaybillDangerousDetailExample(AirWaybillDangerousDetailExample airWaybillDangerousDetailExample) throws DaoException;\r\n \r\n public List<AirWaybillDangerousDetail> findAllByAirWaybillDangerousDetailExample(AirWaybillDangerousDetailExample airWaybillDangerousDetailExample, int limit) throws DaoException;\r\n \r\n public List<AirWaybillDangerousDetail> findAllByAirWaybillDangerousDetailExample(AirWaybillDangerousDetailExample airWaybillDangerousDetailExample, int offset, int limit) throws DaoException;\r\n}",
"public interface ITradeDao {\n int insertTrade(Trade trade);\n\n List<Trade> queryTrade(TradeQuery query);\n}",
"public interface DotaMaxDAO {\n\n\n /**\n * 将hero实例存储到数据库。\n */\n void insertHeroes(List<Heroes> heroList);\n\n /**\n * 将Item实例存储到数据库。\n */\n void insertItems(List<Items> itemsList);\n\n\n /**\n * 加载英雄列表\n * @return\n */\n Heroes getHeroes(int id);\n\n\n\n\n\n\n void insertMatch(MatchDetails match);\n\n /**\n * 加载数据库里已有的数据\n * @param id\n * @return\n */\n MatchDetails getMatch(long id);\n\n /**\n * 加载用户的数据\n * @param account_id\n * @return\n */\n List<MatchDetails> getMatchByAccountId(long account_id);\n\n\n String getItemsNameById(String item_id);\n\n\n\n /**\n * 添加到User表\n */\n boolean insertUser(User user);\n\n /**\n * 从User表读取所有的用户\n */\n List<Long> getUser();\n\n\n\n}",
"@Test\r\n public void testRead() throws Exception {\r\n System.out.println(\"read\");\r\n int idbureau = 0;\r\n BureauDAO instance = new BureauDAO();\r\n instance.setConnection(dbConnect);\r\n Bureau obj = new Bureau(0,\"Test\",\"000000000\",\"\");\r\n Bureau expResult = instance.create(obj);\r\n idbureau=expResult.getIdbur();\r\n Bureau result = instance.read(idbureau);\r\n assertEquals(\"sigles différents\",expResult.getSigle(), result.getSigle());\r\n assertEquals(\"tel différents\",expResult.getTel(), result.getTel());\r\n //etc\r\n assertEquals(\"id différents\",expResult.getIdbur(),result.getIdbur());\r\n try{\r\n result=instance.read(0);\r\n fail(\"exception d'id inconnu non générée\");\r\n }\r\n catch(SQLException e){}\r\n instance.delete(result);\r\n }",
"public interface ActivityReservationDao {\n List<ActivityReservationBo> query(Map<String,Object> map);\n int querycount();\n int queryListcount(Map<String,Object> map);\n void updatestatus(ActivityReservationBo activityReservationBo);\n ActivityReservationBo queryById(Integer id);\n\n}",
"public static List<StronaWiersza> pobierzStronaWierszazBazy(StronaWiersza stronaWiersza, String wnma, StronaWierszaDAO stronaWierszaDAO, TransakcjaDAO transakcjaDAO) {\r\n List<StronaWiersza> listaStronaWierszazBazy =new ArrayList<>();\r\n// stare = pobiera tylko w walucie dokumentu rozliczeniowego \r\n// listaNowychRozrachunkow = stronaWierszaDAO.findStronaByKontoWnMaWaluta(stronaWiersza.getKonto(), stronaWiersza.getWiersz().getTabelanbp().getWaluta().getSymbolwaluty(), stronaWiersza.getWnma());\r\n// nowe pobiera wszystkie waluty \r\n listaStronaWierszazBazy = stronaWierszaDAO.findStronaByKontoWnMa(stronaWiersza.getKonto(), wnma);\r\n //stronaWierszaDAO.refresh(listaStronaWierszazBazy);\r\n if (listaStronaWierszazBazy != null && !listaStronaWierszazBazy.isEmpty()) {\r\n try {\r\n DateFormat formatter;\r\n formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n String datarozrachunku = null;\r\n if (stronaWiersza.getWiersz().getDataWalutyWiersza() != null) {\r\n datarozrachunku = stronaWiersza.getWiersz().getDokfk().getRok()+\"-\"+stronaWiersza.getWiersz().getDokfk().getMiesiac()+\"-\"+stronaWiersza.getWiersz().getDataWalutyWiersza();\r\n } else {\r\n datarozrachunku = stronaWiersza.getWiersz().getDokfk().getDatadokumentu();\r\n }\r\n Date dataR = formatter.parse(datarozrachunku);\r\n Iterator it = listaStronaWierszazBazy.iterator();\r\n while(it.hasNext()) {\r\n StronaWiersza stronaWierszaZbazy = (StronaWiersza) it.next();\r\n List<Transakcja> zachowaneTransakcje = transakcjaDAO.findByNowaTransakcja(stronaWierszaZbazy);\r\n for (Iterator<Transakcja> itx = stronaWierszaZbazy.getPlatnosci().iterator(); itx.hasNext();) {\r\n Transakcja transakcjazbazy = (Transakcja) itx.next();\r\n if (zachowaneTransakcje == null || zachowaneTransakcje.size() == 0) {\r\n itx.remove();\r\n } else if (!zachowaneTransakcje.contains(transakcjazbazy)) {\r\n itx.remove();\r\n }\r\n }\r\n for (Transakcja ta : zachowaneTransakcje) {\r\n if (!stronaWierszaZbazy.getPlatnosci().contains(ta)) {\r\n stronaWierszaZbazy.getPlatnosci().add(ta);\r\n }\r\n }\r\n if (Z.z(stronaWierszaZbazy.getPozostalo()) <= 0.0) {\r\n it.remove();\r\n } else {\r\n String dataplatnosci;\r\n if (stronaWierszaZbazy.getWiersz().getDataWalutyWiersza() != null) {\r\n dataplatnosci = stronaWierszaZbazy.getWiersz().getDokfk().getRok()+\"-\"+stronaWierszaZbazy.getWiersz().getDokfk().getMiesiac()+\"-\"+stronaWierszaZbazy.getWiersz().getDataWalutyWiersza();\r\n } else {\r\n dataplatnosci = stronaWierszaZbazy.getWiersz().getDokfk().getDatadokumentu();\r\n }\r\n Date dataP = formatter.parse(dataplatnosci);\r\n if (dataP.compareTo(dataR) > 0) {\r\n it.remove();\r\n }\r\n }\r\n }\r\n } catch (ParseException ex) {\r\n E.e(ex);\r\n }\r\n }\r\n List<StronaWiersza> stronywierszaBO = stronaWierszaDAO.findStronaByKontoWnMaBO(stronaWiersza.getKonto(), stronaWiersza.getWnma());\r\n if (stronywierszaBO != null && !stronywierszaBO.isEmpty()) {\r\n Iterator it = stronywierszaBO.iterator();\r\n while(it.hasNext()) {\r\n StronaWiersza p = (StronaWiersza) it.next();\r\n if (Z.z(p.getPozostalo()) <= 0.0) {\r\n it.remove();\r\n }\r\n }\r\n listaStronaWierszazBazy.addAll(stronywierszaBO);\r\n }\r\n if (listaStronaWierszazBazy == null) {\r\n return (new ArrayList<>());\r\n }\r\n return listaStronaWierszazBazy;\r\n //pobrano wiersze - a teraz z nich robie rozrachunki\r\n }",
"public interface MetricDayDao extends BaseDao<MetricDay> {\n List<MetricDay> queryByProjectIdList(Map<String, Object> params);\n\n List<MetricDay> findByProjectIds(List<String> idList);\n\n void insertDataByParentId(Map<String, Object> params);\n\n int deleteByProjectId(Map<String, Object> params);\n\n void batchUpdateByProjectNumAndDate(List<MetricDay> list);\n \n void batchUpdateShopSales(List<BsShopSales> list);\n\n int insertOrUpdateUserMetrics(MetricDay metricDay);\n \n int batchUpdateByMemberAndPotential(String runDate);\n \n List<MetricDay> queryMetricMonthByDate(Map<String, Object> params);\n \n List<MetricDay> queryMetricWeekByDate(Map<String, Object> params);\n \n List<BsShopSales> listShopSalesByDateList(List<String> dates);\n \n}",
"public static Alumni_data getAlumniData(int id)\n { \n List li=null; \n try{\n session=SessionFact.getSessionFact().openSession();\n li=session.createQuery(\"from Alumni_data where id=:id\").setInteger(\"id\", id).list();\n session.close();\n return (Alumni_data)li.get(0);\n }catch(Exception e){ out.print(\"Wait(AlumniCon.getAlumniData)\"); } \n return new Alumni_data();\n }",
"@Dao\npublic interface sekolahDAO {\n\n @Query(\"SELECT * FROM Sekolah\")\n List<Sekolah>getAll();\n\n// @Query(\"SELECT * FROM Sekolah WHERE NPSN LIKE :NPSN AND nama_sekolah LIKE :nama_dusun AND bentuk_pendidikan LIKE :bentuk_pendidikan AND status_lembaga LIKE :status_lembaga AND sk_izin_operasional LIKE :sk_izin_operasional AND tanggal_sk_izin_operasional LIKE :tanggal_sk_izin_operasional\")\n// Sekolah findByName(Integer NPSN, String nama_sekolah, String bentuk_pendidikan, String status_lembaga, String sk_izin_operasional, Date tanggal_sk_izin_operasional);\n\n @Query(\"SELECT COUNT (NPSN) FROM Sekolah\")\n int getAllCount();\n\n @Query(\"UPDATE Sekolah SET alamat = :alamat, nama_dusun = :nama_dusun, provinsi = :provinsi, kecamatan = :kecamatan, kabupaten = :kabupaten, nomor_telpon = :nomor_telpon, email = :email\")\n void update(String alamat,String nama_dusun, String provinsi, String kecamatan, String kabupaten, Integer nomor_telpon, String email);\n\n @Insert\n void insertAll(Sekolah sekolah);\n\n @Delete\n public void deleteSekolah(Sekolah NPSN);\n\n @Update\n public void update(Sekolah sekolah);\n\n @Delete\n public void deleteAll(Sekolah user1, Sekolah user2);\n\n\n}",
"public interface RelayDao {\n public void insert(RelayDto relay) throws SQLException;\n\n public void insertTranslation(Long relayId, Long langId, String translation) throws SQLException;\n\n public void update(RelayDto relay) throws SQLException;\n\n public void remove(Long relayId) throws SQLException;\n\n public RelayDto getById(Long id) throws SQLException;\n\n public List<RelayDto> getAll() throws SQLException;\n\n public List<RelayDto> getAll(Long langId) throws SQLException;\n}",
"public OnibusDAO() {}",
"private void executeQuery() {\n }",
"public interface BaseDao {\n\n int getTotalCount(SelectArgs selectArgs);\n\n List<Map<String,Object>> queryList(SelectArgs selectArgs);\n\n int addRecord (InsertArgs insertArgs);\n}"
] |
[
"0.6509103",
"0.61729777",
"0.61026454",
"0.6093343",
"0.6070243",
"0.59829104",
"0.59673196",
"0.59471256",
"0.5924627",
"0.592323",
"0.5913375",
"0.5886998",
"0.5872251",
"0.58710015",
"0.5862676",
"0.58611935",
"0.58570784",
"0.5801661",
"0.5793255",
"0.5786155",
"0.57830983",
"0.5780676",
"0.57746416",
"0.5761336",
"0.5745047",
"0.57323974",
"0.57290524",
"0.57265735",
"0.57234675",
"0.5718682",
"0.5696764",
"0.56901133",
"0.5687642",
"0.56797105",
"0.567906",
"0.56706256",
"0.5648974",
"0.5647179",
"0.56429327",
"0.56384665",
"0.56262964",
"0.562618",
"0.5624986",
"0.5622857",
"0.5621593",
"0.5600516",
"0.5599719",
"0.5599485",
"0.5598481",
"0.55897075",
"0.5589584",
"0.5583354",
"0.557858",
"0.55734056",
"0.55726624",
"0.5560386",
"0.55574954",
"0.55527073",
"0.55430925",
"0.5538828",
"0.55362475",
"0.55262303",
"0.55260473",
"0.552534",
"0.552529",
"0.55230355",
"0.5518353",
"0.5518019",
"0.5517303",
"0.5512873",
"0.55126137",
"0.55116653",
"0.5510875",
"0.5508496",
"0.5507994",
"0.55075216",
"0.5507078",
"0.5506873",
"0.550623",
"0.55058503",
"0.55053717",
"0.5501476",
"0.55011284",
"0.5498337",
"0.54913205",
"0.54857105",
"0.54843044",
"0.5482477",
"0.5477411",
"0.54760647",
"0.5473647",
"0.547047",
"0.54633",
"0.5462672",
"0.54616904",
"0.54603726",
"0.5459897",
"0.5457638",
"0.54564965",
"0.5453994",
"0.54530346"
] |
0.0
|
-1
|
Zwraca wszystkie mozliwe wartosci slownika.
|
public List<Type> getAll();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void faster() {\n myTimer.setDelay((int) (myTimer.getDelay() * SPEED_FACTOR));\n }",
"private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }",
"private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }",
"public void faster()\n {\n if(speed < 9){\n speed += 1;\n }\n }",
"@Override\n\tpublic int isFast() {\n\t\treturn 2;\n\t}",
"@Override\n void slowDown() {\n if (this.speed>0){\n this.speed=this.speed-1;\n }\n }",
"public void setSlowness(int slow)\n {\n slowness = slow;\n }",
"public boolean isSlow()\n {\n return isSlow;\n }",
"public void slowConnection(){\n if(connectionType == ConnectionType.RMI) {\n connectionType = ConnectionType.SOCKET;\n } else {\n connectionType = ConnectionType.RMI;\n }\n }",
"@Ignore\r\n @Test\r\n public void speedTest() throws InterruptedException {\n for (int i = 0; i < 10; i++) {\r\n singleSpeedTest();\r\n }\r\n }",
"public static void speedup(){\n\t\tif(bossair.periodairinit > Framework.nanosecond){\n\t\t\t\tbossair.periodair-=Framework.nanosecond/18; \n\t\t\t\tbossair.xmoving-=0.03; \n\t\t}\n\t\t\t\n\t}",
"void speedUp(int a);",
"public static void m2714z() {\n Thread.sleep(1100);\n }",
"public void setSlow(double s) {\n slow = Math.abs(s);\n }",
"@Override\r\n\tpublic double getSlowness() {\n\t\treturn 10;\r\n\t}",
"private void updateNetworkSpeed() {\n Message obtain = Message.obtain();\n obtain.what = 200000;\n long j = 0;\n if (isDemoOrDrive() || this.mDisabled || !this.mIsNetworkConnected) {\n obtain.arg1 = 0;\n this.mHandler.removeMessages(200000);\n this.mHandler.sendMessage(obtain);\n this.mLastTime = 0;\n this.mTotalBytes = 0;\n return;\n }\n long currentTimeMillis = System.currentTimeMillis();\n long totalByte = getTotalByte();\n if (totalByte == 0) {\n this.mLastTime = 0;\n this.mTotalBytes = 0;\n totalByte = getTotalByte();\n }\n long j2 = this.mLastTime;\n if (j2 != 0 && currentTimeMillis > j2) {\n long j3 = this.mTotalBytes;\n if (!(j3 == 0 || totalByte == 0 || totalByte <= j3)) {\n j = ((totalByte - j3) * 1000) / (currentTimeMillis - j2);\n }\n }\n obtain.arg1 = 1;\n obtain.obj = Long.valueOf(j);\n this.mHandler.removeMessages(200000);\n this.mHandler.sendMessage(obtain);\n this.mLastTime = currentTimeMillis;\n this.mTotalBytes = totalByte;\n postUpdateNetworkSpeedDelay((long) this.mNetworkUpdateInterval);\n }",
"private static double slowTaxCalculationMethod(String destinationZip) {\n try {\n Thread.sleep(1500);\n } catch (Exception e) {\n // Do nothing\n }\n return 500;\n }",
"protected void speedRefresh() {\r\n\t\t\ttStartTime = System.currentTimeMillis();\r\n\t\t\ttDownloaded = 0;\r\n\t\t}",
"private void _wait() {\n\t\tfor (int i = 1000; i > 0; i--)\n\t\t\t;\n\t}",
"@Test\n @Tag(\"slow\")\n public void testWOODW() {\n CuteNetlibCase.doTest(\"WOODW.SIF\", \"1.30447633308416\", \"6.463675062936\", NumberContext.of(7, 4));\n }",
"public static void ComienzaTimer(){\n timer = System.nanoTime();\n }",
"public void slowDownProcess() {\n\n for (int i = 0; i < arrayList.size(); i++) {\n arrayList.get(i).gifImageView.setImageDrawable(null);\n }\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n for (int i = 0; i < arrayList.size(); i++) {\n arrayList.get(i).display();\n }\n }",
"private void dofakework() {\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void warmUp();",
"public void testPerformance() {\n \t}",
"private static void snooze(int milliseconds) {\n\t\ttry {\n\t\t\tThread.sleep(milliseconds);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void wasteTime() {\n\t\tboolean running = true;\n\t\tlong startTime = System.currentTimeMillis();\n\t\twhile (running) {\n\n\t\t\tif (System.currentTimeMillis() - startTime > 4000) {\n\t\t\t\trunning = false;\n\t\t\t}\n\n\t\t}\n\t}",
"@Override\r\n\tpublic void speed() {\n\t}",
"public static void pause() {\n int m = 0;\n for (int j = 0; j <= 1000000000; ++j) {\n for (int i = 0; i <= 1000000000; ++i) ++m;\n }\n\n }",
"public void warte( int ms )\n {\n try\n {\n Thread.sleep( ms );\n }\n catch ( InterruptedException e )\n {\n e.printStackTrace();\n }\n }",
"@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }",
"@Override\n\tpublic int topSpeed() {\n\t\treturn 0;\n\t}",
"private void m3981iw() {\n if (this.f3565Ty.currentTimeMillis() - this.f3564Tx >= this.f3563Tw) {\n interrupt();\n this.f3564Tx = this.f3565Ty.currentTimeMillis();\n }\n }",
"void parralellSil(){\n\t\tint lilleTabellen = (int) Math.sqrt(maxtall) + 1;\r\n\t\tTraad[] traadArray = new Traad[lilleTabellen];\r\n\r\n\r\n\t\tlong ti = System.nanoTime();\r\n\t\terastothenesSil(lilleTabellen);\r\n\t\tint counter=0;\r\n\r\n\t\tfor(int e = nextPrime(2); e<lilleTabellen; e=nextPrime(e)){\r\n\t\t\ttraadArray[counter]=new Traad(true, maxtall, bitArr, e, this, counter);\r\n\t\t\ttraadArray[counter].start();\r\n\r\n\t\t\t// System.out.println();\r\n\t\t\tcounter++;\r\n\t\t}\r\n\r\n\t\tfor(Traad e: traadArray){\r\n\t\t\ttry{\r\n\t\t\t\te.join();\r\n\t\t\t}catch(Exception y){\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlong tid = System.nanoTime();\r\n\t\tSystem.out.println(\"tid pa parralellSil: \" + ((tid-ti)/1000000.0) + \" ms\");\r\n\t\ttider.put(\"parralellSil\", ((tid-ti)/1000000.0));\r\n\r\n\t}",
"public static void aLittle() {\n\t\tforTime(1000L);\n\t}",
"public void m5302a(int i) {\n try {\n Thread.sleep((long) i);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n testSpeed();\r\n }",
"private static void testDelayOverhead() throws InterruptedException {\n Object m = \"\";\n int iters = 1000;\n long delay = 50;\n\n long before = System.currentTimeMillis();\n\n for (int i = 0; i < iters; i++) {\n\n synchronized (m) {\n m.wait(delay);\n }\n }\n\n long after = System.currentTimeMillis();\n\n long tottime = after - before;\n System.out.println(\"total time: \" + tottime + \"ms\");\n long ovhd = tottime - iters * delay;\n System.out.println(\"overhead: \" + ovhd + \"ms (\" + (100 * (ovhd / ((double) tottime))) + \"%)\");\n }",
"@Test\n\t\tpublic void woeIsMeUnreachabletest() {\n\t\t\tassertTrue(System.currentTimeMillis() > 0);\n\t\t}",
"@Test\n @Tag(\"slow\")\n public void testPILOT_WE() {\n CuteNetlibCase.doTest(\"PILOT-WE.SIF\", \"-2720107.5328449034\", \"20770.464669007524\", NumberContext.of(7, 4));\n }",
"@Override\n\tpublic int getTopSpeed() {\n\t\treturn 100;\n\t}",
"private void reverseCompSpeed() {\n this.compSpeed = -this.compSpeed;\n }",
"public void doubleSpeed()\r\n {\r\n \tthis.speed= speed-125;\r\n \tgrafico.setVelocidad(speed);\r\n }",
"public void mo21867i() {\n mo21877s();\n }",
"public static void delay() {\n\n long ONE_SECOND = 1_000;\n\n try {\n Thread.sleep(ONE_SECOND);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void limitSpeed() {\n\t\tSystem.out.println(\"120 KMPH\");\n\t}",
"public void m12822i() {\n this.f10117d.mo1750d(this.f10114a, m12803a(C1478b.PAUSE));\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkSpeed() {\n\t\tboolean flag = oTest.checkSpeed();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"public void uruchomGre()\n\t{\n\t\tustawPojazdNaPoczatek();\n\t\tplanszaWidokHND.repaint();\n\t\twToku = true;\n\t\tzegar.start();\n\t\tpauza = false;\n\t}",
"@Override\n\tpublic int getWriteSpeed() {\n\t\treturn 0;\n\t}",
"@Test\n @Tag(\"slow\")\n public void testWOOD1P() {\n CuteNetlibCase.doTest(\"WOOD1P.SIF\", \"1.44290241157344\", \"9.99999999999964\", NumberContext.of(7, 4));\n }",
"void setFastSpeed () {\n if (stepDelay == fastSpeed)\n return;\n stepDelay = fastSpeed;\n step();\n resetLoop();\n }",
"public void crunch(){\n cpuBurstTime--;\n rem--;\n }",
"public void turnSlower() {\n rightMotor.resetTachoCount();\n rightMotor.setSpeed(DEFAULT_TURN_SPEED/3);\n leftMotor.setSpeed(DEFAULT_TURN_SPEED/3);\n rightMotor.forward();\n leftMotor.backward();\n }",
"@Test\n @Tag(\"slow\")\n public void testSTANDMPS() {\n CuteNetlibCase.doTest(\"STANDMPS.SIF\", \"1406.0175\", null, NumberContext.of(7, 4));\n }",
"private void emulateDelay() {\n try {\n Thread.sleep(700);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@Test\n @Tag(\"slow\")\n public void testSHIP08L() {\n CuteNetlibCase.doTest(\"SHIP04L.SIF\", \"1793324.5379703548\", null, NumberContext.of(7, 4));\n }",
"public void tune() {\n\t\tSystem.out.println(\"ting.. ting...\");\n\t}",
"private void vuoronKaikkiHeitotHeitetty() {\n while (heittojaJaljella < 1) {\n if (tulosLaitettu) {\n break;\n }\n try {\n Thread.sleep(100);\n } catch (InterruptedException ex) {\n System.out.println(\"Ei ole laitettu tulosta\");\n }\n }\n }",
"public void slowDownX() {\n double temp;\n temp = this.getxSpeed();\n\n if (temp > 0.1 || temp < -0.1) {\n temp /= 1.1;\n } else {\n temp = 0;\n }\n this.setxSpeed(temp);\n }",
"@Override\r\n\tpublic void freezeTimer() {\n\t\t\r\n\t}",
"public double getSlowToFire();",
"public static void pauseTiming() {\n SimulatorJNI.pauseTiming();\n }",
"@Test\n @Tag(\"slow\")\n public void testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", null, NumberContext.of(7, 4));\n }",
"void beat();",
"@Override\r\n\tpublic void showSpeed() {\n\t\tSystem.out.println(\"i can run at 100km/h\");\r\n\t}",
"private static float tock(){\n\t\treturn (System.currentTimeMillis() - startTime);\n\t}",
"private static void speedup(String [] args){\n\t\t\n\t\tint warningCnt = 0;\n\t\t\n\t\tString applicationPath = convertApplication(args[2], null);\n\t\tConfMan baseConfigManager;\n\t\t\n\n\n\n\n\t\tbaseConfigManager = new ConfMan(args[1], applicationPath, false);\n\t\tConfMan[] cms;\n\t\t\n\t\tSweepConfig sweepConfig = new SweepConfig(baseConfigManager, \"config/sweep/cacheSpeedupSweep.json\",true);\n//\t\tSweepConfig sweepConfig = new SweepConfig(baseConfigManager, \"config/sweep/speedupSweep.json\",true);\n\n\t\tcms = sweepConfig.getConfManager();\n\t\tString[] configNames = sweepConfig.getSweepConfigurations();\n//\t\tString[] speedupIdentifier = sweepConfig.getSpeedupIdentifier();\n//\t\tboolean[] isShortTest = sweepConfig.getIsShortTest();\n\n\t\tTrace speedupTrace = new Trace(System.out, System.in, \"\", \"\");\n\t\tspeedupTrace.setPrefix(\"basic config\");\n\t\tbaseConfigManager.printConfig(speedupTrace);\n\n\t\tspeedupTrace.setPrefix(\"speedup\");\n\t\t\n//\t\tLinkedHashMap<String, SpeedupMeasurementResult> speedupResults = new LinkedHashMap<>();\n\t\tMeasurementResult[] measurementResults = new MeasurementResult[cms.length];\n\t\tLinkedHashMap<String, BaseLineStorage> baseLineStorage = new LinkedHashMap<String, BaseLineStorage>();\n\t\t\n//\t\tAmidarSimulationResult[] results = parallelRemoteSimulation(sweepConfig, \"trav\", 1099, 8, speedupTrace);\n\t\t\n\t\tdouble overhead = 0;\n\t\tint transmission = 0;\n\t\tint run = 0;\n\t\tdouble overheadCnt = 0;\n\t\t\n\n\t\t////////////////////////// SIMULATE //////////////////////////////////////////////\n\t\tfor(int i = 0; i<cms.length; i++){\n\t\t\t\n\t\t\t/////// FIRST SHORT /////////////////////////////\n\t\t\tConfMan conf = cms[i];\n\t\t\t\n\t\t\tboolean isShort = true;\n\t\t\tString appBaseName = conf.getApplicationPath();\n\t\t\tString [] appBasePath = appBaseName.split(\"/\");\n\t\t\t\n\t\t\t\n\t\t\tconf.setApplication(\"../axt/\" + appBaseName+ \"_short/\" + appBasePath[appBasePath.length-1] + \"_short.axt\");\n\n\t\t\tMeasurementResult speedupRes = measurementResults[i];\n\t\t\tif(speedupRes == null){\n\t\t\t\tspeedupRes = new MeasurementResult();\n\t\t\t\tmeasurementResults[i] = speedupRes;\n\t\t\t}\n\t\t\t\n\t\t\tString app = conf.getApplicationPath();\n\t\t\tint benchmarkScale = conf.getBenchmarkScale();\n\t\t\tapp = app+\"-benchMarkScale-\"+benchmarkScale;\n\t\t\t\n\t\t\tspeedupTrace.printTableHeader(\"Running: \" + configNames[i] + \" SHORT\");\n\t\t\tif(!baseLineStorage.containsKey(app)){\n\t\t\t\tbaseLineStorage.put(app, new BaseLineStorage());\n\t\t\t}\n\t\t\t\n\t\t\tBaseLineStorage baseLine = baseLineStorage.get(app);\n \t\t\t\n\t\t\tif(!baseLine.isBaselineAvailable(isShort)){\n\t\t\t\tspeedupTrace.println(\"Running without synthesis...\");\n\t\t\t\tAmidarSimulationResult currentRes = run(conf, null, false);\n\t\t\t\tspeedupRes.addBaseline(currentRes, isShort);\n\t\t\t\tbaseLine.addBaseLine(isShort, currentRes);\n\t\t\t} else {\n\t\t\t\tspeedupRes.addBaseline(baseLine.getBaseLine(isShort), isShort);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tAmidarSimulationResult currentResult = null;\n\t\t\tconf.setSynthesis(true);\n\t\t\tspeedupTrace.println(\"Running with synthesis...\");\n\t\t\ttry{\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t} catch(AmidarSimulatorException e ){\n\t\t\t\tspeedupTrace.println(\"WARNING: Aliasing speculation failed. Switching of speculation and repeat...\");\n\t\t\t\twarningCnt++;\n\t\t\t\tconf.getSynthesisConfig().put(\"ALIASING_SPECULATION\", AliasingSpeculation.OFF);\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n//\t\t\tif(isShort){\n//\t\t\t\tHashMap<String, Integer> stateCNT = currentResult.getCgraStateCount();\n//\t\t\t\tdouble transmissionCnt = stateCNT.get(\"SEND\") + stateCNT.get(\"REC\") +stateCNT.get(\"WAIT\");\n//\t\t\t\tdouble runCnt = stateCNT.get(\"RUN\");\n//\t\t\t\t\n//\t\t\t\tdouble overheadCurrent = transmissionCnt/(transmissionCnt + runCnt);\n//\t\t\t\t\n//\t\t\t\toverhead += overheadCurrent;\n//\t\t\t\ttransmission +=transmissionCnt;\n//\t\t\t\trun += runCnt;\n//\t\t\t\toverheadCnt++;\n//\t\t\t}\n\t\t\t\n\t\t\tspeedupRes.addResults(currentResult, isShort);\n\t\t\t\n\t\t\t/////// THEN LONG /////////////////////////////\n\t\t\t\n\t\t\tisShort = false;\n\t\t\tconf.setApplication(\"../axt/\" + appBaseName+ \"_long/\" + appBasePath[appBasePath.length-1] + \"_long.axt\");\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tspeedupTrace.printTableHeader(\"Running: \" + configNames[i] + \" LONG\");\n\t\t\tif(!baseLine.isBaselineAvailable(isShort)){\n\t\t\t\tconf.setSynthesis(false);\n\t\t\t\tspeedupTrace.println(\"Running without synthesis...\");\n\t\t\t\tAmidarSimulationResult currentRes = run(conf, null, false);\n\t\t\t\tspeedupRes.addBaseline(currentRes, isShort);\n\t\t\t\tbaseLine.addBaseLine(isShort, currentRes);\n\t\t\t} else {\n\t\t\t\tspeedupRes.addBaseline(baseLine.getBaseLine(isShort), isShort);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tconf.setSynthesis(true);\n\t\t\tspeedupTrace.println(\"Running with synthesis...\");\n\t\t\ttry{\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t} catch(AmidarSimulatorException e ){\n\t\t\t\tspeedupTrace.println(\"WARNING: Aliasing speculation failed. Switching of speculation and repeat...\");\n\t\t\t\twarningCnt++;\n\t\t\t\tconf.getSynthesisConfig().put(\"ALIASING_SPECULATION\", AliasingSpeculation.OFF);\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n//\t\t\tif(isShort){\n//\t\t\t\tHashMap<String, Integer> stateCNT = currentResult.getCgraStateCount();\n//\t\t\t\tdouble transmissionCnt = stateCNT.get(\"SEND\") + stateCNT.get(\"REC\") +stateCNT.get(\"WAIT\");\n//\t\t\t\tdouble runCnt = stateCNT.get(\"RUN\");\n//\t\t\t\t\n//\t\t\t\tdouble overheadCurrent = transmissionCnt/(transmissionCnt + runCnt);\n//\t\t\t\t\n//\t\t\t\toverhead += overheadCurrent;\n//\t\t\t\ttransmission +=transmissionCnt;\n//\t\t\t\trun += runCnt;\n//\t\t\t\toverheadCnt++;\n//\t\t\t}\n\t\t\t\n\t\t\tspeedupRes.addResults(currentResult, isShort);\n\t\t}\n\t\t////////////////////////SIMULATE END//////////////////////////////////////////////\n\n\t\tspeedupTrace.printTableHeader(\"Speedup\");\n\t\t\n\t\tDecimalFormatSymbols symbols = new DecimalFormatSymbols();\n\t\tsymbols.setGroupingSeparator(',');\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat formater = new DecimalFormat(\"#0.000\", symbols);\n\t\t\n\t\t\n\t\t/// GATHER INFORMATION //////////////////////////////////////////\n\t\t\n\t\tdouble[] speedupList = new double[cms.length];\n\t\tdouble[] communicationOverhead = new double[cms.length];\n\t\tdouble[] dmaOverhead = new double[cms.length];\n\t\tdouble[] l1usage = new double[cms.length];\n\t\tdouble[] l2usage = new double[cms.length];\n\t\tdouble[] averageMemTime = new double[cms.length];\n\t\t\n\t\tdouble[][] blockTimesPrefetch = new double[TaskType.values().length][cms.length];\n\t\tdouble[][] blockTimesRegular = new double[TaskType.values().length][cms.length];\n\t\t\n\t\tint[] nrOfContexts = new int[cms.length];\n\t\tint[] nrOfL1Prefetches = new int[cms.length];\n\t\tint[] nrOfL2Prefetches = new int[cms.length];\n\t\tint[] nrOfUsedL1Prefetches = new int[cms.length];\n\t\tint[] nrOfUsedL2Prefetches = new int[cms.length];\n\t\t\n\t\tint[] nrOfHandledPrefetchRequests = new int[cms.length];\n\t\tint[] nrOfHandledPrefetchRequestsAlreadyAvailable = new int[cms.length];\n\t\t\n\t\tint[] cachelineFills = new int[cms.length];\n\t\tlong[] synthTime = new long[cms.length];\n\t\t\n\t\tfor(int i = 0; i < measurementResults.length; i++){\n\t\t\tString res = \"Speedup of \" + configNames[i] + \"\\t\";\n\t\t\tdouble speedup = measurementResults[i].getSpeedup();\n\t\t\tspeedupList[i] = speedup;\n\t\t\tres = res + \": \" + formater.format(speedup);\n\t\t\tspeedupTrace.println(res);\n\t\t\t\n\t\t\tcommunicationOverhead[i] = measurementResults[i].getCommunicationOverhead();\n\t\t\tdmaOverhead[i] = measurementResults[i].getDMAOverhead();\n\t\t\tl1usage[i]= measurementResults[i].getL1Usage();\n\t\t\tl2usage[i]= measurementResults[i].getL2Usage();\n\t\t\taverageMemTime[i] = measurementResults[i].getAverageMemoryAccessTime();\n\t\t\tfor(TaskType tt: TaskType.values()){\n\t\t\t\tblockTimesPrefetch[tt.ordinal()][i] = measurementResults[i].getBlockTimesInPercent(RequestType.Prefetch, tt);\n//\t\t\t\tSystem.out.println(\"\\tBlocktime Pref\" +tt + \":\\t\" +blockTimesPrefetch[tt.ordinal()][i]);\n\t\t\t\tblockTimesRegular[tt.ordinal()][i] = measurementResults[i].getBlockTimesInPercent(RequestType.Regular, tt);\n//\t\t\t\tSystem.out.println(\"\\tBlocktime Regu\" +tt + \":\\t\" +blockTimesRegular[tt.ordinal()][i]);\n \t\t\t}\n\t\t\tnrOfContexts[i] = measurementResults[i].getNrOfContexts();\n\t\t\tnrOfL1Prefetches[i] = measurementResults[i].getNrOfL1Prefetches();\n\t\t\tnrOfUsedL1Prefetches[i] = measurementResults[i].getNrOfUsedL1Prefetches();\n\t\t\tnrOfHandledPrefetchRequests[i] = measurementResults[i].getNrOfHandledPrefetchRequests();\n\t\t\tnrOfHandledPrefetchRequestsAlreadyAvailable[i] = measurementResults[i].getNrOfHandledPrefetchRequestsAlreadyAvailable();\n\t\t\tcachelineFills[i] = measurementResults[i].getCachelineFills();\n\t\t\tsynthTime[i] = measurementResults[i].getSynthTime();\n\t\t}\n\t\t///// PLOT INFORMATION //////////////////////////////////////////////\n\t\tSweepResultPlotter plotter = new SweepResultPlotter();\n//\t\tplotter.configurePlotter( \"UNROLL\", \"\", true);\n\t\tLinkedHashMap<String, LinkedHashSet<String>> sweepInfo = sweepConfig.getSweepInfo();\n\t\t\n\t\tString path = \"log/sweep\"+new Date().toString();\n\t\tplotter.setPath(path);\n\t\tplotter.saveSweepInfo(sweepInfo);\n\t\t\n\t\tplotter.saveResults(speedupList,\"speedup\");\n\t\tplotter.saveResults(communicationOverhead, \"communicationOverhead\");\n\t\tplotter.saveResults(dmaOverhead, \"dmaOverhead\");\n\t\tplotter.saveResults(l1usage,\"l1usage\");\n\t\tplotter.saveResults(l2usage, \"l2usage\");\n\t\tplotter.saveResults(averageMemTime, \"memTime\");\n\t\tplotter.saveResults(nrOfContexts, \"contexts\");\n\t\tplotter.saveResults(nrOfL1Prefetches, \"l1prefetches\");\n\t\tplotter.saveResults(nrOfUsedL1Prefetches, \"usedL1prefetches\");\n\t\tplotter.saveResults(nrOfHandledPrefetchRequests, \"handledPrefetchRequests\");\n\t\tplotter.saveResults(nrOfHandledPrefetchRequestsAlreadyAvailable, \"handledPrefetchRequestsAvail\");\n\t\tplotter.saveResults(cachelineFills, \"cachelineFills\");\n\t\tplotter.saveResults(synthTime, \"Synthtime\");\n\t\t\n\t\t\n//\t\tfor(TaskType tt: TaskType.values()){\n//\t\t\t\n//\t\t}\n\t\t\n\t\t///// PRINT ON CONSOLE ///////////////////////////////\n\t\tspeedupTrace.printTableHeader(\"Average Speedup\");\n\t\tplotter.plot(sweepInfo, speedupList, speedupTrace,\"log/\", \"\");\n\t\t\n\t\tif(warningCnt > 1){\n\t\t\tspeedupTrace.println(warningCnt + \" Warnings\");\n\t\t} else if(warningCnt == 1){\n\t\t\tspeedupTrace.println(\"1 Warning\");\n\t\t}\n\t\t\n//\t\tspeedupTrace.println(\"CGRA transmission overhead in Percent: \" + formater.format(overhead*100/overheadCnt) + \" Ticks Running: \" + (int)(run/overheadCnt+0.5) + \" Ticks Transmitting: \" + (int)(transmission/overheadCnt+0.5));\n\t\t\n\t\t\n//\t\tspeedupTrace.println(ObjectHistory.indep*100/(ObjectHistory.indep+ObjectHistory.dep)+\"% of all memory accesses are independant\");\n//\n//\t\t\n\t\tspeedupTrace.printTableHeader(\"Average Communication Overhead\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), communicationOverhead, speedupTrace, null, \"\");\n\t\tspeedupTrace.printTableHeader(\"Average DMA Overhead\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), dmaOverhead, speedupTrace, null, \"\");\n\t\tspeedupTrace.printTableHeader(\"Memtime\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), averageMemTime, speedupTrace, null, \"\");\n\t\t\n\t\tdouble[] cffd = new double[cachelineFills.length];\n\t\tfor(int i = 0; i < cffd.length; i++){\n\t\t\tcffd[i] = cachelineFills[i];\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tspeedupTrace.printTableHeader(\"Cacheline fills\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), cffd, speedupTrace, null, \"\");\n\t\t\n\t\tdouble[] stdd = new double[synthTime.length];\n\t\tfor(int i = 0; i < stdd.length; i++){\n\t\t\tstdd[i] = synthTime[i];\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tspeedupTrace.printTableHeader(\"Synth time\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), stdd, speedupTrace, null, \"\");\n\t\t\n//\t\t\n//\t\tplotter.plot(sweepConfig.getSweepInfo(), l1usage, speedupTrace, null, \"\");\n//\t\tplotter.plot(sweepConfig.getSweepInfo(), l2usage, speedupTrace, null, \"\");\n//\t\tplotter.plot(sweepConfig.getSweepInfo(), averageMemTime, speedupTrace, null, \"\");\n\t\t\n//\t\tspeedupTrace.printTableHeader(\"CGRA blocked by Prefetch\");\n//\t\tfor(TaskType tt: TaskType.values()){\n//\t\t\tplotter.plot(sweepConfig.getSweepInfo(), blockTimesPrefetch[tt.ordinal()], speedupTrace,null, tt.toString());\n//\t\t}\n//\t\tspeedupTrace.printTableHeader(\"CGRA blocked by Regular Access\");\n//\t\tfor(TaskType tt: TaskType.values()){\n//\t\t\tplotter.plot(sweepConfig.getSweepInfo(), blockTimesRegular[tt.ordinal()], speedupTrace,null, tt.toString());\n//\t\t}\n\t\n\t}",
"@Test\n @Tag(\"slow\")\n public void testSHIP04L() {\n CuteNetlibCase.doTest(\"SHIP04L.SIF\", \"1793324.5379703548\", null, NumberContext.of(7, 4));\n }",
"public abstract void tilt(long ms);",
"private static int benchmarkedMethod() {\n return 3;\n }",
"@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }",
"@Override\n public void run() {\n long pocetak = 0;\n long kraj = 0;\n int pauza = Integer.parseInt(SlusacAplikacije.konfig.dajPostavku(\"sleep\"));\n while (!ServerSustava.isStop()) {\n pocetak = System.currentTimeMillis();\n if (!ServerSustava.isPauza()) {\n System.out.println(\"preuzimanje meteo podataka\");\n BazaPodataka bp = new BazaPodataka();\n List<Adresa> adrese = new ArrayList<Adresa>();\n adrese = bp.dohvatiAdrese();\n String apiKey = SlusacAplikacije.konfig.dajPostavku(\"apiKey\");\n OWMKlijent owmk = new OWMKlijent(apiKey);\n if (adrese != null) {\n for (Adresa a : adrese) {\n //System.out.println(\"adr: \" + a.getAdresa());\n MeteoPodaci mp = owmk.getRealTimeWeather(a.getGeoloc().getLatitude(), a.getGeoloc().getLongitude());\n bp.spremiMeteoPodatke(a.getAdresa(), mp);\n //System.out.println(\"Status: \" + a.getStatusPreuzimanja());\n if (a.getStatusPreuzimanja() == 0) {\n // System.out.println(\"update statusa!\");\n bp.statusPreuzimanjaPodataka(a.getAdresa());\n }\n }\n }\n }\n kraj = System.currentTimeMillis();\n long trajanjeObrade = kraj - pocetak;\n try {\n long spavanje = pauza * 1000;\n if (trajanjeObrade < spavanje) {\n sleep(spavanje - trajanjeObrade);\n }\n } catch (InterruptedException ex) {\n Logger.getLogger(MeteoPodaciPreuzimanje.class.getName()).log(Level.SEVERE, null, ex);\n break;\n }\n }\n }",
"private void delay() {\n\t\tDelay.msDelay(1000);\n\t}",
"public static void m2703A() {\n Thread.sleep(100);\n }",
"public static void dormir(long milis)\r\n\t{\r\n\t\tlong inicial=System.currentTimeMillis();\r\n\t\twhile(System.currentTimeMillis()-inicial < milis) {/*Esperar a que pase el tiempo*/}\r\n\t}",
"public void crawlDelay()\n\t{\n//\t\tint delay = robot.getCrawlDelay(best_match);\n//\t\tif (delay!=-1)\n//\t\t{\n//\t\t\ttry \n//\t\t\t{\n//\t\t\t\tTimeUnit.SECONDS.sleep(robot.getCrawlDelay(best_match));\n//\t\t\t} \n//\t\t\tcatch (InterruptedException e) \n//\t\t\t{\n//\t\t\t\treturn;\n//\t\t\t}\n//\t\t}\n\t}",
"@WorkerThread\n public final void zza(long j) {\n if (this.zza.zzs().zza(zzat.zzbk)) {\n this.zzb = new zzkf(this, this.zza.zzl().currentTimeMillis(), j);\n this.zza.zzc.postDelayed(this.zzb, AdaptiveTrackSelection.DEFAULT_MIN_TIME_BETWEEN_BUFFER_REEVALUTATION_MS);\n }\n }",
"@Override\n\tpublic\n\tvoid speed() {\n\t\t\n\t}",
"public static void performanceCountDisable() { }",
"public interface SlowTests {\n \n}",
"public final long mo20953WW() {\n AppMethodBeat.m2504i(60318);\n if (fXT <= 0) {\n fXT = ((ActivityManager) C4996ah.getContext().getSystemService(\"activity\")).getLargeMemoryClass();\n }\n if (fXT >= 512) {\n AppMethodBeat.m2505o(60318);\n return 41943040;\n }\n AppMethodBeat.m2505o(60318);\n return 20971520;\n }",
"public long a(long j) {\n b bVar = this.f31759b;\n if (bVar != null) {\n bVar.b(this.f31760c);\n }\n TXCLog.w(\"TXCMultiStreamDownloader\", \" stream_switch delay stop begin from \" + this.f31760c);\n return this.f31760c;\n }",
"private void y(long j, int i) {\n AppMethodBeat.i(111255);\n com.tencent.mm.plugin.downloader.f.a hv = c.hv(j);\n if (hv != null) {\n b bVar = (b) mVU.get(hv.field_downloadUrl);\n int i2 = 0;\n switch (i) {\n case 1:\n i2 = 1;\n com.tencent.mm.game.report.api.b.eBF.j(hv.field_appId, 0);\n if (bVar != null) {\n if (!bVar.mVY) {\n com.tencent.mm.game.report.api.b.eBF.j(hv.field_appId, 2);\n break;\n } else {\n com.tencent.mm.game.report.api.b.eBF.j(hv.field_appId, 1);\n break;\n }\n }\n break;\n case 2:\n i2 = 6;\n com.tencent.mm.game.report.api.b.eBF.j(hv.field_appId, 3);\n break;\n case 3:\n i2 = 3;\n com.tencent.mm.game.report.api.b.eBF.j(hv.field_appId, 6);\n break;\n case 4:\n i2 = 2;\n com.tencent.mm.game.report.api.b.eBF.j(hv.field_appId, 5);\n break;\n case 5:\n i2 = 8;\n com.tencent.mm.game.report.api.b.eBF.j(hv.field_appId, 7);\n break;\n case 6:\n break;\n case 7:\n i2 = 7;\n com.tencent.mm.game.report.api.b.eBF.j(hv.field_appId, 4);\n break;\n }\n }\n AppMethodBeat.o(111255);\n }",
"private static void addDelay() {\n try {\n Thread.sleep(4000);\n } catch (InterruptedException ignored) {\n }\n }",
"public abstract void twist(long ms);",
"private void checkSpeedAndReserved()\n\t{\n\t\t// only check every 5 seconds\n\t\tif(mainloop_loop_count % MAINLOOP_FIVE_SECOND_INTERVAL != 0)\n\t\t\treturn;\n\n\t\tfinal int\t\t\t\tnbPieces\t=_nbPieces;\n\t\tfinal PEPieceImpl[] pieces =pePieces;\n\t\t//for every piece\n\t\tfor (int i =0; i <nbPieces; i++)\n\t\t{\n\t\t\t// placed before null-check in case it really removes a piece\n\t\t\tcheckEmptyPiece(i);\n\n\n\t\t\tfinal PEPieceImpl pePiece =pieces[i];\n\t\t\t// these checks are only against pieces being downloaded\n\t\t\t// yet needing requests still/again\n\t\t\tif (pePiece !=null)\n\t\t\t{\n\t\t\t\tfinal long timeSinceActivity =pePiece.getTimeSinceLastActivity()/1000;\t\t\t\t\n\n\t\t\t\tint pieceSpeed =pePiece.getSpeed();\n\t\t\t\t// block write speed slower than piece speed\n\t\t\t\tif (pieceSpeed > 0 && timeSinceActivity*pieceSpeed*0.25 > DiskManager.BLOCK_SIZE/1024)\n\t\t\t\t{\n\t\t\t\t\tif(pePiece.getNbUnrequested() > 2)\n\t\t\t\t\t\tpePiece.setSpeed(pieceSpeed-1);\n\t\t\t\t\telse\n\t\t\t\t\t\tpePiece.setSpeed(0);\n\t\t\t\t}\n\n\n\t\t\t\tif(timeSinceActivity > 120)\n\t\t\t\t{\n\t\t\t\t\tpePiece.setSpeed(0);\n\t\t\t\t\t// has reserved piece gone stagnant?\n\t\t\t\t\tfinal String reservingPeer =pePiece.getReservedBy();\n\t\t\t\t\tif(reservingPeer !=null)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal PEPeerTransport pt = getTransportFromAddress(reservingPeer);\n\t\t\t\t\t\t// Peer is too slow; Ban them and unallocate the piece\n\t\t\t\t\t\t// but, banning is no good for peer types that get pieces reserved\n\t\t\t\t\t\t// to them for other reasons, such as special seed peers\n\t\t\t\t\t\tif (needsMD5CheckOnCompletion(i))\n\t\t\t\t\t\t\tbadPeerDetected(reservingPeer, i);\n\t\t\t\t\t\telse if (pt != null)\n\t\t\t\t\t\t\tcloseAndRemovePeer(pt, \"Reserved piece data timeout; 120 seconds\", true);\n\n\t\t\t\t\t\tpePiece.setReservedBy(null);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!piecePicker.isInEndGameMode()){\n\t\t\t\t\t\tpePiece.checkRequests();\n\t\t\t\t\t}\n\n\t\t\t\t\tcheckEmptyPiece(i);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}",
"public static void delay() throws InterruptedException {\n // This is the sleep thread method that makes the program sleep\n // for a program amount of milliseconds to slow down the program\n Thread.sleep(1500);\n }",
"private void vuoronToinenHeitto() {\n while (heittojaJaljella == 2) {\n if (tulosLaitettu) {\n break;\n }\n try {\n Thread.sleep(100);\n } catch (InterruptedException ex) {\n System.out.println(\"Ei ole heitetty tai laitettu tulosta\");\n }\n }\n }",
"private void d() {\n Queue<c> queue;\n Queue<c> queue2 = queue = i;\n synchronized (queue2) {\n long l2 = System.currentTimeMillis();\n Iterator iterator = i.iterator();\n while (iterator.hasNext()) {\n if (l2 - ((c)iterator.next()).a < 60000L) continue;\n iterator.remove();\n }\n if (i.size() >= 15) {\n for (int i2 = 0; i2 < 5; ++i2) {\n i.remove();\n }\n }\n return;\n }\n }",
"private void vuoronKolmasHeitto() {\n while (heittojaJaljella == 1) {\n if (tulosLaitettu) {\n break;\n }\n try {\n Thread.sleep(100);\n } catch (InterruptedException ex) {\n System.out.println(\"Ei ole heitetty tai laitettu tulosta\");\n }\n }\n }",
"@Test\n @Tag(\"slow\")\n public void testSTANDATA() {\n CuteNetlibCase.doTest(\"STANDATA.SIF\", \"1257.6995\", null, NumberContext.of(7, 4));\n }",
"public synchronized void updateGameDataAtSlowRate() {\n scheduleGameUpdate(slowUpdateSpeed);\n }",
"private void doSintStuff() {\r\n\t\ttry {\r\n\t\t\tThread.sleep(1000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void m4809e() {\n if (f3853k.m4870e()) {\n if (f3853k.m4846M() == -1) {\n m4807c();\n }\n try {\n Thread.sleep(50);\n return;\n } catch (InterruptedException e) {\n e.printStackTrace();\n return;\n }\n }\n long startTime = System.currentTimeMillis();\n m4810f();\n LogUtil.m4440c(f3851i, \"JAVA got frame time = \" + (System.currentTimeMillis() - startTime));\n startTime = System.currentTimeMillis();\n if (f3853k.m4852a(f3831d) == -2 && !f3853k.m4843J()) {\n m4807c();\n }\n LogUtil.m4440c(f3851i, \"JAVA encode time = \" + (System.currentTimeMillis() - startTime));\n }",
"private void delay() {\n\ttry {\n\t\tThread.sleep(500);\n\t} catch (InterruptedException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\t\n\t}",
"void timedOut();",
"public final void zza(int i, int i2, zzno zzno) throws IOException, InterruptedException {\n long j;\n byte b;\n int i3 = i;\n int i4 = i2;\n zzno zzno2 = zzno;\n int i5 = 0;\n int i6 = 1;\n if (i3 == 161 || i3 == 163) {\n int i7 = 8;\n if (this.zzbap == 0) {\n this.zzbav = (int) this.zzazr.zza(zzno2, false, true, 8);\n this.zzbaw = this.zzazr.zzfw();\n this.zzbar = C1470C.TIME_UNSET;\n this.zzbap = 1;\n this.zzbac.reset();\n }\n zzog zzog = this.zzazy.get(this.zzbav);\n if (zzog == null) {\n zzno2.zzr(i4 - this.zzbaw);\n this.zzbap = 0;\n return;\n }\n if (this.zzbap == 1) {\n zzb(zzno2, 3);\n int i8 = (this.zzbac.data[2] & 6) >> 1;\n if (i8 == 0) {\n this.zzbat = 1;\n this.zzbau = zza(this.zzbau, 1);\n this.zzbau[0] = (i4 - this.zzbaw) - 3;\n } else if (i3 == 163) {\n zzb(zzno2, 4);\n this.zzbat = (this.zzbac.data[3] & UByte.MAX_VALUE) + 1;\n this.zzbau = zza(this.zzbau, this.zzbat);\n if (i8 == 2) {\n Arrays.fill(this.zzbau, 0, this.zzbat, ((i4 - this.zzbaw) - 4) / this.zzbat);\n } else if (i8 == 1) {\n int i9 = 4;\n int i10 = 0;\n for (int i11 = 0; i11 < this.zzbat - 1; i11++) {\n this.zzbau[i11] = 0;\n do {\n i9++;\n zzb(zzno2, i9);\n b = this.zzbac.data[i9 - 1] & UByte.MAX_VALUE;\n int[] iArr = this.zzbau;\n iArr[i11] = iArr[i11] + b;\n } while (b == 255);\n i10 += this.zzbau[i11];\n }\n this.zzbau[this.zzbat - 1] = ((i4 - this.zzbaw) - i9) - i10;\n } else if (i8 == 3) {\n int i12 = 0;\n int i13 = 4;\n int i14 = 0;\n while (i12 < this.zzbat - i6) {\n this.zzbau[i12] = i5;\n i13++;\n zzb(zzno2, i13);\n int i15 = i13 - 1;\n if (this.zzbac.data[i15] != 0) {\n int i16 = 0;\n while (true) {\n if (i16 >= i7) {\n j = 0;\n break;\n }\n int i17 = i6 << (7 - i16);\n if ((this.zzbac.data[i15] & i17) != 0) {\n int i18 = i13 + i16;\n zzb(zzno2, i18);\n long j2 = (long) ((~i17) & this.zzbac.data[i15] & UByte.MAX_VALUE);\n int i19 = i15 + 1;\n long j3 = j2;\n while (i19 < i18) {\n j3 = (j3 << i7) | ((long) (this.zzbac.data[i19] & UByte.MAX_VALUE));\n i19++;\n i18 = i18;\n i7 = 8;\n }\n int i20 = i18;\n if (i12 > 0) {\n j3 -= (1 << ((i16 * 7) + 6)) - 1;\n }\n j = j3;\n i13 = i20;\n } else {\n i16++;\n i6 = 1;\n i7 = 8;\n }\n }\n if (j < -2147483648L || j > 2147483647L) {\n throw new zzlm(\"EBML lacing sample size out of range.\");\n }\n int i21 = (int) j;\n int[] iArr2 = this.zzbau;\n if (i12 != 0) {\n i21 += this.zzbau[i12 - 1];\n }\n iArr2[i12] = i21;\n i14 += this.zzbau[i12];\n i12++;\n i5 = 0;\n i6 = 1;\n i7 = 8;\n } else {\n throw new zzlm(\"No valid varint length mask found\");\n }\n }\n this.zzbau[this.zzbat - 1] = ((i4 - this.zzbaw) - i13) - i14;\n } else {\n StringBuilder sb = new StringBuilder(36);\n sb.append(\"Unexpected lacing value: \");\n sb.append(i8);\n throw new zzlm(sb.toString());\n }\n } else {\n throw new zzlm(\"Lacing only supported in SimpleBlocks.\");\n }\n this.zzbaq = this.zzaof + zzdw((long) ((this.zzbac.data[0] << 8) | (this.zzbac.data[1] & UByte.MAX_VALUE)));\n this.zzbax = ((zzog.type == 2 || (i3 == 163 && (this.zzbac.data[2] & ByteCompanionObject.MIN_VALUE) == 128)) ? 1 : 0) | ((this.zzbac.data[2] & 8) == 8 ? Integer.MIN_VALUE : 0);\n this.zzbap = 2;\n this.zzbas = 0;\n }\n if (i3 == 163) {\n while (this.zzbas < this.zzbat) {\n zza(zzno2, zzog, this.zzbau[this.zzbas]);\n zza(zzog, this.zzbaq + ((long) ((this.zzbas * zzog.zzbbh) / 1000)));\n this.zzbas++;\n }\n this.zzbap = 0;\n return;\n }\n zza(zzno2, zzog, this.zzbau[0]);\n } else if (i3 == 16981) {\n this.zzbal.zzbbi = new byte[i4];\n zzno2.readFully(this.zzbal.zzbbi, 0, i4);\n } else if (i3 == 18402) {\n byte[] bArr = new byte[i4];\n zzno2.readFully(bArr, 0, i4);\n this.zzbal.zzbbj = new zznx(1, bArr);\n } else if (i3 == 21419) {\n Arrays.fill(this.zzbae.data, (byte) 0);\n zzno2.readFully(this.zzbae.data, 4 - i4, i4);\n this.zzbae.setPosition(0);\n this.zzanz = (int) this.zzbae.zzge();\n } else if (i3 == 25506) {\n this.zzbal.zzaov = new byte[i4];\n zzno2.readFully(this.zzbal.zzaov, 0, i4);\n } else if (i3 == 30322) {\n this.zzbal.zzatv = new byte[i4];\n zzno2.readFully(this.zzbal.zzatv, 0, i4);\n } else {\n StringBuilder sb2 = new StringBuilder(26);\n sb2.append(\"Unexpected id: \");\n sb2.append(i3);\n throw new zzlm(sb2.toString());\n }\n }",
"@Test\n @Tag(\"slow\")\n public void testSTANDGUB() {\n CuteNetlibCase.doTest(\"STANDGUB.SIF\", \"1257.6995\", null, NumberContext.of(7, 4));\n }",
"public void stoptimertask() {\n if (timer != null) {\r\n timer.cancel();\r\n timer = null;\r\n }}",
"@Test\n @Tag(\"slow\")\n public void testSCTAP2() {\n CuteNetlibCase.doTest(\"SCTAP2.SIF\", \"1724.8071428568292\", null, NumberContext.of(7, 4));\n }"
] |
[
"0.64598",
"0.64437413",
"0.64437413",
"0.6277221",
"0.6086934",
"0.6027096",
"0.59760404",
"0.5974636",
"0.58590525",
"0.5854105",
"0.5812496",
"0.58051044",
"0.5749908",
"0.5740429",
"0.56975806",
"0.55848026",
"0.5549385",
"0.5516478",
"0.5515872",
"0.55119896",
"0.54841405",
"0.5472887",
"0.5471492",
"0.5466477",
"0.5464348",
"0.5461976",
"0.54275644",
"0.5408665",
"0.54037917",
"0.53619254",
"0.5358106",
"0.5340945",
"0.5326762",
"0.53207034",
"0.53201467",
"0.5310162",
"0.5298106",
"0.5293275",
"0.5275531",
"0.5274212",
"0.52259415",
"0.52176106",
"0.52101904",
"0.5210118",
"0.5189396",
"0.51778626",
"0.51730937",
"0.5172771",
"0.5160413",
"0.51599205",
"0.5151643",
"0.5149631",
"0.5142086",
"0.51394606",
"0.51341987",
"0.5125031",
"0.512357",
"0.51231754",
"0.5121115",
"0.5119151",
"0.5113911",
"0.5095185",
"0.5094154",
"0.509073",
"0.50810707",
"0.5078169",
"0.5059233",
"0.505317",
"0.50506467",
"0.5050233",
"0.50454557",
"0.50418276",
"0.50365436",
"0.50363505",
"0.5033926",
"0.5032025",
"0.5005625",
"0.5004803",
"0.50005066",
"0.49965498",
"0.4995806",
"0.4993394",
"0.4988272",
"0.498092",
"0.49784574",
"0.49740982",
"0.49705833",
"0.49697822",
"0.49690607",
"0.49685803",
"0.49612978",
"0.4954817",
"0.49499756",
"0.49481535",
"0.4947482",
"0.49465373",
"0.4945678",
"0.494548",
"0.49264044",
"0.4925009",
"0.49211583"
] |
0.0
|
-1
|
Returns the transform for this group's coordinate system.
|
protected Matrix4 computeTransform() {
return super.computeTransform();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public AffineTransform getTransform()\r\n\t{\r\n\t\treturn _g2.getTransform();\r\n\t}",
"public AffineTransform getTransform() {\n return new AffineTransform(transform);\n }",
"public Transform getTransform () {\n\t\torg.jbox2d.common.Transform trans = body.getTransform();\n\t\ttransform.vals[Transform.POS_X] = trans.p.x;\n\t\ttransform.vals[Transform.POS_Y] = trans.p.y;\n\t\ttransform.vals[Transform.COS] = trans.q.c;\n\t\ttransform.vals[Transform.SIN] = trans.q.s;\n\t\treturn transform;\n\t}",
"public Matrix getTransform()\n {\n return transform;\n }",
"public Transform getTransform() {return transform;}",
"public Transform getTransformation() {\n Transform t = Transform.newTranslation(position);\n t = t.compose(Transform.newScale(scale));\n t = t.compose(Transform.newXRotation(rotation.x));\n t = t.compose(Transform.newYRotation(rotation.y));\n t = t.compose(Transform.newZRotation(rotation.z));\n return t;\n }",
"protected Matrix4 computeTransform() {\n return internalGroup.computeTransform();\n }",
"public Matrix4 getTransformMatrix() {\n return transformMatrix;\n }",
"public AffineTransform getTransform()\n/* */ {\n/* 194 */ return this.transform;\n/* */ }",
"public Transformation getTransform() {\n\t\treturn mk;\n\t}",
"@Override\n\t\tpublic GLGroupTransform transforms() { return transforms; }",
"public TransformGroup getTransformGroup() {\r\n return transformGroup;\r\n }",
"public final Transformation getTransformation() {\n\t\treturn transform;\n\t}",
"public RMTransform getTransform()\n{\n return new RMTransform(getX(), getY(), getRoll(), getWidth()/2, getHeight()/2,\n getScaleX(), getScaleY(), getSkewX(), getSkewY());\n}",
"@Override\n\tpublic RectTransform getTransform() {\n\t\treturn (RectTransform) super.getTransform();\n\t}",
"public AffineTransform getAffineTransform() {\n return affineTransform;\n }",
"public PVector getTransformedPosition(){\n\t\treturn gui.getTransform().transform(position);\n\t}",
"@java.lang.Override\n public godot.wire.Wire.Transform getTransformValue() {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }",
"Transforms getTransforms();",
"public Transform getTransform(){\n switch (this){\n case promote_terminals: return new SubexpressionTransformation.TerminalChain();\n case promote_redundant: return new SubexpressionTransformation.RedundantChain();\n case promote_summary: return new SubexpressionTransformation.SummarisingChain();\n case promote_chomsky: return new SubexpressionTransformation.ChomskyChain();\n case filter: return new RelationFilterTransformation();\n case order: return new EvaluationOrderTransformation(true, true);\n default: throw new RuntimeException(\"Unreachable\");\n }\n }",
"@java.lang.Override\n public godot.wire.Wire.Transform2D getTransform2DValue() {\n if (transform2DValueBuilder_ == null) {\n if (typeCase_ == 9) {\n return (godot.wire.Wire.Transform2D) type_;\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n } else {\n if (typeCase_ == 9) {\n return transform2DValueBuilder_.getMessage();\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n }\n }",
"@java.lang.Override\n public godot.wire.Wire.Transform2D getTransform2DValue() {\n if (typeCase_ == 9) {\n return (godot.wire.Wire.Transform2D) type_;\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n }",
"godot.wire.Wire.Transform2D getTransform2DValue();",
"@java.lang.Override\n public godot.wire.Wire.Transform getTransformValue() {\n if (transformValueBuilder_ == null) {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n } else {\n if (typeCase_ == 14) {\n return transformValueBuilder_.getMessage();\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }\n }",
"Transform<A, B> getTransform();",
"public Transform getRotationTransformation() {\n Transform t = Transform.newXRotation(rotation.x);\n t = t.compose(Transform.newYRotation(rotation.y));\n t = t.compose(Transform.newZRotation(rotation.z));\n return t;\n }",
"@java.lang.Override\n public godot.wire.Wire.TransformOrBuilder getTransformValueOrBuilder() {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }",
"godot.wire.Wire.Transform getTransformValue();",
"@Override\n final public String getTransform() {\n String transform = ScijavaGsonHelper.getGson(context).toJson(rt, RealTransform.class);\n //logger.debug(\"Serialization result = \"+transform);\n return transform;\n }",
"public int getTransformTo() {\n\t\treturn transformTo;\n\t}",
"public AffineTransform getTm(\n )\n {return tm;}",
"public AffineTransform getGraphicTx() {\n return transformManager.getGraphicTx();\n }",
"@java.lang.Override\n public godot.wire.Wire.TransformOrBuilder getTransformValueOrBuilder() {\n if ((typeCase_ == 14) && (transformValueBuilder_ != null)) {\n return transformValueBuilder_.getMessageOrBuilder();\n } else {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }\n }",
"public AffineTransform getTlm(\n )\n {return tlm;}",
"public AffineTransform getOldAffineTransform ( )\n {\n return oldAffineTransformation;\n }",
"@Override\r\n\tprotected AffineTransform getPointTransformation() {\n\t\treturn null;\r\n\t}",
"public AffineTransform getCtm(\n )\n {return ctm;}",
"private AffineTransform createTransform() {\n Dimension size = getSize();\n Rectangle2D.Float panelRect = new Rectangle2D.Float(\n BORDER,\n BORDER,\n size.width - BORDER - BORDER,\n size.height - BORDER - BORDER);\n AffineTransform tr = AffineTransform.getTranslateInstance(panelRect.getCenterX(), panelRect.getCenterY());\n double sx = panelRect.getWidth() / mapBounds.getWidth();\n double sy = panelRect.getHeight() / mapBounds.getHeight();\n double scale = min(sx, sy);\n tr.scale(scale, -scale);\n tr.translate(-mapBounds.getCenterX(), -mapBounds.getCenterY());\n return tr;\n }",
"public String getTransformType();",
"@Override\n\tpublic GAffineTransform getTransform(GeoConicND conic, Coords M,\n\t\t\tCoords[] ev) {\n\t\ttransform.setTransform(ev[0].getX(), ev[0].getY(), ev[1].getX(),\n\t\t\t\tev[1].getY(), M.getX(), M.getY());\n\n\t\treturn transform;\n\t}",
"@Override\n public AffineTransform getAffineTransform() {\n return null;\n }",
"@Override\n\tpublic Mat GetTranslateMatrix()\n\t{\n\t\treturn mT;\n\t}",
"public Matrix4f getWorldMatrix() {\n\n\t\t// First identity\n\t\tmTranformation.identity();\n\n\t\t// Translate\n\t\tmTranformation.translate(position);\n\n\t\t// Rotate object at the center of the texture\n\t\tfloat x = 0.5f * mWidth;\n\t\tfloat y = 0.5f * mHeight;\n\n\t\t// Do rotating\n\t\tmTranformation.translate(new Vector3f(x, y, 0));\n\t\tmTranformation.rotateZ((float) Math.toRadians(rotation.z));\n\t\tmTranformation.translate(new Vector3f(-x, -y, 0));\n\n\t\t// mTranformation.scale(scale, scale, 1);\n\t\tmTranformation.scaleAround(scale, x, y, 0);\n\n\t\treturn mTranformation;\n\t}",
"public Matrix4f getTranslationMat() {\n\t\treturn m_xforms[NvCameraXformType.MAIN].m_translateMat;\n\t}",
"public RMTransform getTransformFromShape(RMShape aShape)\n{\n // The transform from parent is just our inverse transform, transform from child is just child's transform\n if(aShape==getParent())\n return getTransformInverse();\n if(aShape!=null && this==aShape.getParent())\n return aShape.getTransform();\n\n // Return the inverse of transform to shape\n return getTransformToShape(aShape).invert();\n}",
"TransformationFactory getTransformationFactory();",
"@java.lang.Override\n public godot.wire.Wire.Transform2DOrBuilder getTransform2DValueOrBuilder() {\n if ((typeCase_ == 9) && (transform2DValueBuilder_ != null)) {\n return transform2DValueBuilder_.getMessageOrBuilder();\n } else {\n if (typeCase_ == 9) {\n return (godot.wire.Wire.Transform2D) type_;\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n }\n }",
"public AffineTransform getInitialCtm(\n )\n {\n AffineTransform initialCtm;\n if(getScanner().getRenderContext() == null) // Device-independent.\n {\n initialCtm = new AffineTransform(); // Identity.\n }\n else // Device-dependent.\n {\n IContentContext contentContext = getScanner().getContentContext();\n Dimension2D canvasSize = getScanner().getCanvasSize();\n\n // Axes orientation.\n RotationEnum rotation = contentContext.getRotation();\n switch(rotation)\n {\n case Downward:\n initialCtm = new AffineTransform(1, 0, 0, -1, 0, canvasSize.getHeight());\n break;\n case Leftward:\n initialCtm = new AffineTransform(0, 1, 1, 0, 0, 0);\n break;\n case Upward:\n initialCtm = new AffineTransform(-1, 0, 0, 1, canvasSize.getWidth(), 0);\n break;\n case Rightward:\n initialCtm = new AffineTransform(0, -1, -1, 0, canvasSize.getWidth(), canvasSize.getHeight());\n break;\n default:\n throw new NotImplementedException();\n }\n\n // Scaling.\n Rectangle2D contentBox = contentContext.getBox();\n Dimension2D rotatedCanvasSize = rotation.transform(canvasSize);\n initialCtm.scale(\n rotatedCanvasSize.getWidth() / contentBox.getWidth(),\n rotatedCanvasSize.getHeight() / contentBox.getHeight()\n );\n\n // Origin alignment.\n initialCtm.translate(-contentBox.getMinX(), -contentBox.getMinY());\n }\n return initialCtm;\n }",
"public static com.tangosol.net.security.IdentityTransformer getIdentityTransformer()\n {\n return __s_IdentityTransformer;\n }",
"DMatrix3C getRotation();",
"@java.lang.Override\n public godot.wire.Wire.Transform2DOrBuilder getTransform2DValueOrBuilder() {\n if (typeCase_ == 9) {\n return (godot.wire.Wire.Transform2D) type_;\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n }",
"public final Shape getTransformed(Transformation t) {\n\t\treturn getCopy().transform(t);\n\t}",
"public org.cagrid.data.dcql.DataTransformation getDataTransformation() {\r\n return dataTransformation;\r\n }",
"public mat4 getRotation() {\n return worldMatrix.getRotation(pr, yr, pr);\n }",
"public double getTranslateX() { return translateX; }",
"public CoordinateSystem getCoordinateSystem() {\n System.out.println(\"BaseCatalog: getCoordinateSystem() \");\n CoordinateSystem cs = null;\n if (_layout.getMapElementCount() >0 ) {\n MapElement mapEle = (MapElement)_layout.getMapElements().next();\n cs = mapEle.getMap().getCoordinateSystem();\n }\n System.out.println(\"BaseCatalog: getCoordinateSystem() \" + cs);\n return cs;\n }",
"public CoordinateReferenceSystem getCRS(){\n return getCRS(DefaultGeographicCRS.WGS84);\n }",
"@Override\n\tpublic TransformNR getTxTransform(String name) {\n\t\treturn null;\n\t}",
"public CMLVector3 transform(CMLTransform3 t) {\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n Vector3 v = (veucl3 == null) ? null : veucl3.transform(t\r\n .getEuclidTransform3());\r\n return (v == null) ? null : CMLVector3.createCMLVector3(v);\r\n }",
"public RMTransform getTransformInverse() { return getTransform().invert(); }",
"public godot.wire.Wire.Transform2D.Builder getTransform2DValueBuilder() {\n return getTransform2DValueFieldBuilder().getBuilder();\n }",
"public WorldToScreenTransform getWorldToScreenTransform() { return this; }",
"godot.wire.Wire.TransformOrBuilder getTransformValueOrBuilder();",
"public synchronized void transform() {\n Iterator<String> it = entity_to_wxy.keySet().iterator();\n while (it.hasNext()) {\n String entity = it.next();\n double wx = entity_to_wxy.get(entity).getX(),\n wy = entity_to_wxy.get(entity).getY();\n int sx, sy;\n entity_to_sxy.put(entity, (sx = wxToSx(wx)) + BundlesDT.DELIM + (sy = wyToSy(wy)));\n entity_to_sx.put(entity, sx); entity_to_sy.put(entity, sy);\n }\n transform_id++;\n }",
"public CoordinateReferenceSystem getCoordinateReferenceSystem() {\n\t\treturn CRS;\n\t}",
"public Point3D _GPSConvert() {\n\t\treturn _GPSConvert;\n\t}",
"@SuppressWarnings(\"PMD.DefaultPackage\")\n TransformationContextImpl getTransformationContext() {\n return transformationContext;\n }",
"public void setTransform(Transform transform);",
"public Map<Integer, Geometry> getTransform(int epsg) throws SQLException {\n return retrieveExpected(createNativeTransformStatement(epsg), GEOMETRY);\n }",
"TransformFactory getFactory();",
"public void applyTransform() {\n\t\tglRotatef(xaxisrot, 1.0f, 0.0f, 0.0f);\n\t\tglRotatef(yaxisrot, 0.0f, 1.0f, 0.0f);\n\t\tglRotatef(tilt, 0.0f, 0.0f, 1.0f);\n\t\tglTranslatef(-pos.geti(), -pos.getj(), -pos.getk());\n\t}",
"public MathContext getMathContext();",
"public final void rule__RelativeTransformation__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:6205:1: ( ( 'transformation' ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:6206:1: ( 'transformation' )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:6206:1: ( 'transformation' )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:6207:1: 'transformation'\n {\n before(grammarAccess.getRelativeTransformationAccess().getTransformationKeyword_3()); \n match(input,63,FOLLOW_63_in_rule__RelativeTransformation__Group__3__Impl12566); \n after(grammarAccess.getRelativeTransformationAccess().getTransformationKeyword_3()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public godot.wire.Wire.Transform.Builder getTransformValueBuilder() {\n return getTransformValueFieldBuilder().getBuilder();\n }",
"public Node getNormalizedNode() {\n\t\treturn transformedNode;\n\t}",
"public float getX() {\n return internalGroup.getX();\n }",
"public void updateTransform() {\n \t\tif (viewBox != null) {\n \t\t\tOMSVGRect bbox = ((SVGRectElement)viewBox.getElement()).getBBox();\n //\t\t\tGWT.log(\"bbox = \" + bbox.getDescription());\n \t\t\tfloat d = (float)Math.sqrt((bbox.getWidth() * bbox.getWidth() + bbox.getHeight() * bbox.getHeight()) * 0.25) * scale * 2;\n //\t\t\tGWT.log(\"d = \" + d);\n \t\t\n \t\t\t// Compute the actual canvas size. It is the max of the window rect\n \t\t\t// and the transformed bbox.\n \t\t\tfloat width = Math.max(d, windowRect.getWidth());\n \t\t\tfloat height = Math.max(d, windowRect.getHeight());\n //\t\t\tGWT.log(\"width = \" + width);\n //\t\t\tGWT.log(\"height = \" + height);\n \n \t\t\t// Compute the display transform to center the image in the\n \t\t\t// canvas\n \t\t\tOMSVGMatrix m = svg.createSVGMatrix();\n \t\t\tfloat cx = bbox.getCenterX();\n \t\t\tfloat cy = bbox.getCenterY();\n \t\t\tm = m.translate(0.5f * (width - bbox.getWidth()) -bbox.getX(), 0.5f * (height - bbox.getHeight()) -bbox.getY())\n \t\t\t.translate(cx, cy)\n \t\t\t.rotate(angle)\n \t\t\t.scale(scale)\n \t\t\t.translate(-cx, -cy);\n \t\t\t((ISVGTransformable)xformGroup).getTransform().getBaseVal().getItem(0).setMatrix(m);\n \t\t\t((ISVGTransformable)modelGroup.getTwinWrapper()).getTransform().getBaseVal().getItem(0).setMatrix(m);\n //\t\t\tGWT.log(\"m=\" + m.getDescription());\n \t\t\tsvg.getStyle().setWidth(width, Unit.PX);\n \t\t\tsvg.getStyle().setHeight(height, Unit.PX);\n \t\t}\n \t}",
"public SVector3d getPositionCam() {\n\t\treturn transCamera;\n\t}",
"public PacketTransformer getTransformer()\n {\n return transformer;\n }",
"public Coordinates projection() {\n return projection;\n }",
"public GeneralPath transform(Matrix matrix)\n {\n float x1 = getLowerLeftX();\n float y1 = getLowerLeftY();\n float x2 = getUpperRightX();\n float y2 = getUpperRightY();\n\n Point2D.Float p0 = matrix.transformPoint(x1, y1);\n Point2D.Float p1 = matrix.transformPoint(x2, y1);\n Point2D.Float p2 = matrix.transformPoint(x2, y2);\n Point2D.Float p3 = matrix.transformPoint(x1, y2);\n\n GeneralPath path = new GeneralPath();\n path.moveTo(p0.getX(), p0.getY());\n path.lineTo(p1.getX(), p1.getY());\n path.lineTo(p2.getX(), p2.getY());\n path.lineTo(p3.getX(), p3.getY());\n path.closePath();\n return path;\n }",
"public double getRotation()\n\t{\n\t\tdouble determinant = this.basisDeterminant();\n\t\tTransform2D m = orthonormalized();\n\t\tif (determinant < 0) \n\t\t{\n\t\t\tm.scaleBasis(new Vector2(1, -1)); // convention to separate rotation and reflection for 2D is to absorb a flip along y into scaling.\n\t\t}\n\t\treturn Math.atan2(m.matrix[0].y, m.matrix[0].x);\n\t}",
"public Vector3f getTranslationVec() {\n\t\treturn m_xforms[NvCameraXformType.MAIN].m_translate;\n\t}",
"public RMTransform getTransformToShape(RMShape aShape)\n{\n // If transforming out of shape hierarchy, concat recursive transformToShape call to parents\n if(aShape==null)\n return getParent()==null? getTransform() : getTransform().multiply(getParent().getTransformToShape(null));\n\n // The transform to parent is just our transform, transform to child is just child's inverse transform\n if(aShape==getParent())\n return getTransform();\n if(this==aShape.getParent())\n return aShape.getTransformInverse();\n if(aShape==this)\n return new RMTransform();\n\n // Start with identity transform\n RMTransform transform = RMTransform.identity;\n \n // If not one of simple cases above, concat successive transforms from last shape to self\n List <RMShape> shapes = getShapesToShape(aShape);\n if(shapes!=null)\n for(int i=shapes.size()-1; i>0; i--) {\n RMShape cs = shapes.get(i), ns = shapes.get(i-1);\n RMTransform t2 = ns==cs.getParent()? cs.getTransformInverse() : ns.getTransform(); // Inv if going up, else normal\n transform = t2.multiply(transform);\n }\n \n // Return transform\n return transform;\n}",
"godot.wire.Wire.Transform2DOrBuilder getTransform2DValueOrBuilder();",
"public Vector3f getRotationVec() {\n\t\treturn m_xforms[NvCameraXformType.MAIN].m_rotate;\n\t}",
"public double getRotation() {\n return Degrees.atan2(y, x);\n }",
"public void transform() {\n final var bounds = getParentBounds();\n transform( bounds.width, bounds.height );\n }",
"Activity getTransformMappingActivity();",
"public Cartesian3d getPosition() {\n return getMotion().getPosition();\n }",
"public Tree transformTree(Tree t) {\n return QPtransform(t);\n }",
"public static Transformer instantiateTransformer() {\n return INSTANTIATE_TRANSFORMER;\n }",
"private void applyTransform() {\n GlStateManager.rotate(180, 1.0F, 0.0F, 0.0F);\n GlStateManager.translate(offsetX, offsetY - 26, offsetZ);\n }",
"public Object getProjection() {\n return getValue(PROP_PROJECTION);\n }",
"public float getY() {\n return internalGroup.getY();\n }",
"public abstract Shape transform(Transformation t);",
"public Matrix3f getPhysicsRotationMatrix() {\n return getPhysicsRotationMatrix(null);\n }",
"public void setTransform(float a11, float a12, float a21, float a22, float x, float y);",
"public interface ICanvasTransform {\r\n\r\n\t/**\r\n\t * Inverse-transforms a relative length along the X axis to world\r\n\t * coordinates.\r\n\t * \r\n\t * @param screen\r\n\t * the length on screen.\r\n\t * @return the corresponding length in world coordinates.\r\n\t */\r\n\tdouble transformXScreenLengthToWorld(final double screen);\r\n\r\n\t/**\r\n\t * Inverse-transforms a relative length along the Y axis to world\r\n\t * coordinates.\r\n\t * \r\n\t * @param screen\r\n\t * the length on screen.\r\n\t * @return the corresponding length in world coordinates.\r\n\t */\r\n\tdouble transformYScreenLengthToWorld(final double screen);\r\n\r\n\t/**\r\n\t * Inverse-transforms a point on the screen to absolute world coordinates.\r\n\t * \r\n\t * @param screen\r\n\t * the canvas screen coordinate.\r\n\t * @return the corresponding world coordinate.\r\n\t */\r\n\tWorldCoordinate transformScreenToWorld(final DeviceCoordinate screen);\r\n\r\n\t/**\r\n\t * Inverse-transforms a distance in screen space to a corresponding distance\r\n\t * in world coordinates.\r\n\t * \r\n\t * @param screen\r\n\t * the distance on screen.\r\n\t * @return the corresponding distance in world coordinates.\r\n\t */\r\n\tWorldDistance transformScreenDeltaToWorld(final DeviceDistance screen);\r\n\r\n\t/**\r\n\t * Transforms a world coordinate to a point on the canvas screen.\r\n\t * \r\n\t * @param x\r\n\t * the x coordinate in world space.\r\n\t * @param y\r\n\t * the y coordinate in world space.\r\n\t * @return the corresponding point on the canvas screen.\r\n\t */\r\n\tDeviceCoordinate transformWorldToScreen(final double x, final double y);\r\n\r\n\t/**\r\n\t * @param world\r\n\t * @return\r\n\t */\r\n\tDeviceCoordinate transformWorldToScreen(WorldCoordinate world);\r\n\r\n\t/**\r\n\t * @param world\r\n\t * @return\r\n\t */\r\n\tint transformWorldLengthToScreen(final double world);\r\n\r\n}",
"@Override\n\tpublic Rotation3 GetRotation() {\n\t\treturn new Rotation3(0f);\n\t}"
] |
[
"0.7761663",
"0.7732615",
"0.76240194",
"0.7498465",
"0.72931385",
"0.72711295",
"0.7107052",
"0.7097545",
"0.70484096",
"0.69951624",
"0.6880796",
"0.6859318",
"0.68496543",
"0.6716421",
"0.6614444",
"0.65680134",
"0.6556993",
"0.6475021",
"0.6400416",
"0.63605464",
"0.6355645",
"0.6326322",
"0.6318026",
"0.6287502",
"0.6282958",
"0.6212294",
"0.6189738",
"0.6185976",
"0.61477625",
"0.6126699",
"0.60715795",
"0.6056597",
"0.6036618",
"0.6017908",
"0.59915906",
"0.59434813",
"0.5922811",
"0.5913833",
"0.58898515",
"0.58585995",
"0.58251363",
"0.57518375",
"0.5749494",
"0.5737383",
"0.56827563",
"0.56482863",
"0.56432843",
"0.549495",
"0.5480251",
"0.5471456",
"0.5469131",
"0.5434003",
"0.5432828",
"0.53986514",
"0.5391589",
"0.5376741",
"0.53391045",
"0.53227615",
"0.5300572",
"0.5289773",
"0.5274828",
"0.5266766",
"0.52660066",
"0.52448803",
"0.52141804",
"0.5212365",
"0.5192495",
"0.5181432",
"0.51805735",
"0.51587003",
"0.51444197",
"0.5129988",
"0.51105934",
"0.5090949",
"0.5089963",
"0.50654876",
"0.5060447",
"0.50494295",
"0.5048606",
"0.5037578",
"0.5034066",
"0.5029991",
"0.502856",
"0.50248075",
"0.50120646",
"0.4962728",
"0.49512258",
"0.49258405",
"0.4924412",
"0.49223688",
"0.49163833",
"0.49148765",
"0.4913299",
"0.48839295",
"0.48820886",
"0.48801664",
"0.48713192",
"0.4860937",
"0.48588195",
"0.48393482"
] |
0.66170055
|
14
|
Called when actors are added to or removed from the group.
|
protected void childrenChanged() {
proxyGroup.childrenChanged();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void addActor(Actor actor) { ActorSet.addElement(actor); }",
"void processActors(ArrayList<Actor> actors);",
"@Override\n\t public void processActors(ArrayList<Actor> actors)\n\t {\n\t for (Actor a : actors)\n\t {\n\t if (a instanceof Flower){\n\t a.removeSelfFromGrid();\n\t }\n\t if (a instanceof Cow){\n\t \t++this.myMilkTank.MilkMenge;\n\t \ta.removeSelfFromGrid();\n\t }\n\t \n\t }\n\t }",
"void add(Actor actor);",
"public void createAndRegisterActors(){\n //stressAppNetworkService.getAbstractNetworkServiceList().forEach((type,ns)->{\n stressAppNetworkService.getChatNetworkServicePluginRootList().forEach(ns->{\n //System.out.println(\"Network Service type: \"+type);\n nsPublicKeyMap.put(ns.getPublicKey(), (ChatNetworkServicePluginRoot) ns);\n ((ChatNetworkServicePluginRoot) ns).setMessageReceiver(this);\n int actorCounter = 0;\n for(ActorProfile actor : actorProfileList){\n createAndRegisterActor(actor,(ChatNetworkServicePluginRoot) ns, actorCounter);\n actorCounter++;\n actorsCreated++;\n report(ReportType.ACTOR_CREATED);\n }\n nsStarted++;\n report(ReportType.NS_STARED);\n });\n }",
"public void collect() {\n\t\tthis.getOwnerArea().unregisterActor(this);\n\t\t\n\t}",
"public void addActor(CastMember actor)\n\t{\n\t\tpeopleAct.add(actor);\n\t}",
"public void processActors(ArrayList<Actor> actors) {\n int count = 0;\n for (Actor temp : actors) {\n if (temp instanceof Critter) {\n count++;\n }\n }\n if (count < courage) {\n changeColor(2);\n } else {\n changeColor(-2);\n }\n }",
"public final void addActor(DodlesActor actor) {\n if (actor.getName() == null) {\n throw new GdxRuntimeException(\"Actor must have a name set!\");\n }\n\n all.put(actor.getName(), actor);\n\n if (actor instanceof BaseDodlesViewGroup) {\n for (Object view : ((BaseDodlesViewGroup) actor).getViews()) {\n BaseDodlesGroup bdgView = (BaseDodlesGroup) view;\n all.put(bdgView.getName(), bdgView);\n }\n }\n\n DodleReference ref = references.get(actor.getTrackingID());\n\n if (ref != null) {\n ref.addRef(actor.getName());\n }\n }",
"public void addActor(){\n actorProfileList.add(new ActorProfile());\n }",
"public void processActors(ArrayList<Actor> actors)\n {\n for (Actor a : actors)\n {\n if ( a instanceof Rock )\n a.removeSelfFromGrid();\n }\n }",
"public void processActors(ArrayList<Actor> actors)\n {\n int n = actors.size();\n if (n < courage) {\n brighter();\n } else {\n darken();\n }\n }",
"public void update()\n {\n reinit(viewer.getScene().getActors());\n\n list.invalidate();\n invalidate();\n repaint();\n }",
"private void initPhotoActorsReference() {\n mActorBefore = mActorBeforeContent;\n mActorNow = mActorNowContent;\n mActorNext = mActorNextContent;\n }",
"public interface EventActorListener {\n\n public void onFinished(ActorDet actor);\n}",
"public void act() \r\n {\r\n Actor hitMC = getOneIntersectingObject(MC.class);\r\n if (hitMC != null) {\r\n ((Hall) getWorld()).player.health++;\r\n getWorld().removeObject(this);\r\n }\r\n }",
"public final void rule__AstActor__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7525:1: ( ( 'actor' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7526:1: ( 'actor' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7526:1: ( 'actor' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7527:1: 'actor'\n {\n before(grammarAccess.getAstActorAccess().getActorKeyword_1()); \n match(input,70,FOLLOW_70_in_rule__AstActor__Group__1__Impl15563); \n after(grammarAccess.getAstActorAccess().getActorKeyword_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 }",
"public void memberJoined(ClusterEvent e) {}",
"public void act() \n {\n if(foundAvatar())\n {\n int delta = getFun();\n timeRem.addTime(delta);\n getWorld().removeObject(this);\n // setLocation(Greenfoot.getRandomNumber(800), Greenfoot.getRandomNumber(600));\n }\n\n }",
"public void act() \n {\n\n World wrld = getWorld();\n if(frameCounter >= frameWait)\n {\n super.act();\n frameCounter = 0;\n }\n else\n {\n frameCounter++;\n }\n if (dying)\n deathcounter++;\n GreenfootImage trans = getImage();\n trans.scale(500,500);\n setImage(trans);\n setLocation(getX(), (getY()));\n\n if (deathcounter > 10)\n {\n wrld.removeObject(this);\n ((Universe)wrld).score += 50;\n }\n else if (getX() < 10)\n wrld.removeObject(this);\n }",
"private void fireActivationEvent()\n {\n Set<DataGroupInfo> activated;\n Set<DataGroupInfo> deactivated;\n synchronized (this)\n {\n activated = New.set(myDeltaActivatedGroups);\n myDeltaActivatedGroups.clear();\n deactivated = New.set(myDeltaDeactivatedGroups);\n myDeltaDeactivatedGroups.clear();\n }\n\n myController.getToolbox().getEventManager().publishEvent(new ActiveDataGroupsChangedEvent(this, activated, deactivated));\n myActivationChangeSupport.notifyListeners(r -> r.run());\n }",
"public void processActors(ArrayList<Actor> actors) {\n\t\t\n\t\tfor(int i = 0; i < actors.size(); i++) {\n\t\t\tActor a = actors.get(i);\n\t\t\tLocation current = a.getLocation();\n\t\t\tLocation moveTo = a.getLocation().getAdjacentLocation(current.getDirectionToward(getLocation()));\n\t\t\t\n\t\t\tif(getGrid().isValid(moveTo) && getGrid().get(moveTo) == null) {\n\t\t\t\ta.moveTo(moveTo);\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void act() \r\n {\r\n addDrone();\r\n if(droneTimer>0)\r\n {\r\n droneTimer--;\r\n }\r\n }",
"public void moveActors() {\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\t\t\tfor (int column = 0; column < battlefield.length; column++) {\n\t\t\t\tif (battlefield[row][column].getElf() != null) {\n\t\t\t\t\tbattlefield[row][column].getElf().move(battlefield, row,\n\t\t\t\t\t\t\tcolumn);\n\t\t\t\t}\n\t\t\t\tif (battlefield[row][column].getOrc() != null) {\n\t\t\t\t\tbattlefield[row][column].getOrc().move(battlefield, row,\n\t\t\t\t\t\t\tcolumn);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public void setActor(Actor actor);",
"private void initActors() {\r\n\t\t// Prepare everything\r\n\t\tinitLabels();\r\n\t\tinitButtons();\r\n\t\t// Initialize our Actors\r\n\t\tinitTable();\r\n\t}",
"@Override\n\tpublic void update(GameContainer arg0, int delta) throws SlickException {\n\t\tfor (Actors a : actors) {\n\t\t\ta.move();\n\t\t}\n\t}",
"@Override\n void onCollide(Actor other, Contact contact) {\n }",
"public void representDataOnActors(String type)\r\n\t{\n\t}",
"void remove(Actor actor);",
"public int numActors() { return ActorSet.size(); }",
"public void onHitOther(Actor other) {\n\t\t\r\n\t}",
"void addDemoActors(List<Actor> actorList)\n {\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTnImPW4s91ZjlXIsxV2nrHDRc6Ow-EuzDn1w&usqp=CAU\", \"Jitendra Kumar\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSb3Me0agAUxj_vqbJuKq7Uadd4tlDXOBLs_A&usqp=CAU\", \"Navin Kasturia\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ4lZGhdpg6KelA9EKsXhTJ25WTYxG4i70Vew&usqp=CAU\", \"Badri Chavan\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTNLnBFZ0JIGx7MNjtnjlOhvBgYXsvXi0iv9g&usqp=CAU\", \"Pankaj Tripathi\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ6tpXiB_461OEMpZgurzjOAhAU9gMXL9fqLQ&usqp=CAU\", \"Nawazuddin Siddiqui\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQeTKD3bdHxgiFYLV1L--zF8IFE65m9u2UHLg&usqp=CAU\", \"Mithila Palkar\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSHAaZKDQs3Yvcwf-6LONwIGyFWI6eviDbbHg&usqp=CAU\", \"Barkha singh\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSd0dg__IbxMiMurrmUiPba_EWgZn7IWVYepw&usqp=CAU\", \"Ahsas Channa\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS7F-vmS5aa6ZuQoqr77dN49K9VJl1E-BwNXg&usqp=CAU\", \"Manoj Bajpayee\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSebkgK0lyKUaqDQ-RIqIB0qXJWJsffl5xaeg&usqp=CAU\", \"Pratik Gandhi\")) ;\n }",
"@Override\r\n\t\tpublic void handle(long arg0) {\n\t\t\tact(arg0);\r\n\t\t\tObservableList actors = getChildren();\r\n\t\t\tfor(int i=0; i<actors.size(); i++) {\r\n\t\t\t\tif(Actor.class.isInstance(actors.get(i))) {\r\n\t\t\t\t\t((Actor)actors.get(i)).act(arg0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"void setActorId(int actorID) {\n this.actorID = actorID;\n }",
"public void act()\n {\n if (health == 0)\n {\n this.remove();\n }\n }",
"public final void rule__AstExternalActor__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10872:1: ( ( 'actor' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10873:1: ( 'actor' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10873:1: ( 'actor' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10874:1: 'actor'\n {\n before(grammarAccess.getAstExternalActorAccess().getActorKeyword_2()); \n match(input,70,FOLLOW_70_in_rule__AstExternalActor__Group__2__Impl22160); \n after(grammarAccess.getAstExternalActorAccess().getActorKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void initDefaultActors() {\n\t\tactors.add(new Switcher(viewPort, 500));\r\n\t\tactors.add(new Rotator(viewPort, 100, 1, 0, 250));\r\n\t\tactors.add(new Rotator(viewPort, -300, -1.3, 0, 200));\r\n//\t\tactors.add(new MovingBar(viewPort, -500));\r\n//\t\tMovingBar temp = new MovingBar(viewPort, -800); temp.setSpeed(2);\r\n//\t\tactors.add(temp);\r\n//\t\tactors.add(new RotatingBen(viewPort, -1400, viewPort.width/2, 0, 1, 100));\r\n//\t\tactors.add(new RotatingRectangle(viewPort, -1800, viewPort.width/2-80, 0, 1, 160));\r\n//\t\tactors.add(new RotatingDoubleCross(viewPort, -2100, 100));\r\n//\t\t\r\n//\t\tactors.add(new RotatingWhiteBar(viewPort, -3000, viewPort.width/2, 0, 1, 100));\r\n\t\t\r\n\t\t//actors.add(new Rotator(viewPort, -3200, 2, 0, 300));\r\n\t\t//actors.add(new DoubleBar(viewPort, -4000));\r\n\t\t//actors.add(new RotatingSwagRectangle(viewPort, 600, viewPort.width/2-50, 0, 1, 100));\r\n\t\t//actors.add(new movingBar(viewPort, -1000));\r\n\t\t//ColorChanger switch1 = new ColorChanger(50, 1000, this);\r\n\t\t//test.setBoundaries(leftX, rightX, 200, 950);\r\n\t}",
"public void removeActor(Actor act) { ActorSet.removeElement(act); }",
"public TraitGuiListener(){\n\t\tplugin = RacesAndClasses.getPlugin();\n\t\tBukkit.getPluginManager().registerEvents(this, plugin);\n\t}",
"public void add(T actor)\n {\n\tif (actor == null)\n\t throw new IllegalArgumentException(\"actor cannot be null.\");\n\n\tboolean _shouldCheck = actor.isChecked() || actors.size < minCheckCount;\n\tactor.setActorGroup(this);\n\tactors.add(actor);\n\tif (_shouldCheck)\n\t actor.setChecked(true);\n }",
"@Override\n\tpublic void add() {\n\t\tSystem.out.println(\"前置通知\");\n\t\ttarget.add();\n\t\tSystem.out.println(\"后置通知\");\n\t}",
"protected void onCollision(Actor other) {\r\n\r\n\t}",
"@Override\r\n\tpublic <T extends Actor> void performAs(T actor) {\n\t\tactor.attemptsTo(Click.on(NewToursComponents.REGISTER),//Accion de dar click al componente especifico mapeado\r\n\t\t\t\tClick.on(newtoursregister));\r\n\t\t\r\n\t}",
"public void act()\n {\n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Cabbage(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Eggplant(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Onion(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(300) < 3)\n {\n addObject(new Pizza(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(400) < 3)\n {\n addObject(new Cake(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(400) < 3)\n {\n addObject(new Icecream(), Greenfoot.getRandomNumber(600), 0);\n }\n countTime();\n }",
"public void addActor(Actor actor) {\n internalGroup.addActor(actor.internalActor);\n actor.setParent(this);\n actor.setStage(getStage());\n }",
"public void updatePanel(Actor actor){}",
"void onUserAdded();",
"public void updateDrawingOrder(){\n\n //get all actors in the objectStage\n Array<Actor> actorsList = objectStage.getActors();\n actorsList.sort(new ActorComparator());\n }",
"public MyContactListener(){\n super();\n bodiesToRemove = new Array<Body>();\n EnemyToRemove = new Array<Body>();\n\n\n\n }",
"public void act() \n {\n mouse = Greenfoot.getMouseInfo();\n \n // Removes the achievement after its duration is over if its a popup (when it pops up during the game)\n if(popup){\n if(popupDuration == 0) getWorld().removeObject(this);\n else popupDuration--;\n }\n // Displays the decription of the achievement when the user hovers over it with the mouse\n else{\n if(Greenfoot.mouseMoved(this)) drawDescription();\n if(Greenfoot.mouseMoved(null) && !Greenfoot.mouseMoved(this)) drawMedal();\n }\n }",
"public void addActor(String path) throws IOException {\r\n\t\tactors.add(ImageIO.read(new File(path)));\r\n\t}",
"public void act() // method act\n {\n moveBear(); //lakukan method movebear\n objectDisappear(); // lakukan method objeectDisappear\n }",
"@Override\n public void collidedWith (Participant p)\n {\n \n }",
"@Override\n \tpublic void addActions() {\n \t\t\n \t}",
"@Override\n protected void hookUpActionListeners() {\n }",
"public void moveActor();",
"@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}",
"public void act() {\n\t\tfor (Manager manager : managers.values())\n\t\t\tmanager.act();\n\t\t\n\t\tif (hasPriority == Priority.ARMY && armyQueue.size() > 0) {\n\t\t\t//Tell ArmyManager to build top unit in queue\n\t\t}\n\t\telse if (hasPriority == Priority.BUILDINGS && buildingQueue.size() > 0) {\n\t\t\t//Tell BuildManager to build top building in queue\n\t\t}\n\t\telse if (hasPriority == Priority.WORKERS) {\n\t\t\t//ResourceManager has requested more workers\n\t\t}\n\t}",
"private void onAddRole() {\n\t\troleProxy.addRoleToUser(user, selectedRole);\n\t}",
"public void act()\n {\n addBox();\n }",
"public abstract void onRemoveAction();",
"public void addMovie(String name, String[] actors) {\n\t\t\n\t\tArrayList<Actor> movieActors = new ArrayList<>(); // list of actors in the movie\n\t\tMovie newMovie = new Movie(name, movieActors);\n\t\tboolean addedMovie = false;\n\t\tfor(Movie movie : this.movieList) {\n\t\t\tif(movie.getName().equals(newMovie.getName())) {\n\t\t\t\taddedMovie = true;\n\t\t\t}\n\t\t}\n\t\tif(addedMovie == false) {\n\t\t\tArrayList<Movie> actorMovies = new ArrayList<>(); //list of movies with actor in\n\t\t\tthis.movieList.add(newMovie);\n\t\t\tactorMovies.add(newMovie);\n\t\t\tfor(String actorName: actors) {\n\t\t\t\tActor newActor = new Actor(actorName, actorMovies);\n\t\t\t\tmovieActors.add(newActor);\n\t\t\t\tboolean added = false;\n\t\t\t\tfor(Actor actor : this.actorList) {\n\t\t\t\t\tif (actor.getName().equals(newActor.getName())) {\n\t\t\t\t\t\tadded = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(added == false) this.actorList.add(newActor);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic boolean addActor(String v)\r\n\t{\r\n\t\tActor newActor = new Actor(v);\r\n\t\t\r\n\t\tif(!graph.containsVertex(newActor))\r\n\t\t{\r\n\t\t\tgraph.addVertex(newActor);\r\n\t\t\tactorNames.add(v);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void act()\n {\n // handle key events\n String key = Greenfoot.getKey();\n if (key != null)\n {\n handleKeyPress(key);\n } \n\n // handle mouse events\n if (startGameButton.wasClicked())\n {\n handleStartGame();\n }\n }",
"public void addActionListeners() {\n\t\tApp.sc.createListener(\"/\" + this.getID() + \"/action/sent\", new OSCListener() {\n\t\t\t@Override\n\t\t\tpublic void acceptMessage(Date time, OSCMessage message) {\n\t\t\t\tConnector actionOutConnector = getConnector(ConnectorType.ACTION_OUT);\n\t\t\t\tactionOutConnector.flashConnection();\n\t\t\t}\n\t\t});\n\t}",
"public void addActor(Actor actor) {\n\t\tObjects.requireNonNull(actor);\n\t\tmap.addActor(actor, this);\n\t}",
"@Override\n\tpublic void action() {\n\t\t_agj.addBehaviour(new RecibirDistritos(_agj));\n\t\t_agj.addBehaviour(new RecibirMonedas(_agj));\n\t}",
"public void act() \r\n {\r\n Controller world = (Controller) getWorld();\r\n player = world.getPlayer();\r\n if (this.isTouching(Player.class))\r\n {\r\n player.minusHealth(5);\r\n world.removeObject(this);\r\n }\r\n }",
"public void agentAdded(Simulation simulation, IAgent agent) {\n }",
"public void dispatch(EventListener[] aListeners)\n {\n for (int i = aListeners.length; --i >= 0; )\n {\n MemberListener target = (MemberListener) aListeners[i];\n\n switch (getId())\n {\n case MEMBER_JOINED:\n target.memberJoined(this);\n break;\n\n case MEMBER_LEAVING:\n target.memberLeaving(this);\n break;\n\n case MEMBER_LEFT:\n target.memberLeft(this);\n break;\n }\n }\n }",
"public void updateCollisionGroup(){\n\t\tcollisionGroup = new CollisionGroup();\n\t\t\n\t\t//Adds tile from the Screen into the collisionGroup.\n\t\tfor(int x = 0; x<getScreen().getNumOfTilesX(); x++){\n\t\t\tfor(int y = 0; y<getScreen().getNumOfTilesY(); y++){\n\t\t\t\t\n\t\t\t\tTile sTile = getScreen().getTile(x, y);\n\t\t\t\tcollisionGroup.add(sTile);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Adds the Player to the collisionGroup.\n\t\tif(player != null){\n\t\t\tcollisionGroup.add(getPlayer());\n\t\t}\n\t}",
"public void act() \n {\n // Add your action code here.\n // get the Player's location\n if(!alive) return;\n \n int x = getX();\n int y = getY();\n \n // Move the Player. The setLocation() method will move the Player to the new\n // x and y coordinates.\n \n if( Greenfoot.isKeyDown(\"right\") ){\n setLocation(x+1, y);\n } else if( Greenfoot.isKeyDown(\"left\") ){\n setLocation(x-1, y);\n } else if( Greenfoot.isKeyDown(\"down\") ){\n setLocation(x, y+1);\n } else if( Greenfoot.isKeyDown(\"up\") ){\n setLocation(x, y-1);\n } \n \n removeTouching(Fruit.class);\n if(isTouching(Bomb.class)){\n alive = false;\n }\n \n }",
"private void announcementBtnListener() {\n announcementBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.setScreen(new AnnouncementsScreen(game));\n }\n });\n }",
"@Override\n public void act() {\n }",
"private void onTerminate(Terminated t){\n\t\t//If a device stops, we must remove it from the group\n\t\tActorRef deviceActor = t.getActor();\n\t\tString deviceId = actorsIds.get(deviceActor);\n\t\t\n\t\tlog.info(\"Device actor {} has been terminated\",deviceId);\n\t\t\n\t\tactorsIds.remove(deviceActor);\n\t\tdeviceActors.remove(deviceId);\n\t\t\n\t}",
"public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}",
"public void act() \r\n {\r\n // Add your action code here.\r\n espacio esp=(espacio)getWorld();\r\n Actor act=getOneIntersectingObject(nave.class);//Cuando la nave tome el poder \r\n if(act!=null)\r\n {\r\n for(int i=1;i<=10;i++)//incrementa el poder mediante el metodo solo 1s disparos\r\n esp.poder.incrementar();\r\n getWorld().removeObject(this);\r\n Greenfoot.playSound(\"Poder.wav\");\r\n }\r\n \r\n }",
"public void manageJunction() {\r\n for (Vehicle v : this.getVehicles()) {\r\n v.act();\r\n }\r\n }",
"void playerAdded();",
"@Override\n public void act(float delta) {\n }",
"public void movieDisplay(){\n actor.display();\n }",
"public final void rule__AstActor__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7494:1: ( ( () ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7495:1: ( () )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7495:1: ( () )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7496:1: ()\n {\n before(grammarAccess.getAstActorAccess().getAstActorAction_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7497:1: ()\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7499:1: \n {\n }\n\n after(grammarAccess.getAstActorAccess().getAstActorAction_0()); \n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void memberLeft(ClusterEvent e) {}",
"ArrayList<Actor> getActors();",
"public void act() \n {\n if(Greenfoot.mousePressed(this)){\n World world = getWorld();\n world.removeObject(this);\n }\n }",
"private void registerEvents() {\n createRoomBTN.addActionListener(actionEvent -> {\n chatController.createRoom(roomNameIF.getText());\n roomNameIF.setText(\"\");\n });\n\n backBTN.addActionListener(actionEvent -> {\n if (chatController.getJoinedRooms().size() > 0) chatView.renderChatPanel();\n });\n }",
"public void act() \n {\n moveEnemy();\n checkHealth();\n attacked();\n }",
"public void groupArrived(Group group) {\n waiting.add(group);\n seatAllPossible();\n }",
"@Override\n public boolean update(Actor newActor) {\n \tActor oldActor = this.get(newActor.getID());\n int i = actors.indexOf(oldActor);\n actors.remove(i);\n\n // add the updated product\n actors.add(i, newActor);\n\n return this.saveAll();\n }",
"public void act() \n {\n String worldname = getWorld().getClass().getName();\n if (worldname == \"Level0\")\n setImage(new GreenfootImage(\"vibranium.png\"));\n else if (worldname == \"Level1\")\n setImage(rocket.getCurrentImage());\n setLocation(getX()-8, getY()); \n if (getX() == 0) \n {\n getWorld().removeObject(this);\n }\n \n }",
"@Override\n public void run() {\n cs = new CommStack(this, this.csParams);\n /** time variables to control the <Actor>s lifetime */\n long time_ini; \n /** lifecicle duration in ns */\n long deltaTime; \n /** lifecicle duration in ms */\n long deltaTime_ms;\n setInitialParameters();\n /** start the comunication Thread CommStack */\n cs.start();\n \n /** while the actor is alive, keep updating it every time_pace milliseconds */\n try {\n while (alive && !SimStatus.globalActors.get(id).actorDyingQ()) {\n /** decreases lifetime as the cycles pass */\n lifetime = lifetime - time_pace; \n if (lifetime > 0) {\n /** saves current time in nanoseconds */\n time_ini = System.nanoTime();\n label = moveActor();\n SimStatus.setActorStatus(id, x, y, vx, vy, label);\n /** saves lifecycle duration */\n deltaTime = System.nanoTime() - time_ini;\n deltaTime_ms = TimeUnit.NANOSECONDS.toMillis(deltaTime);\n /** if lifecycle duration is less than the time pace, sleeps for the time remaining */\n if (deltaTime_ms <= time_pace) {\n Thread.sleep(time_pace - deltaTime_ms);\n }\n /** if lifecycle is more than 20% bigger than time pace, launches warning */\n if(deltaTime_ms > 0.2*time_pace) { \n System.err.println(\"WARNING - actor \"+id+\" lifecicle time >20% of time_pace\");\n }\n } else {\n \n /** Starts de dying process */\n System.out.println(\"Actor \" + id + \" lifetime is over...\");\n dying = true;\n /** sets actor status to 'dying' */\n SimStatus.setActorStatus(id, x, y, vx, vy, label, dying);\n /** sleep for some time, waiting for the news to spread */\n Thread.sleep(500);\n }\n }\n /** completes the dying process */\n alive = false;\n cs.join();\n SimStatus.removeActor(id);\n } catch (InterruptedException ex) {\n Logger.getLogger(Actor.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"protected void collidesCallback(){\n\t\tphxService.collidingCallback(this);\n\t}",
"protected void onReactionAdded(String channel, String sender, String receiver, String emojiName) {}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\tUser myUser = new User();\r\n\t\t\t\tmyUsers.add(myUser);\r\n\t\t\t\tSystem.out.println(\"guest added\");\r\n\t\t\t\t\r\n\t\t\t}",
"private void setActor(String actor)\r\n/* 41: */ {\r\n/* 42: 44 */ this.actor = actor;\r\n/* 43: */ }"
] |
[
"0.63131934",
"0.6176395",
"0.6069928",
"0.60325074",
"0.60101396",
"0.59720176",
"0.5935897",
"0.59194434",
"0.58603877",
"0.5859917",
"0.58036965",
"0.577653",
"0.575405",
"0.57205963",
"0.5693338",
"0.56816244",
"0.5600298",
"0.55466455",
"0.5531131",
"0.55282784",
"0.5521966",
"0.5512613",
"0.55007225",
"0.54913515",
"0.549009",
"0.54836017",
"0.5481744",
"0.5481383",
"0.54664516",
"0.54329634",
"0.54285944",
"0.5427472",
"0.5423064",
"0.5420805",
"0.54158455",
"0.53811157",
"0.53583956",
"0.53572136",
"0.5349584",
"0.533849",
"0.5325029",
"0.53215295",
"0.5306819",
"0.5289613",
"0.52868795",
"0.52784014",
"0.5250041",
"0.5247581",
"0.5237067",
"0.52349925",
"0.5233107",
"0.5220208",
"0.5215487",
"0.5215325",
"0.5199233",
"0.5197898",
"0.5186038",
"0.5184942",
"0.51800436",
"0.5172347",
"0.5165457",
"0.5159196",
"0.5149337",
"0.5149299",
"0.51452225",
"0.51430523",
"0.51294357",
"0.51164156",
"0.51071477",
"0.5103422",
"0.5100252",
"0.5097871",
"0.50977856",
"0.5094848",
"0.50930184",
"0.50903636",
"0.5087202",
"0.5076475",
"0.5076475",
"0.5076475",
"0.5076475",
"0.5070008",
"0.5069398",
"0.5053551",
"0.5048603",
"0.5030888",
"0.50260633",
"0.5024169",
"0.5015737",
"0.5005748",
"0.50051767",
"0.5005118",
"0.50035506",
"0.50031036",
"0.49948695",
"0.49944842",
"0.49911866",
"0.49678972",
"0.4964969",
"0.4960151",
"0.4944919"
] |
0.0
|
-1
|
Returns an ordered list of child actors in this group.
|
public SnapshotArray<Actor> getChildren() {
SnapshotArray<com.guidebee.game.engine.scene.Actor>
internalActors = internalGroup.getChildren();
SnapshotArray<Actor> actors = null;
if (internalActors != null) {
actors = new SnapshotArray<Actor>();
for (com.guidebee.game.engine.scene.Actor actor : internalActors) {
actors.add((Actor) actor.getUserObject());
}
}
return actors;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public List<Actor> getActors() {\n System.out.println(\"LENGTH:\"+actors.size());\n return actors;\n }",
"public Human[] getChildren() {\n return children;\n }",
"ArrayList<Actor> getActors();",
"public List<Actor> getAllActors() {\n\t\treturn actors.getAll();\n\t}",
"@Override\r\n\tpublic ArrayList<String> allActors()\r\n\t{\r\n\t\tArrayList<String> sortedActorNames = new ArrayList<String>();\r\n\t\t\r\n\t\tsortedActorNames = actorNames;\r\n\t\t\r\n\t\tCollections.sort(sortedActorNames);\r\n\t\t\r\n\t\treturn sortedActorNames;\r\n\t}",
"public ArrayList<Actor> getActors()\n {\n ArrayList<Actor> a = new ArrayList<Actor>();\n Location loc = this.getLocation();\n for (int i = loc.getRow()-2; i < loc.getRow() + 2; i++) {\n for (int j = loc.getCol()-2; j < loc.getCol() + 2; j++) {\n Location tmpLoc = new Location(i,j);\n if (getGrid().isValid(tmpLoc)) {\n Actor tmpActor = getGrid().get(tmpLoc);\n if (tmpActor != null && tmpActor != this) {\n a.add(tmpActor);\n }\n }\n }\n }\n return a;\n }",
"public ArrayList<CastMember> getActors() \n\t{\n\t\treturn peopleAct;\n\t}",
"public ArrayList<Actor> getActors() {\n ArrayList<Actor> actors = new ArrayList<Actor>();\n Location loc = getLocation();\n for (int row = loc.getRow() - 2; row <= loc.getRow() + 2; row++) {\n for (int col = loc.getCol() - 2; col <= loc.getCol() + 2; col++) {\n if (getGrid().isValid(new Location(row, col))) {\n Actor temp = getGrid().get(new Location(row, col));\n if (temp != null && temp != this) {\n actors.add(temp);\n }\n }\n }\n }\n return actors;\n }",
"public IStatus[] getChildren() {\n\t\treturn adaptee.getChildren();\n\t}",
"public List<ChronologElement> getChildren() {\r\n return children;\r\n }",
"public final List<DodlesActor> getSelectedActors() {\n ArrayList<DodlesActor> result = new ArrayList<DodlesActor>();\n result.addAll(selectedActors);\n return result;\n }",
"public List<PafDimMember> getChildren() {\r\n\t\t\r\n\t\tList<PafDimMember> childList = null;\r\n\t\t\r\n\t\t// If no children are found, return empty array list\r\n\t\tif (children == null) {\r\n\t\t\tchildList = new ArrayList<PafDimMember>();\r\n\t\t} else {\r\n\t\t\t// Else, return pointer to children\r\n\t\t\tchildList = children;\r\n\t\t}\r\n\t\treturn childList;\r\n\t}",
"public ArrayList<Actor> getActors(){\n\t\t\n\t\tArrayList<Location> occupiedLocations = getGrid().getOccupiedLocations();\n\t\toccupiedLocations.remove(getLocation());\n\t\tArrayList<Actor> actors = new ArrayList<Actor>();\n\t\t\n\t\tfor(int i = 0; i < occupiedLocations.size(); i++) {\n\t\t\tactors.add(getGrid().get(occupiedLocations.get(i)));\n\t\t}\n\t\t\n\t\treturn actors;\n\t}",
"public final Collection<DodlesActor> allActors() {\n return all.values();\n }",
"public Vector getChildren()\r\n\t{\r\n\t\treturn m_children;\r\n\t}",
"public Vector getChildren() {\n return this.children;\n }",
"public final Array<DodlesActor> activeActors() {\n return activeActors(true);\n }",
"public String[] listChildren()\n/* */ {\n/* 519 */ int childCount = getChildCount();\n/* 520 */ String[] outgoing = new String[childCount];\n/* 521 */ for (int i = 0; i < childCount; i++) {\n/* 522 */ outgoing[i] = getChild(i).getName();\n/* */ }\n/* 524 */ return outgoing;\n/* */ }",
"public ArrayList<Actor> getActorList() {\n\t\treturn actorList;\n\t}",
"public ArrayList getChildren()\n {\n return children;\n }",
"public Node[] getChildren(){\n return children.values().toArray(new Node[0]);\n }",
"@Override\n\tpublic List<Actor> findAll() {\n\t\treturn actorRepository.findAll();\n\t}",
"public List<String> getChildren() {\n\t\treturn null;\n\t}",
"public String[] getChildList() {\n if (this.children == null) {\n return this.pointsByChild.keySet().toArray(new String[this.pointsByChild.size()]);\n } else {\n return this.children.clone();\n }\n }",
"@Override\n\tpublic List<UPermission> listChild() {\n\t\treturn roleMapper.listChild();\n\t}",
"public String getChildren() {\n\t\treturn children;\n\t}",
"public List<GuiElementBase> getChildren()\n\t\t{ return Collections.unmodifiableList(children); }",
"protected final synchronized Iterator<T> children() {\n if( children == null ) {\n children = Collections.emptyList();\n }\n \n return children.iterator();\n }",
"public String getChildren() {\n return children;\n }",
"public List<Ent> getChildList(){\n\t\tif(this.childList != null){\n\t\t\treturn Collections.unmodifiableList(this.childList);\n\t\t}else{\n\t\t\treturn new ArrayList<Ent>();\n\t\t}\n\t}",
"public List<String> children() {\n return this.children;\n }",
"public List<GameStateChild> getChildren() {\n return null;\n }",
"public Vector<GraphicalLatticeElement> getChildren() {\n\t\tVector<GraphicalLatticeElement> children = new Vector<GraphicalLatticeElement>();\n\t\tif (childrenEdges != null)\n\t\t\tfor (int i = 0; i < childrenEdges.size(); i++) {\n\t\t\t\tEdge edge = childrenEdges.elementAt(i);\n\t\t\t\tchildren.add(edge);\n\t\t\t\tchildren.add(edge.getDestination());\n\t\t\t}\n\t\t\n\t\treturn children;\n\t}",
"public Node[] getChildren() {\n\t\treturn children.toArray(new Node[0]);\n\t}",
"public Collection<ChildType> getChildren();",
"public Enumeration enumerateChildren() {\n return this.children.elements();\n }",
"public ArrayList<Node> getChildren() {\n return children;\n }",
"public ArrayList<LexiNode> getChilds(){\n\t\treturn childs;\n\t}",
"public ParseTree[] getChildren() {\n\t\treturn children;\n\t}",
"public Collection<BaseGenerator> \n getChildren() \n {\n return Collections.unmodifiableCollection(pChildren.values());\n }",
"public ArrayList<Node> getChildren() { return this.children; }",
"public List<Node> getChildren() {\r\n\t\t\tchildren.reset();\r\n\t\t\treturn children;\r\n\t\t}",
"public ArrayList<Node> getChildren(){\n return children;\n }",
"@objid (\"808c084f-1dec-11e2-8cad-001ec947c8cc\")\n public final List<GmNodeModel> getChildren() {\n return new ArrayList<>(this.children);\n }",
"public List<RealObject> getChildren();",
"public List<String> getChildIds() {\n return childIds;\n }",
"public ArrayList<GUIObject> getChildObjects() {\n return new ArrayList<>();\n }",
"public Node[] getChildren(){return children;}",
"protected String[] doListChildren()\n {\n return (String[])m_children.toArray( new String[ m_children.size() ] );\n }",
"public List<String> getChildNames() {\n\t\treturn _childNames;\n\t}",
"@DISPID(4)\n\t// = 0x4. The runtime will prefer the VTID if present\n\t@VTID(10)\n\tcom.gc.IList children();",
"public java.util.List<BinomialTree<KEY, ITEM>> children()\n\t{\n\t\treturn _children;\n\t}",
"public List<TreeNode> getChildren ()\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"getChildren of \" + this);\r\n }\r\n\r\n return children;\r\n }",
"@Override\n\tpublic TreeNode[] getChildren() {\n\t\treturn this.children ;\n\t}",
"public List<TreeNode> getChildren() {\n\t\treturn children;\n\t}",
"public ArrayList<ExpandableListItems_Child> getChildren()\n {\n return children;\n }",
"public Enumeration children()\n {\n return new Enumeration(){\n int i = 0;\n public boolean hasMoreElements()\n {\n return i < mChildren.length;\n }\n\n public Object nextElement()\n {\n return mChildren[i++];\n }\n };\n }",
"protected List<String> getActives() {\n\t\treturn myActives;\n\t}",
"@NotNull\n @Override\n public TreeElement[] getChildren() {\n return callChildren(this, navigationItem);\n }",
"public List<byte[]> getAllActorInfo() {\n // Fetch a actor list with protobuf bytes format from GCS.\n synchronized (GlobalStateAccessor.class) {\n validateGlobalStateAccessorPointer();\n return this.nativeGetAllActorInfo(globalStateAccessorNativePointer);\n }\n }",
"public ArrayList<Node> getChildren() {\n if (children != null) return children;\n children = new ArrayList<>();\n for (Move m : state.getLegalMoves()) {\n Node child = new Node(this, m);\n children.add(child);\n }\n return children;\n }",
"@objid (\"808c0847-1dec-11e2-8cad-001ec947c8cc\")\n public final List<GmNodeModel> getChildren(String role) {\n ArrayList<GmNodeModel> ret = new ArrayList<>(this.children.size());\n for (GmNodeModel c : this.children) {\n if (role.equals(c.getRoleInComposition())) {\n ret.add(c);\n }\n }\n return ret;\n }",
"@Nonnull\n Iterable<? extends T> getChildren();",
"public ArrayList<BTreeNode<E>> getChildren() {\n\t\treturn children;\n\t}",
"Collection<DendrogramNode<T>> getChildren();",
"public String[] getStepActors() {\r\n HistoryStep[] steps = currentProcessInstance.getHistorySteps();\r\n String[] actors = new String[steps.length];\r\n \r\n for (int i = 0; i < steps.length; i++) {\r\n try {\r\n actors[i] = steps[i].getUser().getFullName();\r\n } catch (WorkflowException we) {\r\n actors[i] = \"##\";\r\n }\r\n }\r\n \r\n return actors;\r\n }",
"public List<XML2JSONObject> getChildren() {\r\n return _childs;\r\n }",
"public final Array<DodlesActor> activeActors(boolean highestZIndexFirst) {\n DodlesActor curActiveLayer = getActiveLayer();\n Array<DodlesActor> result = new Array<DodlesActor>();\n\n if (curActiveLayer instanceof BaseDodlesViewGroup) {\n BaseDodlesViewGroup group = (BaseDodlesViewGroup) curActiveLayer;\n\n for (Actor a : (SnapshotArray<Actor>) group.getChildren()) {\n DodlesActor actor = (DodlesActor) a;\n\n if (!actor.isVisible()) {\n continue;\n }\n\n boolean actorLocked = lockedActorIDs.contains(actor.getName());\n\n if (actorLocked != selectingLocked || alphaMap.containsKey(actor.getName())) {\n continue;\n }\n\n result.add(actor);\n }\n }\n\n if (highestZIndexFirst) {\n result.reverse();\n }\n\n return result;\n }",
"public List<EntityHierarchyItem> children() {\n return this.innerProperties() == null ? null : this.innerProperties().children();\n }",
"public final Array<DodlesActor> getLeafActors(DodlesActor actor) {\n Array<DodlesActor> result = new Array<DodlesActor>();\n\n if (actor == null) {\n actor = getActiveLayer();\n }\n\n if ((!selectingLocked && lockedActorIDs.contains(actor.getName())) || alphaMap.containsKey(actor.getName())) {\n return result;\n }\n\n if (actor instanceof BaseDodlesViewGroup) {\n BaseDodlesViewGroup group = (BaseDodlesViewGroup) actor;\n\n Array<Actor> children = new Array<Actor>(group.getChildren());\n children.reverse();\n\n for (Actor child : children) {\n result.addAll(getLeafActors((DodlesActor) child));\n }\n } else {\n result.add(actor);\n }\n\n return result;\n }",
"public ArrayList<Actor> getEnemies() {\n return getGrid().getNeighbors(getLocation());\n }",
"public Collection<Identity> getActorIdentities() {\r\n\t\treturn identities;\r\n\t}",
"public List<MagicPattern> getChildren() {\n\t\treturn children;\n\t}",
"public LinkedList<Node> getChildren() { \r\n LinkedList<Node> nodes = new LinkedList<>();\r\n for(int i=0;i<=size;i++)\r\n nodes.add(children[i]);\r\n return nodes;\r\n }",
"public ArrayList<BoardTree> getChildren() {\n final ArrayList<BoardTree> children = new ArrayList<>();\n\n int[][] possibleMoves = getPossibleMoves(this.board, this.isPlayersMove);\n \n // For each possible move, add a child node\n for (int[] possMove : possibleMoves) {\n if (numNodes >= MAX_NUM_NODES) return children;\n\n final int[][] updatedBoard = applyMove(this.board, possMove);\n \n final BoardTree newChild = new BoardTree(possMove, updatedBoard, this.isPlayersMove);\n\n children.add(newChild);\n }\n\n // If the node we are creating children for does not have any possible moves for it's \n //player, but the opponent does, make this node belong to the other player, and get \n //it's children.\n // This handles the case where a player has \"boxed off\" an area.\n if (possibleMoves.length < 1 && Utils.hasMove(board)) {\n this.isPlayersMove = !this.isPlayersMove;\n return this.getChildren();\n }\n return children;\n }",
"abstract public List<Command> getChildren();",
"List<UIComponent> getChildren();",
"public Iterator<ParseTreeNode> children() {\r\n if ((_children == null) || (_children.size() == 0)) {\r\n return NULL_ITERATOR;\r\n }\r\n return _children.iterator();\r\n }",
"@Override\n\tpublic List<Node> chilren() {\n\t\treturn children;\n\t}",
"public Item2Vector<Concept> getChildren() { return children; }",
"@Override\r\n\tpublic List<TreeNode> getChildren() {\n\t\tif(this.children==null){\r\n\t\t\treturn new ArrayList<TreeNode>();\r\n\t\t}\r\n\t\treturn this.children;\r\n\t}",
"public List<TWidget> getChildren() {\n return children;\n }",
"public Collection<VisualLexiconNode> getChildren() {\n \t\treturn children;\n \t}",
"public int numActors() { return ActorSet.size(); }",
"public @NonNull List<@NonNull Node<@Nullable T>> getChildren() {\n return Collections.unmodifiableList(this.children);\n }",
"public List<Component> getFocusableChildren ()\n {\n return focusTracker.getFocusableChildren ();\n }",
"protected abstract List<T> getChildren();",
"public List<FileNode> getChildren() {\r\n return this.children;\r\n }",
"public Iterator<String> listChildren(T node){\n\t\tT target = node;\n\t\tSet<Edge<T,E>> alledges = this.graph.getEdges(target);\n\t\tList<String> children = new ArrayList<String>();\n\t\tfor(Edge<T, E> e : alledges) {\n\t\t\tchildren.add(e.getChild()+\"(\"+e.getName()+\")\");\n\t\t}\n\t\tCollections.sort(children);\n\t\tIterator<String> itr = children.iterator();\n\t\treturn itr;\n\t}",
"public JodeList children() {\n return new JodeList(node.getChildNodes());\n }",
"@Override\n public LinkedList<ApfsElement> getChildren() {\n return this.children;\n }",
"public FieldActorDescriptor[] getHighlightedActors()\n {\n Object[] objs = list.getSelectedValues();\n FieldActorDescriptor[] result = new FieldActorDescriptor[objs.length];\n for(int i=0; i<objs.length; i++)\n {\n result[i] = (FieldActorDescriptor) objs[i];\n }\n\n return result;\n }",
"public AST[] getChildren()\r\n {\n \tif (children == null) {\r\n \t\tList<AST> temp = new java.util.ArrayList<AST>();\r\n \t\ttemp.addAll(fields);\r\n \t\ttemp.addAll(predicates);\r\n \t\ttemp.addAll(constructors);\r\n \t\ttemp.addAll(methods);\r\n \t\tchildren = (AST[]) temp.toArray(new AST[0]);\r\n \t}\r\n \treturn children;\r\n }",
"public Collection getActs() {\n return acts;\n }",
"public List<BudgetAccountTableRow> getChildren() {\n return this.children;\n }",
"public List<CourseComponent> getChildContainers() {\n List<CourseComponent> childContainers = new ArrayList<>();\n if (children != null) {\n for (CourseComponent c : children) {\n if (c.isContainer())\n childContainers.add(c);\n }\n }\n return childContainers;\n }",
"public Enumeration<Faza> children() {\n\t\tEnumeration<Faza> en;\n\t\tVector<Faza> d = new Vector<Faza>();\n\n\t\tList<Faza> fs = new ArrayList<Faza>();\n\t\tFaza f1 = new Faza();\n\t\tf1.setNazivFaze(\"faza 2\");\n\t\tfs.add(f1);\n\t\tfor (int i = 0; i < fs.size(); i++) {\n\t\t\td.add(fs.get(i));\n\t\t}\n\t\ten = d.elements();\n\t\treturn en;\n\t}",
"public List<State> getChildren();",
"public Vector getChildren() {\n return null;\n }",
"MergeHandler[] getChildren();"
] |
[
"0.70545506",
"0.6725979",
"0.66739416",
"0.6639927",
"0.655418",
"0.65308934",
"0.6265787",
"0.6257428",
"0.6227547",
"0.6226869",
"0.62078744",
"0.6170907",
"0.61609936",
"0.6154139",
"0.61525124",
"0.6139771",
"0.6132558",
"0.6109426",
"0.6072711",
"0.60488003",
"0.60089403",
"0.5993434",
"0.59827924",
"0.597417",
"0.5970706",
"0.59604716",
"0.5959606",
"0.5955248",
"0.59471315",
"0.5936556",
"0.5924547",
"0.59089714",
"0.5904282",
"0.58963245",
"0.58879554",
"0.5884456",
"0.5844128",
"0.58219224",
"0.5808456",
"0.58036304",
"0.5796781",
"0.5788857",
"0.5787052",
"0.57641035",
"0.57628715",
"0.573616",
"0.5732259",
"0.57304543",
"0.57302856",
"0.57262206",
"0.5726022",
"0.5722978",
"0.5693997",
"0.56894606",
"0.5688425",
"0.5672778",
"0.56679755",
"0.566112",
"0.5648705",
"0.56452143",
"0.5641453",
"0.5638181",
"0.5636642",
"0.5635513",
"0.5634034",
"0.563092",
"0.56298655",
"0.5627394",
"0.5623956",
"0.56175226",
"0.5615422",
"0.55968094",
"0.5586119",
"0.55839044",
"0.5581976",
"0.5567732",
"0.556398",
"0.55495274",
"0.554584",
"0.5530465",
"0.55203414",
"0.5495328",
"0.5480578",
"0.54728234",
"0.5472393",
"0.54641175",
"0.5451902",
"0.54507196",
"0.54447263",
"0.5439489",
"0.54380876",
"0.5433877",
"0.543317",
"0.54245645",
"0.541757",
"0.5399047",
"0.53869605",
"0.53799224",
"0.5376002",
"0.53676593"
] |
0.76592237
|
0
|
Called when actors are added to or removed from the group.
|
protected void childrenChanged() {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void addActor(Actor actor) { ActorSet.addElement(actor); }",
"void processActors(ArrayList<Actor> actors);",
"@Override\n\t public void processActors(ArrayList<Actor> actors)\n\t {\n\t for (Actor a : actors)\n\t {\n\t if (a instanceof Flower){\n\t a.removeSelfFromGrid();\n\t }\n\t if (a instanceof Cow){\n\t \t++this.myMilkTank.MilkMenge;\n\t \ta.removeSelfFromGrid();\n\t }\n\t \n\t }\n\t }",
"void add(Actor actor);",
"public void createAndRegisterActors(){\n //stressAppNetworkService.getAbstractNetworkServiceList().forEach((type,ns)->{\n stressAppNetworkService.getChatNetworkServicePluginRootList().forEach(ns->{\n //System.out.println(\"Network Service type: \"+type);\n nsPublicKeyMap.put(ns.getPublicKey(), (ChatNetworkServicePluginRoot) ns);\n ((ChatNetworkServicePluginRoot) ns).setMessageReceiver(this);\n int actorCounter = 0;\n for(ActorProfile actor : actorProfileList){\n createAndRegisterActor(actor,(ChatNetworkServicePluginRoot) ns, actorCounter);\n actorCounter++;\n actorsCreated++;\n report(ReportType.ACTOR_CREATED);\n }\n nsStarted++;\n report(ReportType.NS_STARED);\n });\n }",
"public void collect() {\n\t\tthis.getOwnerArea().unregisterActor(this);\n\t\t\n\t}",
"public void addActor(CastMember actor)\n\t{\n\t\tpeopleAct.add(actor);\n\t}",
"public void processActors(ArrayList<Actor> actors) {\n int count = 0;\n for (Actor temp : actors) {\n if (temp instanceof Critter) {\n count++;\n }\n }\n if (count < courage) {\n changeColor(2);\n } else {\n changeColor(-2);\n }\n }",
"public final void addActor(DodlesActor actor) {\n if (actor.getName() == null) {\n throw new GdxRuntimeException(\"Actor must have a name set!\");\n }\n\n all.put(actor.getName(), actor);\n\n if (actor instanceof BaseDodlesViewGroup) {\n for (Object view : ((BaseDodlesViewGroup) actor).getViews()) {\n BaseDodlesGroup bdgView = (BaseDodlesGroup) view;\n all.put(bdgView.getName(), bdgView);\n }\n }\n\n DodleReference ref = references.get(actor.getTrackingID());\n\n if (ref != null) {\n ref.addRef(actor.getName());\n }\n }",
"public void addActor(){\n actorProfileList.add(new ActorProfile());\n }",
"public void processActors(ArrayList<Actor> actors)\n {\n for (Actor a : actors)\n {\n if ( a instanceof Rock )\n a.removeSelfFromGrid();\n }\n }",
"public void processActors(ArrayList<Actor> actors)\n {\n int n = actors.size();\n if (n < courage) {\n brighter();\n } else {\n darken();\n }\n }",
"public void update()\n {\n reinit(viewer.getScene().getActors());\n\n list.invalidate();\n invalidate();\n repaint();\n }",
"private void initPhotoActorsReference() {\n mActorBefore = mActorBeforeContent;\n mActorNow = mActorNowContent;\n mActorNext = mActorNextContent;\n }",
"public interface EventActorListener {\n\n public void onFinished(ActorDet actor);\n}",
"public void act() \r\n {\r\n Actor hitMC = getOneIntersectingObject(MC.class);\r\n if (hitMC != null) {\r\n ((Hall) getWorld()).player.health++;\r\n getWorld().removeObject(this);\r\n }\r\n }",
"public final void rule__AstActor__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7525:1: ( ( 'actor' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7526:1: ( 'actor' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7526:1: ( 'actor' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7527:1: 'actor'\n {\n before(grammarAccess.getAstActorAccess().getActorKeyword_1()); \n match(input,70,FOLLOW_70_in_rule__AstActor__Group__1__Impl15563); \n after(grammarAccess.getAstActorAccess().getActorKeyword_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 }",
"public void memberJoined(ClusterEvent e) {}",
"public void act() \n {\n if(foundAvatar())\n {\n int delta = getFun();\n timeRem.addTime(delta);\n getWorld().removeObject(this);\n // setLocation(Greenfoot.getRandomNumber(800), Greenfoot.getRandomNumber(600));\n }\n\n }",
"public void act() \n {\n\n World wrld = getWorld();\n if(frameCounter >= frameWait)\n {\n super.act();\n frameCounter = 0;\n }\n else\n {\n frameCounter++;\n }\n if (dying)\n deathcounter++;\n GreenfootImage trans = getImage();\n trans.scale(500,500);\n setImage(trans);\n setLocation(getX(), (getY()));\n\n if (deathcounter > 10)\n {\n wrld.removeObject(this);\n ((Universe)wrld).score += 50;\n }\n else if (getX() < 10)\n wrld.removeObject(this);\n }",
"private void fireActivationEvent()\n {\n Set<DataGroupInfo> activated;\n Set<DataGroupInfo> deactivated;\n synchronized (this)\n {\n activated = New.set(myDeltaActivatedGroups);\n myDeltaActivatedGroups.clear();\n deactivated = New.set(myDeltaDeactivatedGroups);\n myDeltaDeactivatedGroups.clear();\n }\n\n myController.getToolbox().getEventManager().publishEvent(new ActiveDataGroupsChangedEvent(this, activated, deactivated));\n myActivationChangeSupport.notifyListeners(r -> r.run());\n }",
"public void processActors(ArrayList<Actor> actors) {\n\t\t\n\t\tfor(int i = 0; i < actors.size(); i++) {\n\t\t\tActor a = actors.get(i);\n\t\t\tLocation current = a.getLocation();\n\t\t\tLocation moveTo = a.getLocation().getAdjacentLocation(current.getDirectionToward(getLocation()));\n\t\t\t\n\t\t\tif(getGrid().isValid(moveTo) && getGrid().get(moveTo) == null) {\n\t\t\t\ta.moveTo(moveTo);\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void act() \r\n {\r\n addDrone();\r\n if(droneTimer>0)\r\n {\r\n droneTimer--;\r\n }\r\n }",
"public void moveActors() {\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\t\t\tfor (int column = 0; column < battlefield.length; column++) {\n\t\t\t\tif (battlefield[row][column].getElf() != null) {\n\t\t\t\t\tbattlefield[row][column].getElf().move(battlefield, row,\n\t\t\t\t\t\t\tcolumn);\n\t\t\t\t}\n\t\t\t\tif (battlefield[row][column].getOrc() != null) {\n\t\t\t\t\tbattlefield[row][column].getOrc().move(battlefield, row,\n\t\t\t\t\t\t\tcolumn);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public void setActor(Actor actor);",
"private void initActors() {\r\n\t\t// Prepare everything\r\n\t\tinitLabels();\r\n\t\tinitButtons();\r\n\t\t// Initialize our Actors\r\n\t\tinitTable();\r\n\t}",
"@Override\n\tpublic void update(GameContainer arg0, int delta) throws SlickException {\n\t\tfor (Actors a : actors) {\n\t\t\ta.move();\n\t\t}\n\t}",
"@Override\n void onCollide(Actor other, Contact contact) {\n }",
"public void representDataOnActors(String type)\r\n\t{\n\t}",
"void remove(Actor actor);",
"public int numActors() { return ActorSet.size(); }",
"public void onHitOther(Actor other) {\n\t\t\r\n\t}",
"void addDemoActors(List<Actor> actorList)\n {\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTnImPW4s91ZjlXIsxV2nrHDRc6Ow-EuzDn1w&usqp=CAU\", \"Jitendra Kumar\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSb3Me0agAUxj_vqbJuKq7Uadd4tlDXOBLs_A&usqp=CAU\", \"Navin Kasturia\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ4lZGhdpg6KelA9EKsXhTJ25WTYxG4i70Vew&usqp=CAU\", \"Badri Chavan\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTNLnBFZ0JIGx7MNjtnjlOhvBgYXsvXi0iv9g&usqp=CAU\", \"Pankaj Tripathi\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ6tpXiB_461OEMpZgurzjOAhAU9gMXL9fqLQ&usqp=CAU\", \"Nawazuddin Siddiqui\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQeTKD3bdHxgiFYLV1L--zF8IFE65m9u2UHLg&usqp=CAU\", \"Mithila Palkar\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSHAaZKDQs3Yvcwf-6LONwIGyFWI6eviDbbHg&usqp=CAU\", \"Barkha singh\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSd0dg__IbxMiMurrmUiPba_EWgZn7IWVYepw&usqp=CAU\", \"Ahsas Channa\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS7F-vmS5aa6ZuQoqr77dN49K9VJl1E-BwNXg&usqp=CAU\", \"Manoj Bajpayee\")) ;\n actorList.add(new Actor(\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSebkgK0lyKUaqDQ-RIqIB0qXJWJsffl5xaeg&usqp=CAU\", \"Pratik Gandhi\")) ;\n }",
"@Override\r\n\t\tpublic void handle(long arg0) {\n\t\t\tact(arg0);\r\n\t\t\tObservableList actors = getChildren();\r\n\t\t\tfor(int i=0; i<actors.size(); i++) {\r\n\t\t\t\tif(Actor.class.isInstance(actors.get(i))) {\r\n\t\t\t\t\t((Actor)actors.get(i)).act(arg0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"void setActorId(int actorID) {\n this.actorID = actorID;\n }",
"public void act()\n {\n if (health == 0)\n {\n this.remove();\n }\n }",
"public final void rule__AstExternalActor__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10872:1: ( ( 'actor' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10873:1: ( 'actor' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10873:1: ( 'actor' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10874:1: 'actor'\n {\n before(grammarAccess.getAstExternalActorAccess().getActorKeyword_2()); \n match(input,70,FOLLOW_70_in_rule__AstExternalActor__Group__2__Impl22160); \n after(grammarAccess.getAstExternalActorAccess().getActorKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void initDefaultActors() {\n\t\tactors.add(new Switcher(viewPort, 500));\r\n\t\tactors.add(new Rotator(viewPort, 100, 1, 0, 250));\r\n\t\tactors.add(new Rotator(viewPort, -300, -1.3, 0, 200));\r\n//\t\tactors.add(new MovingBar(viewPort, -500));\r\n//\t\tMovingBar temp = new MovingBar(viewPort, -800); temp.setSpeed(2);\r\n//\t\tactors.add(temp);\r\n//\t\tactors.add(new RotatingBen(viewPort, -1400, viewPort.width/2, 0, 1, 100));\r\n//\t\tactors.add(new RotatingRectangle(viewPort, -1800, viewPort.width/2-80, 0, 1, 160));\r\n//\t\tactors.add(new RotatingDoubleCross(viewPort, -2100, 100));\r\n//\t\t\r\n//\t\tactors.add(new RotatingWhiteBar(viewPort, -3000, viewPort.width/2, 0, 1, 100));\r\n\t\t\r\n\t\t//actors.add(new Rotator(viewPort, -3200, 2, 0, 300));\r\n\t\t//actors.add(new DoubleBar(viewPort, -4000));\r\n\t\t//actors.add(new RotatingSwagRectangle(viewPort, 600, viewPort.width/2-50, 0, 1, 100));\r\n\t\t//actors.add(new movingBar(viewPort, -1000));\r\n\t\t//ColorChanger switch1 = new ColorChanger(50, 1000, this);\r\n\t\t//test.setBoundaries(leftX, rightX, 200, 950);\r\n\t}",
"public void removeActor(Actor act) { ActorSet.removeElement(act); }",
"public TraitGuiListener(){\n\t\tplugin = RacesAndClasses.getPlugin();\n\t\tBukkit.getPluginManager().registerEvents(this, plugin);\n\t}",
"public void add(T actor)\n {\n\tif (actor == null)\n\t throw new IllegalArgumentException(\"actor cannot be null.\");\n\n\tboolean _shouldCheck = actor.isChecked() || actors.size < minCheckCount;\n\tactor.setActorGroup(this);\n\tactors.add(actor);\n\tif (_shouldCheck)\n\t actor.setChecked(true);\n }",
"@Override\n\tpublic void add() {\n\t\tSystem.out.println(\"前置通知\");\n\t\ttarget.add();\n\t\tSystem.out.println(\"后置通知\");\n\t}",
"protected void onCollision(Actor other) {\r\n\r\n\t}",
"@Override\r\n\tpublic <T extends Actor> void performAs(T actor) {\n\t\tactor.attemptsTo(Click.on(NewToursComponents.REGISTER),//Accion de dar click al componente especifico mapeado\r\n\t\t\t\tClick.on(newtoursregister));\r\n\t\t\r\n\t}",
"public void act()\n {\n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Cabbage(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Eggplant(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Onion(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(300) < 3)\n {\n addObject(new Pizza(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(400) < 3)\n {\n addObject(new Cake(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(400) < 3)\n {\n addObject(new Icecream(), Greenfoot.getRandomNumber(600), 0);\n }\n countTime();\n }",
"public void addActor(Actor actor) {\n internalGroup.addActor(actor.internalActor);\n actor.setParent(this);\n actor.setStage(getStage());\n }",
"public void updatePanel(Actor actor){}",
"void onUserAdded();",
"public void updateDrawingOrder(){\n\n //get all actors in the objectStage\n Array<Actor> actorsList = objectStage.getActors();\n actorsList.sort(new ActorComparator());\n }",
"public MyContactListener(){\n super();\n bodiesToRemove = new Array<Body>();\n EnemyToRemove = new Array<Body>();\n\n\n\n }",
"public void act() \n {\n mouse = Greenfoot.getMouseInfo();\n \n // Removes the achievement after its duration is over if its a popup (when it pops up during the game)\n if(popup){\n if(popupDuration == 0) getWorld().removeObject(this);\n else popupDuration--;\n }\n // Displays the decription of the achievement when the user hovers over it with the mouse\n else{\n if(Greenfoot.mouseMoved(this)) drawDescription();\n if(Greenfoot.mouseMoved(null) && !Greenfoot.mouseMoved(this)) drawMedal();\n }\n }",
"public void addActor(String path) throws IOException {\r\n\t\tactors.add(ImageIO.read(new File(path)));\r\n\t}",
"public void act() // method act\n {\n moveBear(); //lakukan method movebear\n objectDisappear(); // lakukan method objeectDisappear\n }",
"@Override\n public void collidedWith (Participant p)\n {\n \n }",
"@Override\n \tpublic void addActions() {\n \t\t\n \t}",
"@Override\n protected void hookUpActionListeners() {\n }",
"public void moveActor();",
"@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}",
"public void act() {\n\t\tfor (Manager manager : managers.values())\n\t\t\tmanager.act();\n\t\t\n\t\tif (hasPriority == Priority.ARMY && armyQueue.size() > 0) {\n\t\t\t//Tell ArmyManager to build top unit in queue\n\t\t}\n\t\telse if (hasPriority == Priority.BUILDINGS && buildingQueue.size() > 0) {\n\t\t\t//Tell BuildManager to build top building in queue\n\t\t}\n\t\telse if (hasPriority == Priority.WORKERS) {\n\t\t\t//ResourceManager has requested more workers\n\t\t}\n\t}",
"private void onAddRole() {\n\t\troleProxy.addRoleToUser(user, selectedRole);\n\t}",
"public void act()\n {\n addBox();\n }",
"public abstract void onRemoveAction();",
"public void addMovie(String name, String[] actors) {\n\t\t\n\t\tArrayList<Actor> movieActors = new ArrayList<>(); // list of actors in the movie\n\t\tMovie newMovie = new Movie(name, movieActors);\n\t\tboolean addedMovie = false;\n\t\tfor(Movie movie : this.movieList) {\n\t\t\tif(movie.getName().equals(newMovie.getName())) {\n\t\t\t\taddedMovie = true;\n\t\t\t}\n\t\t}\n\t\tif(addedMovie == false) {\n\t\t\tArrayList<Movie> actorMovies = new ArrayList<>(); //list of movies with actor in\n\t\t\tthis.movieList.add(newMovie);\n\t\t\tactorMovies.add(newMovie);\n\t\t\tfor(String actorName: actors) {\n\t\t\t\tActor newActor = new Actor(actorName, actorMovies);\n\t\t\t\tmovieActors.add(newActor);\n\t\t\t\tboolean added = false;\n\t\t\t\tfor(Actor actor : this.actorList) {\n\t\t\t\t\tif (actor.getName().equals(newActor.getName())) {\n\t\t\t\t\t\tadded = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(added == false) this.actorList.add(newActor);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic boolean addActor(String v)\r\n\t{\r\n\t\tActor newActor = new Actor(v);\r\n\t\t\r\n\t\tif(!graph.containsVertex(newActor))\r\n\t\t{\r\n\t\t\tgraph.addVertex(newActor);\r\n\t\t\tactorNames.add(v);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void act()\n {\n // handle key events\n String key = Greenfoot.getKey();\n if (key != null)\n {\n handleKeyPress(key);\n } \n\n // handle mouse events\n if (startGameButton.wasClicked())\n {\n handleStartGame();\n }\n }",
"public void addActionListeners() {\n\t\tApp.sc.createListener(\"/\" + this.getID() + \"/action/sent\", new OSCListener() {\n\t\t\t@Override\n\t\t\tpublic void acceptMessage(Date time, OSCMessage message) {\n\t\t\t\tConnector actionOutConnector = getConnector(ConnectorType.ACTION_OUT);\n\t\t\t\tactionOutConnector.flashConnection();\n\t\t\t}\n\t\t});\n\t}",
"public void addActor(Actor actor) {\n\t\tObjects.requireNonNull(actor);\n\t\tmap.addActor(actor, this);\n\t}",
"@Override\n\tpublic void action() {\n\t\t_agj.addBehaviour(new RecibirDistritos(_agj));\n\t\t_agj.addBehaviour(new RecibirMonedas(_agj));\n\t}",
"public void act() \r\n {\r\n Controller world = (Controller) getWorld();\r\n player = world.getPlayer();\r\n if (this.isTouching(Player.class))\r\n {\r\n player.minusHealth(5);\r\n world.removeObject(this);\r\n }\r\n }",
"public void agentAdded(Simulation simulation, IAgent agent) {\n }",
"public void dispatch(EventListener[] aListeners)\n {\n for (int i = aListeners.length; --i >= 0; )\n {\n MemberListener target = (MemberListener) aListeners[i];\n\n switch (getId())\n {\n case MEMBER_JOINED:\n target.memberJoined(this);\n break;\n\n case MEMBER_LEAVING:\n target.memberLeaving(this);\n break;\n\n case MEMBER_LEFT:\n target.memberLeft(this);\n break;\n }\n }\n }",
"public void updateCollisionGroup(){\n\t\tcollisionGroup = new CollisionGroup();\n\t\t\n\t\t//Adds tile from the Screen into the collisionGroup.\n\t\tfor(int x = 0; x<getScreen().getNumOfTilesX(); x++){\n\t\t\tfor(int y = 0; y<getScreen().getNumOfTilesY(); y++){\n\t\t\t\t\n\t\t\t\tTile sTile = getScreen().getTile(x, y);\n\t\t\t\tcollisionGroup.add(sTile);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Adds the Player to the collisionGroup.\n\t\tif(player != null){\n\t\t\tcollisionGroup.add(getPlayer());\n\t\t}\n\t}",
"public void act() \n {\n // Add your action code here.\n // get the Player's location\n if(!alive) return;\n \n int x = getX();\n int y = getY();\n \n // Move the Player. The setLocation() method will move the Player to the new\n // x and y coordinates.\n \n if( Greenfoot.isKeyDown(\"right\") ){\n setLocation(x+1, y);\n } else if( Greenfoot.isKeyDown(\"left\") ){\n setLocation(x-1, y);\n } else if( Greenfoot.isKeyDown(\"down\") ){\n setLocation(x, y+1);\n } else if( Greenfoot.isKeyDown(\"up\") ){\n setLocation(x, y-1);\n } \n \n removeTouching(Fruit.class);\n if(isTouching(Bomb.class)){\n alive = false;\n }\n \n }",
"private void announcementBtnListener() {\n announcementBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.setScreen(new AnnouncementsScreen(game));\n }\n });\n }",
"@Override\n public void act() {\n }",
"private void onTerminate(Terminated t){\n\t\t//If a device stops, we must remove it from the group\n\t\tActorRef deviceActor = t.getActor();\n\t\tString deviceId = actorsIds.get(deviceActor);\n\t\t\n\t\tlog.info(\"Device actor {} has been terminated\",deviceId);\n\t\t\n\t\tactorsIds.remove(deviceActor);\n\t\tdeviceActors.remove(deviceId);\n\t\t\n\t}",
"public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}",
"public void act() \r\n {\r\n // Add your action code here.\r\n espacio esp=(espacio)getWorld();\r\n Actor act=getOneIntersectingObject(nave.class);//Cuando la nave tome el poder \r\n if(act!=null)\r\n {\r\n for(int i=1;i<=10;i++)//incrementa el poder mediante el metodo solo 1s disparos\r\n esp.poder.incrementar();\r\n getWorld().removeObject(this);\r\n Greenfoot.playSound(\"Poder.wav\");\r\n }\r\n \r\n }",
"public void manageJunction() {\r\n for (Vehicle v : this.getVehicles()) {\r\n v.act();\r\n }\r\n }",
"void playerAdded();",
"@Override\n public void act(float delta) {\n }",
"public void movieDisplay(){\n actor.display();\n }",
"public final void rule__AstActor__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7494:1: ( ( () ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7495:1: ( () )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7495:1: ( () )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7496:1: ()\n {\n before(grammarAccess.getAstActorAccess().getAstActorAction_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7497:1: ()\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7499:1: \n {\n }\n\n after(grammarAccess.getAstActorAccess().getAstActorAction_0()); \n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void memberLeft(ClusterEvent e) {}",
"ArrayList<Actor> getActors();",
"public void act() \n {\n if(Greenfoot.mousePressed(this)){\n World world = getWorld();\n world.removeObject(this);\n }\n }",
"private void registerEvents() {\n createRoomBTN.addActionListener(actionEvent -> {\n chatController.createRoom(roomNameIF.getText());\n roomNameIF.setText(\"\");\n });\n\n backBTN.addActionListener(actionEvent -> {\n if (chatController.getJoinedRooms().size() > 0) chatView.renderChatPanel();\n });\n }",
"public void act() \n {\n moveEnemy();\n checkHealth();\n attacked();\n }",
"public void groupArrived(Group group) {\n waiting.add(group);\n seatAllPossible();\n }",
"@Override\n public boolean update(Actor newActor) {\n \tActor oldActor = this.get(newActor.getID());\n int i = actors.indexOf(oldActor);\n actors.remove(i);\n\n // add the updated product\n actors.add(i, newActor);\n\n return this.saveAll();\n }",
"public void act() \n {\n String worldname = getWorld().getClass().getName();\n if (worldname == \"Level0\")\n setImage(new GreenfootImage(\"vibranium.png\"));\n else if (worldname == \"Level1\")\n setImage(rocket.getCurrentImage());\n setLocation(getX()-8, getY()); \n if (getX() == 0) \n {\n getWorld().removeObject(this);\n }\n \n }",
"@Override\n public void run() {\n cs = new CommStack(this, this.csParams);\n /** time variables to control the <Actor>s lifetime */\n long time_ini; \n /** lifecicle duration in ns */\n long deltaTime; \n /** lifecicle duration in ms */\n long deltaTime_ms;\n setInitialParameters();\n /** start the comunication Thread CommStack */\n cs.start();\n \n /** while the actor is alive, keep updating it every time_pace milliseconds */\n try {\n while (alive && !SimStatus.globalActors.get(id).actorDyingQ()) {\n /** decreases lifetime as the cycles pass */\n lifetime = lifetime - time_pace; \n if (lifetime > 0) {\n /** saves current time in nanoseconds */\n time_ini = System.nanoTime();\n label = moveActor();\n SimStatus.setActorStatus(id, x, y, vx, vy, label);\n /** saves lifecycle duration */\n deltaTime = System.nanoTime() - time_ini;\n deltaTime_ms = TimeUnit.NANOSECONDS.toMillis(deltaTime);\n /** if lifecycle duration is less than the time pace, sleeps for the time remaining */\n if (deltaTime_ms <= time_pace) {\n Thread.sleep(time_pace - deltaTime_ms);\n }\n /** if lifecycle is more than 20% bigger than time pace, launches warning */\n if(deltaTime_ms > 0.2*time_pace) { \n System.err.println(\"WARNING - actor \"+id+\" lifecicle time >20% of time_pace\");\n }\n } else {\n \n /** Starts de dying process */\n System.out.println(\"Actor \" + id + \" lifetime is over...\");\n dying = true;\n /** sets actor status to 'dying' */\n SimStatus.setActorStatus(id, x, y, vx, vy, label, dying);\n /** sleep for some time, waiting for the news to spread */\n Thread.sleep(500);\n }\n }\n /** completes the dying process */\n alive = false;\n cs.join();\n SimStatus.removeActor(id);\n } catch (InterruptedException ex) {\n Logger.getLogger(Actor.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"protected void collidesCallback(){\n\t\tphxService.collidingCallback(this);\n\t}",
"protected void onReactionAdded(String channel, String sender, String receiver, String emojiName) {}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\tUser myUser = new User();\r\n\t\t\t\tmyUsers.add(myUser);\r\n\t\t\t\tSystem.out.println(\"guest added\");\r\n\t\t\t\t\r\n\t\t\t}",
"private void setActor(String actor)\r\n/* 41: */ {\r\n/* 42: 44 */ this.actor = actor;\r\n/* 43: */ }"
] |
[
"0.63131934",
"0.6176395",
"0.6069928",
"0.60325074",
"0.60101396",
"0.59720176",
"0.5935897",
"0.59194434",
"0.58603877",
"0.5859917",
"0.58036965",
"0.577653",
"0.575405",
"0.57205963",
"0.5693338",
"0.56816244",
"0.5600298",
"0.55466455",
"0.5531131",
"0.55282784",
"0.5521966",
"0.5512613",
"0.55007225",
"0.54913515",
"0.549009",
"0.54836017",
"0.5481744",
"0.5481383",
"0.54664516",
"0.54329634",
"0.54285944",
"0.5427472",
"0.5423064",
"0.5420805",
"0.54158455",
"0.53811157",
"0.53583956",
"0.53572136",
"0.5349584",
"0.533849",
"0.5325029",
"0.53215295",
"0.5306819",
"0.5289613",
"0.52868795",
"0.52784014",
"0.5250041",
"0.5247581",
"0.5237067",
"0.52349925",
"0.5233107",
"0.5220208",
"0.5215487",
"0.5215325",
"0.5199233",
"0.5197898",
"0.5186038",
"0.5184942",
"0.51800436",
"0.5172347",
"0.5165457",
"0.5159196",
"0.5149337",
"0.5149299",
"0.51452225",
"0.51430523",
"0.51294357",
"0.51164156",
"0.51071477",
"0.5103422",
"0.5100252",
"0.5097871",
"0.50977856",
"0.5094848",
"0.50930184",
"0.50903636",
"0.5087202",
"0.5076475",
"0.5076475",
"0.5076475",
"0.5076475",
"0.5070008",
"0.5069398",
"0.5053551",
"0.5048603",
"0.5030888",
"0.50260633",
"0.5024169",
"0.5015737",
"0.5005748",
"0.50051767",
"0.5005118",
"0.50035506",
"0.50031036",
"0.49948695",
"0.49944842",
"0.49911866",
"0.49678972",
"0.4964969",
"0.4960151",
"0.4944919"
] |
0.0
|
-1
|
Returns the transform for this group's coordinate system.
|
protected Matrix4 computeTransform() {
return internalGroup.computeTransform();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public AffineTransform getTransform()\r\n\t{\r\n\t\treturn _g2.getTransform();\r\n\t}",
"public AffineTransform getTransform() {\n return new AffineTransform(transform);\n }",
"public Transform getTransform () {\n\t\torg.jbox2d.common.Transform trans = body.getTransform();\n\t\ttransform.vals[Transform.POS_X] = trans.p.x;\n\t\ttransform.vals[Transform.POS_Y] = trans.p.y;\n\t\ttransform.vals[Transform.COS] = trans.q.c;\n\t\ttransform.vals[Transform.SIN] = trans.q.s;\n\t\treturn transform;\n\t}",
"public Matrix getTransform()\n {\n return transform;\n }",
"public Transform getTransform() {return transform;}",
"public Transform getTransformation() {\n Transform t = Transform.newTranslation(position);\n t = t.compose(Transform.newScale(scale));\n t = t.compose(Transform.newXRotation(rotation.x));\n t = t.compose(Transform.newYRotation(rotation.y));\n t = t.compose(Transform.newZRotation(rotation.z));\n return t;\n }",
"public Matrix4 getTransformMatrix() {\n return transformMatrix;\n }",
"public AffineTransform getTransform()\n/* */ {\n/* 194 */ return this.transform;\n/* */ }",
"public Transformation getTransform() {\n\t\treturn mk;\n\t}",
"@Override\n\t\tpublic GLGroupTransform transforms() { return transforms; }",
"public TransformGroup getTransformGroup() {\r\n return transformGroup;\r\n }",
"public final Transformation getTransformation() {\n\t\treturn transform;\n\t}",
"public RMTransform getTransform()\n{\n return new RMTransform(getX(), getY(), getRoll(), getWidth()/2, getHeight()/2,\n getScaleX(), getScaleY(), getSkewX(), getSkewY());\n}",
"protected Matrix4 computeTransform() {\n return super.computeTransform();\n }",
"@Override\n\tpublic RectTransform getTransform() {\n\t\treturn (RectTransform) super.getTransform();\n\t}",
"public AffineTransform getAffineTransform() {\n return affineTransform;\n }",
"public PVector getTransformedPosition(){\n\t\treturn gui.getTransform().transform(position);\n\t}",
"@java.lang.Override\n public godot.wire.Wire.Transform getTransformValue() {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }",
"Transforms getTransforms();",
"public Transform getTransform(){\n switch (this){\n case promote_terminals: return new SubexpressionTransformation.TerminalChain();\n case promote_redundant: return new SubexpressionTransformation.RedundantChain();\n case promote_summary: return new SubexpressionTransformation.SummarisingChain();\n case promote_chomsky: return new SubexpressionTransformation.ChomskyChain();\n case filter: return new RelationFilterTransformation();\n case order: return new EvaluationOrderTransformation(true, true);\n default: throw new RuntimeException(\"Unreachable\");\n }\n }",
"@java.lang.Override\n public godot.wire.Wire.Transform2D getTransform2DValue() {\n if (transform2DValueBuilder_ == null) {\n if (typeCase_ == 9) {\n return (godot.wire.Wire.Transform2D) type_;\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n } else {\n if (typeCase_ == 9) {\n return transform2DValueBuilder_.getMessage();\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n }\n }",
"@java.lang.Override\n public godot.wire.Wire.Transform2D getTransform2DValue() {\n if (typeCase_ == 9) {\n return (godot.wire.Wire.Transform2D) type_;\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n }",
"godot.wire.Wire.Transform2D getTransform2DValue();",
"@java.lang.Override\n public godot.wire.Wire.Transform getTransformValue() {\n if (transformValueBuilder_ == null) {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n } else {\n if (typeCase_ == 14) {\n return transformValueBuilder_.getMessage();\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }\n }",
"Transform<A, B> getTransform();",
"public Transform getRotationTransformation() {\n Transform t = Transform.newXRotation(rotation.x);\n t = t.compose(Transform.newYRotation(rotation.y));\n t = t.compose(Transform.newZRotation(rotation.z));\n return t;\n }",
"@java.lang.Override\n public godot.wire.Wire.TransformOrBuilder getTransformValueOrBuilder() {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }",
"godot.wire.Wire.Transform getTransformValue();",
"@Override\n final public String getTransform() {\n String transform = ScijavaGsonHelper.getGson(context).toJson(rt, RealTransform.class);\n //logger.debug(\"Serialization result = \"+transform);\n return transform;\n }",
"public int getTransformTo() {\n\t\treturn transformTo;\n\t}",
"public AffineTransform getTm(\n )\n {return tm;}",
"public AffineTransform getGraphicTx() {\n return transformManager.getGraphicTx();\n }",
"@java.lang.Override\n public godot.wire.Wire.TransformOrBuilder getTransformValueOrBuilder() {\n if ((typeCase_ == 14) && (transformValueBuilder_ != null)) {\n return transformValueBuilder_.getMessageOrBuilder();\n } else {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }\n }",
"public AffineTransform getTlm(\n )\n {return tlm;}",
"public AffineTransform getOldAffineTransform ( )\n {\n return oldAffineTransformation;\n }",
"@Override\r\n\tprotected AffineTransform getPointTransformation() {\n\t\treturn null;\r\n\t}",
"public AffineTransform getCtm(\n )\n {return ctm;}",
"private AffineTransform createTransform() {\n Dimension size = getSize();\n Rectangle2D.Float panelRect = new Rectangle2D.Float(\n BORDER,\n BORDER,\n size.width - BORDER - BORDER,\n size.height - BORDER - BORDER);\n AffineTransform tr = AffineTransform.getTranslateInstance(panelRect.getCenterX(), panelRect.getCenterY());\n double sx = panelRect.getWidth() / mapBounds.getWidth();\n double sy = panelRect.getHeight() / mapBounds.getHeight();\n double scale = min(sx, sy);\n tr.scale(scale, -scale);\n tr.translate(-mapBounds.getCenterX(), -mapBounds.getCenterY());\n return tr;\n }",
"public String getTransformType();",
"@Override\n\tpublic GAffineTransform getTransform(GeoConicND conic, Coords M,\n\t\t\tCoords[] ev) {\n\t\ttransform.setTransform(ev[0].getX(), ev[0].getY(), ev[1].getX(),\n\t\t\t\tev[1].getY(), M.getX(), M.getY());\n\n\t\treturn transform;\n\t}",
"@Override\n public AffineTransform getAffineTransform() {\n return null;\n }",
"@Override\n\tpublic Mat GetTranslateMatrix()\n\t{\n\t\treturn mT;\n\t}",
"public Matrix4f getWorldMatrix() {\n\n\t\t// First identity\n\t\tmTranformation.identity();\n\n\t\t// Translate\n\t\tmTranformation.translate(position);\n\n\t\t// Rotate object at the center of the texture\n\t\tfloat x = 0.5f * mWidth;\n\t\tfloat y = 0.5f * mHeight;\n\n\t\t// Do rotating\n\t\tmTranformation.translate(new Vector3f(x, y, 0));\n\t\tmTranformation.rotateZ((float) Math.toRadians(rotation.z));\n\t\tmTranformation.translate(new Vector3f(-x, -y, 0));\n\n\t\t// mTranformation.scale(scale, scale, 1);\n\t\tmTranformation.scaleAround(scale, x, y, 0);\n\n\t\treturn mTranformation;\n\t}",
"public Matrix4f getTranslationMat() {\n\t\treturn m_xforms[NvCameraXformType.MAIN].m_translateMat;\n\t}",
"public RMTransform getTransformFromShape(RMShape aShape)\n{\n // The transform from parent is just our inverse transform, transform from child is just child's transform\n if(aShape==getParent())\n return getTransformInverse();\n if(aShape!=null && this==aShape.getParent())\n return aShape.getTransform();\n\n // Return the inverse of transform to shape\n return getTransformToShape(aShape).invert();\n}",
"TransformationFactory getTransformationFactory();",
"@java.lang.Override\n public godot.wire.Wire.Transform2DOrBuilder getTransform2DValueOrBuilder() {\n if ((typeCase_ == 9) && (transform2DValueBuilder_ != null)) {\n return transform2DValueBuilder_.getMessageOrBuilder();\n } else {\n if (typeCase_ == 9) {\n return (godot.wire.Wire.Transform2D) type_;\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n }\n }",
"public AffineTransform getInitialCtm(\n )\n {\n AffineTransform initialCtm;\n if(getScanner().getRenderContext() == null) // Device-independent.\n {\n initialCtm = new AffineTransform(); // Identity.\n }\n else // Device-dependent.\n {\n IContentContext contentContext = getScanner().getContentContext();\n Dimension2D canvasSize = getScanner().getCanvasSize();\n\n // Axes orientation.\n RotationEnum rotation = contentContext.getRotation();\n switch(rotation)\n {\n case Downward:\n initialCtm = new AffineTransform(1, 0, 0, -1, 0, canvasSize.getHeight());\n break;\n case Leftward:\n initialCtm = new AffineTransform(0, 1, 1, 0, 0, 0);\n break;\n case Upward:\n initialCtm = new AffineTransform(-1, 0, 0, 1, canvasSize.getWidth(), 0);\n break;\n case Rightward:\n initialCtm = new AffineTransform(0, -1, -1, 0, canvasSize.getWidth(), canvasSize.getHeight());\n break;\n default:\n throw new NotImplementedException();\n }\n\n // Scaling.\n Rectangle2D contentBox = contentContext.getBox();\n Dimension2D rotatedCanvasSize = rotation.transform(canvasSize);\n initialCtm.scale(\n rotatedCanvasSize.getWidth() / contentBox.getWidth(),\n rotatedCanvasSize.getHeight() / contentBox.getHeight()\n );\n\n // Origin alignment.\n initialCtm.translate(-contentBox.getMinX(), -contentBox.getMinY());\n }\n return initialCtm;\n }",
"public static com.tangosol.net.security.IdentityTransformer getIdentityTransformer()\n {\n return __s_IdentityTransformer;\n }",
"DMatrix3C getRotation();",
"@java.lang.Override\n public godot.wire.Wire.Transform2DOrBuilder getTransform2DValueOrBuilder() {\n if (typeCase_ == 9) {\n return (godot.wire.Wire.Transform2D) type_;\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n }",
"public final Shape getTransformed(Transformation t) {\n\t\treturn getCopy().transform(t);\n\t}",
"public org.cagrid.data.dcql.DataTransformation getDataTransformation() {\r\n return dataTransformation;\r\n }",
"public mat4 getRotation() {\n return worldMatrix.getRotation(pr, yr, pr);\n }",
"public double getTranslateX() { return translateX; }",
"public CoordinateSystem getCoordinateSystem() {\n System.out.println(\"BaseCatalog: getCoordinateSystem() \");\n CoordinateSystem cs = null;\n if (_layout.getMapElementCount() >0 ) {\n MapElement mapEle = (MapElement)_layout.getMapElements().next();\n cs = mapEle.getMap().getCoordinateSystem();\n }\n System.out.println(\"BaseCatalog: getCoordinateSystem() \" + cs);\n return cs;\n }",
"public CoordinateReferenceSystem getCRS(){\n return getCRS(DefaultGeographicCRS.WGS84);\n }",
"@Override\n\tpublic TransformNR getTxTransform(String name) {\n\t\treturn null;\n\t}",
"public CMLVector3 transform(CMLTransform3 t) {\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n Vector3 v = (veucl3 == null) ? null : veucl3.transform(t\r\n .getEuclidTransform3());\r\n return (v == null) ? null : CMLVector3.createCMLVector3(v);\r\n }",
"public RMTransform getTransformInverse() { return getTransform().invert(); }",
"public godot.wire.Wire.Transform2D.Builder getTransform2DValueBuilder() {\n return getTransform2DValueFieldBuilder().getBuilder();\n }",
"public WorldToScreenTransform getWorldToScreenTransform() { return this; }",
"godot.wire.Wire.TransformOrBuilder getTransformValueOrBuilder();",
"public synchronized void transform() {\n Iterator<String> it = entity_to_wxy.keySet().iterator();\n while (it.hasNext()) {\n String entity = it.next();\n double wx = entity_to_wxy.get(entity).getX(),\n wy = entity_to_wxy.get(entity).getY();\n int sx, sy;\n entity_to_sxy.put(entity, (sx = wxToSx(wx)) + BundlesDT.DELIM + (sy = wyToSy(wy)));\n entity_to_sx.put(entity, sx); entity_to_sy.put(entity, sy);\n }\n transform_id++;\n }",
"public CoordinateReferenceSystem getCoordinateReferenceSystem() {\n\t\treturn CRS;\n\t}",
"public Point3D _GPSConvert() {\n\t\treturn _GPSConvert;\n\t}",
"@SuppressWarnings(\"PMD.DefaultPackage\")\n TransformationContextImpl getTransformationContext() {\n return transformationContext;\n }",
"public void setTransform(Transform transform);",
"public Map<Integer, Geometry> getTransform(int epsg) throws SQLException {\n return retrieveExpected(createNativeTransformStatement(epsg), GEOMETRY);\n }",
"TransformFactory getFactory();",
"public void applyTransform() {\n\t\tglRotatef(xaxisrot, 1.0f, 0.0f, 0.0f);\n\t\tglRotatef(yaxisrot, 0.0f, 1.0f, 0.0f);\n\t\tglRotatef(tilt, 0.0f, 0.0f, 1.0f);\n\t\tglTranslatef(-pos.geti(), -pos.getj(), -pos.getk());\n\t}",
"public MathContext getMathContext();",
"public final void rule__RelativeTransformation__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:6205:1: ( ( 'transformation' ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:6206:1: ( 'transformation' )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:6206:1: ( 'transformation' )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:6207:1: 'transformation'\n {\n before(grammarAccess.getRelativeTransformationAccess().getTransformationKeyword_3()); \n match(input,63,FOLLOW_63_in_rule__RelativeTransformation__Group__3__Impl12566); \n after(grammarAccess.getRelativeTransformationAccess().getTransformationKeyword_3()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public godot.wire.Wire.Transform.Builder getTransformValueBuilder() {\n return getTransformValueFieldBuilder().getBuilder();\n }",
"public Node getNormalizedNode() {\n\t\treturn transformedNode;\n\t}",
"public float getX() {\n return internalGroup.getX();\n }",
"public void updateTransform() {\n \t\tif (viewBox != null) {\n \t\t\tOMSVGRect bbox = ((SVGRectElement)viewBox.getElement()).getBBox();\n //\t\t\tGWT.log(\"bbox = \" + bbox.getDescription());\n \t\t\tfloat d = (float)Math.sqrt((bbox.getWidth() * bbox.getWidth() + bbox.getHeight() * bbox.getHeight()) * 0.25) * scale * 2;\n //\t\t\tGWT.log(\"d = \" + d);\n \t\t\n \t\t\t// Compute the actual canvas size. It is the max of the window rect\n \t\t\t// and the transformed bbox.\n \t\t\tfloat width = Math.max(d, windowRect.getWidth());\n \t\t\tfloat height = Math.max(d, windowRect.getHeight());\n //\t\t\tGWT.log(\"width = \" + width);\n //\t\t\tGWT.log(\"height = \" + height);\n \n \t\t\t// Compute the display transform to center the image in the\n \t\t\t// canvas\n \t\t\tOMSVGMatrix m = svg.createSVGMatrix();\n \t\t\tfloat cx = bbox.getCenterX();\n \t\t\tfloat cy = bbox.getCenterY();\n \t\t\tm = m.translate(0.5f * (width - bbox.getWidth()) -bbox.getX(), 0.5f * (height - bbox.getHeight()) -bbox.getY())\n \t\t\t.translate(cx, cy)\n \t\t\t.rotate(angle)\n \t\t\t.scale(scale)\n \t\t\t.translate(-cx, -cy);\n \t\t\t((ISVGTransformable)xformGroup).getTransform().getBaseVal().getItem(0).setMatrix(m);\n \t\t\t((ISVGTransformable)modelGroup.getTwinWrapper()).getTransform().getBaseVal().getItem(0).setMatrix(m);\n //\t\t\tGWT.log(\"m=\" + m.getDescription());\n \t\t\tsvg.getStyle().setWidth(width, Unit.PX);\n \t\t\tsvg.getStyle().setHeight(height, Unit.PX);\n \t\t}\n \t}",
"public SVector3d getPositionCam() {\n\t\treturn transCamera;\n\t}",
"public PacketTransformer getTransformer()\n {\n return transformer;\n }",
"public Coordinates projection() {\n return projection;\n }",
"public GeneralPath transform(Matrix matrix)\n {\n float x1 = getLowerLeftX();\n float y1 = getLowerLeftY();\n float x2 = getUpperRightX();\n float y2 = getUpperRightY();\n\n Point2D.Float p0 = matrix.transformPoint(x1, y1);\n Point2D.Float p1 = matrix.transformPoint(x2, y1);\n Point2D.Float p2 = matrix.transformPoint(x2, y2);\n Point2D.Float p3 = matrix.transformPoint(x1, y2);\n\n GeneralPath path = new GeneralPath();\n path.moveTo(p0.getX(), p0.getY());\n path.lineTo(p1.getX(), p1.getY());\n path.lineTo(p2.getX(), p2.getY());\n path.lineTo(p3.getX(), p3.getY());\n path.closePath();\n return path;\n }",
"public double getRotation()\n\t{\n\t\tdouble determinant = this.basisDeterminant();\n\t\tTransform2D m = orthonormalized();\n\t\tif (determinant < 0) \n\t\t{\n\t\t\tm.scaleBasis(new Vector2(1, -1)); // convention to separate rotation and reflection for 2D is to absorb a flip along y into scaling.\n\t\t}\n\t\treturn Math.atan2(m.matrix[0].y, m.matrix[0].x);\n\t}",
"public Vector3f getTranslationVec() {\n\t\treturn m_xforms[NvCameraXformType.MAIN].m_translate;\n\t}",
"public RMTransform getTransformToShape(RMShape aShape)\n{\n // If transforming out of shape hierarchy, concat recursive transformToShape call to parents\n if(aShape==null)\n return getParent()==null? getTransform() : getTransform().multiply(getParent().getTransformToShape(null));\n\n // The transform to parent is just our transform, transform to child is just child's inverse transform\n if(aShape==getParent())\n return getTransform();\n if(this==aShape.getParent())\n return aShape.getTransformInverse();\n if(aShape==this)\n return new RMTransform();\n\n // Start with identity transform\n RMTransform transform = RMTransform.identity;\n \n // If not one of simple cases above, concat successive transforms from last shape to self\n List <RMShape> shapes = getShapesToShape(aShape);\n if(shapes!=null)\n for(int i=shapes.size()-1; i>0; i--) {\n RMShape cs = shapes.get(i), ns = shapes.get(i-1);\n RMTransform t2 = ns==cs.getParent()? cs.getTransformInverse() : ns.getTransform(); // Inv if going up, else normal\n transform = t2.multiply(transform);\n }\n \n // Return transform\n return transform;\n}",
"godot.wire.Wire.Transform2DOrBuilder getTransform2DValueOrBuilder();",
"public Vector3f getRotationVec() {\n\t\treturn m_xforms[NvCameraXformType.MAIN].m_rotate;\n\t}",
"public double getRotation() {\n return Degrees.atan2(y, x);\n }",
"public void transform() {\n final var bounds = getParentBounds();\n transform( bounds.width, bounds.height );\n }",
"Activity getTransformMappingActivity();",
"public Cartesian3d getPosition() {\n return getMotion().getPosition();\n }",
"public Tree transformTree(Tree t) {\n return QPtransform(t);\n }",
"public static Transformer instantiateTransformer() {\n return INSTANTIATE_TRANSFORMER;\n }",
"private void applyTransform() {\n GlStateManager.rotate(180, 1.0F, 0.0F, 0.0F);\n GlStateManager.translate(offsetX, offsetY - 26, offsetZ);\n }",
"public Object getProjection() {\n return getValue(PROP_PROJECTION);\n }",
"public float getY() {\n return internalGroup.getY();\n }",
"public abstract Shape transform(Transformation t);",
"public Matrix3f getPhysicsRotationMatrix() {\n return getPhysicsRotationMatrix(null);\n }",
"public void setTransform(float a11, float a12, float a21, float a22, float x, float y);",
"public interface ICanvasTransform {\r\n\r\n\t/**\r\n\t * Inverse-transforms a relative length along the X axis to world\r\n\t * coordinates.\r\n\t * \r\n\t * @param screen\r\n\t * the length on screen.\r\n\t * @return the corresponding length in world coordinates.\r\n\t */\r\n\tdouble transformXScreenLengthToWorld(final double screen);\r\n\r\n\t/**\r\n\t * Inverse-transforms a relative length along the Y axis to world\r\n\t * coordinates.\r\n\t * \r\n\t * @param screen\r\n\t * the length on screen.\r\n\t * @return the corresponding length in world coordinates.\r\n\t */\r\n\tdouble transformYScreenLengthToWorld(final double screen);\r\n\r\n\t/**\r\n\t * Inverse-transforms a point on the screen to absolute world coordinates.\r\n\t * \r\n\t * @param screen\r\n\t * the canvas screen coordinate.\r\n\t * @return the corresponding world coordinate.\r\n\t */\r\n\tWorldCoordinate transformScreenToWorld(final DeviceCoordinate screen);\r\n\r\n\t/**\r\n\t * Inverse-transforms a distance in screen space to a corresponding distance\r\n\t * in world coordinates.\r\n\t * \r\n\t * @param screen\r\n\t * the distance on screen.\r\n\t * @return the corresponding distance in world coordinates.\r\n\t */\r\n\tWorldDistance transformScreenDeltaToWorld(final DeviceDistance screen);\r\n\r\n\t/**\r\n\t * Transforms a world coordinate to a point on the canvas screen.\r\n\t * \r\n\t * @param x\r\n\t * the x coordinate in world space.\r\n\t * @param y\r\n\t * the y coordinate in world space.\r\n\t * @return the corresponding point on the canvas screen.\r\n\t */\r\n\tDeviceCoordinate transformWorldToScreen(final double x, final double y);\r\n\r\n\t/**\r\n\t * @param world\r\n\t * @return\r\n\t */\r\n\tDeviceCoordinate transformWorldToScreen(WorldCoordinate world);\r\n\r\n\t/**\r\n\t * @param world\r\n\t * @return\r\n\t */\r\n\tint transformWorldLengthToScreen(final double world);\r\n\r\n}",
"@Override\n\tpublic Rotation3 GetRotation() {\n\t\treturn new Rotation3(0f);\n\t}"
] |
[
"0.7761663",
"0.7732615",
"0.76240194",
"0.7498465",
"0.72931385",
"0.72711295",
"0.7097545",
"0.70484096",
"0.69951624",
"0.6880796",
"0.6859318",
"0.68496543",
"0.6716421",
"0.66170055",
"0.6614444",
"0.65680134",
"0.6556993",
"0.6475021",
"0.6400416",
"0.63605464",
"0.6355645",
"0.6326322",
"0.6318026",
"0.6287502",
"0.6282958",
"0.6212294",
"0.6189738",
"0.6185976",
"0.61477625",
"0.6126699",
"0.60715795",
"0.6056597",
"0.6036618",
"0.6017908",
"0.59915906",
"0.59434813",
"0.5922811",
"0.5913833",
"0.58898515",
"0.58585995",
"0.58251363",
"0.57518375",
"0.5749494",
"0.5737383",
"0.56827563",
"0.56482863",
"0.56432843",
"0.549495",
"0.5480251",
"0.5471456",
"0.5469131",
"0.5434003",
"0.5432828",
"0.53986514",
"0.5391589",
"0.5376741",
"0.53391045",
"0.53227615",
"0.5300572",
"0.5289773",
"0.5274828",
"0.5266766",
"0.52660066",
"0.52448803",
"0.52141804",
"0.5212365",
"0.5192495",
"0.5181432",
"0.51805735",
"0.51587003",
"0.51444197",
"0.5129988",
"0.51105934",
"0.5090949",
"0.5089963",
"0.50654876",
"0.5060447",
"0.50494295",
"0.5048606",
"0.5037578",
"0.5034066",
"0.5029991",
"0.502856",
"0.50248075",
"0.50120646",
"0.4962728",
"0.49512258",
"0.49258405",
"0.4924412",
"0.49223688",
"0.49163833",
"0.49148765",
"0.4913299",
"0.48839295",
"0.48820886",
"0.48801664",
"0.48713192",
"0.4860937",
"0.48588195",
"0.48393482"
] |
0.7107052
|
6
|
Removes this actor from its parent, if it has a parent.
|
public boolean remove() {
entity.setUserObject(null);
internalGroup.setUserObject(null);
EntityEngine entityEngine=getStage().entityEngine;
entityEngine.removeEntity(entity);
Stage stage=(Stage)entityEngine.getUserObject();
World world=stage.getWorld();
if(world!=null && body!=null){
stage.bodiesTobeDeleted.add(body);
}
return internalGroup.remove();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void removeFromParent() { if(_parent!=null) _parent.removeChild(this); }",
"public void removeParent() {\r\n\t\tif (getParent() == null)\r\n\t\t\treturn;\r\n\r\n\t\tif (p.getLeft() == this)\r\n\t\t\tp.setLeft(null);\r\n\t\telse if (p.getRight() == this)\r\n\t\t\tp.setRight(null);\r\n\r\n\t\tthis.p = null;\r\n\t}",
"public void removeFromParent();",
"public void removeFromParent(){\n\t\tif(getParent() != null){\n\t\t\tif(getParent().childList != null){\n\t\t\t\tgetParent().childList.remove(this);\n\t\t\t}\n\t\t\tbound.setParent(null);\n\t\t\tfor(Scene s:sceneList){\n\t\t\t\ts.rootEntityList.add(this);\n\t\t\t}\n\t\t}\n\t}",
"public PlanNode removeFromParent() {\n PlanNode result = this.parent;\n if (this.parent != null) {\n // Remove this node from its current parent ...\n this.parent.children.remove(this);\n this.parent = null;\n }\n return result;\n }",
"protected void removeSelf() {\n if (!removed && parentNode != null && componentNode != null) {\n // remove this node from parent node\n parentNode.removeChild(componentNode);\n // Mark as removed\n removed = true;\n }\n }",
"public void remove()\n {\n ShapeParent parent = getShapeParent();\n \n if (parent != null)\n {\n parent.remove(this);\n }\n }",
"synchronized void detachParent() {\n if (!isRoot()) {\n Neighbor neighbor = node.getParent();\n if (neighbor != null) {\n neighbor.detach();\n node.parent = null;\n }\n node.makeRoot();\n }\n }",
"public void removeNode()\n\t{\n\t\tif (parent != null)\n\t\t\tparent.removeChild(this);\n\t}",
"public void popParent();",
"public void detach() {\n\t\tsetParent(null);\n\t}",
"public void removeParent(ParentEntity arg0)\n throws EntityPersistenceException {\n\n }",
"public void removeFromParent(TXSemanticTag child);",
"public boolean remove() {\n if (parent == null) {\n throw new RuntimeException(ROOT_REMOVING_EXCEPTION_MESSAGE);\n }\n\n return parent.remove(value); // increments modificationCount!\n }",
"public Delete parent(String parent){\n\t\taddParams(\"parent\", parent);\n\t\treturn this;\n\t}",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder clearContainingParentId() {\n containingParentId = null;\n fieldSetFlags()[1] = false;\n return this;\n }",
"public RMParentShape getParent() { return _parent; }",
"public void deleteNode() {\n TreeNode pNode = this.getParentNode();\n int id = this.getSelfId();\n\n if (pNode != null) {\n pNode.deleteChildNode(id);\n }\n }",
"public CastMember removeActor(CastMember actor)\n\t{\n\t\tpeopleAct.remove(actor);\n\t\treturn actor;\n\t}",
"public Optional<Cause> getParent() {\n return this.parent;\n }",
"void remove(Actor actor);",
"public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }",
"public boolean removeFromRoot() {\n Views.removeFromParent(this);\n setVisibility(8);\n return true;\n }",
"public boolean hasParent() {\n return getParent() != null;\n }",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder clearContainingParentType() {\n containingParentType = null;\n fieldSetFlags()[2] = false;\n return this;\n }",
"public void remove() {\n removeNode(this);\n }",
"private void deleteUpToChild(Node toRemove) {\n Boolean isRoot = toRemove == root;\n Node child = null;\n //find 1 child if exist\n if (toRemove.left != null) {\n child = toRemove.left;\n } else if (toRemove.right != null) {\n child = toRemove.right;\n }\n if (isRoot) { //in case toRemove is the root, set root to child (even if null);\n root = child;\n if (child != null) child.parent = null;\n } else { //if not root, set parent's relevant son to 'child' (both directions)\n if (toRemove.parent.left == toRemove) {\n toRemove.parent.left = child;\n } else toRemove.parent.right = child;\n if (child != null) {\n child.parent = toRemove.parent;\n }\n }\n }",
"public void remove(T actor)\n {\n\tif (actor == null)\n\t throw new IllegalArgumentException(\"actor cannot be null.\");\n\n\tactors.removeValue(actor, true);\n\tactor.setChecked(false);\n }",
"public void remove() {\n removed = true;\n if (room == null)\n return;\n room.removeEntity(this);\n }",
"public void removeActor(Actor act) { ActorSet.removeElement(act); }",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder clearContainingParentLevel() {\n containingParentLevel = null;\n fieldSetFlags()[3] = false;\n return this;\n }",
"public void remove(IVisualElement elem) {\n children.remove(elem);\n if (elem.getParent() == parentRef.get()) {\n elem.setParent(null);\n }\n }",
"private void joinParent() {\n System.out.println(\"JOINING parent...\");\n try {\n node.getParent()\n .sendMessage(\n new JoinMessage(node.getName()),\n () -> {\n System.out.println(\"Joined parent!\");\n this.state = State.RUNNING;\n }, () -> {\n node.isRoot = true;\n this.state = State.TERMINATED;\n// node.isRoot = true;\n System.out.println(\"Failed to connect to parent\");\n messageListener.interrupt();\n node.parent.detach();\n }\n );\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\r\n return this.parent;\r\n }",
"public void setRemover() {\n Disposable d = Disposable.from(() -> parent.psm.remove(this));\n UNSAFE.putOrderedObject(this, REMOVE, d);\n }",
"@Override\n\tpublic void explode()\n\t{\n\t\tparent.remove( this );\n\t}",
"public boolean isParent();",
"public EventNode getParent() {\n\t\treturn parent;\n\t}",
"public void removeChild( ChildType child );",
"protected TacticalBattleProcessor getParent() {\n return parent;\n }",
"public boolean canRemoveParent(ParentEntity arg0) {\n return false;\n }",
"public boolean hasParent() {\r\n if (parent == null) \r\n return false;\r\n \r\n return true;\r\n }",
"public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"public Resource getParent() {\n return null;\n }",
"public Instance getParent() {\r\n \t\treturn parent;\r\n \t}",
"@Override\n public Node getParentNode() {\n return null;\n }",
"public final Cause<?> getParent() {\n return parent;\n }",
"@Override\r\n\t\tpublic Node getParentNode()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public Foo getParent() {\n return parent;\n }",
"public void undo() {\n\t\tparent.requestChange(new ModelChangeRequest(this.getClass(), parent,\n\t\t\t\t\"create\") {\n\t\t\t@Override\n\t\t\tprotected void _execute() throws Exception {\n\t\t\t\teditor.selectPage((CompositeActor) parent);\n\t\t\t\tif (child instanceof NamedObj) {\n\t\t\t\t\tComponentUtility.setContainer(child, null);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public Entity getParent() {\n return parent;\n }",
"void removeChild(Object child);",
"public void destroy() {\n ViewGroup parent = (ViewGroup) getParent();\n if (parent != null) {\n parent.removeView(this);\n }\n mRevealerSpring.destroy();\n }",
"public Node getParent() {\n return parent;\n }",
"public Node getParent() {\n return parent;\n }",
"public void remove() {\n/* 1379 */ super.remove();\n/* 1380 */ this.inventoryMenu.removed(this);\n/* 1381 */ if (this.containerMenu != null) {\n/* 1382 */ this.containerMenu.removed(this);\n/* */ }\n/* */ }",
"public void removeSelf(){\n\t\tif(prev != null){\n\t\t\tprev.next = next;\n\t\t\tnext.prev = prev;\n\t\t\tprev = null;\n\t\t\tnext = null;\n\t\t}\n\t}",
"public UpTreeNode<E> getParent() {\n\t\t\treturn parent;\n\t\t}",
"public void removeParentLineConnector()\n {\n LineConnector parentLineConnector = null;\n \n for (LineConnector lineConnector: lineConnectors)\n if (lineConnector.isType(LineConnectorType.TRIANGLE))\n {\n parentLineConnector = lineConnector;\n break;\n }\n if (parentLineConnector != null)\n lineConnectors.remove(parentLineConnector);\n }",
"@VTID(7)\r\n void getParent();",
"public TreeNode getParent() {\n\t\treturn null;\n\t}",
"@Override\n public MElementContainer<MUIElement> getParent()\n {\n return null;\n }",
"public Kit getParent() {\n return this.parent;\n }",
"public PafDimMember getParent() {\r\n\t\treturn parent;\r\n\t}",
"public void removeFromRoot(){\n Main.getRootPlayGround().getChildren().remove(imageView);\n }",
"public boolean removeActor(Actor actor) {\n\t\tLog.debug(\"Removing actor \" + actor.getName());\n\n\t\tCoordinate pos = actor.getPosition();\n\t\tTile tile = getTileAt(pos.x, pos.y);\n\t\tif (tile.getActor() == null) {\n\t\t\tLog.warning(\"Failed! actor=\" + actor.getName());\n\t\t\treturn false;\n\t\t}\n\t\tLog.debug(\"Success!\");\n\n\t\tactors.remove(actor);\n\t\tLog.debug(\" > actors count: \" + actors.getAll().size());\n\t\ttile.setActor(null);\n\t\treturn true;\n\t}",
"public CompositeObject getParent(\n )\n {return (parentLevel == null ? null : (CompositeObject)parentLevel.getCurrent());}",
"public boolean removeChild( PlanNode child ) {\n boolean result = this.children.remove(child);\n if (result) {\n child.parent = null;\n }\n return result;\n }",
"TMNodeModelComposite getParent() {\n return parent;\n }",
"public Concept getParent() { return parent; }",
"private void removeObjectFromContainer(UsableActor actor) {\n if (actor instanceof Cookie){\n for (int x = 0 ; x < this.cookies.size(); x++){\n if (this.cookies.get(x).equals(actor)){\n this.cookies.remove(x);\n break;\n }\n } \n }\n else if (actor instanceof Whistle){\n for (int x = 0 ; x < this.whistles.size(); x++){\n if (this.whistles.get(x).equals(actor)){\n this.whistles.remove(x);\n break;\n }\n }\n }\n }",
"public Node getParent();",
"Object getParent();",
"@Override\r\n\tpublic UserInterface getParent() {\n\t\treturn null;\r\n\t}",
"public void removeParent(Category category) {\n\t\tthis.parents.remove(category);\n\t}",
"public VisualLexiconNode getParent() {\n \t\treturn parent;\n \t}",
"public @Nullable Node<@Nullable T> getParent() {\n return this.parent;\n }",
"@Override\n \t\t\t\tpublic void doDettachFromParent() {\n \n \t\t\t\t}",
"public void setParent(RMParentShape aShape) { _parent = aShape; }",
"@Override\n\tpublic int deleteParentById(int id) {\n\t\treturn parentDao.deleteParentById(id);\n\t}",
"protected Directory getParent() {\n return parent;\n }",
"public void extractFromParent() {\n this.parent.extractChild(this);\n }",
"public void remove()\n {\n domain.removeParticipant(participant);\n }",
"public void remove() {\r\n super.remove();\r\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public CUser getParent() {\n return this.parent;\n }",
"public boolean hasParent() {\n return internalGroup.hasParent();\n }",
"public void removeChildren() {\r\n this.children.clear();\r\n childNum = 0;\r\n }",
"public Boolean getIsParent() {\n return isParent;\n }",
"public Path getParent(\n ) {\n return this.parent;\n }"
] |
[
"0.7360233",
"0.7219476",
"0.7104082",
"0.67990386",
"0.6627083",
"0.6472787",
"0.63690495",
"0.61678606",
"0.61188036",
"0.58254004",
"0.58005637",
"0.57644033",
"0.57566756",
"0.5719639",
"0.5501945",
"0.5482691",
"0.5471089",
"0.54596984",
"0.5434724",
"0.54327786",
"0.5379394",
"0.53669053",
"0.53607714",
"0.53496695",
"0.5347917",
"0.5343035",
"0.5323455",
"0.5304226",
"0.527483",
"0.52624106",
"0.5261514",
"0.5260598",
"0.52373636",
"0.52280384",
"0.52280384",
"0.52280384",
"0.52206516",
"0.521973",
"0.5190663",
"0.51875484",
"0.5183019",
"0.5180447",
"0.51704055",
"0.51696825",
"0.516048",
"0.515364",
"0.5148263",
"0.5148263",
"0.5141475",
"0.51348704",
"0.51189256",
"0.5110472",
"0.5110242",
"0.5108577",
"0.5103673",
"0.51004213",
"0.5095679",
"0.5093609",
"0.5090714",
"0.5090714",
"0.50668204",
"0.504947",
"0.5048438",
"0.50480366",
"0.50185114",
"0.5013779",
"0.5012075",
"0.501011",
"0.5005002",
"0.4987524",
"0.4979539",
"0.49725875",
"0.49665612",
"0.4966411",
"0.4956333",
"0.49555263",
"0.49192333",
"0.4915404",
"0.49117112",
"0.4898386",
"0.48972863",
"0.4893225",
"0.48904663",
"0.48901653",
"0.48884475",
"0.48881865",
"0.4883477",
"0.48820114",
"0.4869082",
"0.48690444",
"0.48690444",
"0.48690444",
"0.48690444",
"0.48690444",
"0.48690444",
"0.48690444",
"0.48680088",
"0.48654798",
"0.48651004",
"0.4862663",
"0.4857005"
] |
0.0
|
-1
|
Adds an actor as a child of this group. The actor is first removed from its parent group, if any.
|
public void addActor(Actor actor) {
internalGroup.addActor(actor.internalActor);
actor.setParent(this);
actor.setStage(getStage());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public final void addActor(DodlesActor actor) {\n if (actor.getName() == null) {\n throw new GdxRuntimeException(\"Actor must have a name set!\");\n }\n\n all.put(actor.getName(), actor);\n\n if (actor instanceof BaseDodlesViewGroup) {\n for (Object view : ((BaseDodlesViewGroup) actor).getViews()) {\n BaseDodlesGroup bdgView = (BaseDodlesGroup) view;\n all.put(bdgView.getName(), bdgView);\n }\n }\n\n DodleReference ref = references.get(actor.getTrackingID());\n\n if (ref != null) {\n ref.addRef(actor.getName());\n }\n }",
"public void addChild( ChildType child );",
"void add(Actor actor);",
"public void addActor(Actor actor) { ActorSet.addElement(actor); }",
"public void addActor(CastMember actor)\n\t{\n\t\tpeopleAct.add(actor);\n\t}",
"public void addChild(T child) {\n this.children.add(child);\n child.setParent(this);\n this.invalidate();\n }",
"public void add(T actor)\n {\n\tif (actor == null)\n\t throw new IllegalArgumentException(\"actor cannot be null.\");\n\n\tboolean _shouldCheck = actor.isChecked() || actors.size < minCheckCount;\n\tactor.setActorGroup(this);\n\tactors.add(actor);\n\tif (_shouldCheck)\n\t actor.setChecked(true);\n }",
"public void addChild(Node child)\n\t{\n\t\tchild.parent = this;\n\t\t//if (!children.contains(child))\n\t\t//{\t\n\t\tchildren.add(child);\n\t\t//children.get(children.indexOf(child)-1).setBro(child);\n\t\t//}\n\t}",
"@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }",
"public final void rule__AstActor__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7525:1: ( ( 'actor' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7526:1: ( 'actor' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7526:1: ( 'actor' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7527:1: 'actor'\n {\n before(grammarAccess.getAstActorAccess().getActorKeyword_1()); \n match(input,70,FOLLOW_70_in_rule__AstActor__Group__1__Impl15563); \n after(grammarAccess.getAstActorAccess().getActorKeyword_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 }",
"public void addChild(Node child){\n children.add(child);\n }",
"private void addChild(Ent e){\n\t\tif(e.getParent() == this){\n\t\t\treturn;\n\t\t}else if(e.getParent() != null){\n\t\t\te.removeFromParent();\n\t\t}\n\t\tif(e instanceof PhysEnt){\n\t\t\tDbg.Error(\"Cannot make PhysEnt a child : PhysEnt must be root entities.\");\n\t\t\treturn;\n\t\t}\n\t\te.bound.setParent(this);\n\t\tif(childList == null){\n\t\t\tchildList = new ArrayList<Ent>();\n\t\t}\n\t\tchildList.add(e);\n\t\tfor(Scene s:sceneList){\n\t\t\ts.addEntity(e);\n\t\t}\n\t}",
"protected void addChild(PafDimMember childNode) throws PafException {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// Create a new ArrayList of child nodes, if this is the first child\r\n\t\t\tif (children == null) \r\n\t\t\t\tchildren = new ArrayList<PafDimMember>();\r\n\t\t\t\r\n\t\t\t// Set parent of child node to current PafBaseMember node\r\n\t\t\tchildNode.parent = this;\r\n\r\n\t\t\t// Add child node to PafBaseTree\r\n\t\t\tchildren.add(childNode);\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// throw Paf Exception\r\n\t\t\tString errMsg = \"Java Exception: \" + ex.getMessage();\r\n\t\t\tlogger.error(errMsg);\r\n\t\t\tPafException pfe = new PafException(errMsg, PafErrSeverity.Error, ex);\t\r\n\t\t\tthrow pfe;\r\n\t\t}\r\n\t}",
"public void addChild(Node childnode)\n {\n children.add(childnode);\n }",
"public void addChild(final int childIndex) {\n if (!this.children.contains(childIndex)) {\n this.children.add(childIndex);\n }\n }",
"public void addChild(TreeNode toAdd) {\n\t\t\tthis.children.add(toAdd);\n\t\t}",
"public void addActorAt(int index, Actor actor) {\n internalGroup.addActorAt(index, actor.internalActor);\n actor.setParent(this);\n actor.setStage(getStage());\n }",
"public void addChild(Node node){\n children.add(node);\n \n }",
"public boolean addActor(Actor actor) {\n\t\tCoordinate pos = actor.getPosition();\n\t\tTile tile = getTileAt(pos.x, pos.y);\n\t\tif (tile.getActor() != null)\n\t\t\treturn false;\n\n\t\tactors.add(actor);\n\t\ttile.setActor(actor);\n\t\treturn true;\n\t}",
"public void addActor(){\n actorProfileList.add(new ActorProfile());\n }",
"public void addActor(Actor actor) {\n\t\tObjects.requireNonNull(actor);\n\t\tmap.addActor(actor, this);\n\t}",
"@Transient\n // not really needed\n public void addChild(final ChangeRequestMessageEntry child) {\n children.add(child);\n child.setParent(this);\n child.setProcessInstanceId(getProcessInstanceId());\n }",
"public void addChild(BTreeNode<E> newChild) {\n\t\tint index = 0;\n\t\tfor (BTreeNode<E> node : children) {\n\t\t\tif (node == null || cmp.compare(newChild.getData(0), node.data.get(0)) > 0) {\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t\tchildren.add(index, newChild);\n\t\tnewChild.parent = this;\n\t}",
"void addChild( JBurgPatternMatcher child )\n\t{\n checkPrecondition ( ! this.hasNaryTail(), \"Cannot add a subpattern after an n-ary subpattern.\");\n checkPrecondition ( null == child.parent, \"Child \" + child.toString() + \" already has a parent.\");\n \n child.positionInParent = new Integer(this.subPatterns.size());\n child.parent = this;\n this.subPatterns.add(child);\n\t}",
"public void addChild(Character ch){\n children.put(ch,new Node(ch));\n }",
"public void add( Bacteria child) {\n\t\tinds.add(child);\n\t\tpopSize++;\n\t}",
"@Override\r\n\tpublic boolean addActor(String v)\r\n\t{\r\n\t\tActor newActor = new Actor(v);\r\n\t\t\r\n\t\tif(!graph.containsVertex(newActor))\r\n\t\t{\r\n\t\t\tgraph.addVertex(newActor);\r\n\t\t\tactorNames.add(v);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void addActor(String path) throws IOException {\r\n\t\tactors.add(ImageIO.read(new File(path)));\r\n\t}",
"public void addActorBefore(Actor actorBefore, Actor actor) {\n internalGroup.addActorBefore(actorBefore.internalActor, actor.internalActor);\n actor.setParent(this);\n actor.setStage(getStage());\n }",
"public final void rule__AstActor__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7513:1: ( rule__AstActor__Group__1__Impl rule__AstActor__Group__2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7514:2: rule__AstActor__Group__1__Impl rule__AstActor__Group__2\n {\n pushFollow(FOLLOW_rule__AstActor__Group__1__Impl_in_rule__AstActor__Group__115532);\n rule__AstActor__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__2_in_rule__AstActor__Group__115535);\n rule__AstActor__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 }",
"public void addChild(TreeNode child) {\n if (this.children!= null && !this.children.contains(child) && child != null)\n this.children.add(child);\n }",
"@objid (\"808c0873-1dec-11e2-8cad-001ec947c8cc\")\n public final void moveChild(GmNodeModel child, int index) {\n int oldIndex = this.children.indexOf(child);\n \n if (oldIndex == -1) {\n throw new IllegalArgumentException(\"The element is not in the children list\");\n }\n \n // If child already at asked position do nothing\n if (index == oldIndex) {\n return;\n }\n \n // If child already at asked last position do nothing\n if (index == -1 && oldIndex == this.children.size() - 1) {\n return;\n }\n \n this.children.remove(child);\n \n if (index == -1) {\n // Add to the end\n this.children.add(child);\n } else if (index > oldIndex) {\n // Child moved after old position,\n // Fix the index after removal.\n this.children.add(index - 1, child);\n } else {\n // Child moved before old position\n this.children.add(index, child);\n }\n \n firePropertyChange(IGmObject.PROPERTY_CHILDREN, null, child);\n }",
"public final void rule__AstActor__Group__10() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7784:1: ( rule__AstActor__Group__10__Impl rule__AstActor__Group__11 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7785:2: rule__AstActor__Group__10__Impl rule__AstActor__Group__11\n {\n pushFollow(FOLLOW_rule__AstActor__Group__10__Impl_in_rule__AstActor__Group__1016085);\n rule__AstActor__Group__10__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__11_in_rule__AstActor__Group__1016088);\n rule__AstActor__Group__11();\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 }",
"public void addChild(FileNode child) {\r\n child.setParent(this);\r\n children.add(child);\r\n childNum++;\r\n }",
"public final void rule__AstExternalActor__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10872:1: ( ( 'actor' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10873:1: ( 'actor' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10873:1: ( 'actor' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10874:1: 'actor'\n {\n before(grammarAccess.getAstExternalActorAccess().getActorKeyword_2()); \n match(input,70,FOLLOW_70_in_rule__AstExternalActor__Group__2__Impl22160); \n after(grammarAccess.getAstExternalActorAccess().getActorKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"private void addChild(final TWidget child) {\n children.add(child);\n\n if ((child.enabled)\n && !(child instanceof THScroller)\n && !(child instanceof TVScroller)\n ) {\n for (TWidget widget: children) {\n widget.active = false;\n }\n child.active = true;\n activeChild = child;\n }\n for (int i = 0; i < children.size(); i++) {\n children.get(i).tabOrder = i;\n }\n }",
"@DISPID(1)\n\t// = 0x1. The runtime will prefer the VTID if present\n\t@VTID(7)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject addChild(\n\t\t\t@MarshalAs(NativeType.VARIANT) java.lang.Object node);",
"public void addChild(XMLElement child)\n/* */ {\n/* 398 */ if (child == null) {\n/* 399 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 401 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 402 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* */ \n/* 404 */ if (lastChild.getLocalName() == null) {\n/* 405 */ lastChild.setContent(lastChild.getContent() + \n/* 406 */ child.getContent());\n/* 407 */ return;\n/* */ }\n/* */ }\n/* 410 */ child.parent = this;\n/* 411 */ this.children.addElement(child);\n/* */ }",
"public void addChild(MagicPattern child) {\n\t\tif (child != null) {\n\t\t\tthis.children.add(child);\n\t\t}\n\t}",
"public void addChild(DecTreeNode child) {\r\n if (children != null)\r\n children.add(child);\r\n }",
"void remove(Actor actor);",
"abstract public void addChild(Command cmd);",
"protected void addChild(Layer child) {\n\t\tchildren.add(child);\n\t}",
"public final void rule__AstActor__Group__9() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7753:1: ( rule__AstActor__Group__9__Impl rule__AstActor__Group__10 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7754:2: rule__AstActor__Group__9__Impl rule__AstActor__Group__10\n {\n pushFollow(FOLLOW_rule__AstActor__Group__9__Impl_in_rule__AstActor__Group__916023);\n rule__AstActor__Group__9__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__10_in_rule__AstActor__Group__916026);\n rule__AstActor__Group__10();\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 }",
"public void addChild(final ParseTreeNode child) {\r\n child.setParent(this);\r\n if (_children == null) { _children = new ArrayList<ParseTreeNode>(); }\r\n _children.add(child);\r\n }",
"public void add(Node<E> child) {\n this.children.add(child);\n }",
"public final void rule__AstActor__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7482:1: ( rule__AstActor__Group__0__Impl rule__AstActor__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7483:2: rule__AstActor__Group__0__Impl rule__AstActor__Group__1\n {\n pushFollow(FOLLOW_rule__AstActor__Group__0__Impl_in_rule__AstActor__Group__015471);\n rule__AstActor__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__1_in_rule__AstActor__Group__015474);\n rule__AstActor__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 }",
"public void addChild(IDirectory child) {\n children.add(child);\n }",
"public void childAdder(Character ch)\n {\n node.put(ch,new Node());\n }",
"public final void rule__AstActor__Group_8_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8176:1: ( rule__AstActor__Group_8_1__0__Impl rule__AstActor__Group_8_1__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8177:2: rule__AstActor__Group_8_1__0__Impl rule__AstActor__Group_8_1__1\n {\n pushFollow(FOLLOW_rule__AstActor__Group_8_1__0__Impl_in_rule__AstActor__Group_8_1__016841);\n rule__AstActor__Group_8_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group_8_1__1_in_rule__AstActor__Group_8_1__016844);\n rule__AstActor__Group_8_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 }",
"public void AddModel(BranchGroup child)\r\n {\r\n \tbranch.addChild(child);\r\n }",
"@Override\n public void childAdded(Attraction a) {\n Log.d(\"Ajq\",\"Child added called\");\n attractions.add(a);\n }",
"public GeoMindMapNode addChildNode(EuclidianBoundingBoxHandler addHandler) {\n\t\tNodeAlignment newAlignment = toAlignment(addHandler);\n\n\t\tGPoint2D newLocation = computeNewLocation(newAlignment);\n\t\tGeoMindMapNode child = new GeoMindMapNode(node.getConstruction(), newLocation);\n\t\tchild.setContentHeight(GeoMindMapNode.CHILD_HEIGHT);\n\t\tchild.setSize(GeoMindMapNode.MIN_WIDTH, GeoMindMapNode.CHILD_HEIGHT);\n\t\tchild.setParent(node, newAlignment);\n\t\tchild.setVerticalAlignment(VerticalAlignment.MIDDLE);\n\t\tchild.setBackgroundColor(child.getKernel().getApplication().isMebis()\n\t\t\t\t? GColor.MOW_MIND_MAP_CHILD_BG_COLOR : GColor.MIND_MAP_CHILD_BG_COLOR);\n\t\tchild.setBorderColor(child.getKernel().getApplication().isMebis()\n\t\t\t\t? GColor.MOW_MIND_MAP_CHILD_BORDER_COLOR : GColor.MIND_MAP_CHILD_BORDER_COLOR);\n\t\tchild.setLabel(null);\n\t\treturn child;\n\t}",
"public void addChild(Node node) {\n\t\tthis.children.add(node);\n\t}",
"public final void ruleAstActor() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:689:2: ( ( ( rule__AstActor__Group__0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:690:1: ( ( rule__AstActor__Group__0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:690:1: ( ( rule__AstActor__Group__0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:691:1: ( rule__AstActor__Group__0 )\n {\n before(grammarAccess.getAstActorAccess().getGroup()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:692:1: ( rule__AstActor__Group__0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:692:2: rule__AstActor__Group__0\n {\n pushFollow(FOLLOW_rule__AstActor__Group__0_in_ruleAstActor1414);\n rule__AstActor__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstActorAccess().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 }",
"public void addChild(ParsedComponent parsedComponent) {\n children.put(parsedComponent.getName(), parsedComponent);\n }",
"public boolean isDescendantOf(Actor actor) {\n if (actor == null)\n throw new IllegalArgumentException(\"actor cannot be null.\");\n\n if(actor instanceof Group){\n Group group=(Group)actor;\n return internalGroup.isDescendantOf(group.internalGroup);\n }\n\n return internalGroup.isDescendantOf(actor.internalActor);\n }",
"public void addChildNode (Node child) {\n\t\tObjects.requireNonNull(child);\n\t\t\n\t\tif(children == null) {\n\t\t\tchildren = new ArrayIndexedCollection();\t\n\t\t}\n\t\t\n\t\tchildren.add(child);\n\t}",
"protected void append_child(AstNode child) throws Exception {\r\n\t\tif (child == null)\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid child: null\");\r\n\t\telse {\r\n\t\t\tif (child instanceof AstNodeImpl)\r\n\t\t\t\t((AstNodeImpl) child).set_parent(this);\r\n\t\t\tthis.children.add(child);\r\n\t\t\tthis.update_location(); /* automatically update */\r\n\t\t}\r\n\t}",
"public void addChild(IndividualReference individualReference) {\n if (this.children == null) this.children = new ArrayList<>();\n this.children.add(individualReference);\n setNumChildren(Integer.toString(Integer.parseInt(this.numChildren.toString()) + 1));\n }",
"public void addChild(AsNode child, double cost) {\n\t\tif(!children.contains(child)) {\n\t\t\tchildren.add(child);\n\t\t\tchildCost.put(child, cost);\n\t\t}\n\t}",
"public void addCreature(Creature child, int row, int col)\n\t{\n\t\tgrid[row][col] = child;\n\t}",
"ComponentAgent getLastChild();",
"@Override\n public void add(Component c) {\n children.add(c);\n }",
"public abstract void addChild(Node node);",
"public AddChildEvent(Object source, AbstractComponent child) {\n this(source, child, -1);\n }",
"public void addToGroup(Movable movable){\n things.add(movable);\n }",
"public void moveChild( ChildType child, int index );",
"public final void rule__AstActor__Group_8_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8207:1: ( rule__AstActor__Group_8_1__1__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8208:2: rule__AstActor__Group_8_1__1__Impl\n {\n pushFollow(FOLLOW_rule__AstActor__Group_8_1__1__Impl_in_rule__AstActor__Group_8_1__116903);\n rule__AstActor__Group_8_1__1__Impl();\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 }",
"@Override\n\tpublic void addChild(IComponent c) {\n\t\tcomponents.add(c);\n\t}",
"public void addChild(Node newChild) {\r\n\t\t\tchildren.reset();\r\n\t\t\t\r\n\t\t\tnewChild.setParent(this);\r\n\r\n\t\t\tif (children.size() == 0)\r\n\t\t\t\tchildren.add(newChild);\r\n\t\t\telse if (children.get().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) \r\n\t\t\t\tchildren.insert(newChild);\r\n\t\t\telse {\r\n\t\t\t\twhile (children.hasNext()) {\r\n\t\t\t\t\tif (children.next().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) break;\r\n\t\t\t\t}\r\n\t\t\t\tif (children.get().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) \r\n\t\t\t\t\tchildren.insert(newChild);\r\n\t\t\t\telse\r\n\t\t\t\t\tchildren.add(newChild);\r\n\t\t\t}\r\n\t\t}",
"public void addChild(DecTreeNode child) {\n\t\tif (children != null) {\n\t\t\tchildren.add(child);\n\t\t}\n\t}",
"public AddChildEvent(Object source, AbstractComponent child, int childIndex) {\n super(source);\n this.child = child;\n this.childIndex = childIndex;\n }",
"public final void rule__AstActor__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7544:1: ( rule__AstActor__Group__2__Impl rule__AstActor__Group__3 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7545:2: rule__AstActor__Group__2__Impl rule__AstActor__Group__3\n {\n pushFollow(FOLLOW_rule__AstActor__Group__2__Impl_in_rule__AstActor__Group__215594);\n rule__AstActor__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__3_in_rule__AstActor__Group__215597);\n rule__AstActor__Group__3();\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 }",
"protected void addChild(TreeNode child) {\n\t\t\tchildren.add(child);\n\t\t\tchild.parent = this;\n\t\t}",
"public DefaultMutableTreeNode addObject(GUIMain guiMn, Object child) {\n DefaultMutableTreeNode parentNode = null;\n TreePath parentPath = guiMn.myTree.getSelectionPath();\n\n if (parentPath == null) {\n parentNode = guiMn.simMain.rootNode;\n } else {\n parentNode = (DefaultMutableTreeNode) (parentPath.getLastPathComponent());\n }\n\n return addObject(guiMn, parentNode, child, true);\n }",
"public final void rule__AstActor__Group_6_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8052:1: ( rule__AstActor__Group_6_1__0__Impl rule__AstActor__Group_6_1__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8053:2: rule__AstActor__Group_6_1__0__Impl rule__AstActor__Group_6_1__1\n {\n pushFollow(FOLLOW_rule__AstActor__Group_6_1__0__Impl_in_rule__AstActor__Group_6_1__016596);\n rule__AstActor__Group_6_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group_6_1__1_in_rule__AstActor__Group_6_1__016599);\n rule__AstActor__Group_6_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 }",
"public boolean addChild(ChronologElement child) {\r\n return children.add(child);\r\n }",
"public CastMember removeActor(CastMember actor)\n\t{\n\t\tpeopleAct.remove(actor);\n\t\treturn actor;\n\t}",
"public void addChild(Node node) {\n\t\tValidate.notNull(node, \"The given node is null\");\n\t\tValidate.isTrue(this.graph == node.graph, \"The given node doesn't belong to the same graph\");\n\t\tValidate.isTrue(this != node, \"A node can't be its own child or parent\");\n\n\t\tthis.children.add(node);\n\t}",
"public TreeMapNode addChild(TreeMapNode child) {\n child.setParent(this);\n this.children.add(child);\n return child;\n }",
"public final void rule__AstActor__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7494:1: ( ( () ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7495:1: ( () )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7495:1: ( () )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7496:1: ()\n {\n before(grammarAccess.getAstActorAccess().getAstActorAction_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7497:1: ()\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7499:1: \n {\n }\n\n after(grammarAccess.getAstActorAccess().getAstActorAction_0()); \n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AstActor__Group_8__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8144:1: ( rule__AstActor__Group_8__1__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8145:2: rule__AstActor__Group_8__1__Impl\n {\n pushFollow(FOLLOW_rule__AstActor__Group_8__1__Impl_in_rule__AstActor__Group_8__116779);\n rule__AstActor__Group_8__1__Impl();\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 }",
"public void add(TreeNode child){\r\n\t\t\tchildren.add(child);\r\n\t\t\t//child.setParent(this);\r\n\t\t}",
"void appendChild(Object child);",
"public final void rule__AstActorDeclaration__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5423:1: ( rule__AstActorDeclaration__Group__1__Impl rule__AstActorDeclaration__Group__2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5424:2: rule__AstActorDeclaration__Group__1__Impl rule__AstActorDeclaration__Group__2\n {\n pushFollow(FOLLOW_rule__AstActorDeclaration__Group__1__Impl_in_rule__AstActorDeclaration__Group__111419);\n rule__AstActorDeclaration__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActorDeclaration__Group__2_in_rule__AstActorDeclaration__Group__111422);\n rule__AstActorDeclaration__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 }",
"TreeNode addChild(TreeNode node);",
"public void attach(BaseRecyclerChildViewModel bVar) {\n bVar.attachParent(this);\n this.mChildSet.add(bVar);\n }",
"void addChild(InetSocketAddress address) throws IOException, JAXBException {\n if (!isRoot && parent.getAddress().equals(address)) {\n throw new IllegalArgumentException(\"Cannot assign parent to be a child\");\n }\n if (!children.containsKey(address)) {\n children.put(address, new Neighbor(socket, address, eventDispatcher));\n }\n }",
"public void addChildFile(IFile child) {\n childFiles.add(child);\n }",
"public void addFocusableChild ( final Component child )\n {\n focusTracker.addFocusableChild ( child );\n }",
"public final void rule__AstActor__Group_8__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8115:1: ( rule__AstActor__Group_8__0__Impl rule__AstActor__Group_8__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8116:2: rule__AstActor__Group_8__0__Impl rule__AstActor__Group_8__1\n {\n pushFollow(FOLLOW_rule__AstActor__Group_8__0__Impl_in_rule__AstActor__Group_8__016719);\n rule__AstActor__Group_8__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group_8__1_in_rule__AstActor__Group_8__016722);\n rule__AstActor__Group_8__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 }",
"private void addCharacter(AbstractCharacter character) {\n\t\tGroup g = new Group();\n\t\tg.addActor(character);\n\t\taddActor(g);\n\t}",
"public final void rule__AstActor__Group__8() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7724:1: ( rule__AstActor__Group__8__Impl rule__AstActor__Group__9 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7725:2: rule__AstActor__Group__8__Impl rule__AstActor__Group__9\n {\n pushFollow(FOLLOW_rule__AstActor__Group__8__Impl_in_rule__AstActor__Group__815962);\n rule__AstActor__Group__8__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__9_in_rule__AstActor__Group__815965);\n rule__AstActor__Group__9();\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 }",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void addChild(Element child) {\n super.addChild(child);\n }"
] |
[
"0.62801653",
"0.61210877",
"0.6046128",
"0.595364",
"0.5846641",
"0.58254623",
"0.58240265",
"0.5819012",
"0.5774243",
"0.56816924",
"0.5651747",
"0.5650827",
"0.56232864",
"0.55341756",
"0.549575",
"0.54453427",
"0.5438394",
"0.5388368",
"0.53816533",
"0.53609395",
"0.535912",
"0.52976733",
"0.5272979",
"0.52725166",
"0.5272506",
"0.5266997",
"0.5252682",
"0.52131534",
"0.52120024",
"0.52014554",
"0.5197354",
"0.5189199",
"0.5184495",
"0.51734453",
"0.5168746",
"0.5151757",
"0.5146969",
"0.510785",
"0.5107373",
"0.50925004",
"0.50739175",
"0.506455",
"0.5048346",
"0.5047922",
"0.5037814",
"0.5027539",
"0.5020545",
"0.50197935",
"0.5014329",
"0.5014262",
"0.5006926",
"0.49980366",
"0.49856293",
"0.4975578",
"0.49705946",
"0.4970462",
"0.49589074",
"0.49500072",
"0.49380818",
"0.4927792",
"0.49243364",
"0.49199405",
"0.49051446",
"0.48998725",
"0.489008",
"0.48853102",
"0.48743397",
"0.48724347",
"0.48688915",
"0.48652667",
"0.48570752",
"0.4851405",
"0.48503795",
"0.4846854",
"0.48452353",
"0.48306486",
"0.48277506",
"0.48267275",
"0.4824584",
"0.48198482",
"0.48186865",
"0.48139268",
"0.48103514",
"0.48089457",
"0.48083776",
"0.4805355",
"0.48029056",
"0.48016828",
"0.47964743",
"0.47916952",
"0.47890848",
"0.47882336",
"0.47880143",
"0.4773127",
"0.4768987",
"0.4768987",
"0.4768987",
"0.4768987",
"0.4768987",
"0.4768987"
] |
0.64463025
|
0
|
Removes all actions on this actor.
|
public void clearActions() {
internalGroup.clearActions();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void clearActions();",
"public void removeAllActions() {\n menuDirty = true;\n actions.clear();\n selectedAction = null;\n }",
"public void clear() {\n\t\tfor (Action action : actionList) {\n\t\t\tif (action instanceof ForwardingAction)\n\t\t\t\t((ForwardingAction) action)\n\t\t\t\t\t\t.removeActionListener(actionForwarder);\n\t\t}\n\t\tsuper.clear();\n\t\tactionList.clear();\n\t}",
"public Builder clearActions() {\n if (actionsBuilder_ == null) {\n actions_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n actionsBuilder_.clear();\n }\n return this;\n }",
"public Builder clearActions() {\n if (actionsBuilder_ == null) {\n actions_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n actionsBuilder_.clear();\n }\n return this;\n }",
"protected void resetActionsCache() {\r\n\t\tactionsCache.clear();\r\n\t}",
"private void cleanActionsTables() {\n getContentResolver().delete(\n ChatObjectContract.CONTENT_URI_ACTIONS_PUBLIC,\n null,\n null\n );\n getContentResolver().delete(\n ChatObjectContract.CONTENT_URI_ACTIONS_PRIVATE,\n BaseColumns.MSG_IN_QUEUE + \"=1\",\n null\n );\n }",
"private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }",
"public void clearClickListeners() {\n addActions.clear();\n addActions2.clear();\n removeActions.clear();\n removeActions2.clear();\n }",
"@OneToMany(fetch = FetchType.LAZY, mappedBy = Action.Attributes.SYSTEM, targetEntity = Action.class, orphanRemoval = true)\n\tpublic Set<Action> getActions() {\n\t\treturn this.actions;\n\t}",
"public void removeAllInteractionsListeners() {\n _listeners.clear();\n }",
"public Collection<Action> getActions() {\n\t\treturn Collections.unmodifiableCollection(actionList);\n\t}",
"public void removeAllAgents() {\n\t\tagents.clear();\n\t}",
"public void removeAllActionBlocks() {\n List<AccountingLineViewField> fieldsToRemove = new ArrayList<AccountingLineViewField>();\n for (AccountingLineViewField field : fields) {\n if (field.isActionBlock()) {\n fieldsToRemove.add(field);\n } else {\n field.removeAllActionBlocks();\n }\n }\n fields.removeAll(fieldsToRemove);\n }",
"public List<Action> getActions() {\n\n if (actions != null)\n return new ArrayList<>(actions.values());\n else\n return new ArrayList<>();\n\n }",
"public void clear() {\n mMenuItems.clear();\n mModelList.clear();\n mActionViewLayout.clear();\n }",
"public List<Action> getActions()\r\n {\r\n return Collections.unmodifiableList(actions);\r\n }",
"<T extends ListenableEvent> void removeActions(ActionType<T> type);",
"public void clearAll() {\r\n msgMapping.clear();\r\n }",
"public void finish() {\n if ( actor.hasActions() )\r\n actor.getActions().first().act(100000);\r\n // remove any remaining actions\r\n actor.clearActions();\r\n }",
"public void removeAll () {\n\t\teffects.clear();\n\t}",
"public void resetAction()\r\n {\r\n this.action = null;\r\n }",
"public void clean(){\n preprocessorActionsPerFile.clear();\n }",
"public void collect() {\n\t\tthis.getOwnerArea().unregisterActor(this);\n\t\t\n\t}",
"@Override\n public void clear() {\n for (E e : this) {\n remove(e);\n }\n }",
"private void removeActionListeners() {\n for (Integer key: app.getWorkSpace().getWorkSpaceMap().keySet()) {\n removeActionListener(app.getWorkSpace().getGridCell(key));\n }\n }",
"public void removeAll() {\n\t\tmListenerSet.clear();\n\t}",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (ESFInstructsShootingDirector esfInstructsShootingDirector : findAll()) {\n\t\t\tremove(esfInstructsShootingDirector);\n\t\t}\n\t}",
"public Builder clearMinigameAction() {\n if (minigameActionBuilder_ == null) {\n minigameAction_ = null;\n onChanged();\n } else {\n minigameAction_ = null;\n minigameActionBuilder_ = null;\n }\n\n return this;\n }",
"protected void clear() {\n\n\t\tfinal HashSet<Transition> t = new HashSet<>(transitions);\n\t\tfor (final Transition o : t) {\n\t\t\tremoveTransition(o);\n\t\t}\n\t\ttransitions = new HashSet<>();\n\n\t\tfinal HashSet<State> s = new HashSet<>(states);\n\t\tfor (final State o : s) {\n\t\t\tremoveState(o);\n\t\t}\n\t\tstates = new HashSet<>();\n\n\t\tfinalStates = new HashSet<>();\n\n\t\tinitialState = null;\n\n\t\tcachedStates = null;\n\n\t\tcachedTransitions = null;\n\n\t\tcachedFinalStates = null;\n\n\t\ttransitionFromStateMap = new HashMap<>();\n\t\ttransitionToStateMap = new HashMap<>();\n\n\t\ttransitionArrayFromStateMap = new HashMap<>();\n\n\t\ttransitionArrayToStateMap = new HashMap<>();\n\n\t\twhile (myNotes.size() != 0) {\n\t\t\tfinal AutomatonPane ap = myNotes.get(0).getView();\n\t\t\tap.remove(myNotes.get(0));\n\t\t\tap.repaint();\n\t\t\tdeleteNote(myNotes.get(0));\n\t\t}\n\t}",
"public void clear() {\n\t\t//Kill all entities\n\t\tentities.parallelStream().forEach(e -> e.kill());\n\n\t\t//Clear the lists\n\t\tentities.clear();\n\t\tdrawables.clear();\n\t\tcollidables.clear();\n\t}",
"public Set getActions () {\n if (actions == null) // lazy aren't we\n initActions ();\n return actions;\n }",
"@Override\n public void purgeFlows() {\n setOfFlowsToAdd.clear();\n setOfFlowsToDelete.clear();\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tclear();\r\n\t\t\t}",
"public void clearAll() {\n infectionsQueue.clear();\n populationQueue.clear();\n deathsQueue.clear();\n healsQueue.clear();\n }",
"public Builder removeActions(int index) {\n if (actionsBuilder_ == null) {\n ensureActionsIsMutable();\n actions_.remove(index);\n onChanged();\n } else {\n actionsBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removeActions(int index) {\n if (actionsBuilder_ == null) {\n ensureActionsIsMutable();\n actions_.remove(index);\n onChanged();\n } else {\n actionsBuilder_.remove(index);\n }\n return this;\n }",
"void removeAll(){\n\t\tmessages.clear();\n\t}",
"@Override\r\n\tpublic List<ActionInput> getActions()\r\n\t{\n\t\treturn null;\r\n\t}",
"public void clear() {\n synchronized (mMxEventDispatcher) {\n mIsAlive = false;\n // remove any listener\n mMxEventDispatcher.clearListeners();\n }\n\n // clear the store\n mStore.close();\n mStore.clear();\n\n if (null != mSyncHandlerThread) {\n mSyncHandlerThread.quit();\n mSyncHandlerThread = null;\n }\n }",
"@Override\n\tpublic void removeAction(int actionId) {\n\t\t\n\t}",
"public Actions getActions() {\n if (actions == null) {\n actions = new Actions();\n }\n return actions;\n }",
"public final void clearSelectedActors() {\n selectedActors.clear();\n updateStateUiAfterSelection();\n }",
"public Builder clearAction() {\n bitField0_ = (bitField0_ & ~0x00000002);\n action_ = 0;\n onChanged();\n return this;\n }",
"public void dispose() {\n\t\t\r\n\t\tthis.actionSet = null;\r\n\t\tsuper.dispose();\r\n\r\n\t}",
"public Builder clearAction() {\n bitField0_ = (bitField0_ & ~0x00000001);\n action_ = 0;\n onChanged();\n return this;\n }",
"public void clearMotors() {\n\t\tmotors.clear();\n\t}",
"public void clearMessages() throws RemoteException {\r\n messages.removeAllElements();\r\n }",
"public void clear() {\r\n items.clear();\r\n keys.clear();\r\n }",
"public Action removeAction(String name) {\n\n //set the deleted action to null\n for(Configuration conf : configurations) {\n\n for(Screen s : MainModel.getInstance().getScreensFromConf(conf)) {\n\n for(Link link : s.getLinks()) {\n\n if(link.getAction() != null) {\n\n if(link.getAction().getName().equals(name))\n link.setAction(null);\n\n }\n }\n }\n }\n\n Action thisAction = getAction(name);\n\n //SE L'AZIONE è DI TIPO VOCALE\n if(thisAction instanceof ActionVocal) {\n\n ArrayList<SVMmodel> modelsRemoved = new ArrayList<>();\n //RIMUOVO TUTTI I SUONI CHE SI RIFERISCONO AD ESSA\n ((ActionVocal) thisAction).deleteAllSounds();\n\n //E TUTTI GLI SVMModels CHE HANNO QUEI SUONI\n for (SVMmodel mod : svmModels.values()) {\n\n if (mod.containsSound(thisAction.getName())) {\n mod.prepareForDelete();\n modelsRemoved.add(mod);\n }\n\n }\n\n for(SVMmodel model : modelsRemoved) {\n\n svmModels.remove(model.getName());\n\n for(Configuration conf : configurations) {\n\n if(conf.hasModel() && conf.getModel().equals(model)) {\n conf.setModel(null);\n }\n }\n }\n\n }\n\n return actions.remove(name);\n }",
"ActionsSet getActions();",
"public void ClearAllThings(ActionEvent actionEvent) {\n questionName.clear();\n question.clear();\n subjects.setValue(0);\n className.setValue(0);\n answer.clear();\n points.clear();\n hint.clear();\n easy.setSelected(false);\n medium.setSelected(false);\n hard.setSelected(false);\n }",
"public void clear() {\r\n messageMap.clear();\r\n }",
"public java.util.List<com.rpg.framework.database.Protocol.CharacterAction> getActionsList() {\n if (actionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(actions_);\n } else {\n return actionsBuilder_.getMessageList();\n }\n }",
"public java.util.List<com.rpg.framework.database.Protocol.CharacterAction> getActionsList() {\n if (actionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(actions_);\n } else {\n return actionsBuilder_.getMessageList();\n }\n }",
"public void removeAgents() {\n\t\tfor (TestLiveAgent agent : agents.values()) {\n\t\t\tagent.stop();\n\t\t}\n\t\tagents.clear();\n\t}",
"public Builder clearAction() {\n \n action_ = getDefaultInstance().getAction();\n onChanged();\n return this;\n }",
"public static void removeAll() {\r\n\t\tfor (final Block block : new HashSet<>(instances_.keySet())) {\r\n\t\t\trevertBlock(block, Material.AIR);\r\n\t\t}\r\n\t\tfor (final TempBlock tempblock : REVERT_QUEUE) {\r\n\t\t\ttempblock.state.update(true, applyPhysics(tempblock.state.getType()));\r\n\t\t\tif (tempblock.revertTask != null) {\r\n\t\t\t\ttempblock.revertTask.run();\r\n\t\t\t}\r\n\t\t}\r\n\t\tREVERT_QUEUE.clear();\r\n\t}",
"public void removeAllListeners() {\n messageListeners.clear();\n children.clear();\n }",
"public final void clear()\n\t{\n\t\tif (messages != null)\n\t\t{\n\t\t\tmessages.clear();\n\t\t}\n\t}",
"public void clear()\n {\n for (final Rule rule : this.rules)\n {\n rule.clear();\n }\n\n this.rules.clear();\n }",
"public void clear() {\n this.atoms.clear();\n this.bonds.clear();\n this.finished = false;\n }",
"public synchronized void removeAll() {\r\n\t\tif (trackedResources == null)\r\n\t\t\treturn;\r\n\t\tPair<IPath, IResourceChangeHandler>[] entries = (Pair<IPath, IResourceChangeHandler>[]) trackedResources.toArray(new Pair[trackedResources.size()]);\r\n\t\tfor (Pair<IPath, IResourceChangeHandler> entry : entries) {\r\n\t\t\tremoveResource(entry.first, entry.second);\r\n\t\t}\r\n\t}",
"public void clear() {\n\t\tsynchronized (queue) {\n\t\t\tthis.queue.clear();\n\t\t\tthis.totalEvents = 0;\n\t\t}\n\t}",
"public synchronized void clear() {\n collected.clear();\n }",
"public void removeAllAlarms() {\n synchronized (mLock) {\n mAlarmPriorityQueue.clear();\n setNextAlarmLocked(0);\n }\n }",
"public void clear() {\n\t\tcollectors[MaterialState.TRANSLUCENT_INDEX].clear();\n\n\t\tfor (int i = 0; i < solidCount; i++) {\n\t\t\tsolidCollectors.get(i).clear();\n\t\t}\n\n\t\tsolidCount = 0;\n\n\t\tArrays.fill(collectors, 1, collectors.length, null);\n\t}",
"public void removeAllMessages() {\n\t removeMessages(getMessageList().toArray(new BasicMessage[0]));\n\t}",
"public void resetAllExceptLogout() {\n reset(getAllExcept(UserActions.NOTIFY_LOGOUT_ACTION));\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n clear();\n\n }",
"public List<Action> actions() {\r\n\t\treturn this.actions;\r\n\t}",
"public void removeAll() {\n\t\tsynchronized (mNpcs) {\n\t\t\tmNpcs = Collections.synchronizedList(new ArrayList<Npc>());\n\t\t\tmDemonCount = 0;\n\t\t\tmHumanCount = 0;\n\t\t}\n\t}",
"void clearUndo() {\r\n while (!listOfBoards.isEmpty()) {\r\n listOfMoves.pop();\r\n listOfBoards.pop();\r\n }\r\n }",
"public void clear(){\n this.collected.clear();\n }",
"public void clear() {\n counters.clear();\n }",
"public void clear() {\n items.clear();\n update();\n }",
"public void clearAll();",
"public void clearAll();",
"@SuppressWarnings(\"unused\")\n public void removeAllListeners() {\n eventHandlerList.clear();\n }",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAllTransactions() {\n Realm realm = mRealmProvider.get();\n realm.executeTransaction(realm1 -> realm1.deleteAll());\n }",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (ScienceAppExecute scienceAppExecute : findAll()) {\n\t\t\tremove(scienceAppExecute);\n\t\t}\n\t}",
"public void removeAllProducers() {\n producers.clear();\n }",
"public void act()\n {\n if (health == 0)\n {\n this.remove();\n }\n }",
"public abstract void removeAction(Context context, NAAction action);",
"public Builder clearActionLog() {\n if (actionLogBuilder_ == null) {\n actionLog_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000100);\n onChanged();\n } else {\n actionLogBuilder_.clear();\n }\n return this;\n }",
"public void clearAll() {\n\t\tuserMap.clear();\n\t}",
"public Builder clearActionCommand() {\n bitField0_ = (bitField0_ & ~0x00000010);\n actionCommand_ = 0;\n onChanged();\n return this;\n }",
"public void clear() {\n\t\tthis._cooccurenceMatrix = null;\n\t\tthis._modules.clear();\n\t\tthis._vertices.clear();\n\t}"
] |
[
"0.766599",
"0.75381666",
"0.7507289",
"0.7006579",
"0.7006579",
"0.66542405",
"0.6397194",
"0.6363895",
"0.6334607",
"0.6168668",
"0.6161699",
"0.61088586",
"0.60816294",
"0.60405904",
"0.59955835",
"0.5988975",
"0.59804076",
"0.5964703",
"0.596459",
"0.5963392",
"0.5953705",
"0.5940263",
"0.5934779",
"0.59215534",
"0.5839749",
"0.58359754",
"0.5814964",
"0.57956046",
"0.5776059",
"0.57535815",
"0.5745355",
"0.57374954",
"0.5723551",
"0.57146835",
"0.5700401",
"0.56888163",
"0.56888163",
"0.5681624",
"0.56709343",
"0.56583637",
"0.56415766",
"0.56289023",
"0.5617543",
"0.5611671",
"0.56079066",
"0.5605395",
"0.5587171",
"0.55622137",
"0.5557715",
"0.55553603",
"0.5546735",
"0.5542165",
"0.5538748",
"0.5529755",
"0.5529235",
"0.55258065",
"0.5523404",
"0.551925",
"0.55189013",
"0.55120736",
"0.5506239",
"0.5504187",
"0.54881036",
"0.5479987",
"0.5473468",
"0.5469682",
"0.5456038",
"0.5449434",
"0.54458743",
"0.5436949",
"0.54310083",
"0.5421552",
"0.5421114",
"0.54172635",
"0.5404557",
"0.5404323",
"0.5403561",
"0.5403561",
"0.54031193",
"0.54004735",
"0.54004735",
"0.54004735",
"0.54004735",
"0.54004735",
"0.54004735",
"0.54004735",
"0.54004735",
"0.54004735",
"0.54004735",
"0.54004735",
"0.54004735",
"0.5398321",
"0.5380535",
"0.5373869",
"0.5368641",
"0.5367802",
"0.536758",
"0.5367299",
"0.5365348",
"0.53627247"
] |
0.77821255
|
0
|
Adds an actor as a child of this group, at a specific index. The actor is first removed from its parent group, if any.
|
public void addActorAt(int index, Actor actor) {
internalGroup.addActorAt(index, actor.internalActor);
actor.setParent(this);
actor.setStage(getStage());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void addChild(final int childIndex) {\n if (!this.children.contains(childIndex)) {\n this.children.add(childIndex);\n }\n }",
"public void moveChild( ChildType child, int index );",
"@objid (\"808c0873-1dec-11e2-8cad-001ec947c8cc\")\n public final void moveChild(GmNodeModel child, int index) {\n int oldIndex = this.children.indexOf(child);\n \n if (oldIndex == -1) {\n throw new IllegalArgumentException(\"The element is not in the children list\");\n }\n \n // If child already at asked position do nothing\n if (index == oldIndex) {\n return;\n }\n \n // If child already at asked last position do nothing\n if (index == -1 && oldIndex == this.children.size() - 1) {\n return;\n }\n \n this.children.remove(child);\n \n if (index == -1) {\n // Add to the end\n this.children.add(child);\n } else if (index > oldIndex) {\n // Child moved after old position,\n // Fix the index after removal.\n this.children.add(index - 1, child);\n } else {\n // Child moved before old position\n this.children.add(index, child);\n }\n \n firePropertyChange(IGmObject.PROPERTY_CHILDREN, null, child);\n }",
"ComponentAgent getChild(int index);",
"public void addChildAt(int index, FileNode child) {\r\n child.setParent(this);\r\n this.children.add(index, child);\r\n childNum++;\r\n }",
"@Override\n\tpublic void getChild(int index) {\n\t\t\n\t}",
"public void addChild(int index, Node node) {\n\t\tthis.children.add(index, node);\n\t}",
"@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }",
"public void addChild( ChildType child );",
"public AddChildEvent(Object source, AbstractComponent child, int childIndex) {\n super(source);\n this.child = child;\n this.childIndex = childIndex;\n }",
"public void move(int index, int targetIndex) {\n\t\tif ((index < 0) || (index >= children.size()))\n\t\t\tthrow new IndexOutOfBoundsException(\"Argument index is out of bounds\");\n\t\tif ((targetIndex < 0) || (targetIndex >= children.size()))\n\t\t\tthrow new IndexOutOfBoundsException(\"Argument targetIndex is out of bounds\");\n\t\tGuiElementBase element = children.remove(index);\n\t\tchildren.add(targetIndex, element);\n\t\tonChildMoved(element);\n\t}",
"public void insertChildAt(WSLNode node, int index) {\n\t\tchildren.insertElementAt(node, index);\n\t}",
"private static void addChildAt(\n ReactShadowNode parentNode,\n ReactShadowNode childNode,\n int index,\n int prevIndex) {\n if (index <= prevIndex) {\n throw new RuntimeException(\n \"Invariant failure, needs sorting! \" + index + \" <= \" + prevIndex);\n }\n\n parentNode.addChildAt(childNode, index);\n }",
"public void removeChild(int index)\n {\n children.remove(index);\n }",
"public void addGuest(View aChild, int anIndex) { _scroller.addGuest(aChild, anIndex); }",
"public ChildType getChildAt( int index );",
"public void insertChild(XMLElement child, int index)\n/* */ {\n/* 422 */ if (child == null) {\n/* 423 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 425 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 426 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* 427 */ if (lastChild.getLocalName() == null) {\n/* 428 */ lastChild.setContent(lastChild.getContent() + \n/* 429 */ child.getContent());\n/* 430 */ return;\n/* */ }\n/* */ }\n/* 433 */ child.parent = this;\n/* 434 */ this.children.insertElementAt(child, index);\n/* */ }",
"public void addChild(DisplayChildWindowContainer child, int index) {\n throw new UnsupportedOperationException(\"See DisplayChildWindowContainer\");\n }",
"protected void addChild(PafDimMember childNode) throws PafException {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// Create a new ArrayList of child nodes, if this is the first child\r\n\t\t\tif (children == null) \r\n\t\t\t\tchildren = new ArrayList<PafDimMember>();\r\n\t\t\t\r\n\t\t\t// Set parent of child node to current PafBaseMember node\r\n\t\t\tchildNode.parent = this;\r\n\r\n\t\t\t// Add child node to PafBaseTree\r\n\t\t\tchildren.add(childNode);\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// throw Paf Exception\r\n\t\t\tString errMsg = \"Java Exception: \" + ex.getMessage();\r\n\t\t\tlogger.error(errMsg);\r\n\t\t\tPafException pfe = new PafException(errMsg, PafErrSeverity.Error, ex);\t\r\n\t\t\tthrow pfe;\r\n\t\t}\r\n\t}",
"private void moveChild(ReactShadowNode child, int moveFromIndex) {\n mMoveProxy.setChildMoveFrom(moveFromIndex, child);\n }",
"@Override\n\tpublic Component getChild(int index) {\n\t\treturn _childComponents.get(index);\n\t}",
"public final void addActor(DodlesActor actor) {\n if (actor.getName() == null) {\n throw new GdxRuntimeException(\"Actor must have a name set!\");\n }\n\n all.put(actor.getName(), actor);\n\n if (actor instanceof BaseDodlesViewGroup) {\n for (Object view : ((BaseDodlesViewGroup) actor).getViews()) {\n BaseDodlesGroup bdgView = (BaseDodlesGroup) view;\n all.put(bdgView.getName(), bdgView);\n }\n }\n\n DodleReference ref = references.get(actor.getTrackingID());\n\n if (ref != null) {\n ref.addRef(actor.getName());\n }\n }",
"public void removeChild(int index)\n/* */ {\n/* 457 */ this.children.removeElementAt(index);\n/* */ }",
"void add(Actor actor);",
"public void addChild(T child) {\n this.children.add(child);\n child.setParent(this);\n this.invalidate();\n }",
"public void add( Bacteria child) {\n\t\tinds.add(child);\n\t\tpopSize++;\n\t}",
"private void addChild(Ent e){\n\t\tif(e.getParent() == this){\n\t\t\treturn;\n\t\t}else if(e.getParent() != null){\n\t\t\te.removeFromParent();\n\t\t}\n\t\tif(e instanceof PhysEnt){\n\t\t\tDbg.Error(\"Cannot make PhysEnt a child : PhysEnt must be root entities.\");\n\t\t\treturn;\n\t\t}\n\t\te.bound.setParent(this);\n\t\tif(childList == null){\n\t\t\tchildList = new ArrayList<Ent>();\n\t\t}\n\t\tchildList.add(e);\n\t\tfor(Scene s:sceneList){\n\t\t\ts.addEntity(e);\n\t\t}\n\t}",
"@Override public BTreeNode getChild(int index) {\n return this.children[index];\n }",
"public void addActor(Actor actor) {\n internalGroup.addActor(actor.internalActor);\n actor.setParent(this);\n actor.setStage(getStage());\n }",
"@Override\n\tpublic Component getChild(int i) {\n\t\treturn list.get(i);\n\t}",
"public void addActor(Actor actor) { ActorSet.addElement(actor); }",
"public void addChild(Node child)\n\t{\n\t\tchild.parent = this;\n\t\t//if (!children.contains(child))\n\t\t//{\t\n\t\tchildren.add(child);\n\t\t//children.get(children.indexOf(child)-1).setBro(child);\n\t\t//}\n\t}",
"public void add(T actor)\n {\n\tif (actor == null)\n\t throw new IllegalArgumentException(\"actor cannot be null.\");\n\n\tboolean _shouldCheck = actor.isChecked() || actors.size < minCheckCount;\n\tactor.setActorGroup(this);\n\tactors.add(actor);\n\tif (_shouldCheck)\n\t actor.setChecked(true);\n }",
"public void removeActor(int index) { ActorSet.removeElementAt(index); }",
"private void addChildren(\n ReactShadowNode parentNode,\n @Nullable ReadableArray addChildTags,\n @Nullable ReadableArray addAtIndices) {\n\n int prevIndex = -1;\n\n int moveToIndex;\n int moveToChildIndex;\n if (mMoveProxy.size() == 0) {\n moveToIndex = Integer.MAX_VALUE;\n moveToChildIndex = Integer.MAX_VALUE;\n } else {\n moveToIndex = 0;\n moveToChildIndex = mMoveProxy.getMoveTo(0);\n }\n\n int numNodesToAdd;\n int addToIndex;\n int addToChildIndex;\n if (addAtIndices == null) {\n numNodesToAdd = 0;\n addToIndex = Integer.MAX_VALUE;\n addToChildIndex = Integer.MAX_VALUE;\n } else {\n numNodesToAdd = addAtIndices.size();\n addToIndex = 0;\n addToChildIndex = addAtIndices.getInt(0);\n }\n\n // both mMoveProxy and addChildTags are already sorted, but combined order is not sorted. Use\n // a merge step from mergesort to walk over both arrays and extract elements in sorted order.\n\n while (true) {\n if (addToChildIndex < moveToChildIndex) {\n ReactShadowNode addToChild = resolveShadowNode(addChildTags.getInt(addToIndex));\n addChildAt(parentNode, addToChild, addToChildIndex, prevIndex);\n prevIndex = addToChildIndex;\n\n ++addToIndex;\n if (addToIndex == numNodesToAdd) {\n addToChildIndex = Integer.MAX_VALUE;\n } else {\n addToChildIndex = addAtIndices.getInt(addToIndex);\n }\n } else if (moveToChildIndex < addToChildIndex) {\n ReactShadowNode moveToChild = mMoveProxy.getChildMoveTo(moveToIndex);\n addChildAt(parentNode, moveToChild, moveToChildIndex, prevIndex);\n prevIndex = moveToChildIndex;\n\n ++moveToIndex;\n if (moveToIndex == mMoveProxy.size()) {\n moveToChildIndex = Integer.MAX_VALUE;\n } else {\n moveToChildIndex = mMoveProxy.getMoveTo(moveToIndex);\n }\n } else {\n // moveToChildIndex == addToChildIndex can only be if both are equal to Integer.MAX_VALUE\n // which means that we exhausted both arrays, and all children are added.\n break;\n }\n }\n }",
"private void _animateDeckDisplayedChild(UIComponent eventComponent, int newDisplayedChildIndex) {\n // Find the nearest deck ancestor:\n RichDeck deck = null;\n String eventComponentId = eventComponent.getId();\n while (deck == null) {\n if (eventComponent == null) {\n System.err.println(\"Unable to locate a deck ancestor from id \" + eventComponentId);\n return;\n } else if (eventComponent instanceof RichDeck) {\n deck = (RichDeck) eventComponent;\n break;\n }\n eventComponent = eventComponent.getParent();\n }\n System.out.println(\"Child is-\" + eventComponent.getId());\n String newDisplayedChild = deck.getChildren().get(newDisplayedChildIndex).getId();\n\n // Update the displayedChild:\n System.out.println(\"Display Child-\" + newDisplayedChild);\n deck.setDisplayedChild(newDisplayedChild);\n\n // Add this component as a partial target:\n RequestContext.getCurrentInstance().addPartialTarget(deck);\n }",
"@Override\n\t\tpublic Object getChild(int groupPosition, int childPosition) {\n\t\t\treturn childPosition;\n\t\t}",
"public void addChild(BTreeNode<E> newChild) {\n\t\tint index = 0;\n\t\tfor (BTreeNode<E> node : children) {\n\t\t\tif (node == null || cmp.compare(newChild.getData(0), node.data.get(0)) > 0) {\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t\tchildren.add(index, newChild);\n\t\tnewChild.parent = this;\n\t}",
"private void addChild(final TWidget child) {\n children.add(child);\n\n if ((child.enabled)\n && !(child instanceof THScroller)\n && !(child instanceof TVScroller)\n ) {\n for (TWidget widget: children) {\n widget.active = false;\n }\n child.active = true;\n activeChild = child;\n }\n for (int i = 0; i < children.size(); i++) {\n children.get(i).tabOrder = i;\n }\n }",
"public Component getChild(int i){\n return null;\n }",
"public RMShape getChild(int anIndex) { return null; }",
"Object getChild(int groupPosition, int childPosition);",
"public void addChild(Node child){\n children.add(child);\n }",
"private Node addChild(Node parent, NodeTypes type, String name, String indexName) {\r\n Node child = null;\r\n child = neo.createNode();\r\n child.setProperty(INeoConstants.PROPERTY_TYPE_NAME, type.getId());\r\n // TODO refactor 2 property with same name!\r\n child.setProperty(INeoConstants.PROPERTY_NAME_NAME, name);\r\n child.setProperty(INeoConstants.PROPERTY_SECTOR_NAME, indexName);\r\n luceneInd.index(child, NeoUtils.getLuceneIndexKeyByProperty(getNetworkNode(), INeoConstants.PROPERTY_NAME_NAME, type),\r\n indexName);\r\n if (parent != null) {\r\n parent.createRelationshipTo(child, NetworkRelationshipTypes.CHILD);\r\n debug(\"Added '\" + name + \"' as child of '\" + parent.getProperty(INeoConstants.PROPERTY_NAME_NAME));\r\n }\r\n return child;\r\n }",
"public void add( int i, CoShapePageItemView shapeItemView)\n{\n\tCoCompositePageItemIF parent = (CoCompositePageItemIF) m_pageItem;\n\n\t// since we can't be sure that the client cached child order is valid this is the best we can do\n\t// the child order will be synchronized by a call to sync.\n\tint n = 0;\n\tint N = m_children.size();\n\tfor\n\t\t( ; n < N; n++ )\n\t{\n\t\tint index = parent.getIndexOfChild( ( (CoShapePageItemView) m_children.get( n ) ).getShapePageItem() );\n\t\tif ( index == -1 ) continue;\n\t\tif ( i > index ) break;\n\t}\n\ti = n;\n\t\n\tm_children.add( i, shapeItemView );\n\tshapeItemView.setParent( this );\n}",
"public ASTNode getChild(int i)\n\t{\n\t\treturn children.get(i);\n\t}",
"void addChild( JBurgPatternMatcher child )\n\t{\n checkPrecondition ( ! this.hasNaryTail(), \"Cannot add a subpattern after an n-ary subpattern.\");\n checkPrecondition ( null == child.parent, \"Child \" + child.toString() + \" already has a parent.\");\n \n child.positionInParent = new Integer(this.subPatterns.size());\n child.parent = this;\n this.subPatterns.add(child);\n\t}",
"public void addChild(IndividualReference individualReference) {\n if (this.children == null) this.children = new ArrayList<>();\n this.children.add(individualReference);\n setNumChildren(Integer.toString(Integer.parseInt(this.numChildren.toString()) + 1));\n }",
"public Shape getChildAllocation(int index, Shape a) {\n return a;\n }",
"public void addCreature(Creature child, int row, int col)\n\t{\n\t\tgrid[row][col] = child;\n\t}",
"public void addChild(Character ch){\n children.put(ch,new Node(ch));\n }",
"public ParseTreeNode getChild(final int index) {\r\n return _children.get(index);\r\n }",
"public void removeChildAt(int index) {children.removeElementAt(index);}",
"public TreeItem getChild(int i) { return (TreeItem)children[i]; }",
"@Override\n public void postProcess(int index, ApplicationInvite invite) {\n InviteOrganisation inviteOrganisation = invite.getInviteOrganisation();\n if (inviteOrganisation != null && !simpleMap(inviteOrganisation.getInvites(), ApplicationInvite::getId).contains(invite.getId())) {\n inviteOrganisation.getInvites().add(invite);\n }\n }",
"public Shape shapeAt(int index) throws IndexOutOfBoundsException\n {\n // Return the child at index\n return children.get(index);\n }",
"ComponentAgent getLastChild();",
"public void addChild(final IBiNode c) {\n // 1st child\n if (this.child == null) {\n this.setChild(c);\n } else {\n // 2nd - nth child\n this.child.addSibling(c);\n }\n }",
"public TreeNode getChildAt(int childIndex)\n {\n return mChildren[childIndex];\n }",
"public FileNode removeChildAt(int index) {\r\n childNum--;\r\n \treturn children.remove(index);\r\n }",
"public int getChildIndex() {\n return childIndex;\n }",
"public final void rule__AstActor__Group__9() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7753:1: ( rule__AstActor__Group__9__Impl rule__AstActor__Group__10 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7754:2: rule__AstActor__Group__9__Impl rule__AstActor__Group__10\n {\n pushFollow(FOLLOW_rule__AstActor__Group__9__Impl_in_rule__AstActor__Group__916023);\n rule__AstActor__Group__9__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__10_in_rule__AstActor__Group__916026);\n rule__AstActor__Group__10();\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 }",
"public void addActor(CastMember actor)\n\t{\n\t\tpeopleAct.add(actor);\n\t}",
"public FileNode getChildAt(int index) {\r\n return children.get(index);\r\n }",
"public void addChild(FileNode child) {\r\n child.setParent(this);\r\n children.add(child);\r\n childNum++;\r\n }",
"public void addChildNode (Node child) {\n\t\tObjects.requireNonNull(child);\n\t\t\n\t\tif(children == null) {\n\t\t\tchildren = new ArrayIndexedCollection();\t\n\t\t}\n\t\t\n\t\tchildren.add(child);\n\t}",
"@Override\n public Object getChild(int groupPosition, int childPosition) {\n return children[groupPosition][childPosition];\n }",
"public XMLElement getChild(int index)\n/* */ {\n/* 545 */ return (XMLElement)this.children.elementAt(index);\n/* */ }",
"abstract void addChild(SpanBranch span, int position);",
"void insertChild(K key, Node child) {\r\n\t\t\tint loc = Collections.binarySearch(keys, key);\r\n\t\t\tint childIndex = loc >= 0 ? loc + 1 : -loc - 1;\r\n\t\t\tif (loc >= 0) {\r\n\t\t\t\tchildren.set(childIndex, child);\r\n\t\t\t} else {\r\n\t\t\t\tkeys.add(childIndex, key);\r\n\t\t\t\tchildren.add(childIndex + 1, child);\r\n\t\t\t}\r\n\t\t}",
"public HTMLComponent getChild(int i);",
"@Override\n public void addChild(PandoraBoxAdapter<T> sub) {\n if (sub == null)\n return;\n\n if (sub.hasBind2Parent()) {\n sub.removeFromOriginalParent();\n }\n\n onBeforeChanged();\n int groupIndex = subs.size();\n sub.setGroupIndex(groupIndex);\n\n long count = getDataCount();\n sub.setStartIndex((int) count);\n sub.notifyHasAddToParent(this);\n subs.add(sub);\n onAfterChanged();\n }",
"public void addChild(Node childnode)\n {\n children.add(childnode);\n }",
"public Actor getActor(int index) { return (Actor)ActorSet.elementAt(index); }",
"public void addAnimal(int index, Animal a) {\n\t\tanimals.add(a);\n\t}",
"public Node getChild(int index) {\n\t\treturn this.children.get(index);\n\t}",
"public void childAdder(Character ch)\n {\n node.put(ch,new Node());\n }",
"public WSLNode getChild(int i) {return (WSLNode) children.elementAt(i);}",
"public final void rule__AstActor__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7525:1: ( ( 'actor' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7526:1: ( 'actor' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7526:1: ( 'actor' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7527:1: 'actor'\n {\n before(grammarAccess.getAstActorAccess().getActorKeyword_1()); \n match(input,70,FOLLOW_70_in_rule__AstActor__Group__1__Impl15563); \n after(grammarAccess.getAstActorAccess().getActorKeyword_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 }",
"private void selectChild(int index) {\n if (selectedIndex != index) {\n selectedIndex = -1;\n for (int i = 0; i < getChildCount(); i++) {\n getChildAt(i).setSelected(i == index);\n if (i == index) {\n selectedIndex = index;\n }\n }\n\n if (changeListener != null)\n changeListener.onItemSelect(this, selectedIndex);\n }\n }",
"@Override\r\n\tpublic boolean addActor(String v)\r\n\t{\r\n\t\tActor newActor = new Actor(v);\r\n\t\t\r\n\t\tif(!graph.containsVertex(newActor))\r\n\t\t{\r\n\t\t\tgraph.addVertex(newActor);\r\n\t\t\tactorNames.add(v);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void addParent(final int parentIndex) {\n if (!this.parents.contains(parentIndex)) {\n this.parents.add(parentIndex);\n }\n }",
"public Glyph child(int position) throws OperationNotSupportedException, IndexOutOfBoundsException {\n throw new OperationNotSupportedException(\"This Glyph cannot have children\");\n }",
"void appendChild(Object child);",
"@Override\n public ConfigurationNode getChild(int index)\n {\n return children.getNode(index);\n }",
"private int[] getChildren(int index) {\r\n int[] children = new int[] {\r\n 2 * index + 1,\r\n 2 * index + 2\r\n };\r\n return children;\r\n }",
"public void insert(int index, GuiElementBase element) {\n\t\tif (element.getContext() != null)\n\t\t\tthrow new UnsupportedOperationException(\"The specified element already has a context set\");\n\t\tif (getContext() != null)\n\t\t\telement.setContext(getContext());\n\t\telement.setParent(this);\n\t\tchildren.add(index, element);\n\t\t_hadChild = true;\n\t\tonChildAdded(element);\n\t}",
"public void addActor(String path) throws IOException {\r\n\t\tactors.add(ImageIO.read(new File(path)));\r\n\t}",
"@Override\n\tpublic IComponent getChild(int i) {\n\t\treturn components.get(i);\n\t}",
"protected final ViewLayoutState getChild(int index) {\n return getChildren().getChild(index);\n }",
"void addChild(InetSocketAddress address) throws IOException, JAXBException {\n if (!isRoot && parent.getAddress().equals(address)) {\n throw new IllegalArgumentException(\"Cannot assign parent to be a child\");\n }\n if (!children.containsKey(address)) {\n children.put(address, new Neighbor(socket, address, eventDispatcher));\n }\n }",
"@Override\n public void childAdded(Attraction a) {\n Log.d(\"Ajq\",\"Child added called\");\n attractions.add(a);\n }",
"@Override\n\tpublic void addView(View child, int idx) {\n\t\taddAndMeasureChild(child, idx);\n\t}",
"@Pure\n\tpublic int getChildIndex() {\n\t\treturn this.childIndex;\n\t}",
"@DISPID(1)\n\t// = 0x1. The runtime will prefer the VTID if present\n\t@VTID(7)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject addChild(\n\t\t\t@MarshalAs(NativeType.VARIANT) java.lang.Object node);",
"public void connectChild(int childNum,Node child)\r\n\t{\r\n\t\tchildArray[childNum]=child;\r\n\t\tif(child!=null)\r\n\t\t{\r\n\t\t\tchild.parent=this;\r\n\t\t}\r\n\t}",
"public void addActor(){\n actorProfileList.add(new ActorProfile());\n }",
"public void addChild(Node node){\n children.add(node);\n \n }",
"public final void insert(int index, @NonNull Chapter chapter) {\n children.add(index, requireSolitary(chapter));\n chapter.parent = this;\n }",
"public Path child(String name, boolean isIndex) {\n String[] newParts = new String[parts.length + 1];\n for (int i = 0; i < parts.length; i++) {\n newParts[i] = parts[i];\n }\n newParts[newParts.length - 1] = name;\n return new Path(newParts, isIndex);\n }"
] |
[
"0.72581524",
"0.6606969",
"0.6529802",
"0.64118",
"0.6297695",
"0.6111738",
"0.60061955",
"0.59124357",
"0.5886056",
"0.5821335",
"0.58012354",
"0.57913935",
"0.57815677",
"0.57363486",
"0.57326925",
"0.56741226",
"0.5657442",
"0.5610207",
"0.5592488",
"0.5550848",
"0.55419576",
"0.5420755",
"0.5417563",
"0.53751266",
"0.53510064",
"0.5328663",
"0.53093624",
"0.529467",
"0.5290874",
"0.5256397",
"0.5250979",
"0.52349645",
"0.52348363",
"0.52321434",
"0.5224373",
"0.5201357",
"0.51995784",
"0.51790094",
"0.51782835",
"0.51725936",
"0.51572734",
"0.5137109",
"0.5133375",
"0.51191837",
"0.51066715",
"0.5101289",
"0.50983673",
"0.5092518",
"0.5080088",
"0.50730914",
"0.5067162",
"0.50599873",
"0.5058698",
"0.50537294",
"0.5049786",
"0.5030903",
"0.5030846",
"0.50277275",
"0.5021842",
"0.50121254",
"0.5006896",
"0.49972352",
"0.49873754",
"0.49862537",
"0.49751654",
"0.49750185",
"0.49547657",
"0.495389",
"0.4933603",
"0.4932634",
"0.4932381",
"0.4913671",
"0.49130556",
"0.48970464",
"0.48932716",
"0.48835924",
"0.48764735",
"0.48687583",
"0.4867212",
"0.48661864",
"0.48629552",
"0.4857328",
"0.48496562",
"0.48442775",
"0.48391905",
"0.482753",
"0.4820151",
"0.48124313",
"0.48063564",
"0.47956178",
"0.47950363",
"0.47884566",
"0.47862488",
"0.4780451",
"0.47720906",
"0.47710156",
"0.47562286",
"0.47409278",
"0.47353733",
"0.47276238"
] |
0.6823053
|
1
|
Adds an actor as a child of this group, immediately before another child actor. The actor is first removed from its parent group, if any.
|
public void addActorBefore(Actor actorBefore, Actor actor) {
internalGroup.addActorBefore(actorBefore.internalActor, actor.internalActor);
actor.setParent(this);
actor.setStage(getStage());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void addActor(Actor actor) {\n internalGroup.addActor(actor.internalActor);\n actor.setParent(this);\n actor.setStage(getStage());\n }",
"public void addChild(Node child)\n\t{\n\t\tchild.parent = this;\n\t\t//if (!children.contains(child))\n\t\t//{\t\n\t\tchildren.add(child);\n\t\t//children.get(children.indexOf(child)-1).setBro(child);\n\t\t//}\n\t}",
"@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }",
"public void addActor(Actor actor) { ActorSet.addElement(actor); }",
"public void add(T actor)\n {\n\tif (actor == null)\n\t throw new IllegalArgumentException(\"actor cannot be null.\");\n\n\tboolean _shouldCheck = actor.isChecked() || actors.size < minCheckCount;\n\tactor.setActorGroup(this);\n\tactors.add(actor);\n\tif (_shouldCheck)\n\t actor.setChecked(true);\n }",
"Node insertBefore(Node newChild, Node refChild);",
"public void addChild( ChildType child );",
"private void addChild(Ent e){\n\t\tif(e.getParent() == this){\n\t\t\treturn;\n\t\t}else if(e.getParent() != null){\n\t\t\te.removeFromParent();\n\t\t}\n\t\tif(e instanceof PhysEnt){\n\t\t\tDbg.Error(\"Cannot make PhysEnt a child : PhysEnt must be root entities.\");\n\t\t\treturn;\n\t\t}\n\t\te.bound.setParent(this);\n\t\tif(childList == null){\n\t\t\tchildList = new ArrayList<Ent>();\n\t\t}\n\t\tchildList.add(e);\n\t\tfor(Scene s:sceneList){\n\t\t\ts.addEntity(e);\n\t\t}\n\t}",
"public final void addActor(DodlesActor actor) {\n if (actor.getName() == null) {\n throw new GdxRuntimeException(\"Actor must have a name set!\");\n }\n\n all.put(actor.getName(), actor);\n\n if (actor instanceof BaseDodlesViewGroup) {\n for (Object view : ((BaseDodlesViewGroup) actor).getViews()) {\n BaseDodlesGroup bdgView = (BaseDodlesGroup) view;\n all.put(bdgView.getName(), bdgView);\n }\n }\n\n DodleReference ref = references.get(actor.getTrackingID());\n\n if (ref != null) {\n ref.addRef(actor.getName());\n }\n }",
"private void addChild(final TWidget child) {\n children.add(child);\n\n if ((child.enabled)\n && !(child instanceof THScroller)\n && !(child instanceof TVScroller)\n ) {\n for (TWidget widget: children) {\n widget.active = false;\n }\n child.active = true;\n activeChild = child;\n }\n for (int i = 0; i < children.size(); i++) {\n children.get(i).tabOrder = i;\n }\n }",
"public void addChild(T child) {\n this.children.add(child);\n child.setParent(this);\n this.invalidate();\n }",
"void moveContactToGroup(Contact contactToMove, ContactGroup newParent)\n throws OperationFailedException;",
"void add(Actor actor);",
"@objid (\"808c0873-1dec-11e2-8cad-001ec947c8cc\")\n public final void moveChild(GmNodeModel child, int index) {\n int oldIndex = this.children.indexOf(child);\n \n if (oldIndex == -1) {\n throw new IllegalArgumentException(\"The element is not in the children list\");\n }\n \n // If child already at asked position do nothing\n if (index == oldIndex) {\n return;\n }\n \n // If child already at asked last position do nothing\n if (index == -1 && oldIndex == this.children.size() - 1) {\n return;\n }\n \n this.children.remove(child);\n \n if (index == -1) {\n // Add to the end\n this.children.add(child);\n } else if (index > oldIndex) {\n // Child moved after old position,\n // Fix the index after removal.\n this.children.add(index - 1, child);\n } else {\n // Child moved before old position\n this.children.add(index, child);\n }\n \n firePropertyChange(IGmObject.PROPERTY_CHILDREN, null, child);\n }",
"public void addActor(CastMember actor)\n\t{\n\t\tpeopleAct.add(actor);\n\t}",
"void addChild( JBurgPatternMatcher child )\n\t{\n checkPrecondition ( ! this.hasNaryTail(), \"Cannot add a subpattern after an n-ary subpattern.\");\n checkPrecondition ( null == child.parent, \"Child \" + child.toString() + \" already has a parent.\");\n \n child.positionInParent = new Integer(this.subPatterns.size());\n child.parent = this;\n this.subPatterns.add(child);\n\t}",
"public void addChild(BTreeNode<E> newChild) {\n\t\tint index = 0;\n\t\tfor (BTreeNode<E> node : children) {\n\t\t\tif (node == null || cmp.compare(newChild.getData(0), node.data.get(0)) > 0) {\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t\tchildren.add(index, newChild);\n\t\tnewChild.parent = this;\n\t}",
"@Transient\n // not really needed\n public void addChild(final ChangeRequestMessageEntry child) {\n children.add(child);\n child.setParent(this);\n child.setProcessInstanceId(getProcessInstanceId());\n }",
"public void moveChild( ChildType child, int index );",
"private void putToTop()\r\n {\r\n OrderManager manager = myOrderManagerRegistry.getOrderManager(ourKey);\r\n manager.activateParticipant(ourKey);\r\n manager.moveToTop(ourKey);\r\n }",
"public void addBeforeLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tNode beforeLastChild = lastChild.getPreviousSibling();\r\n\t\tif (child.getNodeName() == beforeLastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, beforeLastChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, lastChild);\t\t\t\r\n\t\t}\t\t\r\n\t}",
"public void addChild(Node child){\n children.add(child);\n }",
"public boolean isAscendantOf(Actor actor) {\n if (actor == null) throw new IllegalArgumentException(\"actor cannot be null.\");\n if(actor instanceof Group){\n Group group=(Group)actor;\n return internalGroup.isAscendantOf(group.internalGroup);\n }\n return internalGroup.isAscendantOf(actor.internalActor);\n }",
"public void addChild(final int childIndex) {\n if (!this.children.contains(childIndex)) {\n this.children.add(childIndex);\n }\n }",
"public void addChild(TreeNode toAdd) {\n\t\t\tthis.children.add(toAdd);\n\t\t}",
"private void attachChildToParentControl(XMLTag child, Control incomingParent)\n {\n Iterator<Control> it = null;\n \n if (incomingParent == null)\n it = mControlState.iterator();\n else\n it = incomingParent.children.iterator();\n \n while (it.hasNext()) {\n Control parent = it.next();\n \n if (child.getCurrentTagLocation().split(\"/\").length - parent.getLocation().split(\"/\").length == 1 &&\n parent.getLocation().equals(child.getCurrentTagLocation().substring(0, parent.getLocation().length())))\n parent.children.add(new Control(child, parent, mInstanceRoot, mBindState)); \n \n if (!parent.children.isEmpty())\n attachChildToParentControl(child, parent);\n }\n }",
"private void moveChild(ReactShadowNode child, int moveFromIndex) {\n mMoveProxy.setChildMoveFrom(moveFromIndex, child);\n }",
"public void addChild(Character ch){\n children.put(ch,new Node(ch));\n }",
"void insertChild(K key, Node child) {\r\n\t\t\tint loc = Collections.binarySearch(keys, key);\r\n\t\t\tint childIndex = loc >= 0 ? loc + 1 : -loc - 1;\r\n\t\t\tif (loc >= 0) {\r\n\t\t\t\tchildren.set(childIndex, child);\r\n\t\t\t} else {\r\n\t\t\t\tkeys.add(childIndex, key);\r\n\t\t\t\tchildren.add(childIndex + 1, child);\r\n\t\t\t}\r\n\t\t}",
"public void addActorAt(int index, Actor actor) {\n internalGroup.addActorAt(index, actor.internalActor);\n actor.setParent(this);\n actor.setStage(getStage());\n }",
"public final void rule__AstActor__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7525:1: ( ( 'actor' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7526:1: ( 'actor' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7526:1: ( 'actor' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7527:1: 'actor'\n {\n before(grammarAccess.getAstActorAccess().getActorKeyword_1()); \n match(input,70,FOLLOW_70_in_rule__AstActor__Group__1__Impl15563); \n after(grammarAccess.getAstActorAccess().getActorKeyword_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 }",
"public void addActor(Actor actor) {\n\t\tObjects.requireNonNull(actor);\n\t\tmap.addActor(actor, this);\n\t}",
"public void childAdder(Character ch)\n {\n node.put(ch,new Node());\n }",
"public void addChild(Node node){\n children.add(node);\n \n }",
"public void addChild(Node childnode)\n {\n children.add(childnode);\n }",
"ComponentAgent getLastChild();",
"public void addChild(Node newChild) {\r\n\t\t\tchildren.reset();\r\n\t\t\t\r\n\t\t\tnewChild.setParent(this);\r\n\r\n\t\t\tif (children.size() == 0)\r\n\t\t\t\tchildren.add(newChild);\r\n\t\t\telse if (children.get().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) \r\n\t\t\t\tchildren.insert(newChild);\r\n\t\t\telse {\r\n\t\t\t\twhile (children.hasNext()) {\r\n\t\t\t\t\tif (children.next().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) break;\r\n\t\t\t\t}\r\n\t\t\t\tif (children.get().getData(0).getKey().compareTo(newChild.getData(0).getKey()) > 0) \r\n\t\t\t\t\tchildren.insert(newChild);\r\n\t\t\t\telse\r\n\t\t\t\t\tchildren.add(newChild);\r\n\t\t\t}\r\n\t\t}",
"public void addFocusableChild ( final Component child )\n {\n focusTracker.addFocusableChild ( child );\n }",
"public void addChild(TreeNode child) {\n if (this.children!= null && !this.children.contains(child) && child != null)\n this.children.add(child);\n }",
"@Override\r\n\tpublic void undo() \r\n\t\t{\n\t\tif (parent.addChild(child)) \r\n\t\t\t{\r\n\t\t\taddArcs(sourceArcs);\r\n\t\t\taddArcs(targetArcs);\r\n\t\t\t}\r\n\t\t}",
"public boolean addActor(Actor actor) {\n\t\tCoordinate pos = actor.getPosition();\n\t\tTile tile = getTileAt(pos.x, pos.y);\n\t\tif (tile.getActor() != null)\n\t\t\treturn false;\n\n\t\tactors.add(actor);\n\t\ttile.setActor(actor);\n\t\treturn true;\n\t}",
"abstract public void addChild(Command cmd);",
"@Test\r\n public void moveChildToParent() {\r\n command.executeCommand(\"/parent/child/\", \"/\", root, currentDirectory);\r\n assertTrue(root.getDirectoryByAbsolutePath(\"/child\") != null);\r\n }",
"private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }",
"public void addChild(XMLElement child)\n/* */ {\n/* 398 */ if (child == null) {\n/* 399 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 401 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 402 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* */ \n/* 404 */ if (lastChild.getLocalName() == null) {\n/* 405 */ lastChild.setContent(lastChild.getContent() + \n/* 406 */ child.getContent());\n/* 407 */ return;\n/* */ }\n/* */ }\n/* 410 */ child.parent = this;\n/* 411 */ this.children.addElement(child);\n/* */ }",
"public void addChild(FileNode child) {\r\n child.setParent(this);\r\n children.add(child);\r\n childNum++;\r\n }",
"protected void append_child(AstNode child) throws Exception {\r\n\t\tif (child == null)\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid child: null\");\r\n\t\telse {\r\n\t\t\tif (child instanceof AstNodeImpl)\r\n\t\t\t\t((AstNodeImpl) child).set_parent(this);\r\n\t\t\tthis.children.add(child);\r\n\t\t\tthis.update_location(); /* automatically update */\r\n\t\t}\r\n\t}",
"public void addToGroup(Movable movable){\n things.add(movable);\n }",
"public final void rule__AstExternalActor__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10872:1: ( ( 'actor' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10873:1: ( 'actor' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10873:1: ( 'actor' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10874:1: 'actor'\n {\n before(grammarAccess.getAstExternalActorAccess().getActorKeyword_2()); \n match(input,70,FOLLOW_70_in_rule__AstExternalActor__Group__2__Impl22160); \n after(grammarAccess.getAstExternalActorAccess().getActorKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"protected void addChild(PafDimMember childNode) throws PafException {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// Create a new ArrayList of child nodes, if this is the first child\r\n\t\t\tif (children == null) \r\n\t\t\t\tchildren = new ArrayList<PafDimMember>();\r\n\t\t\t\r\n\t\t\t// Set parent of child node to current PafBaseMember node\r\n\t\t\tchildNode.parent = this;\r\n\r\n\t\t\t// Add child node to PafBaseTree\r\n\t\t\tchildren.add(childNode);\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// throw Paf Exception\r\n\t\t\tString errMsg = \"Java Exception: \" + ex.getMessage();\r\n\t\t\tlogger.error(errMsg);\r\n\t\t\tPafException pfe = new PafException(errMsg, PafErrSeverity.Error, ex);\t\r\n\t\t\tthrow pfe;\r\n\t\t}\r\n\t}",
"public TreeMapNode addChild(TreeMapNode child) {\n child.setParent(this);\n this.children.add(child);\n return child;\n }",
"public Node insertBefore(Node node);",
"public void addFirstChild(Element parent, Element child) {\r\n\t\tNode firstChild = parent.getFirstChild();\r\n\t\tif (child.getNodeName() == firstChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, firstChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, parent.getFirstChild());\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}",
"public Node insertAfter(Node node);",
"public void add( Bacteria child) {\n\t\tinds.add(child);\n\t\tpopSize++;\n\t}",
"@Test\n\tpublic void addNodeBeforeGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node Before the given node \");\n\t\tdll.push(4);\n\t\tdll.push(3);\n\t\tdll.push(1);\n\t\tdll.InsertBefore(dll.head.next, 2);\n\t\tdll.print();\n\t}",
"public boolean addChild(ChronologElement child) {\r\n return children.add(child);\r\n }",
"public void addBeam (Beam beam)\r\n {\r\n if (!beams.contains(beam)) {\r\n beams.add(beam);\r\n\r\n // Keep the sequence sorted\r\n Collections.sort(beams, byLevel);\r\n }\r\n }",
"public void addChild(MagicPattern child) {\n\t\tif (child != null) {\n\t\t\tthis.children.add(child);\n\t\t}\n\t}",
"public void addChild(final IBiNode c) {\n // 1st child\n if (this.child == null) {\n this.setChild(c);\n } else {\n // 2nd - nth child\n this.child.addSibling(c);\n }\n }",
"public final void rule__AstActor__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7513:1: ( rule__AstActor__Group__1__Impl rule__AstActor__Group__2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7514:2: rule__AstActor__Group__1__Impl rule__AstActor__Group__2\n {\n pushFollow(FOLLOW_rule__AstActor__Group__1__Impl_in_rule__AstActor__Group__115532);\n rule__AstActor__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__2_in_rule__AstActor__Group__115535);\n rule__AstActor__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 }",
"TreeNode addChild(TreeNode node);",
"public void move(Actor actor)\n\t\t {\n\t\t\t \t//PO: updated the methods after the move from the Bug Class to be called from\n\t\t \t//PO: the passed actor\n\t\t Grid<Actor> gr = actor.getGrid();\n\t\t if (gr == null)\n\t\t return;\n\t\t Location loc = actor.getLocation();\n\t\t Location next = loc.getAdjacentLocation(actor.getDirection());\n\t\t if (gr.isValid(next))\n\t\t \t//PO: alter the original code instead of calling the \n\t\t \t//PO: moveTo method in Actor call the method that is from this current behaviour\n\t\t this.moveTo(actor, next);\n\t\t else\n\t\t actor.removeSelfFromGrid();\n\t\t Flower flower = new Flower(actor.getColor());\n\t\t flower.putSelfInGrid(gr, loc);\n\t\t \n\t\t }",
"protected void addChild(Layer child) {\n\t\tchildren.add(child);\n\t}",
"public void moveContactToGroup(Contact contactToMove,\n ContactGroup newParent)\n throws OperationFailedException\n {\n assertConnected();\n\n if( !(contactToMove instanceof ContactJabberImpl) )\n throw new IllegalArgumentException(\n \"The specified contact is not an jabber contact.\" +\n contactToMove);\n if( !(newParent instanceof AbstractContactGroupJabberImpl) )\n throw new IllegalArgumentException(\n \"The specified group is not an jabber contact group.\"\n + newParent);\n\n ssContactList.moveContact((ContactJabberImpl)contactToMove,\n (AbstractContactGroupJabberImpl)newParent);\n }",
"public void addChild(IndividualReference individualReference) {\n if (this.children == null) this.children = new ArrayList<>();\n this.children.add(individualReference);\n setNumChildren(Integer.toString(Integer.parseInt(this.numChildren.toString()) + 1));\n }",
"public void addChild(final ParseTreeNode child) {\r\n child.setParent(this);\r\n if (_children == null) { _children = new ArrayList<ParseTreeNode>(); }\r\n _children.add(child);\r\n }",
"private void addChild(final INode node, final int insertionPoint) {\r\n if (children == null) {\r\n children = new ArrayList<INode>(DEFAULT_FILES_PER_DIRECTORY);\r\n }\r\n node.setParent(this);\r\n children.add(-insertionPoint - 1, node);\r\n\r\n if (node.getGroupName() == null) {\r\n node.setGroup(getGroupName());\r\n }\r\n }",
"@Override\n public void childAdded(Attraction a) {\n Log.d(\"Ajq\",\"Child added called\");\n attractions.add(a);\n }",
"private void leftRotate(Entry<T> child, Entry<T> p) {\n\t\tif(p.parent != null) {\n\t\t\tif(p == p.parent.left)\n\t\t\t\tp.parent.left = child;\n\t\t\telse\n\t\t\t\tp.parent.right = child;\n\t\t}\n\t\tif(child.left != null)\n\t\t\tgetSplay(child.left).parent = p;\n\t\t\n\t\tchild.parent = p.parent;\n\t\tp.parent = child;\n\t\tp.right = child.left;\n\t\tchild.left = p;\n\t}",
"public void addFirstChild( PlanNode child ) {\n assert child != null;\n this.children.addFirst(child);\n child.removeFromParent();\n child.parent = this;\n }",
"public void addActor(){\n actorProfileList.add(new ActorProfile());\n }",
"public void addChild(DecTreeNode child) {\r\n if (children != null)\r\n children.add(child);\r\n }",
"private void insertChild(K key, Node child) {\r\n\r\n // binary search for correct index\r\n int correct_place = Collections.binarySearch(keys, key);\r\n int child_indexing;\r\n\r\n // to check if the key is already in there and get the correct index after using collections.binarySearch\r\n if (correct_place >= 0) {\r\n child_indexing = correct_place + 1;\r\n } else {\r\n child_indexing = -correct_place - 1;\r\n }\r\n\r\n if (correct_place >= 0) {\r\n keys.add(child_indexing, key);\r\n children.add(child_indexing, child);\r\n } else {\r\n keys.add(child_indexing, key);\r\n children.add(child_indexing + 1, child);\r\n }\r\n }",
"public void AddModel(BranchGroup child)\r\n {\r\n \tbranch.addChild(child);\r\n }",
"private void addCharacter(AbstractCharacter character) {\n\t\tGroup g = new Group();\n\t\tg.addActor(character);\n\t\taddActor(g);\n\t}",
"public void toFront() {\n internalGroup.toFront();\n dataTrait.zIndex = internalGroup.getZIndex();\n }",
"public final void rule__AstActor__Group__10() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7784:1: ( rule__AstActor__Group__10__Impl rule__AstActor__Group__11 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7785:2: rule__AstActor__Group__10__Impl rule__AstActor__Group__11\n {\n pushFollow(FOLLOW_rule__AstActor__Group__10__Impl_in_rule__AstActor__Group__1016085);\n rule__AstActor__Group__10__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__11_in_rule__AstActor__Group__1016088);\n rule__AstActor__Group__11();\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 }",
"public final void rule__AstExternalActor__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10829:1: ( rule__AstExternalActor__Group__1__Impl rule__AstExternalActor__Group__2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10830:2: rule__AstExternalActor__Group__1__Impl rule__AstExternalActor__Group__2\n {\n pushFollow(FOLLOW_rule__AstExternalActor__Group__1__Impl_in_rule__AstExternalActor__Group__122067);\n rule__AstExternalActor__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstExternalActor__Group__2_in_rule__AstExternalActor__Group__122070);\n rule__AstExternalActor__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 }",
"public abstract void addChild(Node node);",
"@DISPID(1)\n\t// = 0x1. The runtime will prefer the VTID if present\n\t@VTID(7)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject addChild(\n\t\t\t@MarshalAs(NativeType.VARIANT) java.lang.Object node);",
"public final void rule__AstActor__Group_8_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8176:1: ( rule__AstActor__Group_8_1__0__Impl rule__AstActor__Group_8_1__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8177:2: rule__AstActor__Group_8_1__0__Impl rule__AstActor__Group_8_1__1\n {\n pushFollow(FOLLOW_rule__AstActor__Group_8_1__0__Impl_in_rule__AstActor__Group_8_1__016841);\n rule__AstActor__Group_8_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group_8_1__1_in_rule__AstActor__Group_8_1__016844);\n rule__AstActor__Group_8_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 }",
"public void addChildGate(Gate g) throws InvalidNodeException {\n\t\tif (child1 == null) {\n\t\t\tchild1 = g;\n\t\t\tchild1.pGate = this;\n\t\t}\n\t\telse if(child2 == null) {\n\t\t\tchild2 = g; \n\t\t\tchild2.pGate = this;\n\t\t\t//System.out.println(\"Child 1 position is occupied.Putting in child 2 position\");\n\t\t}\n\t\telse {\n\t\t\tthrow new InvalidNodeException(\"Child 2 position is occupied.\");\n\t\t}\n\t}",
"public final void rule__AstExternalActor__Group_9_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:11461:1: ( rule__AstExternalActor__Group_9_1__0__Impl rule__AstExternalActor__Group_9_1__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:11462:2: rule__AstExternalActor__Group_9_1__0__Impl rule__AstExternalActor__Group_9_1__1\n {\n pushFollow(FOLLOW_rule__AstExternalActor__Group_9_1__0__Impl_in_rule__AstExternalActor__Group_9_1__023313);\n rule__AstExternalActor__Group_9_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstExternalActor__Group_9_1__1_in_rule__AstExternalActor__Group_9_1__023316);\n rule__AstExternalActor__Group_9_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 }",
"public abstract Position<E> insertLeftChild(Position<E> p, E e);",
"public void addChild(AsNode child, double cost) {\n\t\tif(!children.contains(child)) {\n\t\t\tchildren.add(child);\n\t\t\tchildCost.put(child, cost);\n\t\t}\n\t}",
"public void attach(BaseRecyclerChildViewModel bVar) {\n bVar.attachParent(this);\n this.mChildSet.add(bVar);\n }",
"void depend(int parentID, int childID){\n check(parentID, childID);\n nodes_[childID].parent_ = parentID;\n nodes_[parentID].addChild(childID);\n }",
"public final void rule__AstActor__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7482:1: ( rule__AstActor__Group__0__Impl rule__AstActor__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7483:2: rule__AstActor__Group__0__Impl rule__AstActor__Group__1\n {\n pushFollow(FOLLOW_rule__AstActor__Group__0__Impl_in_rule__AstActor__Group__015471);\n rule__AstActor__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__1_in_rule__AstActor__Group__015474);\n rule__AstActor__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 }",
"public void addChild(ParsedComponent parsedComponent) {\n children.put(parsedComponent.getName(), parsedComponent);\n }",
"protected void makeChild(FHeapNode y, FHeapNode x)\r\n { \r\n y.left.right = y.right;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// remove y from root list of heap\r\n y.right.left = y.left;\r\n \r\n y.parent = x;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// make y a child of x\r\n\r\n if (x.child == null)\r\n\t\t{\r\n x.child = y;\r\n y.right = y;\r\n y.left = y;\r\n } \r\n\t\telse\r\n\t\t{\r\n y.left = x.child;\r\n y.right = x.child.right;\r\n x.child.right = y;\r\n y.right.left = y;\r\n }\t\t\t\r\n x.degree++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// increase degree[x] \r\n y.childCut = false;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// set childCut[y] to false\r\n }",
"protected void addChild(TreeNode child) {\n\t\t\tchildren.add(child);\n\t\t\tchild.parent = this;\n\t\t}",
"private Node<E> addAfter(Node current, E toAdd) {\n\t\tif ((((Comparable<E>) toAdd).compareTo((E) current.data)) >= 0) {\n\t\t\tif (current.rightChild == null) {\n\t\t\t\tcurrent.rightChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.rightChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.rightChild, toAdd);\n\t\t\t}\n\t\t} else {\n\t\t\tif (current.leftChild == null) {\n\t\t\t\tcurrent.leftChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.leftChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.leftChild, toAdd);\n\t\t\t}\n\t\t}\n\t}",
"public void addNodeBefore(CustomerNode<Customer> target, CustomerNode<Customer> c){\r\n\t\tsize++;\r\n\t\tCustomerNode<Customer> temp = new CustomerNode<Customer>(new Customer(c.getElement().getArrivalTime(), \r\n\t\t\t\tc.getElement().getID(), c.getElement().getOrderTime(), \r\n\t\t\t\tc.getElement().getPaid(), c.getElement().getPatience()));\r\n\t\tif(target == first){\r\n\t\t\ttemp.setNext(target);\r\n\t\t\ttarget.setPrev(temp);\r\n\t\t\tfirst = temp;\r\n\t\t\t\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttemp.setNext(target);\r\n\t\ttemp.setPrev(target.getPrev());\r\n\t\ttarget.setPrev(temp);\r\n\t\ttemp.getPrev().setNext(temp);\r\n\t}",
"public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }",
"static void mysteryInsert(String name, movieNode movieNode) {\n if (flag == 1) {\n actorList actorlist = new actorList();\n holder_actorList = actorlist; //so that it can be accessed outside the if block\n actorlist.insertAtFront(name, movieNode);\n flag++;\n }\n else {\n\n holder_actorList.insertAtFront(name, movieNode);\n }\n }",
"public final void rule__AstExternalActor__Group_9_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:11492:1: ( rule__AstExternalActor__Group_9_1__1__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:11493:2: rule__AstExternalActor__Group_9_1__1__Impl\n {\n pushFollow(FOLLOW_rule__AstExternalActor__Group_9_1__1__Impl_in_rule__AstExternalActor__Group_9_1__123375);\n rule__AstExternalActor__Group_9_1__1__Impl();\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 }",
"public void addChild(MenuTree tree){\n tree.setParent(this);\n this.childMenuTrees.add(tree);\n }",
"@Test\n\tpublic void addNodeAfterGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node after the given node \");\n\t\tdll.push(4);\n\t\tdll.push(2);\n\t\tdll.push(1);\n\t\tdll.InsertAfter(dll.head.next, 3);\n\t\tdll.print();\n\t}"
] |
[
"0.5882131",
"0.56851935",
"0.5583435",
"0.54629713",
"0.54333067",
"0.54077774",
"0.5406635",
"0.53658897",
"0.5365759",
"0.531286",
"0.51980793",
"0.51980644",
"0.5186053",
"0.5182548",
"0.5168493",
"0.5119305",
"0.5117841",
"0.51139355",
"0.507846",
"0.5072005",
"0.50645447",
"0.50509286",
"0.50395256",
"0.50273365",
"0.5012897",
"0.49742326",
"0.49727884",
"0.49318668",
"0.49155387",
"0.48912066",
"0.4878062",
"0.48744318",
"0.48623517",
"0.48321825",
"0.48266658",
"0.48234746",
"0.48128647",
"0.4797667",
"0.4778013",
"0.477253",
"0.4764744",
"0.47523788",
"0.47451952",
"0.47333473",
"0.4718525",
"0.47148126",
"0.47031555",
"0.47010973",
"0.47010893",
"0.47010577",
"0.46877337",
"0.4682182",
"0.46535003",
"0.46443197",
"0.46438757",
"0.4643484",
"0.46359563",
"0.46264547",
"0.46223488",
"0.46186063",
"0.4617805",
"0.4615156",
"0.46117148",
"0.46085745",
"0.45997176",
"0.45881656",
"0.45864347",
"0.45852393",
"0.4576812",
"0.4574723",
"0.45733088",
"0.4569985",
"0.4565494",
"0.4558509",
"0.4553511",
"0.4552507",
"0.45424864",
"0.45264453",
"0.45243213",
"0.45168248",
"0.45157793",
"0.45116654",
"0.45076802",
"0.4497682",
"0.44959646",
"0.44904995",
"0.44880983",
"0.44781947",
"0.4474047",
"0.4461157",
"0.4459697",
"0.44587535",
"0.44536346",
"0.4453425",
"0.4452088",
"0.4451341",
"0.44476733",
"0.44425836",
"0.4442056",
"0.44331628"
] |
0.6432076
|
0
|
Returns the stage that this actor is currently in, or null if not in a stage.
|
public Stage getStage() {
com.guidebee.game.engine.scene.Stage stage = internalGroup.getStage();
if (stage != null) {
return (Stage) stage.getUserObject();
}
return null;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getCurrentStage() {\n return currentStage;\n }",
"public String getCurrentStage() {\n return getProperty(Property.CURRENT_STAGE);\n }",
"public Stage getStage() {\n return stage;\n }",
"public Stage getStage() {\n return stage;\n }",
"public Stage getStage() {\n return stage;\n }",
"public Stage getStage() {\n return stage;\n }",
"public Stage returnStage() {\n\t\t\treturn stage;\n\t\t}",
"public Stage retrieveStage()\n {\n return gameStage;\n }",
"String getStage();",
"final Stage getLocalStage() {\n\t\t// retrnamos la etapa actual\n\t\treturn this.localStage;\n\t}",
"public static Stage getPrimaryStage() {\n return pStage;\n }",
"public static Stage getPrimarystage() {\n return primarystage;\n }",
"public String getStageName() {\n return stageName;\n }",
"@Override\n\tpublic java.lang.String getStage() {\n\t\treturn _scienceApp.getStage();\n\t}",
"@java.lang.Override\n public com.google.iam.admin.v1.Role.RoleLaunchStage getStage() {\n com.google.iam.admin.v1.Role.RoleLaunchStage result =\n com.google.iam.admin.v1.Role.RoleLaunchStage.forNumber(stage_);\n return result == null ? com.google.iam.admin.v1.Role.RoleLaunchStage.UNRECOGNIZED : result;\n }",
"@java.lang.Override\n public com.google.iam.admin.v1.Role.RoleLaunchStage getStage() {\n com.google.iam.admin.v1.Role.RoleLaunchStage result =\n com.google.iam.admin.v1.Role.RoleLaunchStage.forNumber(stage_);\n return result == null ? com.google.iam.admin.v1.Role.RoleLaunchStage.UNRECOGNIZED : result;\n }",
"public Stage getPrimaryStage() {\n\t\treturn primaryStage;\n\t}",
"public static IStage getStage(String stageName)\n {\n return stageQueues_.get(stageName);\n }",
"public Integer getStageNumber() {\n return stageNumber;\n }",
"@java.lang.Override\n public int getStageValue() {\n return stage_;\n }",
"@java.lang.Override\n public int getStageValue() {\n return stage_;\n }",
"public Stage getPrimaryStage() {\n return primaryStage;\n }",
"public Stage getPrimaryStage() {\n return primaryStage;\n }",
"public Stage getPrimaryStage() {\n return primaryStage;\n }",
"public Stage getPrimaryStage() {\n return primaryStage;\n }",
"public Stage getPrimaryStage() {\n return primaryStage;\n }",
"public Stage getPrimaryStage() {\n return primaryStage;\n }",
"public Stage getPrimaryStage() {\n return primaryStage;\n }",
"public ProcessingStage getStage();",
"public Stage getPrimaryStage() {\r\n return primaryStage;\r\n }",
"public static Stage getPrimaryStage() {\r\n return primaryStage;\r\n }",
"public static Stage getPrimaryStage() {\r\n return primaryStage;\r\n }",
"String getStageName();",
"public static Stage getPrimaryStage() {\n\n return _primaryStage;\n }",
"public WorkspaceStage getWorkspaceStage() {\n return workspaceStage;\n }",
"public BigDecimal getSTAGE() {\r\n return STAGE;\r\n }",
"public TypeOffreDTO getStage(){\n\t\tstage = null;\n\t\tList<TypeOffreDTO> l = getNomenclatureDomainService().getTypesOffre();\n\t\tfor(TypeOffreDTO t : l){\n\t\t\tif(t.getCodeCtrl().equalsIgnoreCase(DonneesStatic.TYPE_OFFRE_CODE_CTRL_STAGE)){\n\t\t\t\tstage=t;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn stage;\n\t}",
"java.lang.String getStageId();",
"public AvailabilityStage availabilityStage() {\n return this.availabilityStage;\n }",
"public boolean getStage()\n {\n return atQuestionStage;\n }",
"String getStageClass();",
"public String getStageDescription() {\n return stageDescription;\n }",
"public static Stage getMainStage() {\n return mainStage;\n }",
"public String returnStageOfLife(){\n\t\treturn (String) stageofLifeBox.getSelectedItem();//Return the stage of life options\n\t}",
"private static URI findCancelableLeafStage(StageInfo stage)\n {\n if (stage.getLatestAttemptExecutionInfo().getState().isDone()) {\n return null;\n }\n\n // attempt to find a cancelable sub stage\n // check in reverse order since build side of a join will be later in the list\n for (StageInfo subStage : Lists.reverse(stage.getSubStages())) {\n URI leafStage = findCancelableLeafStage(subStage);\n if (leafStage != null) {\n return leafStage;\n }\n }\n\n // no matching sub stage, so return this stage\n return stage.getSelf();\n }",
"public static Stage getPrimaryStage()\n {\n return Main.primaryStage;\n }",
"public static Stage getMainStage(){\r\n return mainStage;\r\n }",
"public Collection<String> get_stages() {\r\n\t\t// Get all available stages\r\n\t\tFunctionalGroup g = controller.getSelectedFunctionalGroup();\r\n\t\tif (g != null) {\r\n\t\t\tCollection<String> stages = g.getStageNames();\r\n\t\t\tArrayList<String> stage_names = new ArrayList<String>();\r\n\t\t\tfor (String s : stages) {\r\n\t\t\t\tstage_names.add(s);\r\n\t\t\t}\r\n\t\t\t// Alphabetise them\r\n\t\t\tCollections.sort(stage_names);\r\n\t\t\treturn stage_names;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"java.lang.String getExecutionStageName();",
"public void setStage(int stage) {\r\n\t\tthis.stage = stage;\r\n\t}",
"public static String stageName(Stage s){\n return s.name();\n }",
"public Scene retrieveScene()\n {\n return gameStage.getScene();\n }",
"public Stage getWindow() {\n return primaryStage;\n }",
"public final Scene getScene() {\n return activeScene;\n }",
"public final EObject entryRuleGroupStage() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleGroupStage = null;\r\n\r\n\r\n try {\r\n // InternalEsportDsl.g:1462:51: (iv_ruleGroupStage= ruleGroupStage EOF )\r\n // InternalEsportDsl.g:1463:2: iv_ruleGroupStage= ruleGroupStage EOF\r\n {\r\n newCompositeNode(grammarAccess.getGroupStageRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleGroupStage=ruleGroupStage();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleGroupStage; \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }",
"public static Settings getScene(final Stage stage) {\n settingStage = stage;\n return settingsScene;\n }",
"public Scene getCurrentScene()\r\n\t{\r\n\t\treturn _CurrentScene;\r\n\t}",
"com.google.protobuf.ByteString getStageIdBytes();",
"public Optional<Step> getCurrentStep() {\n return fromNullable(currentStep);\n }",
"com.google.dataflow.v1beta3.JobState getExecutionStageState();",
"public void setStage(Stage stage) {\n\t\tthis.stage = stage;\n\t}",
"public void setStage(Stage stage) {\n this.stage = stage;\n }",
"public void setStage(Stage stage) {\n this.stage = stage;\n }",
"public StagePosition makeStagePosition();",
"public void setStage(Stage stage) {\r\n this.stage = stage;\r\n }",
"public final Scene getActiveScene() {\n return activeScene;\n }",
"public static AccessCertificationStageType findCurrentStage(AccessCertificationCampaignType campaign) {\n return findStage(campaign, campaign.getStageNumber());\n }",
"public void setStageName(String stageName) {\n this.stageName = stageName;\n }",
"public RaceSituation getLatestByStage(Stage stage);",
"public final Scene getFirstScene() {\n if (scenes.size() > 0) {\n return scenes.get(0);\n } else {\n return null;\n }\n }",
"public abstract Stage getNextStage(int score);",
"public Stage stageFromFile(String branch) {\n File stageFile = Utils.join(_stagingArea, branch);\n if (!stageFile.exists()) {\n throw new IllegalArgumentException(\n \"No stage file with that branch found.\");\n }\n return Utils.readObject(stageFile, Stage.class);\n }",
"public static Scene getScene() {\n\t\treturn null;\r\n\t}",
"public ModelScene getStartPoint() {\r\n\t\treturn scenes.get(startPoint);\r\n\t}",
"public TaskStack getSplitScreenPrimaryStack() {\n TaskStack stack = this.mTaskStackContainers.getSplitScreenPrimaryStack();\n if (stack == null || !stack.isVisible()) {\n return null;\n }\n return stack;\n }",
"public Boolean getUseStageCache() {\n return this.useStageCache;\n }",
"public void setStage(){\n if(id < 3)\n stage = 1;\n if(id >= 3 && id < 6)\n stage = 2;\n if(id >= 6 && id < 9)\n stage = 3;\n if(id >= 9)\n stage = 4;\n }",
"public FlexoPerspective getCurrentPerspective() {\n\t\tif (currentLocation != null) {\n\t\t\treturn currentLocation.getPerspective();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"com.google.protobuf.ByteString\n getExecutionStageNameBytes();",
"public final EObject entryRuleFinalStage() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleFinalStage = null;\r\n\r\n\r\n try {\r\n // InternalEsportDsl.g:1305:51: (iv_ruleFinalStage= ruleFinalStage EOF )\r\n // InternalEsportDsl.g:1306:2: iv_ruleFinalStage= ruleFinalStage EOF\r\n {\r\n newCompositeNode(grammarAccess.getFinalStageRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleFinalStage=ruleFinalStage();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleFinalStage; \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }",
"private void evaluateStage(){\n switch (currentStage){\n case EGG: if (getLifetime() >= ModelSettings.brood_lifetime_egg)\n currentStage = LARVAE;\n break;\n case LARVAE: if (getLifetime() >= ModelSettings.brood_lifetime_larvae)\n currentStage = PUPAE;\n break;\n case PUPAE: if (getLifetime() >= ModelSettings.brood_lifetime_pupae)\n System.out.println(\"This pupae is now an adult!\");\n //TODO trigger manager\n break;\n }\n }",
"public int getNumberOfStages() {\r\n\t\treturn stages.length;\r\n\t}",
"public void setStage(Stage currStage) \n\t{\n\t\t// We do not create a new stage because we want to reference of the stage being passed in\n\t\tcurrentStage = currStage;\n\t}",
"public String getScene() {\n\t\treturn scene;\n\t}",
"private void getStageDetailsForJob() throws IGCException {\n final String methodName = \"getStageDetailsForJob\";\n String jobRid = job.getId();\n log.debug(\"Retrieving stage details for job: {}\", jobRid);\n IGCSearch igcSearch = new IGCSearch(\"stage\");\n igcSearch.addProperties(DataStageConstants.getStageSearchProperties());\n IGCSearchCondition condition = new IGCSearchCondition(\"job_or_container\", \"=\", jobRid);\n IGCSearchConditionSet conditionSet = new IGCSearchConditionSet(condition);\n igcSearch.addConditions(conditionSet);\n ItemList<Stage> stages = igcRestClient.search(igcSearch);\n List<Stage> allStages = igcRestClient.getAllPages(null, stages);\n for (Stage stage : allStages) {\n stageToVarsMap.put(stage.getId(), new TreeSet<>());\n }\n buildMap(stageMap, allStages);\n }",
"public StateName getCurrentState() {\n for (Map.Entry<StateName, StateI> entry : availableStates.entrySet()) {\n if (entry.getValue().equals(curState)) {\n return entry.getKey();\n }\n }\n return null;\n }",
"public static int pointsForStage(int stage) {\n return (int)Math.round(RANK_START * Math.pow((1 + RANK_GROWTH_RATE),stage));\n }",
"public void setCurrStage(Vector4f currStage)\n\t{\n\t\tthis.currStage = currStage;\n\t}",
"public void setEditingStage(int stage) {\n\t\tif (amountOfStages < stage) {\n\t\t\tthrow new IllegalArgumentException(\"Attempting to switch to stage which does not exist\");\n\t\t}\n\n\t\tthis.stage = stage;\n\t}",
"public StaveGlyph getStave()\n {\n if(parent != null) return parent.getStave();\n else return null;\n }",
"public boolean supportStage(final String stage) {\n return mSupportedStages.contains(stage);\n }",
"public static Scene getCurrent() {\n//\t\tBugger.log(\"Get current scene...\");\n\t\tif (_current != null)\n\t\t\treturn _current;\n\t\telse\n\t\t\t_current = new Scene();\n\t\treturn _current;\n\t}",
"public Shape getZone()\n {\n return getLevel().getActorZone(this);\n }",
"@Override\r\n\tpublic void setStage(int stage) {\n\r\n\t}",
"Object getMaterializationStage(Object groupID) throws Exception;",
"public Pane<T> currentPane() {\n return currentPane(System.currentTimeMillis());\n }",
"@Override\n\tpublic void setStage(java.lang.String stage) {\n\t\t_scienceApp.setStage(stage);\n\t}",
"public AbsBuilderLevelPanel getCurrentLevelPanel()\n\t{\n\t\tAbsBuilderLevelPanel card = null;\n\n\t\t//find the component that is set to visible (will be a JPanel\n\t\tfor (Component comp : pnlLevelSwitch.getComponents() ) {\n\t\t\tif (comp.isVisible() == true) {\n\t\t\t\tcard = (AbsBuilderLevelPanel)comp;\n\t\t\t}\n\t\t}\n\n\t\treturn card;\n\t}",
"public Actor getCurrentActor() {\n\t\treturn actors.getCurrent();\n\t}",
"public Vector2 stageToLocalCoordinates(Vector2 stageCoords) {\n return internalGroup.stageToLocalCoordinates(stageCoords);\n }"
] |
[
"0.76475143",
"0.76253295",
"0.7397652",
"0.7397652",
"0.7397652",
"0.73887736",
"0.7308771",
"0.7308758",
"0.7243578",
"0.70612395",
"0.68948567",
"0.6870214",
"0.68670535",
"0.68663746",
"0.67389536",
"0.67153037",
"0.6640254",
"0.6637261",
"0.66302013",
"0.6605996",
"0.6599136",
"0.6585362",
"0.6585362",
"0.6585362",
"0.6585362",
"0.6585362",
"0.6585362",
"0.6585362",
"0.6579168",
"0.6512444",
"0.64756906",
"0.64756906",
"0.6433179",
"0.6398604",
"0.6374191",
"0.6362615",
"0.63615173",
"0.6174961",
"0.61160135",
"0.60225666",
"0.6018324",
"0.59716564",
"0.5966243",
"0.5840362",
"0.58074284",
"0.578715",
"0.57364225",
"0.5714648",
"0.5660468",
"0.5649948",
"0.56420314",
"0.56376535",
"0.5603464",
"0.5575233",
"0.55260336",
"0.55124193",
"0.55119056",
"0.5498394",
"0.54566306",
"0.54152447",
"0.53860885",
"0.5338554",
"0.5338554",
"0.5325349",
"0.531527",
"0.52971375",
"0.52838516",
"0.52519584",
"0.5248957",
"0.5210383",
"0.520359",
"0.51891744",
"0.5180914",
"0.5168705",
"0.513412",
"0.5115142",
"0.5106133",
"0.5069033",
"0.50539005",
"0.50268877",
"0.5016746",
"0.500827",
"0.49947566",
"0.4978344",
"0.4969578",
"0.4957645",
"0.4949108",
"0.4942073",
"0.49390915",
"0.4921065",
"0.49077663",
"0.48726216",
"0.48628628",
"0.48554102",
"0.4830555",
"0.48113075",
"0.48112434",
"0.48106268",
"0.48000437",
"0.47997206"
] |
0.78873974
|
0
|
Removes all actors from this group.
|
public void clearChildren() {
internalGroup.clearChildren();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }",
"public void removeAllAgents() {\n\t\tagents.clear();\n\t}",
"public void removeAgents() {\n\t\tfor (TestLiveAgent agent : agents.values()) {\n\t\t\tagent.stop();\n\t\t}\n\t\tagents.clear();\n\t}",
"public void processActors(ArrayList<Actor> actors)\n {\n for (Actor a : actors)\n {\n if ( a instanceof Rock )\n a.removeSelfFromGrid();\n }\n }",
"public final void clearSelectedActors() {\n selectedActors.clear();\n updateStateUiAfterSelection();\n }",
"@Override\n\t public void processActors(ArrayList<Actor> actors)\n\t {\n\t for (Actor a : actors)\n\t {\n\t if (a instanceof Flower){\n\t a.removeSelfFromGrid();\n\t }\n\t if (a instanceof Cow){\n\t \t++this.myMilkTank.MilkMenge;\n\t \ta.removeSelfFromGrid();\n\t }\n\t \n\t }\n\t }",
"public void removeActor(Actor act) { ActorSet.removeElement(act); }",
"public void killAll() {\n distributors.forEach(Person::kill);\n distributors = new ArrayList<>();\n }",
"public void collect() {\n\t\tthis.getOwnerArea().unregisterActor(this);\n\t\t\n\t}",
"public final Collection<DodlesActor> allActors() {\n return all.values();\n }",
"public void removeAllConductor() {\r\n\t\tBase.removeAll(this.model, this.getResource(), CONDUCTOR);\r\n\t}",
"private void removeOtherPointActors(PointActor pointActor) {\n for (int i = 0; i < pointActors.size(); i++) {\n if (!pointActors.get(i).equals(pointActor)) {\n pointActors.get(i).remove();\n }\n }\n }",
"public void clearMotors() {\n\t\tmotors.clear();\n\t}",
"public void clearActions() {\n internalGroup.clearActions();\n }",
"public List<Actor> getAllActors() {\n\t\treturn actors.getAll();\n\t}",
"public void removeActor(int index) { ActorSet.removeElementAt(index); }",
"public void cleanToAll() {\n\t\tfor(ClientThread player: players) {\n\t\t\tplayer.send(new Package(\"CLEAN\",null));\n\t\t}\n\t}",
"public void removeAll() {\n\t\tmListenerSet.clear();\n\t}",
"public final void unHideObjects() {\n for (DodlesActor actor : all.values()) {\n ((Actor) actor).setVisible(true);\n }\n }",
"public synchronized void removeAllTeamMembers() {\n teamSelection = new HashSet<>();\n }",
"public void removeAllInteractionsListeners() {\n _listeners.clear();\n }",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (ESFInstructsShootingDirector esfInstructsShootingDirector : findAll()) {\n\t\t\tremove(esfInstructsShootingDirector);\n\t\t}\n\t}",
"public void removeAll() {\n\t\tsynchronized (mNpcs) {\n\t\t\tmNpcs = Collections.synchronizedList(new ArrayList<Npc>());\n\t\t\tmDemonCount = 0;\n\t\t\tmHumanCount = 0;\n\t\t}\n\t}",
"public final void removeActor(String id) {\n\n DodlesActor actor = all.get(id);\n\n if (actor != null) {\n // Remove from scene\n all.remove(id);\n\n // Clear selected actors if applicable\n if (selectedActors.contains(actor)) {\n selectedActors.remove(actor);\n updateStateUiAfterSelection();\n }\n\n // Cleanup References\n DodleReference ref = references.get(actor.getTrackingID());\n\n if (ref != null) {\n ref.decRef(actor.getName());\n\n if (ref.getRefCount() == 0) {\n references.remove(actor.getTrackingID());\n }\n }\n }\n }",
"@Override\n\tpublic void removeAll() {\n\t\tfor (Campus campus : findAll()) {\n\t\t\tremove(campus);\n\t\t}\n\t}",
"public ArrayList<Actor> getActors(){\n\t\t\n\t\tArrayList<Location> occupiedLocations = getGrid().getOccupiedLocations();\n\t\toccupiedLocations.remove(getLocation());\n\t\tArrayList<Actor> actors = new ArrayList<Actor>();\n\t\t\n\t\tfor(int i = 0; i < occupiedLocations.size(); i++) {\n\t\t\tactors.add(getGrid().get(occupiedLocations.get(i)));\n\t\t}\n\t\t\n\t\treturn actors;\n\t}",
"void remove(Actor actor);",
"public void clear() {\n\t\tfor (Action action : actionList) {\n\t\t\tif (action instanceof ForwardingAction)\n\t\t\t\t((ForwardingAction) action)\n\t\t\t\t\t\t.removeActionListener(actionForwarder);\n\t\t}\n\t\tsuper.clear();\n\t\tactionList.clear();\n\t}",
"void removeAllSpawn();",
"public void deleteAllMember()\n\t{\n\t\tmembers.clear();\n\t}",
"public void removeVehicles() {\r\n numberOfVehicles = 0;\r\n for (Lane lane : lanes) {\r\n lane.removeVehicles();\r\n }\r\n }",
"public void removeAllSuccessors() {\n\t\tfor (int idx=0; idx < this.successorNodes.length; idx++) {\n\t\t\tBaseNode bn = (BaseNode) this.successorNodes[idx];\n\t\t\tbn.removeAllSuccessors();\n\t\t}\n\t\tthis.successorNodes = new BaseNode[0];\n this.useCount = 0;\n\t}",
"public void removeAllSuccessors() {\n\t\tfor (int idx=0; idx < this.successorNodes.length; idx++) {\n\t\t\tBaseNode bn = (BaseNode) this.successorNodes[idx];\n\t\t\tbn.removeAllSuccessors();\n\t\t}\n\t\tthis.successorNodes = new BaseNode[0];\n this.useCount = 0;\n\t}",
"public void clearEnemies() {\n\t\tIterator<Entity> it = entities.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tEntity e = it.next();\n\t\t\t//Skip playerfish\n\t\t\tif (e instanceof PlayerFish) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//Kill and remove the entity\n\t\t\te.kill();\n\t\t\tit.remove();\n\t\t}\n\t\t\n\t\t//Remove all non playerfish from collidables\n\t\tcollidables.removeIf(c -> !(c instanceof PlayerFish));\n\t\tdrawables.removeIf(c -> !(c instanceof PlayerFish));\n\t}",
"public void destroyAll() {\n children.destroyAll();\n }",
"public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Candidate candidate : findAll()) {\n\t\t\tremove(candidate);\n\t\t}\n\t}",
"private void removeObjectFromContainer(UsableActor actor) {\n if (actor instanceof Cookie){\n for (int x = 0 ; x < this.cookies.size(); x++){\n if (this.cookies.get(x).equals(actor)){\n this.cookies.remove(x);\n break;\n }\n } \n }\n else if (actor instanceof Whistle){\n for (int x = 0 ; x < this.whistles.size(); x++){\n if (this.whistles.get(x).equals(actor)){\n this.whistles.remove(x);\n break;\n }\n }\n }\n }",
"public void removeAllListeners() {\n messageListeners.clear();\n children.clear();\n }",
"public void clear() {\n\t\t//Kill all entities\n\t\tentities.parallelStream().forEach(e -> e.kill());\n\n\t\t//Clear the lists\n\t\tentities.clear();\n\t\tdrawables.clear();\n\t\tcollidables.clear();\n\t}",
"void processActors(ArrayList<Actor> actors);",
"public void removeBalls() {\r\n for (Ball ball : this.ballsList) {\r\n ball.removeFromGame(this);\r\n }\r\n this.ballsList.clear();\r\n }",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void exitAllRooms() {\n\t\tfor (RoomSetting roomSetting : roomSettings) {\n\t\t\troomSetting.getRoom().removeClient(this);\n\t\t}\n\t\troomSettings.clear();\n\t}",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (TvShow tvShow : findAll()) {\n\t\t\tremove(tvShow);\n\t\t}\n\t}",
"public void removeAllcrew() {\n\t\tif(this.crew != null)\n\t\t\tthis.crew.clear();\n\t}",
"@PreRemove\n private void removeRolesFromUsers() {\n for (User user : users) {\n user.getRoles().remove(this);\n }\n }",
"@Override\n public void removeAll(){\n gameCollection.removeAllElements();\n }",
"public void removeAll () {\n\t\teffects.clear();\n\t}",
"public void removeAllComposer() {\r\n\t\tBase.removeAll(this.model, this.getResource(), COMPOSER);\r\n\t}",
"public void clear() {\n\t\tcollectors[MaterialState.TRANSLUCENT_INDEX].clear();\n\n\t\tfor (int i = 0; i < solidCount; i++) {\n\t\t\tsolidCollectors.get(i).clear();\n\t\t}\n\n\t\tsolidCount = 0;\n\n\t\tArrays.fill(collectors, 1, collectors.length, null);\n\t}",
"@Override\n\tpublic void removeAll() {\n\t\tfor (Approvatore approvatore : findAll()) {\n\t\t\tremove(approvatore);\n\t\t}\n\t}",
"public void clearAllUsers() {\n\n realm.beginTransaction();\n realm.delete(User.class);\n realm.commitTransaction();\n }",
"@Override\r\n\tpublic void removeAll() {\r\n\t\tfor (Share share : findAll()) {\r\n\t\t\tremove(share);\r\n\t\t}\r\n\t}",
"public void removeAllAgents(String layer)\n/* 180: */ {\n/* 181:254 */ this.mapPanel.removeAllAgents(layer);\n/* 182: */ }",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Facility_Host facility_Host : findAll()) {\n\t\t\tremove(facility_Host);\n\t\t}\n\t}",
"public void removeAllLights() {\n if (_lights != null){\n _lights.clear();\n }\n }",
"public List<Actor> getActors() {\n System.out.println(\"LENGTH:\"+actors.size());\n return actors;\n }",
"@Override\n\tpublic void removeAll() {\n\t\tfor (Paper paper : findAll()) {\n\t\t\tremove(paper);\n\t\t}\n\t}",
"public void moveActors() {\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\t\t\tfor (int column = 0; column < battlefield.length; column++) {\n\t\t\t\tif (battlefield[row][column].getElf() != null) {\n\t\t\t\t\tbattlefield[row][column].getElf().move(battlefield, row,\n\t\t\t\t\t\t\tcolumn);\n\t\t\t\t}\n\t\t\t\tif (battlefield[row][column].getOrc() != null) {\n\t\t\t\t\tbattlefield[row][column].getOrc().move(battlefield, row,\n\t\t\t\t\t\t\tcolumn);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"void unsubscribeAll();",
"public void detachAllObservers();",
"@Override\n\tpublic void removeAll() {\n\t\tfor (Answer answer : findAll()) {\n\t\t\tremove(answer);\n\t\t}\n\t}",
"@Override\n\tpublic void removeAll() {\n\t\tfor (LocalRichInfo localRichInfo : findAll()) {\n\t\t\tremove(localRichInfo);\n\t\t}\n\t}",
"public void removeAllListeners() {\n die();\n }",
"@Override\n\tpublic void removeAll() {\n\t\tfor (LinkGroup linkGroup : findAll()) {\n\t\t\tremove(linkGroup);\n\t\t}\n\t}",
"public void removeAllChats()\n {\n if (logger.isDebugEnabled())\n logger.debug(\"Remove all tabs from the chat window.\");\n\n if(getChatTabCount() > 0)\n {\n this.chatTabbedPane.removeAll();\n\n this.mainPanel.remove(chatTabbedPane);\n\n chatCount = 0;\n }\n else\n {\n this.removeChat(getCurrentChat());\n }\n\n dispose();\n }",
"public static void removeAll() {\r\n\t\tfor (final Block block : new HashSet<>(instances_.keySet())) {\r\n\t\t\trevertBlock(block, Material.AIR);\r\n\t\t}\r\n\t\tfor (final TempBlock tempblock : REVERT_QUEUE) {\r\n\t\t\ttempblock.state.update(true, applyPhysics(tempblock.state.getType()));\r\n\t\t\tif (tempblock.revertTask != null) {\r\n\t\t\t\ttempblock.revertTask.run();\r\n\t\t\t}\r\n\t\t}\r\n\t\tREVERT_QUEUE.clear();\r\n\t}",
"@Override\n\tpublic void removeAll() {\n\t\tfor (VcmsPortion vcmsPortion : findAll()) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}",
"public void destroy() {\n\t\tfor (GroupPaddle groupPaddle : paddles) {\n\t\t\tPhysicsWorld.getPhysicsWorld().destroy(groupPaddle);\n\t\t}\n\t}",
"public void removeAllInvolvedPerson() {\r\n\t\tBase.removeAll(this.model, this.getResource(), INVOLVEDPERSON);\r\n\t}",
"public void removeAllAgents()\n/* 76: */ {\n/* 77:125 */ this.mapPanel.removeAllAgents();\n/* 78: */ }",
"public void deleteAllRepeaters() {\n new DeleteAllRepeatersAsyncTask(repeaterDao).execute();\n }",
"public void removeAllListeners() {\r\n\t\tgetListeners().removeAllListeners();\r\n\t}",
"@Override\n\tpublic void removeAll() {\n\t\tfor (Category category : findAll()) {\n\t\t\tremove(category);\n\t\t}\n\t}",
"@Override\r\n\tpublic ArrayList<String> allActors()\r\n\t{\r\n\t\tArrayList<String> sortedActorNames = new ArrayList<String>();\r\n\t\t\r\n\t\tsortedActorNames = actorNames;\r\n\t\t\r\n\t\tCollections.sort(sortedActorNames);\r\n\t\t\r\n\t\treturn sortedActorNames;\r\n\t}",
"@Override\n\tpublic List<Actor> findAll() {\n\t\treturn actorRepository.findAll();\n\t}",
"private void clearAll(){\r\n List<FantasyMatch> allMatches = fmatchBean.findAll();\r\n for(FantasyMatch fm : allMatches){\r\n fmatchBean.remove(fm);\r\n }\r\n \r\n List<RosterPlayer> allRps= rpBean.findAll();\r\n for(RosterPlayer rp : allRps){\r\n rpBean.remove(rp);\r\n }\r\n \r\n List<FantasyTeam> allTeams = ftBean.findAll();\r\n for(FantasyTeam ft : allTeams){\r\n ftBean.remove(ft);\r\n }\r\n \r\n List<FantasyLeague> allLeagues = flBean.findAll();\r\n for(FantasyLeague fl : allLeagues){\r\n flBean.remove(fl);\r\n }\r\n \r\n List<FantasyUser> allUsers = fUserBean.findAll();\r\n for(FantasyUser fu : allUsers){\r\n fUserBean.remove(fu);\r\n }\r\n }",
"public final void unlockObjects(ArrayList<String> ids) {\n lockedActorIDs.removeAll(ids);\n }",
"private void removeDestroyedObjects ()\n {\n Collection<Asteroid> newAsteroids = new ArrayList<>(this.game.getAsteroids().size() * 2); // Avoid reallocation and assume every asteroid spawns successors.\n this.game.getAsteroids().forEach(asteroid -> {\n if (asteroid.isDestroyed()) {\n this.increaseScore();\n newAsteroids.addAll(asteroid.getSuccessors());\n }\n });\n this.game.getAsteroids().addAll(newAsteroids);\n // Remove all asteroids that are destroyed.\n this.game.getAsteroids().removeIf(GameObject::isDestroyed);\n // Remove any bullets that are destroyed.\n this.game.getBullets().removeIf(GameObject::isDestroyed);\n }",
"public void killAll() {\n for (Map.Entry<Integer, Enemy> entry :enemies.entrySet()) {\n if (!!!entry.getValue().isDead()) {\n entry.getValue().setHealth(0);\n }\n }\n }",
"void clearActions();",
"public void clearAll()\n {\n textureMap.clear();\n componentMap.clear();\n }",
"@Override\n public void removeAll() throws SystemException {\n for (EntityDealer entityDealer : findAll()) {\n remove(entityDealer);\n }\n }",
"@Override\n public void deleteAllAccounts() {\n synchronized (accounts) {\n accounts.clear();\n }\n }",
"protected void stopAll() {\n\t\tif (this.udpServer!=null)\n\t\t\tthis.udpServer.interrupt();\n\t\tif (this.connectionServer!=null)\n\t\t\tthis.connectionServer.interrupt();\n\t\tthis.connectionServer=null; // supprime le TCPServer et les Sockets associés\n\t\tthis.udpServer=null; // supprime l'UDPServer et les Sockets associés\n\t\tif (this.agent.getUserStatusManager()!=null)\n\t\t\tfor (String u : this.agent.getUserStatusManager().getActiveUsers())\n\t\t\t\tthis.removeSocket(u);; // interrompt tous les UserSockets\n\t\tthis.mapSockets.clear();\n\t}",
"public void clearChildren() throws RemoteException;",
"public void clearAllWatchers() {\n\t\tif (registeredWatchers.size() > 0) {\n\t\t\tboolean isRemoved = false;\n\t\t\tLOG.info(\"About to unregister all watchers.\");\n\t\t\tfor (WatchKey watchKey : registeredWatchers.keySet()) {\n\t\t\t\ttry {\n\t\t\t\t\tisRemoved = notifier.removeWatcher(watchKey);\n\t\t\t\t\tif (isRemoved) {\n\t\t\t\t\t\tregisteredWatchers.remove(watchKey);\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// Let other watchers be cleared off\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (registeredWatchers.size() > 0) {\n\t\t\t\tLOG.info(\"Failed to clear all the watchers. Some watchers couldn't be unregistered.\");\n\t\t\t}\n\t\t} else {\n\t\t\tLOG.warn(\"Failed to clear all the watchers as no watchers registered.\");\n\t\t}\n\t}",
"@Override\n public void clear() {\n for (E e : this) {\n remove(e);\n }\n }",
"private void removeRobot(Actor r) {\n\t\tfor (int i = 0; i < attackRobots.size(); i++) {\n\t\t\tif (attackRobots.get(i).equals(r)) {\n\t\t\t\tattackRobots.remove(i);\n\t\t\t\tcheckLost();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < supportRobots.size(); i++) {\n\t\t\tif (supportRobots.get(i).equals(r))\n\t\t\t\tsupportRobots.remove(i);\n\t\t}\n\t}"
] |
[
"0.69164103",
"0.66460574",
"0.65954095",
"0.6567935",
"0.6526879",
"0.6328841",
"0.626723",
"0.6201393",
"0.60587317",
"0.60525584",
"0.5934785",
"0.5824112",
"0.5783075",
"0.576691",
"0.5756931",
"0.57155186",
"0.56856173",
"0.5665344",
"0.56635356",
"0.5645588",
"0.56363803",
"0.56188154",
"0.5582899",
"0.55734706",
"0.5567929",
"0.5535207",
"0.54973173",
"0.5450913",
"0.54352915",
"0.54243964",
"0.5423934",
"0.5416678",
"0.5416678",
"0.5405058",
"0.53791326",
"0.53732413",
"0.53726435",
"0.536455",
"0.5364542",
"0.53644794",
"0.5356646",
"0.53455466",
"0.5335469",
"0.5335469",
"0.5335469",
"0.5335469",
"0.5335469",
"0.5335469",
"0.5335469",
"0.5335469",
"0.5335469",
"0.5335469",
"0.5335469",
"0.5335469",
"0.53048235",
"0.52636874",
"0.52527034",
"0.5245465",
"0.52410877",
"0.52403563",
"0.5225983",
"0.52241445",
"0.5204257",
"0.51980394",
"0.5191467",
"0.51875603",
"0.5182357",
"0.5174646",
"0.51734525",
"0.5165476",
"0.5153962",
"0.5151083",
"0.51468176",
"0.51450527",
"0.51444274",
"0.51430357",
"0.51426417",
"0.514116",
"0.5131751",
"0.51306254",
"0.513037",
"0.51297224",
"0.5128734",
"0.51277256",
"0.5125775",
"0.5122849",
"0.51217735",
"0.5116051",
"0.5107297",
"0.5100927",
"0.5095867",
"0.5092056",
"0.5086164",
"0.5079169",
"0.5074335",
"0.50712055",
"0.50667715",
"0.5064227",
"0.5061824",
"0.50588727",
"0.5057879"
] |
0.0
|
-1
|
Removes all children, actions, and listeners from this group.
|
public void clear() {
internalGroup.clear();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void clearChildren() {\n internalGroup.clearChildren();\n }",
"public void removeAllListeners() {\n messageListeners.clear();\n children.clear();\n }",
"@Override\n public void removeChildren()\n {\n children.clear();\n }",
"public void clearActions() {\n internalGroup.clearActions();\n }",
"public void destroyAll() {\n children.destroyAll();\n }",
"public void clearChildren() {\r\n this.children = null;\r\n }",
"public void removeChildren() {\r\n this.children.clear();\r\n childNum = 0;\r\n }",
"public void clearChildren() {\n //View parent = getParent();\n //children.forEach(child -> child.setParent(parent));\n children.clear();\n this.invalidate();\n }",
"public void clearChildren() throws RemoteException;",
"public void clear()\n\t{\n\t\tthis.getChildren().clear();\n\t}",
"public void clear()\n\t\t{ while (!children.isEmpty()) remove(children.get(0)); }",
"public void cleanup() {\n if (cleaned) {\n return;\n }\n for (val cleanup : cleanups) {\n cleanup.accept(this);\n }\n clear(true);\n cleanups.clear();\n attributes.clear();\n if (parent != null) {\n parent.remove(this);\n }\n cleaned = true;\n }",
"public void clear() {\n\t\t// If settingActive is true, clear will be called for all children anyway. No need to loop.\n\t\tif (children != null) {\n\t\t\tfor (BusinessObject child : children.values()) {\n\t\t\t\tchild.clear();\n\t\t\t}\n\t\t}\n\t}",
"public void dispose() {\n\t\tBusinessObject owner = getOwner();\n\t\tif (owner != null) {\n\t\t\t// remove potential owner's pointer to this\n\t\t\towner.removeChild(this);\n\t\t\t// remove pointer to owner\n\t\t\t_ownerProperty().setValue(null);\n\t\t}\n\t\t\n\t\t// free all children {\n\t\tif (children != null) {\n\t\t\tBusinessObject[] array = new BusinessObject[children.size()];\n\t\t\tchildren.values().toArray(array);\n\t\t\tfor (BusinessObject bo : array) {\n\t\t\t\tbo.dispose();\n\t\t\t}\n\t\n\t\t\tchildren.clear();\n\t\t\tchildren = null;\t// not needed anymore\n\t\t}\n\t\t\n\t\t// remove all link records\n\t\tif (childLinks != null) {\n\t\t\tchildLinks.clear();\n\t\t\tchildLinks = null;\t// not needed anymore\n\t\t}\n\t\tif (childLinkedAttributes != null) {\n\t\t\tchildLinkedAttributes.clear();\n\t\t\tchildLinkedAttributes = null;\n\t\t}\n\t\t\n\t\t// stop anyone from listening to this object\n\t\tlisteners.clear();\n\t}",
"public void removeAll() {\n\t\tmListenerSet.clear();\n\t}",
"public void clear() {\n\t\t\tfor (AbstractTreeNode node : children) {\n\t\t\t\tnode.setParent(null);\n\t\t\t}\n\t\t\t\n\t\t\t// clear children\n\t\t\tchildren.clear();\n\t\t}",
"protected void removeAllChildren() {\n if (mRecycleBin != null) {\n int childCount = getChildCount();\n for (int i = 0; i < childCount; i++) {\n View child = getChildAt(i);\n mRecycleBin.addScrapView(child);\n }\n }\n detachAllViewsFromParent();\n }",
"@Override\n\tpublic void removeAll() {\n\t\tfor (LinkGroup linkGroup : findAll()) {\n\t\t\tremove(linkGroup);\n\t\t}\n\t}",
"public void removeAllListeners() {\r\n\t\tgetListeners().removeAllListeners();\r\n\t}",
"public void releaseChildren() {\n if (children != null) {\n unloadChildren();\n\n children.unload();\n children = null;\n }\n }",
"private void clean() {\n nodesToRemove.clear();\n edgesToRemove.clear();\n }",
"public void clearClickListeners() {\n addActions.clear();\n addActions2.clear();\n removeActions.clear();\n removeActions2.clear();\n }",
"public void removeAllConductor() {\r\n\t\tBase.removeAll(this.model, this.getResource(), CONDUCTOR);\r\n\t}",
"public void removeAllListeners() {\n die();\n }",
"private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }",
"public void removeAllListener() {\r\n listeners.clear();\r\n }",
"public void removeListeners() {\n if ( listeners != null ) {\n listeners.clear();\n }\n }",
"public void clear()\n {\n if (nodes != null)\n {\n detachNodes(nodes);\n nodes = null;\n namedNodes = null;\n }\n }",
"public void clearGroups() {\r\n\t\tthis.groups = null;\r\n\t}",
"public void cleanup() {\n\t\tref.removeEventListener(listener);\n\t\tmodels.clear();\n\t\tmodelNames.clear();\n\t\tmodelNamesMapping.clear();\n\t}",
"public synchronized void clear ()\n {\n for ( final Map.Entry<Object, FolderListener> entry : this.listeners.entrySet () )\n {\n entry.getValue ().changed ( entry.getKey (), new LinkedList<Entry> (), new LinkedList<String> (), true );\n }\n \n for ( final Map.Entry<String, Entry> entry : this.entryMap.entrySet () )\n {\n if ( entry instanceof FolderEntryCommon )\n {\n ( (FolderEntryCommon)entry ).getFolder ().removed ();\n }\n }\n \n this.entryMap.clear ();\n }",
"public synchronized void cleanup() {\n\t\t// by freeing the mother group we clean up all the nodes we've created\n\t\t// on the SC server\n\t\tsendMessage(\"/g_freeAll\", new Object[] { _motherGroupID });\n\t\tfreeNode(_motherGroupID);\n\t\tfreeAllBuffers();\n\t\t\n\t\t//reset the lists of sound nodes, nodeIds, busses, etc\n\t\tSoundNode sn;\n\t\tEnumeration<SoundNode> e = _soundNodes.elements();\n\t\twhile (e.hasMoreElements()) {\n\t\t\tsn = e.nextElement();\n\t\t\tsn.setAlive(false);\n\t\t}\n\t\t_soundNodes.clear();\n\t\t_nodeIdList.clear();\n\t\t_busList.clear();\n\t\t_bufferMap.clear();\n\t}",
"public void cleanup() {\n mParentLayout.removeView(mContainer);\n mControlsVisible.clear();\n }",
"public void clear() {\r\n for (Edge edge : edges)\r\n edge.disconnect();\r\n for (Vertex vertex : vertices)\r\n vertex.disconnect();\r\n edges.clear();\r\n vertices.clear();\r\n getChildren().remove(1, getChildren().size());\r\n }",
"public void clear() {\n tree.clear();\n }",
"@Override\n\tpublic void removeAllListener() {\n\t\tLog.d(\"HFModuleManager\", \"removeAllListener\");\n\t\tthis.eventListenerList.clear();\n\t}",
"public void clear() {\n context = null;\n nestedElements.clear();\n }",
"public void shutdown() {\n for (AbstractController child : getChildren()) {\n child.shutdown();\n }\n }",
"public void removeAllInteractionsListeners() {\n _listeners.clear();\n }",
"@objid (\"808c0839-1dec-11e2-8cad-001ec947c8cc\")\n @Override\n public void delete() {\n // List children from the end to avoid reordering of the other GMs\n for (int i = this.children.size() - 1; i >= 0; i--) {\n GmNodeModel child = this.children.get(i);\n child.delete();\n \n // When several elements have been deleted consecutively, fix the next index\n if (i > this.children.size()) {\n i = this.children.size();\n }\n }\n \n assert (this.children.isEmpty()) : \"All children should have been deleted:\" + this.children;\n \n super.delete();\n }",
"public void removeAllObjectChangeListeners()\n\t{\n\t\tlistenerList = null;\n\t}",
"public void removeAllObjectChangeListeners()\n\t{\n\t\tlistenerList = null;\n\t}",
"@Override\r\n public void clear(){\r\n root = null;\r\n }",
"public void removeAllActions() {\n menuDirty = true;\n actions.clear();\n selectedAction = null;\n }",
"@SuppressWarnings(\"unused\")\n public void removeAllListeners() {\n eventHandlerList.clear();\n }",
"public Builder clearAll() {\n if (allBuilder_ == null) {\n all_ = null;\n onChanged();\n } else {\n all_ = null;\n allBuilder_ = null;\n }\n\n return this;\n }",
"public Builder clearAll() {\n if (allBuilder_ == null) {\n all_ = null;\n onChanged();\n } else {\n all_ = null;\n allBuilder_ = null;\n }\n\n return this;\n }",
"public void removeAllListeners() {\n mCircularBar.removeAllListeners();\n }",
"public void clear() {\n mMenuItems.clear();\n mModelList.clear();\n mActionViewLayout.clear();\n }",
"@Override\n public void clear() {\n root = null;\n }",
"protected void removeListeners() {\n Window topLevelWindows[] = EventQueueMonitor.getTopLevelWindows();\n if (topLevelWindows != null) {\n for (int i = 0; i < topLevelWindows.length; i++) {\n if (topLevelWindows[i] instanceof Accessible) {\n removeListeners((Accessible) topLevelWindows[i]);\n }\n }\n }\n }",
"protected void removeListeners() {\n }",
"public Builder clearRecursive() {\n if (recursiveBuilder_ == null) {\n recursive_ = null;\n onChanged();\n } else {\n recursive_ = null;\n recursiveBuilder_ = null;\n }\n\n return this;\n }",
"public void clear() {\n\t if (entries != null) {\n\t\tfor (Entry e : entries) {\n\t\t for(Field f: EntrySerializer.getAllFields(e)) {\n\t\t\tif (f != null) f.clear();\n\t\t }\n\t\t}\n\t }\n\t if (groups != null) {\n\t\tfor (Group g: groups) {\n\t\t for (Field f : GroupSerializer.getAllFields(g)) {\n\t\t\tif (f != null) f.clear();\n\t\t }\n\t\t}\n\t }\n\t}",
"public synchronized void clearResources()\r\n {\r\n // create a new root, making old tree eligible for GCing\r\n createRootNode();\r\n\r\n // clear all registered objects\r\n unRegisterAll();\r\n }",
"@Override\n public void clear() {\n for (E e : this) {\n remove(e);\n }\n }",
"public void removeAllComposer() {\r\n\t\tBase.removeAll(this.model, this.getResource(), COMPOSER);\r\n\t}",
"public void clear() {\n synchronized (mMxEventDispatcher) {\n mIsAlive = false;\n // remove any listener\n mMxEventDispatcher.clearListeners();\n }\n\n // clear the store\n mStore.close();\n mStore.clear();\n\n if (null != mSyncHandlerThread) {\n mSyncHandlerThread.quit();\n mSyncHandlerThread = null;\n }\n }",
"void unsubscribeAll();",
"public void clear() {\n root = null;\n }",
"public void clear() {\n root = null;\n }",
"private void removeListeners(AccessibleContext ac) {\n\n\n if (ac != null) {\n // Listeners are not added to transient components.\n AccessibleStateSet states = ac.getAccessibleStateSet();\n if (!states.contains(AccessibleState.TRANSIENT)) {\n ac.removePropertyChangeListener(this);\n /*\n * Listeners are not added to transient children. Components\n * with transient children should return an AccessibleStateSet\n * containing AccessibleState.MANAGES_DESCENDANTS. Components\n * may not explicitly return the MANAGES_DESCENDANTS state.\n * In this case, don't remove listeners from the children of\n * lists, tables and trees.\n */\n if (states.contains(_AccessibleState.MANAGES_DESCENDANTS)) {\n return;\n }\n AccessibleRole role = ac.getAccessibleRole();\n if (role == AccessibleRole.LIST ||\n role == AccessibleRole.TABLE ||\n role == AccessibleRole.TREE) {\n return;\n }\n int count = ac.getAccessibleChildrenCount();\n for (int i = 0; i < count; i++) {\n Accessible child = ac.getAccessibleChild(i);\n if (child != null) {\n removeListeners(child);\n }\n }\n }\n }\n }",
"public void collect() {\n\t\tthis.getOwnerArea().unregisterActor(this);\n\t\t\n\t}",
"public void destroyForAll() {\n super.destroyForAll();\n }",
"public void removeAllRatioListeners()\r\n {\r\n ratioListeners.clear();\r\n }",
"public void removeAllTuioListeners()\n\t{\n\t\tlistenerList.clear();\n\t}",
"public void clearRemovalTag() {\n\t levelOfRemoval = 0;\n\t}",
"public void unregisterListeners(){\n listeners.clear();\n }",
"private void clearListenerInViewGroup(final ViewGroup viewGroup) {\n if (null == viewGroup) {\n return;\n }\n\n int count = viewGroup.getChildCount();\n for(int n = 0; n < count; ++n) {\n View childView = viewGroup.getChildAt(n);\n if(childView instanceof Switch) {\n final Switch switchView = (Switch) childView;\n switchView.setOnCheckedChangeListener(null);\n return;\n } else if (childView instanceof ViewGroup){\n ViewGroup childGroup = (ViewGroup)childView;\n clearListenerInViewGroup(childGroup);\n }\n }\n }",
"public void detach() {\n\t\tsetParent(null);\n\t}",
"public void clearChangeListeners() {\n observer.clear();\n }",
"public void cleanUp() { listener = null; }",
"public void removeItemListerners() {\r\n\t\titemListeners.clear();\r\n\t}",
"public void remove() {\n removeNode(this);\n }",
"private List<MutateOperation> removeAll() {\n return removeDescendantsAndFilter(rootResourceName);\n }",
"public void destroy()\r\n\t{\r\n\t\tsetRoot(null);\r\n\t\tsetCounter(0);\r\n\t}",
"public void clear() {\n\t\tfor (Action action : actionList) {\n\t\t\tif (action instanceof ForwardingAction)\n\t\t\t\t((ForwardingAction) action)\n\t\t\t\t\t\t.removeActionListener(actionForwarder);\n\t\t}\n\t\tsuper.clear();\n\t\tactionList.clear();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}",
"public void removeAll () {\n\t\teffects.clear();\n\t}",
"public void clear() {\n\t\tshapes.clear();\n\t\tgroupedShapes.clear();\n\t\tthis.repaint();\n\t\tcounter = 0;\n\t\tnotifyObservers();\n\t}",
"public void cleanUp() {\r\n if(getFunctionType() != VIEW_HIERARCHY)\r\n panel.dispose();\r\n cvGroupsData = null;\r\n cvHierarchyData = null;\r\n cvSortData = null;\r\n sponsorHierarchyBean = null;\r\n sponsorHierarchyTree = null;\r\n model = null;\r\n selectedNode = null;\r\n selTreePath = null;\r\n groupsController = null;\r\n hierarchyRenderer = null;\r\n hierarchyTreeCellEditor = null;\r\n treeDropTarget = null;\r\n panel = null;\r\n editor = null;\r\n changePassword = null;\r\n backGroundColor = null;\r\n maintainSponsorHierarchyBaseWindow = null;\r\n }",
"@Override\n public void clear() {\n root = null;\n size = 0;\n }",
"@Override\n public void clear() {\n root = null;\n size = 0;\n }",
"@Override\n public void clear() {\n root = null;\n size = 0;\n }",
"public void setRemover() {\n Disposable d = Disposable.from(() -> parent.psm.remove(this));\n UNSAFE.putOrderedObject(this, REMOVE, d);\n }",
"@CallSuper\n protected void clear() {\n EventListener eventListener = mUseCaseConfig.getUseCaseEventListener(null);\n if (eventListener != null) {\n eventListener.onUnbind();\n }\n\n mListeners.clear();\n }",
"public void clear() {\n\t\t//Kill all entities\n\t\tentities.parallelStream().forEach(e -> e.kill());\n\n\t\t//Clear the lists\n\t\tentities.clear();\n\t\tdrawables.clear();\n\t\tcollidables.clear();\n\t}",
"@Override\r\n public void processRemoveAll()\r\n {\r\n final ICacheEvent<String> cacheEvent =\r\n createICacheEvent(getCacheName(), \"all\", ICacheEventLogger.REMOVEALL_EVENT);\r\n try\r\n {\r\n reset();\r\n }\r\n finally\r\n {\r\n logICacheEvent(cacheEvent);\r\n }\r\n }",
"public void detachAllObservers();",
"final void cleanUp() {\r\n\t\t\tfor (Variable var : varRefs.keySet()) {\r\n\t\t\t\tvar.deleteObserver(this);\r\n\t\t\t}\r\n\t\t\tvarRefs.clear();\r\n\t\t}",
"void clearActions();"
] |
[
"0.72581846",
"0.7012649",
"0.6930067",
"0.683371",
"0.6808959",
"0.6763013",
"0.67588556",
"0.6643944",
"0.65265346",
"0.6499882",
"0.63208544",
"0.62662566",
"0.62256795",
"0.6209114",
"0.6188989",
"0.61693025",
"0.6053967",
"0.60534334",
"0.6039878",
"0.59795475",
"0.59601176",
"0.5958408",
"0.5942583",
"0.59252924",
"0.58986986",
"0.58924246",
"0.5842148",
"0.5840449",
"0.5832025",
"0.5814897",
"0.5803345",
"0.5796504",
"0.5792955",
"0.57633835",
"0.57608026",
"0.57541263",
"0.57315224",
"0.5730437",
"0.5702935",
"0.567406",
"0.564577",
"0.564577",
"0.5643851",
"0.56397974",
"0.5631434",
"0.56201017",
"0.56201017",
"0.5613182",
"0.5585029",
"0.5582605",
"0.55756503",
"0.5571972",
"0.5569554",
"0.55559677",
"0.55456525",
"0.55341333",
"0.5526312",
"0.55204684",
"0.54980737",
"0.54953027",
"0.54953027",
"0.5494678",
"0.5492529",
"0.5488195",
"0.5479991",
"0.5474097",
"0.54720426",
"0.54714274",
"0.5461449",
"0.54606867",
"0.54582244",
"0.5457743",
"0.54532325",
"0.54468054",
"0.5444352",
"0.54336417",
"0.54324406",
"0.5421598",
"0.5421598",
"0.5421598",
"0.5421598",
"0.5421598",
"0.5421598",
"0.5421598",
"0.5421598",
"0.5421598",
"0.5421598",
"0.54207605",
"0.5420733",
"0.54188275",
"0.5417905",
"0.5417905",
"0.5417905",
"0.5409506",
"0.5394228",
"0.53918207",
"0.5388662",
"0.53877914",
"0.53870046",
"0.53825516"
] |
0.643295
|
10
|
Returns the first actor found with the specified name. Note this recursively compares the name of every actor in the group.
|
public <T extends Actor> T findActor(String name) {
com.guidebee.game.engine.scene.Actor actor = internalGroup.findActor(name);
if (actor != null) {
return (T) actor.getUserObject();
}
return null;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static LinkedList<Actor> nameSearch(String name) {\n //sets name to lower case\n String hname = name.toLowerCase();\n //hashes the lower cased name\n int hash = Math.abs(hname.hashCode()) % ActorList.nameHashlist.length;\n //finds the location of the linked list\n LinkedList<Actor> location = ActorList.nameHashlist[hash];\n //sets the head to the head of the linked list\n LinkedList.DataLink head = location.header;\n\n\n while (head.nextDataLink != null) {\n //runs until next data link is null and gets each Actor\n Actor actor = (Actor) head.nextDataLink.data;\n //checks the name of the actor to inputted name\n if (actor.getName().toLowerCase().equals(hname)) {\n //if it's the same it returns the actor\n return location;\n //or moves to next link\n } else {\n head = head.nextDataLink;\n }\n }\n //returns null if the list does not match input\n return null;\n\n\n }",
"public String findActor(String characterName)\n\t{\n\t\tfor (int index = 0; index < peopleAct.size(); index++)\n\t\t{\n\t\t\tif (peopleAct.get(index) == null)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if (peopleAct.get(index).getCharacter() == characterName)\n\t\t\t{\n\t\t\t\treturn \"The character \" + characterName + \" was played by \" + peopleAct.get(index).getName() + \" in the movie \" + name + \".\";\n\t\t\t} \n\t\t}\n\t\treturn \"Sorry, the following character \" + characterName + \" was not found in the movie.\";\n\t}",
"public String findCharacter(String actorName)\n\t{\n\t\tfor (int index = 0; index < peopleAct.size(); index++)\n\t\t{\n\t\t\tif (peopleAct.get(index) == null)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if (peopleAct.get(index).getName() == actorName)\n\t\t\t{\n\t\t\t\treturn \"The actor/actress \" + actorName + \" played \" + peopleAct.get(index).getCharacter() + \" in the movie \" + name + \".\";\n\t\t\t} \n\t\t}\n\t\treturn \"Sorry, the following actor \" + actorName + \" was not found in the movie.\";\n\t}",
"public Contact findContact(String name)\r\n\t{\r\n\t\tSystem.out.println(\"in FindContact\");\r\n\t\tString name1;\r\n\t\tname = name.toUpperCase();\r\n\t\tfor(int i = 0; i < this.size(); i++)\r\n\t\t{\r\n\t\t\tname1 = this.get(i).getContactName().toUpperCase();\r\n\r\n\t\t\tif (name.equalsIgnoreCase(name1)) {\r\n\t\t\t\tSystem.out.println(this.get(i));\r\n\t\t\t\tContact contact = this.get(i);\r\n\t\t\t\treturn contact; \t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t \t \t\t \r\n\t\t} \r\n\t\treturn null;\r\n\t}",
"public Person find(String name) {\n\t\tfor (Person person : listOfPeople) {\n\t\t\tif(person.getName().contains(name)) {\n\t\t\t\treturn person;\n\t\t\t}\n\t\t}\n\t\treturn null; // only reached if person with name not found by search.\n\t}",
"public User findUserName(String name)\n\t\t{\n\t\t\tfor (int i = 0; i < users.size(); i++)\n\t\t\t{\n\t\t\t\tif (name.equals(users.get(i).getUsername()))\n\t\t\t\t{\n\t\t\t\t\treturn users.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}",
"public Team findTeamFromName(String name) {\r\n Iterator<Team> itr = this.getTeamTreeFromMatchTree().iterator();\r\n Team team;\r\n while (itr.hasNext()){\r\n team = itr.next();\r\n if (team.getName().equals(name)){\r\n return team;\r\n }\r\n }\r\n return null;\r\n }",
"public User getPlayer(String name) {\n\t\tUser ret = null;\n\t\tList<User> searchResult = this.players.stream().filter(x->x.name.equals(name)).collect(Collectors.toList());\n\t\tif (!searchResult.isEmpty()) {\n\t\t\tret = searchResult.get(0);\n\t\t}\n\t\treturn ret;\n\t}",
"public static Animal getByName(String name) {\n for(var animal : animals){\n if(animal.getName().equalsIgnoreCase(name))\n return animal;\n }\n return null;\n\n //Diffrent way of finding the animal\n /*return animals.stream()\n .filter(a -> a.getName().equalsIgnoreCase(name))\n .findAny()\n .orElse(null);*/\n }",
"public SaveGameNode getFirstChild(String name) {\r\n SaveGameNode node;\r\n node = this.children.stream().filter(child -> child.equals(name)).findFirst().get();\r\n return node;\r\n }",
"private Contacts getContact(String name) {\n Contacts foundContact = contactList.stream()\n .filter(contact ->\n contact.getFirstName().equals(name) ||\n contact.getLastName().equals(name))\n .findFirst().orElse(null);\n return foundContact;\n }",
"public Enemy getEnemy(String name) {\n\n // For all enemies\n for (Entity curEnt : getEntityList()) {\n\n // If current enemy name matches given name\n if (curEnt.getName().equalsIgnoreCase(name)) {\n\n // Return enemy\n return (Enemy) curEnt;\n }\n }\n\n // If no enemy was found, return null\n return null;\n }",
"public Individual getIndividualByName(String name) throws ObjectNotFoundException{\n \t\n\t\tList<Individual> individualList = new ArrayList<>();\n\t\tindividualList = (new TeamsJsonReader()).getListOfIndividuals();\n\t\tIndividual individual = null;\n\t\tint size, counter = 0;\n\t\tfor (size = 0; size < individualList.size(); size++) {\n\t\t\tcounter = 0;\n\n\t\t\tindividual = individualList.get(size);\n\n\t\t\tif (individual.getName().equals(name)) {\n\t\t\t\tcounter = 1;\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (size == individualList.size() && counter == 0)\n\t\t\tthrow new ObjectNotFoundException(\"individual\", \"name\", name);\n\n\t\treturn individual;\n\n\n }",
"private Node getNode(String name) {\n for(Iterator<Node> i = nodes.iterator(); i.hasNext();) {\n Node n = i.next();\n if(n.getName().equalsIgnoreCase(name)){\n return n;\n };\n }\n return null;\n }",
"public User getUserByName(String name) {\n \t\tfor (User user : users) {\n \t\t\tif (user.getName().equals(name))\n \t\t\t\treturn user;\n \t\t}\n \t\treturn null;\n \t}",
"public Guest getGuest(String name) {\n\t\tString checkName = name.toUpperCase();\n for (Guest guest : guestList) {\n if (guest.getName().toUpperCase().equals(checkName)){\n return guest;\n }\n }\n return null;\n }",
"Contact searchContact(String searchName){\n for(int i = 0; i < friendsCount; i++){\n if(myFriends[i].name.equals(searchName)){\n return myFriends[i];\n }\n }\n return null;\n }",
"public static Node getFirstChildByName(Node parent, String name) {\n\t\t// Goes through all the child nodes.\n\t\tNodeList children = parent.getChildNodes();\n\t\tfor (int idx = 0; idx < children.getLength(); idx++) {\n\t\t\tNode child = children.item(idx);\n\t\t\t\n\t\t\t// If a node with the name we're looking for is found, returns it.\n\t\t\tif (child.getNodeName().equalsIgnoreCase(name)) return child;\n\t\t}\n\t\t\n\t\t// If no node with the name we're looking for was found, returns null.\n\t\treturn null;\n\t}",
"public Actor getActor(int index) { return (Actor)ActorSet.elementAt(index); }",
"public Actor getActor() {\n\t\treturn map.getActorAt(this);\n\t}",
"public NodeP findPatient (String name){\r\n NodeP current = front;\r\n \r\n while (!current.getPatient().getName().trim().equalsIgnoreCase(name)){\r\n current = current.getNext();\r\n }\r\n return current;\r\n }",
"@Override\n\tpublic Actor findOne(long id) {\n\t\treturn actorRepository.findOne(id);\n\t}",
"public static Image loadActor(String name) {\n\t\treturn loadBitmap(ACTORS_DIR + name);\n\t}",
"public Movie findMovie(String name){\n\n Movie find = null ;\n\n for (Movie movie :movies) {\n\n if(movie.getTitle().equals(name)){\n\n find = movie;\n\n }\n\n }\n\n return find;\n\n }",
"public Element findByName(String name) {\n for (Element element : this){\n if (element.getName().equals(name)) return element;\n }\n return null;\n }",
"public final DodlesActor getSelectedActor() {\n if (selectedActors.size() > 0) {\n return selectedActors.iterator().next();\n }\n\n return null;\n }",
"@Override\r\n\tpublic TeamPO findTeamByName(String name) {\n\t\treturn teams.findTeamByShortName(name);\r\n\t}",
"public Person getPerson(String personName)\n {\n Person currentPerson = characters.get(0);\n // get each person object in characters's array list.\n for (Person person : characters){\n if (person.getName().equals(personName)){\n currentPerson = person;\n }\n }\n return currentPerson;\n }",
"public Actor getActorByIdentity(Identity ident) {\r\n\t\tIterator<Entry<Identity, Actor>> iter = actors.entrySet().iterator();\r\n\t\tActor actor = null;\r\n\t\twhile(iter.hasNext()) {\r\n\t\t\tMap.Entry<Identity, Actor> me = (Entry<Identity, Actor>)(iter).next();\r\n\t\t\tif(me.getKey().getLastName().compareTo(ident.getLastName()) == 0 ){\r\n\t\t\t\tactor = me.getValue();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn actor;\r\n\t}",
"public Player getPlayerByName(String name){\n for (Player player : players){\n if (name.equals(player.getName())){\n return player;\n }\n }\n return null;\n }",
"public String getBestActor() {\n\t\tdouble max = 0;\n\t\tString bestActor = \"\";\n\t\tfor(Actor actor : this.actorList) {\n\t\t\tdouble averageRating = 0;\n\t\t\tfor(Movie movie : actor.getMovies()) {\n\t\t\t\taverageRating += movie.getRating() / actor.getMovies().size();\n\t\t\t}\n\t\t\tif(averageRating > max) {\n\t\t\t\tmax = averageRating;\n\t\t\t\tbestActor = actor.getName();\n\t\t\t}\n\t\t}\n\t\treturn bestActor;\n\t}",
"public BusinessObject findChildByName(String name) {\n\t\tif (children == null) return null;\n\t\tBusinessObject child = children.get(name.toLowerCase());\n\t\tif (child == null) return null;\n\t\treturn child.getReferencedObject();\n\t}",
"@Override\n public Component find(String name) throws ItemNotFoundException {\n if(this.getName().equals(name))\n return this;\n\n for(Component c : children)\n try {\n return c.find(name);\n } catch (ItemNotFoundException e) {\n continue;\n }\n\n throw new ItemNotFoundException(\"\\\"\" + name + \" not found in \" + this.getName());\n }",
"static public Person searchPerson(String name) {\n return personMap.get(name);\n }",
"@Nullable\n public Member findMember(String memberName) {\n if (memberName == null)\n return null;\n\n return members.stream().filter(m -> m.name.equals(memberName)).findFirst().orElse(null);\n }",
"public MenuItem getMenuItemByName(String name){\n for (MenuItem item: menuItems){\n if (item.getFoodName().equals(name)){\n return item;\n }\n }\n return null;\n }",
"public int findContact(String name) {\n\t\tfor (int i=0; i<contacts.size(); i++) {\n\t\t\tif (name.equals(contacts.get(i).getName())){\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"public String searchByName(String name){\n for(Thing things: everything){\n if(things.getName().equalsIgnoreCase(name)){\n return things.toString();\n }\n }\n return \"Cannot Find given Name\";\n }",
"public final void rule__AstActor__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7525:1: ( ( 'actor' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7526:1: ( 'actor' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7526:1: ( 'actor' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7527:1: 'actor'\n {\n before(grammarAccess.getAstActorAccess().getActorKeyword_1()); \n match(input,70,FOLLOW_70_in_rule__AstActor__Group__1__Impl15563); \n after(grammarAccess.getAstActorAccess().getActorKeyword_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 }",
"public final DodlesActor getActor(String id) {\n return all.get(id);\n }",
"public static Group getByName(String name) {\r\n\t\t\r\n\t\tif (groups == null || groups.size() == 0) \r\n\t\t\tbuildList();\r\n\t\t\r\n\t\tGroup group = null;\r\n\t\tIterator<Group> i = groups.iterator();\r\n\t\t\r\n\t\twhile (i.hasNext()) { \r\n\t\t\tgroup = i.next();\r\n\t\t\tif (group.name.equals(name)) \r\n\t\t\t\treturn group;\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t\t\r\n\t}",
"@Override\n public Named find(String name) throws SemanticException {\n try {\n return head.find(name);\n }\n catch (NoClassException e) {\n return tail.find(name);\n }\n }",
"public UserGroup findByName(String name) {\n\t\tQuery q;\n\t\tUserGroup results = null;\n\t\tq = sessionFactory.getCurrentSession().createQuery(\"from UserGroup where webaddress=:name\").setParameter(\"name\", name);\n\t\ttry {\n\t\t\tresults = (UserGroup) q.getResultList().get(0);\n\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(\"array index out of bound\" + \" result not found\");\n\t\t}\n\n\t\treturn results;\n\t}",
"@Override\n public String actor() {\n return NAME;\n }",
"@Override\n public String actor() {\n return NAME;\n }",
"@Override\r\n\tpublic Subject getSubjectByName(String name) {\r\n\t\tList<Subject> result = runOwnQuery(\"FROM Subject WHERE name = ?1\", name);\r\n\t\tif (result.isEmpty()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn result.get(0);\r\n\t}",
"public TreeNode find(TreeNode parent, String name){\r\n\t\tif(parent == null){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tTreeNode child;\r\n\t\tIterator<TreeNode> i = parent.children();\r\n\t\tint index = 0;\r\n\t\twhile(i.hasNext()){\r\n\t\t\t// Loop on children nodes\r\n\t\t\tchild = i.next();\r\n\t\t\tif(child.compare(name)){\r\n\t\t\t\t// If syscall name matches, return this child\r\n\t\t\t\tchild.setIndex(index);\r\n\t\t\t\treturn child;\r\n\t\t\t}\r\n\t\t\tindex++;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public Tutor findTutor(final String name) {\n for (Tutor tutor : tutors) {\n if (name.equals(tutor.getName())) {\n return tutor;\n }\n }\n\n return null;\n }",
"@Override\r\n\tpublic Member getMemberByName(String name) throws NotFoundException,\r\n\t\t\tExistException, MissingParameter, InvalidParameter {\n\t\treturn null;\r\n\t}",
"public NameSurferEntry findEntry(String name) {\n\t\tchar ch = name.charAt(0);\n\t\tif(Character.isLowerCase(ch) == true) {\n\t\t\tch = Character.toUpperCase(ch);\n\t\t}\n\t\tString otherLetters = name.substring(1);\n\t\totherLetters = otherLetters.toLowerCase();\n\t\tname = ch + otherLetters;\n\t\tif (nameFromDatabase.containsKey(name)) {\n\t\t\treturn nameFromDatabase.get(name);\n\t\t}\t\t\t\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}",
"public GraphNode<?> get(String name) {\n\t\tfor(GraphNode<?> node : nodes) {\n\t\t\tif(node.data.equals(name))\n\t\t\t\treturn node;\n\t\t}\n\t\treturn null;\n\t}",
"public User findUser(String name) {\n\t\treturn null;\r\n\t}",
"public Benutzer findBenutzerByName(String name) {\n\n if (!benutzerRepo.findBenutzerByBenutzerName(name).isPresent()) {\n return null;\n }\n\n return benutzerRepo.findBenutzerByBenutzerName(name).get();\n }",
"private Actor findActor( int actorNumber ) {\r\n\t\tString name = \"Actor-\" + actorNumber;\r\n\t\t\r\n\t\t// see if we can find a record for this actor\r\n\t\tint free = 0;\r\n\t\tfor( int i = 0; i < maxActors; i++ ) {\r\n\t\t\tif (actors[i] == null)\r\n\t\t\t\tfree++;\r\n\t\t\telse if (name.equals(actors[i].toString())) {\r\n\t\t\t\tupdates[i] = ++generation;\r\n\t\t\t\treturn( actors[i] );\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t * Garbage collection\r\n\t\t * \t\tTo avoid creating a watcher-style path for \r\n\t\t * \t\t\"Elvis has left the building\" events between\r\n\t\t * \t\tthe sensor and the space, I chose to do a \r\n\t\t * \t\tsimple LRU for tracked Actors\r\n\t\t */\r\n\t\tif (free == 0) {\r\n\t\t\tint oldest = 0;\r\n\t\t\tfor( int i = 1; i < maxActors; i++ ) {\r\n\t\t\t\tif (updates[i] < updates[oldest])\r\n\t\t\t\t\toldest = i;\r\n\t\t\t}\r\n\t\t\tactors[oldest] = null;\r\n\t\t\tupdates[oldest] = 0;\r\n\t\t}\r\n\t\t\r\n\t\t// allocate a new actor tracker\r\n\t\tfor( int i = 0; i < maxActors; i++ )\r\n\t\t\tif (actors[i] == null) {\r\n\t\t\t\tactors[i] = new Actor(name, null);\r\n\t\t\t\tupdates[i] = 0;\r\n\t\t\t\treturn( actors[i] );\r\n\t\t\t}\r\n\t\t\r\n\t\treturn( null );\t\t// can't reach\r\n\t}",
"public Group group(String name)\n\t{\n\t\tList<Element> list = filter(p -> p.getName().equals(name) && p instanceof Group);\n\t\t\n\t\tif (list != null && list.size() > 0)\n\t\t{\n\t\t\tif (list.size() > 1)\n\t\t\t\tSystem.out.println(\"Warning: Returning first of many groups with duplicate names\");\n\t\t\t\n\t\t\treturn (Group) list.get(0);\n\t\t}\n\t\telse return null;\n\t}",
"public Property property(String name)\n\t{\n\t\tList<Element> list = filter(p -> p.getName().equals(name) && p instanceof Property);\n\t\t\n\t\tif (list != null && list.size() > 0)\n\t\t{\n\t\t\tif (list.size() > 1)\n\t\t\t\tSystem.out.println(\"Warning: Returning first of many groups with duplicate names\");\n\t\t\t\n\t\t\treturn (Property) list.get(0);\n\t\t}\n\t\telse return null;\n\t}",
"private static int findContact (String name){\n\t\tfor (int ii=0; ii<contacts.length; ii++){\n\t\t\t//If the element is null it means we didn't find the contact in the previous ones,\n\t\t\t//so we return false\n\t\t\tif (contacts[ii]==null) return -1;\n\t\t\tif(contacts[ii].getName().equals(name)) return ii;\n\t\t\t}\n\t\treturn -1;\n\t}",
"private Composite seekLocalName(Composite composite, String name) {\n Optional<Composite> find = composite.find(childComposite -> {\n if (childComposite == null) {\n return false;\n }\n\n return childComposite.getName() != null && childComposite.getName().equals(name);\n }, FindMode.childrenOnly).stream().findFirst();\n\n if (find.isPresent()) {\n return find.get();\n } else {\n return null;\n }\n }",
"public static EntityPlayer getPlayer(String name) {\r\n\t\tfor (EntityPlayer player : getAll()) {\r\n\t\t\tif (player.getName().equals(name)) {\r\n\t\t\t\treturn player;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"public UserSession getUserForName(String name) throws SessionQueryException\n {\n UserSession returnedSession = null;\n\n SessionManagementComponent sampleComponent = new SessionManagementComponent(name, false, false);\n\n UserSession[] allSessions = getUserSessions(name);\n\n if(allSessions != null)\n {\n int index = Arrays.binarySearch(allSessions, sampleComponent, getNameComparator());\n\n if(index >= 0)\n {\n returnedSession = allSessions[index];\n }\n }\n\n return returnedSession;\n }",
"public PublicSummoner getSummonerByName(String name) {\n return client.sendRpcAndWait(SERVICE, \"getSummonerByName\", name);\n }",
"@Override\n public User getByName(String name) {\n return ChainWrappers.lambdaQueryChain(userMapper)\n .eq(User::getName, name).one();\n }",
"public Character getChar(String name) {\n Object o = get(name);\n if (o instanceof Character) {\n return (Character)o;\n }\n\n if (o != null) {\n String string = o.toString();\n if (string != null && string.length() == 1) {\n return string.charAt(0);\n }\n }\n return null;\n }",
"@Override\n\tpublic List<Movie> findByActor(String name) {\n\t\treturn null;\n\t}",
"public Contact findParticipantForNickName(String nickName)\n {\n return participants.get(nickName);\n }",
"Object find(String name);",
"public DmcNamedObjectIF findNamedObject(String name){\n\t\tthrow(new IllegalStateException(\"The SchemaManager is designed to work with ambiguous naming. Use DmcObject.resolveReferences(DmcNameResolverWithClashSupportIF, DmcNameClashResolverIF)\\n\\n\" + DebugInfo.getCurrentStack()));\n }",
"protected Discussion getDiscussionForName(String name){\n\t\tfor(Discussion discussion : discussions){\n\t\t\tif (discussion.getName().equals(name)){\n\t\t\t\treturn discussion;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private Creature findLeader(Game game){\n Creature lead = facCreatures.firstElement();\n // App.log(\"Leader of \" + fFaction.getName() + \" is \" + lead);\n return lead;\n }",
"public Text getByName(String name){\r\n\t\tfor (int i=0;i<thisDialog.size();i++){\r\n\t\t\tif (thisDialog.get(i).getName().equals(name)){\r\n\t\t\t\treturn thisDialog.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public User getUser(String userName) {\n for (User u : users) {\n if (u.getName().equals(userName)) {\n return u;\n }\n\n }\n return null;\n }",
"private Employee findEmployee(String employeeName)\n {\n int index = -1;\n //nameJRadioButtonMenuItem.doClick();\n for(int i = 0; i < employees.size(); i++)\n {\n if(employeeName.equals(employees.get(i).getName()))\n index = i;\n }\n if(index >= 0)\n return employees.get(index);\n else\n return null;\n }",
"public final DodlesActor findActor(Array<DodlesActor> actors, Vector2 dodlePosition) {\n for (DodlesActor actor : actors) {\n Vector2 local = CommonActorOperations.dodleToLocalCoordinates(actor, dodlePosition);\n\n // The built-in libgdx hit testing won't work here because of how we calculate bounds. :(\n Rectangle bounds = actor.getDrawBounds();\n if (bounds != null && bounds.contains(local)) {\n return actor;\n }\n }\n\n return null;\n }",
"public Dog getDogFromName(String name){\n for(Dog d : dogs){\n if(d.getName().equals(name)){\n return d;\n }\n }\n return null;\n }",
"public Entity getEntity(String name) {\r\n\r\n for (int i = 0; i < entities.size(); i++) {\r\n if (name.equals(entities.get(i).nume)) {\r\n\r\n return entities.get(i);\r\n }\r\n }\r\n return null;\r\n }",
"public int FindByName(String _name)\n\t{\n\t\tint res = -1;\n\n\t\tfor (int i = 0; i < this.materials.size(); i++)\n\t\t{\n\t\t\tif (this.materials.get(i).name.equalsIgnoreCase(_name))\n\t\t\t{\n\t\t\t\tres = i;\n\t\t\t}\n\t\t}\n\n\t\treturn res;\n\t}",
"public Story findByName(String name) {\n EntityManager entityManager = getEntityManager();\n\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<Story> criteria = criteriaBuilder.createQuery(Story.class);\n Root<Story> root = criteria.from(Story.class);\n\n criteria.select(root);\n criteria.where(criteriaBuilder.equal(root.get(Story_.name), name));\n \n return getSingleResult(entityManager.createQuery(criteria));\n }",
"public Match findMatchFromTeamName(String name1, String name2){\r\n Iterator<Match> itr = this.resultsTree.iterator();\r\n Match m;\r\n while (itr.hasNext()) {\r\n m = itr.next();\r\n if (m.getTeam1().getName().equals(name1) \r\n && m.getTeam2().getName().equals(name2)){\r\n return m;\r\n }\r\n }\r\n return null;\r\n }",
"public Amount<Mineral> searchByName(String name){\n\t\tfor(int i=0; i<this.mineralList.size(); i++) {\n\t\t\tif(this.mineralList.get(i).getObject().getName() == name)\n\t\t\t\treturn this.mineralList.get(i);\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic Teacher findByName(String name) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\tString hql=\"from Teacher t where name=?\";\n\t\tQuery query=session.createQuery(hql);\n\t\tquery.setParameter(0, name);\n\t\tList<Teacher> tlist=query.list();\n\t\tTeacher teacher=tlist.get(0);\n\t\treturn teacher;\n\t}",
"UserGroup findByNameIgnoreCase(String companyId, String name);",
"@Override\n public Role findByName(String name) {\n Query query = getCurrentSession().createQuery(\"from Role r where r.name = :name\");\n query.setParameter(\"name\", name);\n\n return (Role) query.getResultList().get(0); }",
"private MeetingGroup getMeetingGroup(String nameMeetingGroup){\n \tMeetingGroup Mg = null;\n \tfor(MeetingGroup mG : meetingGroups){\n \t\tif(mG.getName().equals(nameMeetingGroup)){\n \t\t\tMg=mG;\n \t\t}\n \t}\n \treturn Mg;\n }",
"public Scene getScene(String name)\r\n\t{\r\n\t\t// Find the scene with the given name.\r\n\t\tfor (Scene scene : _Scenes)\r\n\t\t{\r\n\t\t\tif (scene.getName().equals(name)) { return scene; }\r\n\t\t}\r\n\r\n\t\t// No scene with that name was found, return null.\r\n\t\treturn null;\r\n\t}",
"private Customer findCustomer(String customerName){\n for(int i=0; i<customers.size(); i+=1){\n Customer existingCustomer = this.customers.get(i);\n if(existingCustomer.getName().equals(customerName)){\n return existingCustomer;\n }\n }\n return null;\n }",
"private Jogador getJogadorByName(String nomeJogador) throws Exception {\n for (int i = 0; i < this.listaJogadores.size(); i++) {\n Jogador j = this.listaJogadores.get(i);\n\n if (j.getNome().equals(nomeJogador)) {\n return j;\n }\n }\n\n throw new Exception(\"Player doesn't exist\");\n }",
"public User findUser(String name) {\n\n\t\ttry {\n\t\t\tConnection conn = getConnection();\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"select * from users where name = ?\");\n\t\t\tps.setString(1, name);\n\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tUser foundUser = new User(rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4),\n\t\t\t\t\t\trs.getDate(5));\n\t\t\t\tconn.close();\n\t\t\t\treturn foundUser;\n\t\t\t}\n\t\t\tconn.close();\n\n\t\t} catch (SQLException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t\treturn null;\n\t}",
"private Node search(String name)\r\n\t{\r\n\t\t// Check to see if the list is empty\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\t// Return null which will be checked for by the method that called it\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// Tree is not empty so use the recursive search method starting at the root reference \r\n\t\t// to find the correct Node containing the String name\r\n\t\treturn search(getRoot(), name);\r\n\t}",
"public Player getPlayerFromList(String name){\n for (Player player : players){\n if (player.getName().equals(name)){\n return player;\n }\n }\n return null; //This will never happen. Will always be found. Only called from the takeoverTerritory method\n }",
"Page<ActorModel> findByNameContaining(String name, Pageable pageable);",
"public Player getPlayerinTable(String name) {\r\n for (Player player : this.players) {\r\n if (player.getName().equals(name)) {\r\n return player;\r\n }\r\n }\r\n return null;\r\n }",
"public IDirectory getChild(String name) {\n // Loops through the children directories of the current directory\n for (IDirectory element : this.children) {\n // If the name equals to the name of the directory you're searching for,\n // return it\n if (element.getName().equals(name)) {\n return element;\n }\n }\n // Return null otherwise\n return null;\n }",
"public static GamePlayer getGamePlayer(String name) {\r\n\t\tfor (GamePlayer p : Game.players) {\r\n\t\t\tif (p.getPlayer().getName().equals(name)) {\r\n\t\t\t\treturn (p);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (null);\r\n\t}",
"public PageBean<Match> find(String name) {\n\t\tif(name==null||\"\".equals(name.trim())){\r\n\t\t\treturn matchDao.find(\"from Match\");\r\n\t\t}else{\r\n\t\t\treturn matchDao.find(\"from Match where nickname like ? or userName like ?\",\r\n\t\t\t\t\tnew Object[]{\"%\"+name+\"%\",\"%\"+name+\"%\"});\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public Person findPersonByUsername(String name) {\n Person person = personRepository.findByUsername(name);\n Optional<Person> byId = personRepository.findById(2L);\n return person;\n }",
"public Team getTeamByName(String name) {\n\t\tTeam t = null;\n\t\ttry {\n\t\t\tPreparedStatement statement = null;\n\t\t\tResultSet rs = null;\n\t\t\tString teamRecords_sql = \"SELECT * FROM \" + team_table + \" WHERE name='\" + name + \"'\";\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.prepareStatement(teamRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tList<Player> players = new ArrayList<Player>();\n\t\t\tif (rs.next()) {\n\t\t\t\tplayers = formatPlayers(getPlayersByTeamId(rs.getInt(1)));\n\t\t\t\tt = new Team(players, rs.getString(2), rs.getString(3), rs.getString(4), rs.getDate(5));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn t;\n\t}",
"@Override\n\tpublic DmcObject findUniqueObject(DmcObjectName name) {\n\t\treturn null;\n\t}",
"private static Person findPersonByName(EntityManager em, String name) {\n\t\tQuery query = em.createQuery(\"select p from Person p where name = :name\", Person.class);\n\t\tquery.setParameter(\"name\", name);\n\t\treturn (Person) query.getSingleResult();\n\t}",
"public ArrayList<TakeStock> findMemberByName(String name) {\n\n matches.clear();\n\n for(TakeStock member : mTakeStockList) {\n\n if(member.getProducts_name().toLowerCase().contains(name)){\n matches.add(member);\n }\n\n }\n return matches; // return the matches, which is empty when no member with the given name was found\n }",
"public Element getOneEnemy(String name){\r\n\t\t//follow the commentarys of the player group, getOneCharacter, just doesn´t have its own where\r\n\t\treturn loadFile(getFile(getWanted(getFile(getWanted(RPGSystem.getRPGSystem().getWhere(), \"Enemys\")), name)));\r\n\t}"
] |
[
"0.6377197",
"0.631054",
"0.62958395",
"0.6092129",
"0.605618",
"0.59118205",
"0.5893231",
"0.58699775",
"0.58193755",
"0.58144116",
"0.5752959",
"0.5659531",
"0.5642792",
"0.5634534",
"0.5600108",
"0.5581174",
"0.55536133",
"0.55471253",
"0.5516983",
"0.5481691",
"0.54797286",
"0.54573715",
"0.544367",
"0.5441914",
"0.54241544",
"0.5419788",
"0.5416726",
"0.5409354",
"0.5380972",
"0.5368068",
"0.5351848",
"0.5348482",
"0.53286916",
"0.53110605",
"0.5294666",
"0.529183",
"0.5270826",
"0.52460676",
"0.5204056",
"0.520146",
"0.51831055",
"0.5176539",
"0.51727456",
"0.5162492",
"0.5162492",
"0.51575696",
"0.51558465",
"0.5154589",
"0.5147478",
"0.51275",
"0.5111136",
"0.5093927",
"0.50906634",
"0.50891906",
"0.50889075",
"0.5087517",
"0.50833964",
"0.5082255",
"0.5078075",
"0.5077499",
"0.50737464",
"0.50624466",
"0.50574505",
"0.50566584",
"0.5049721",
"0.50484294",
"0.50474447",
"0.5045526",
"0.50355566",
"0.5027697",
"0.50142723",
"0.50135607",
"0.50094336",
"0.50093955",
"0.50082964",
"0.50049746",
"0.5002301",
"0.49974042",
"0.499645",
"0.49855754",
"0.49848783",
"0.49833336",
"0.49797633",
"0.49771655",
"0.49681908",
"0.49662676",
"0.49652532",
"0.49342215",
"0.49321827",
"0.49243018",
"0.4920766",
"0.4907326",
"0.48923713",
"0.4892012",
"0.48914728",
"0.4886702",
"0.4886135",
"0.48777962",
"0.48738998",
"0.48710108"
] |
0.7257624
|
0
|
Returns true if this actor is the same as or is the descendant of the specified actor.
|
public boolean isDescendantOf(Actor actor) {
if (actor == null)
throw new IllegalArgumentException("actor cannot be null.");
if(actor instanceof Group){
Group group=(Group)actor;
return internalGroup.isDescendantOf(group.internalGroup);
}
return internalGroup.isDescendantOf(actor.internalActor);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean isAscendantOf(Actor actor) {\n if (actor == null) throw new IllegalArgumentException(\"actor cannot be null.\");\n if(actor instanceof Group){\n Group group=(Group)actor;\n return internalGroup.isAscendantOf(group.internalGroup);\n }\n return internalGroup.isAscendantOf(actor.internalActor);\n }",
"public boolean isChildOf( InteractionClass other )\n\t{\n\t\t// look up our tree to see if the given class is one of our parents\n\t\tInteractionClass currentParent = this;\n\t\twhile( currentParent != null )\n\t\t{\n\t\t\tif( currentParent == other )\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\tcurrentParent = currentParent.parent;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean isActor() {\r\n \t\treturn (actor != null);\r\n \t}",
"public boolean isDescendant(RMShape aShape) { return aShape!=null && aShape.isAncestor(this); }",
"public boolean containsAnActor() {\n\t\treturn map.isAnActorAt(this);\n\t}",
"public boolean canActorEnter(Actor actor) {\n\t\treturn !map.isAnActorAt(this) && ground.canActorEnter(actor);\n\t}",
"boolean isTopCollision(Actor actor) {\n return this.getX() == actor.getX() && this.getY() - 1 == actor.getY();\n }",
"public boolean isChild();",
"public boolean canMove(Actor actor)\n\t {\n\t \t//PO: updated the methods after the move from the Bug Class to be called from\n\t \t//PO: the passed actor\n\t Grid<Actor> gr = actor.getGrid();\n\t if (gr == null)\n\t return false;\n\t Location loc = actor.getLocation();\n\t Location next = loc.getAdjacentLocation(actor.getDirection());\n\t if (!gr.isValid(next))\n\t return false;\n\t Actor neighbor = gr.get(next);\n\t return (neighbor == null) || (neighbor instanceof Flower);\n\t // ok to move into empty location or onto flower\n\t // not ok to move onto any other actor\n\t \n\t }",
"@Override\r\n\tpublic boolean containsMovieConnection(String actor1, String actor2)\r\n\t{\r\n\t\tActor act1 = new Actor(actor1);\r\n\t\tActor act2 = new Actor(actor2);\r\n\t\t\r\n\t\tif(graph.containsEdge(act1,act2 ))\r\n\t\t{\r\n\t\t\treturn true;\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"boolean isBottomCollision(Actor actor) {\n return this.getX() == actor.getX() && this.getY() + 1 == actor.getY();\n }",
"public boolean isChildOf(Cause cause) {\n\t\tCause[] parents = this.getParents();\n\t\tif (parents != null) {\n\t\t\tfor (int i = 0; i < parents.length; i++) {\n\t\t\t\tif (parents[i].equals(cause)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isAncestor(RMShape aShape) { return aShape==_parent || (_parent!=null && _parent.isAncestor(aShape)); }",
"@Override\r\n public boolean isAncestor(final FileName ancestor) {\r\n if (!ancestor.getRootURI().equals(getRootURI())) {\r\n return false;\r\n }\r\n return checkName(ancestor.getPath(), getPath(), NameScope.DESCENDENT);\r\n }",
"public boolean isAscendant() {\n if (direction.equals(\"ASC\")) {\n return true;\n }\n return false;\n }",
"public boolean equals(Actor a){\n return (x == a.getX() && y == a.getY() && pok.getName().equalsIgnoreCase(a.getPokemon().getName()));\n }",
"public boolean isChild(){\n return child;\n }",
"public boolean isChild(){\n return child;\n }",
"public boolean isChild(){\r\n return(leftleaf == null) && (rightleaf == null)); \r\n }",
"private static boolean isDescendantOf(final ClassLoader cl0, final ClassLoader cl1) {\n for (ClassLoader cl = cl0; cl != null; cl = cl.getParent()) {\n if (cl == cl1) {\n return true;\n }\n }\n return false;\n }",
"public static boolean query(TypeSummary node, TypeSummary ancestor)\n\t{\n\t\tTypeSummary current = node;\n\t\tif ((ancestor == null) || (current == null)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (ancestor.getName().equals(\"Object\")) {\n\t\t\treturn true;\n\t\t}\n\n\t\tdo {\n\t\t\tTypeDeclSummary decl = current.getParentClass();\n\t\t\tcurrent = GetTypeSummary.query(decl);\n\n\t\t\tif (current == ancestor) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} while (current != null);\n\n\t\treturn false;\n\t}",
"boolean isRightCollision(Actor actor) {\n return this.getX() + 1 == actor.getX() && this.getY() == actor.getY();\n }",
"public boolean isAncestor(VSOPClass c) {\n\t\tif (this == c)\n\t\t\treturn true;\n\t\tif (c.superClass == null)\n\t\t\treturn false;\n\n\t\treturn isAncestor(c.superClass);\n\t}",
"public boolean isParent();",
"public final boolean locationEquals(Actor other) {\n if (location.equals(other.location)) { return true; }\n return false;\n }",
"public boolean match(MindObject other){\n return other.isSubtypeOf(this) || isSubtypeOf(other);\n }",
"public boolean containsChild() {\n return !(getChildList().isEmpty());\n }",
"public boolean checkActor(Long actor_id) {\r\n\r\n\t\t// If this is an alert for everyone, just return true.\r\n\t\tif (!(this.specific_targets)) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\r\n\t\t\tString a_id = actor_id.toString();\r\n\r\n\t\t\tStringTokenizer str = new StringTokenizer(this.the_specific_targets, \",\"); //$NON-NLS-1$\r\n\r\n\t\t\twhile (str.hasMoreTokens()) {\r\n\t\t\t\tif (str.nextToken().trim().equalsIgnoreCase(a_id)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean isDeepChildOf(Panel ancestor) {\r\n Panel p = this.parent;\r\n while (p!=null) {\r\n if (p == ancestor)\r\n return true;\r\n p = p.parent;\r\n }\r\n return false;\r\n }",
"public boolean canBeSeen()\n {\n if (!this.hasParent() || !this.isVisible())\n {\n return false;\n }\n\n GuiElement element = this;\n\n while (true)\n {\n if (!element.isVisible())\n {\n return false;\n }\n\n GuiElement parent = element.getParent();\n\n if (parent instanceof GuiDelegateElement && ((GuiDelegateElement) parent).delegate != element)\n {\n return false;\n }\n\n if (parent == null)\n {\n break;\n }\n\n element = parent;\n }\n\n return element instanceof GuiBase.GuiRootElement;\n }",
"public final boolean isOwner() {\n return currentOwner == this;\n }",
"private boolean isAttached (RoadInterface newObj, Direction attachAt) {\n boolean result = false;\n\n if ((interOne == newObj && dirOne == attachAt) ||\n (interTwo == newObj && dirTwo == attachAt)) {\n result = true;\n }\n return (result);\n }",
"public Boolean isParentable();",
"public boolean getIsOutOfLineFODescendant() {\n return isOutOfLineFODescendant;\n }",
"boolean isLeftCollision(Actor actor) {\n return this.getX() - 1 == actor.getX() && this.getY() == actor.getY();\n }",
"private static final boolean IsAncestor(Node aAncestor, Node aChild) throws DOMException\n {\n boolean result = false;\n if (aAncestor != null && aChild != null)\n {\n if (aChild instanceof M2GDocument)\n {\n throw new DOMException(\n DOMException.HIERARCHY_REQUEST_ERR,\n /*SF*/\"Cannot append Document elements.\"/*SF*/);\n }\n if ((aChild instanceof M2GSVGElement) && (aAncestor instanceof M2GSVGElement))\n {\n // Should check all types or just parent type???\n if (((M2GSVGElement)aAncestor).getHandle() == ((M2GSVGElement)aChild).getHandle())\n {\n result = true;\n }\n else\n {\n result = IsAncestor(aAncestor, aChild.getParentNode());\n }\n }\n }\n return result;\n }",
"public boolean descendantIndirect(Element rep) {\r\n if (rep instanceof Repertoire) {\r\n List<Element> contenu = ((Repertoire) rep).element;\r\n\r\n for (Element item : contenu) {\r\n if (item.equals(this)) {\r\n return true;\r\n } else {\r\n if (item instanceof Repertoire) {\r\n descendantIndirect(item);\r\n }\r\n }\r\n }\r\n }\r\n return (false);\r\n }",
"public boolean isActiveMember() {\n return member instanceof HumanMember || member instanceof AiMember;\n }",
"boolean hasParent();",
"boolean hasParent();",
"public boolean equals(Object other) {\n return this == other\n || ((other instanceof ComponentNode) \n && (getUserObject() == ((ComponentNode)other).getUserObject()));\n }",
"public boolean isChildOf(Loop child, Loop parent) {\n\t\treturn ((parent.start <= child.start) && (parent.stop >= child.stop) && (parent != child));\n\t}",
"public boolean hasAncestorOfType( Type type ) {\n return hasAncestorOfType(EnumSet.of(type));\n }",
"default boolean isChildOf(String tokId) {\n return getAncestors().contains(tokId);\n }",
"public boolean hasAChild(Character ch){\n return children.containsKey(ch);\n }",
"public boolean isOther() {\n\t\t\treturn this == OTHER;\n\t\t}",
"public boolean canMoveTo(Actor actor, Coordinate position) {\n\t\treturn canMoveTo(actor, position.x, position.y);\n\t}",
"private boolean _hasChild() {\r\n boolean ret = false;\r\n if (_childs != null && _childs.size() > 0) {\r\n ret = true;\r\n }\r\n\r\n return ret;\r\n }",
"public boolean containsActor(String n)\n\t{\n\t\tIterator<Movie> itr = list_of_movies.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tMovie temp_movie = itr.next();\n\t\t\tList<String> temp_cast = temp_movie.getCast();\n\t\t\tif( temp_cast.contains(n))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\t\t\n\t\t}\n\t\treturn false;\n\t}",
"public static boolean isAncestorOrSelf(NodeInfo a, NodeInfo d) {\n // Fast path for the TinyTree implementation\n if (a instanceof TinyNodeImpl) {\n if (d instanceof TinyNodeImpl) {\n return ((TinyNodeImpl)a).isAncestorOrSelf((TinyNodeImpl)d);\n } else if (d.getNodeKind() == Type.NAMESPACE) {\n // fall through\n } else {\n return false;\n }\n }\n // Generic implementation\n NodeInfo p = d;\n while (p != null) {\n if (a.isSameNodeInfo(p)) {\n return true;\n }\n p = p.getParent();\n }\n return false;\n }",
"private boolean isChild(Slot current, Slot toCheck, HashMap<Slot, Slot> parents) {\n if (parents.get(current) != null) {\n if (parents.get(current).equals(toCheck)) {\n return true;\n }\n }\n\n return false;\n }",
"private boolean isOpponentAround(Actor actor, GameMap map) {\n Location currentPosition = map.locationOf(this);\n int closeOpponent = 0;\n for (Exit exit : currentPosition.getExits()) {\n Location destination = exit.getDestination();\n if (destination.containsAnActor()) {\n if (!(destination.getActor()\n instanceof Player)) { // If not player there is dinasours arround\n closeOpponent++;\n }\n }\n }\n return closeOpponent > 0;\n }",
"public boolean addActor(Actor actor) {\n\t\tCoordinate pos = actor.getPosition();\n\t\tTile tile = getTileAt(pos.x, pos.y);\n\t\tif (tile.getActor() != null)\n\t\t\treturn false;\n\n\t\tactors.add(actor);\n\t\ttile.setActor(actor);\n\t\treturn true;\n\t}",
"public abstract boolean isParent(T anItem);",
"public Boolean isFollowing() {\n Integer groupType = getGroupType();\n if (groupType != null && groupType == Group.DISCUSSION_KEY) {\n return isMember();\n } else {\n return isFollowing;\n }\n }",
"public boolean isBelow( PlanNode possibleAncestor ) {\n PlanNode node = this;\n while (node != null) {\n if (node == possibleAncestor) return true;\n node = node.getParent();\n }\n return false;\n }",
"public final boolean isAbsoluteActive() {\n if (parent == this) {\n return active;\n }\n return (active && parent.isAbsoluteActive());\n }",
"public boolean collides(AirObject ao) {\n LinkedNode curr = head;\n while (curr != null) {\n if (!curr.collides(ao)) {\n return false;\n }\n curr = curr.next();\n }\n return true;\n }",
"public boolean contactsSprite(Sprite other) {\r\n\t\treturn bb.intersects(other.getBoundingBox());\r\n\t}",
"@Pure\n public boolean is_class_relation() {\n return parent_ppt_name.endsWith(\":::CLASS\");\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj) {\n\t\t\treturn true;\n\t\t}\n\n\t\t//System.out.println(\"obj.getClass() is \" + obj.getClass());\n\t\t//System.out.println(\"this.getClass() is \" + this.getClass());\n\t\tif ((obj == null) || (obj.getClass() != this.getClass())) { // (obj.getClass() != this.getClass()) tests that\n\t\t\t// the class of obj is not a subclass of HeavenlyBody or some other class\n\t\t\t// We could have used instanceOf here as well, because HeavenlyBody is a final\n\t\t\t// class and we cannot create a subclass for it\n\t\t\t// String class in java is also final, hence its equals() also uses instanceOf\n\t\t\t// But when the class is not final, this is what we need to do.\n\t\t\t// We're checking for null first, because if we run obj.getClass for a null\n\t\t\t// object we get an exception.\n\n\t\t\treturn false;\n\t\t}\n\n\t\tString objName = ((HeavenlyBody) obj).getName();\n\t\treturn this.name.equals(objName);\n\t}",
"boolean hasParentalStatus();",
"public boolean amIWinning() {\n return myCommitment != null && winning;\n }",
"public boolean isFriendRelationship() {\n return friendRelationship;\n }",
"@Override\r\n\tpublic boolean containsActor(String v)\r\n\t{\r\n\t\tActor actor = new Actor(v);\r\n\r\n\t\tif(graph.containsVertex(actor))\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private static boolean contains(Component parent,Component child) {\n\t\tComponent c = child;\n\t\twhile(c!=null) {\n\t\t\tc = c.getParent();\n\t\t\t\n\t\t\tif(parent==c) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"protected boolean sameActorTypes(FieldActorDescriptor[] xactors)\n {\n // Compare all the other objects in the array to the first argument's\n // class type.\n\n Class type = xactors[0].getClass();\n\n for(int i=1; i<xactors.length; i++)\n {\n if(!type.isInstance(xactors[i]))\n return false;\n }\n\n return true;\n }",
"private boolean establishChildTicketType(CodeBookDTO codeBookDTO)\n {\n\n String ticketTypeCodeBook = codeBookMap.getCodeBookByTypeAndCobId(AppConstants.TICKET_TYPE_GROUP,\n codeBookDTO.getCobId());\n return ticketTypeCodeBook != null ? ticketTypeCodeBook.equals(AppConstants.CHILD_TICKET_TYPE) : false;\n\n }",
"public boolean isChild(){\n return false;\n }",
"public boolean isChildOf(FcgLevel other) {\n\t\treturn other.isParentOf(this);\n\t}",
"@Override\n\tpublic boolean is(Widget widget){\n\t\treturn (widget == this);\n\t}",
"public Boolean invoke(SNode it) {\n boolean enumConstant = SNodeOperations.isInstanceOf(classifier, CONCEPTS.AnonymousClass$Bt) && SNodeOperations.getModel(classifier) == null;\n return canBeOverridden(it) && ((SLinkOperations.getTarget(it, LINKS.visibility$Yyua) != null) || enumConstant || packagesAreTheSame(superClassifier, classifier));\n }",
"public boolean isSelfMessage(BeginSendEntry beginSendEntry);",
"public boolean collisionDetected() {\r\n\t\tfor (GameElement target : getTargets()) {\r\n\t\t\tif (myInitiator.intersects(target) && checkTargetMatch(target)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean shouldExecute() {\n\t\tif (!theEntityTameable.isTamed())\n\t\t\treturn false;\n\t\telse {\n\t\t\tfinal EntityLivingBase var1 = theEntityTameable.getOwner();\n\n\t\t\tif (var1 == null)\n\t\t\t\treturn false;\n\t\t\telse {\n\t\t\t\ttheTarget = var1.getLastAttacker();\n\t\t\t\tfinal int var2 = var1.getLastAttackerTime();\n\t\t\t\treturn var2 != field_142050_e\n\t\t\t\t\t\t&& isSuitableTarget(theTarget, false)\n\t\t\t\t\t\t&& theEntityTameable.func_142018_a(theTarget, var1);\n\t\t\t}\n\t\t}\n\t}",
"public boolean removeActor(Actor actor) {\n\t\tLog.debug(\"Removing actor \" + actor.getName());\n\n\t\tCoordinate pos = actor.getPosition();\n\t\tTile tile = getTileAt(pos.x, pos.y);\n\t\tif (tile.getActor() == null) {\n\t\t\tLog.warning(\"Failed! actor=\" + actor.getName());\n\t\t\treturn false;\n\t\t}\n\t\tLog.debug(\"Success!\");\n\n\t\tactors.remove(actor);\n\t\tLog.debug(\" > actors count: \" + actors.getAll().size());\n\t\ttile.setActor(null);\n\t\treturn true;\n\t}",
"NetworkNodeType getIsA();",
"public boolean isGoalNode(Node node) {\n return mGoal.getX() == node.getPosition().getX() && mGoal.getY() == node.getPosition().getY();\n }",
"public boolean isAncestor(PBmmSchema schema, String typePart1, String typePart2) {\n PBmmClass classDefinition = schema.getClassDefinition(typePart1);\n List<String> ancestors = classDefinition.getAncestorTypeNames();\n if (ancestors.contains(typePart2)) { //direct ancestor\n return true;\n }\n for (String ancestor:ancestors) {\n if (isAncestor(schema, typePart1, ancestor)) { //recursive check\n return true;\n }\n }\n return false;\n }",
"public boolean isChildOf(Xcode opcode) {\n Xnode crt = this;\n while(crt != null) {\n if(crt.ancestor().opcode() == opcode) {\n return true;\n }\n // Stop searching when FfunctionDefinition is reached\n if(crt.ancestor().opcode() == Xcode.F_FUNCTION_DEFINITION) {\n return false;\n }\n crt = crt.ancestor();\n }\n return false;\n }",
"boolean hasParent(CtElement candidate);",
"public boolean isChild() {\n\t\treturn false;\n\t}",
"public final boolean hasChild ()\r\n {\r\n return _value.hasChild();\r\n }",
"public boolean isIntersecting(RectF other){\n return RectF.intersects(other,this.hitBox);//|| hitBox.contains(other.getHitBox())||other.getHitBox().contains(this.hitBox)\n }",
"public boolean belongsToTree(RBNode x){\r\n\t\twhile (x != nil) {\r\n\t\t\tif (x == root) return true;\r\n\t\t\telse x = x.p;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public static boolean herit(Class<?> c, Class<?> base) {\n\t\tif (c == null) {\n\t\t\tthrow new IllegalArgumentException(\"null: Not accepted. \"\n\t\t\t\t\t+ \"Must be a valid \" + Class.class.getCanonicalName() + \".\");\n\t\t}\n\t\tif (base == null) {\n\t\t\tthrow new IllegalArgumentException(\"null: Not accepted. \"\n\t\t\t\t\t+ \"Must be a valid \" + Class.class.getCanonicalName() + \".\");\n\t\t}\n\t\tif (c == base) {\n\t\t\treturn true;\n\t\t}\n\t\t// recursive search in the parent class\n\t\tif (c.getSuperclass() != null) {\n\t\t\treturn herit(c.getSuperclass(), base);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean contains(Town town) {\r\n\t\tboolean containTown = false;\r\n\t\t\r\n\t\tif(source.getName() == town.getName() || destination.getName() == town.getName()) {\r\n\t\t\tcontainTown = true;\r\n\t\t}\r\n\t\t\r\n\t\treturn containTown;\r\n\t\t\r\n\t}",
"public boolean isInteractionRoot()\n\t{\n\t\treturn this == model.getInteractionRoot();\n\t}",
"boolean hasChildren();",
"public boolean IsTree() {\r\n\t\treturn this.IsConnected() && !this.IsCyclic();\r\n\t}",
"public boolean contains(Shape shape)\n {\n // checks if the child is in the children list\n return children.contains(shape);\n }",
"public boolean hasChildComponent(Widget component) {\n return locationToWidget.containsValue(component);\n }",
"public Boolean getIsChild() {\n return isChild;\n }",
"public boolean isPressed() {\r\n List<Entity> entities = dungeon.getEntities();\r\n for (Entity e: entities) {\r\n if (e != null && e.getY() == getY() && e.getX() == getX()) {\r\n if (\"Boulder\".equals(e.getClass().getSimpleName()))\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public boolean isConversing ( ) {\n\t\treturn extract ( handle -> handle.isConversing ( ) );\n\t}",
"public boolean hasChilds() {\n return childs != null && !childs.isEmpty();\n }",
"public boolean isFollowing(int distance) {\r\n if (getTarget() == null || getTarget().isDead()) return false;\r\n if (getOwner().isDead()) return false;\r\n\r\n Location d = getTarget().getLocation();\r\n\r\n return !(d == null || getTarget() == null) && d.near(getOwner().getLocation(), distance);\r\n\r\n }",
"public boolean isChildChanged() {\n return CHILDCHANGED.equals(message);\n }",
"public boolean hasSingleChild(String childName) {\n return children(childName).size() == 1;\n }",
"@Override\r\n \tboolean matches(TopLevelItem item) {\n \t\tCollection<View> views = Hudson.getInstance().getViews();\r\n \t\tfor (View view: views) {\r\n \t\t\tString viewName = view.getViewName();\r\n \t\t\t// narrow down to my \"other view\"\r\n\t\t\tif (viewName.equals(otherView)) {\r\n \t\t\t\tCollection<TopLevelItem> items = view.getItems();\r\n \t\t\t\tfor (TopLevelItem viewItem: items) {\r\n \t\t\t\t\t// see if the item for \"that\" view matches the one we're checking\r\n \t\t\t\t\tif (viewItem == item) {\r\n \t\t\t\t\t\treturn true;\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn false;\r\n \t}"
] |
[
"0.73331845",
"0.6550652",
"0.65176356",
"0.6299429",
"0.61524373",
"0.5847027",
"0.5810255",
"0.5764168",
"0.5679958",
"0.5620127",
"0.5570854",
"0.5489798",
"0.5477209",
"0.54594916",
"0.5440774",
"0.5390548",
"0.53800786",
"0.53800786",
"0.5371415",
"0.53702486",
"0.5360701",
"0.533249",
"0.53262997",
"0.5305672",
"0.5297027",
"0.52628255",
"0.5257304",
"0.5239702",
"0.5220265",
"0.5215423",
"0.5198738",
"0.5158556",
"0.5151428",
"0.5149341",
"0.5146681",
"0.51382524",
"0.51153105",
"0.5106153",
"0.5104997",
"0.5104997",
"0.5104456",
"0.50718355",
"0.5067709",
"0.49960783",
"0.49818075",
"0.49797457",
"0.49769512",
"0.49757758",
"0.4966254",
"0.49526533",
"0.4944152",
"0.4941842",
"0.49414548",
"0.49227676",
"0.49192178",
"0.49164543",
"0.49115524",
"0.49098432",
"0.49026346",
"0.49016103",
"0.48882458",
"0.48828858",
"0.48811367",
"0.48703676",
"0.48607254",
"0.4846692",
"0.48412323",
"0.4836992",
"0.4821391",
"0.48180988",
"0.48091927",
"0.48072395",
"0.48068136",
"0.48052835",
"0.48041624",
"0.47999066",
"0.47976458",
"0.4793056",
"0.47909716",
"0.47854987",
"0.4781054",
"0.47799468",
"0.4778165",
"0.4777581",
"0.47759387",
"0.47713375",
"0.4771006",
"0.47693363",
"0.47686845",
"0.47639096",
"0.47603148",
"0.47537604",
"0.47491345",
"0.47419563",
"0.47383592",
"0.4735872",
"0.47323683",
"0.4728793",
"0.47270676",
"0.4721656"
] |
0.7627862
|
0
|
Returns true if this actor is the same as or is the ascendant of the specified actor.
|
public boolean isAscendantOf(Actor actor) {
if (actor == null) throw new IllegalArgumentException("actor cannot be null.");
if(actor instanceof Group){
Group group=(Group)actor;
return internalGroup.isAscendantOf(group.internalGroup);
}
return internalGroup.isAscendantOf(actor.internalActor);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean isAscendant() {\n if (direction.equals(\"ASC\")) {\n return true;\n }\n return false;\n }",
"public boolean isDescendantOf(Actor actor) {\n if (actor == null)\n throw new IllegalArgumentException(\"actor cannot be null.\");\n\n if(actor instanceof Group){\n Group group=(Group)actor;\n return internalGroup.isDescendantOf(group.internalGroup);\n }\n\n return internalGroup.isDescendantOf(actor.internalActor);\n }",
"public boolean isActor() {\r\n \t\treturn (actor != null);\r\n \t}",
"boolean isTopCollision(Actor actor) {\n return this.getX() == actor.getX() && this.getY() - 1 == actor.getY();\n }",
"public boolean canActorEnter(Actor actor) {\n\t\treturn !map.isAnActorAt(this) && ground.canActorEnter(actor);\n\t}",
"public boolean canMove(Actor actor)\n\t {\n\t \t//PO: updated the methods after the move from the Bug Class to be called from\n\t \t//PO: the passed actor\n\t Grid<Actor> gr = actor.getGrid();\n\t if (gr == null)\n\t return false;\n\t Location loc = actor.getLocation();\n\t Location next = loc.getAdjacentLocation(actor.getDirection());\n\t if (!gr.isValid(next))\n\t return false;\n\t Actor neighbor = gr.get(next);\n\t return (neighbor == null) || (neighbor instanceof Flower);\n\t // ok to move into empty location or onto flower\n\t // not ok to move onto any other actor\n\t \n\t }",
"public boolean containsAnActor() {\n\t\treturn map.isAnActorAt(this);\n\t}",
"public boolean isAncestor(VSOPClass c) {\n\t\tif (this == c)\n\t\t\treturn true;\n\t\tif (c.superClass == null)\n\t\t\treturn false;\n\n\t\treturn isAncestor(c.superClass);\n\t}",
"boolean isLeftCollision(Actor actor) {\n return this.getX() - 1 == actor.getX() && this.getY() == actor.getY();\n }",
"public boolean equals(Actor a){\n return (x == a.getX() && y == a.getY() && pok.getName().equalsIgnoreCase(a.getPokemon().getName()));\n }",
"public final boolean isAbsoluteActive() {\n if (parent == this) {\n return active;\n }\n return (active && parent.isAbsoluteActive());\n }",
"private boolean isAttached (RoadInterface newObj, Direction attachAt) {\n boolean result = false;\n\n if ((interOne == newObj && dirOne == attachAt) ||\n (interTwo == newObj && dirTwo == attachAt)) {\n result = true;\n }\n return (result);\n }",
"public boolean isChildOf( InteractionClass other )\n\t{\n\t\t// look up our tree to see if the given class is one of our parents\n\t\tInteractionClass currentParent = this;\n\t\twhile( currentParent != null )\n\t\t{\n\t\t\tif( currentParent == other )\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\tcurrentParent = currentParent.parent;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean canMoveTo(Actor actor, Coordinate position) {\n\t\treturn canMoveTo(actor, position.x, position.y);\n\t}",
"boolean isRightCollision(Actor actor) {\n return this.getX() + 1 == actor.getX() && this.getY() == actor.getY();\n }",
"boolean isBottomCollision(Actor actor) {\n return this.getX() == actor.getX() && this.getY() + 1 == actor.getY();\n }",
"public boolean isSameAs(Move comp){ \n return this.xFrom==comp.xFrom &&\n this.xTo==comp.xTo &&\n this.yFrom==comp.yFrom &&\n this.yTo==comp.yTo;\n }",
"public boolean isActiveMember() {\n return member instanceof HumanMember || member instanceof AiMember;\n }",
"@Override\n\tpublic boolean canActorEnter(Actor actor){\n\t\tif(actor.hasCapability(Abilities.ENTER))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean owns(String establishment) {\n for (int i = 0; i < Establishments.size(); i++) {\n if (Establishments.get(i).getName().equals(establishment)) {\n return true;\n }\n }\n return false;\n }",
"@Override\r\n\tpublic boolean containsMovieConnection(String actor1, String actor2)\r\n\t{\r\n\t\tActor act1 = new Actor(actor1);\r\n\t\tActor act2 = new Actor(actor2);\r\n\t\t\r\n\t\tif(graph.containsEdge(act1,act2 ))\r\n\t\t{\r\n\t\t\treturn true;\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean isAncestor(RMShape aShape) { return aShape==_parent || (_parent!=null && _parent.isAncestor(aShape)); }",
"public final boolean isOwner() {\n return currentOwner == this;\n }",
"@Override\r\n public boolean isAncestor(final FileName ancestor) {\r\n if (!ancestor.getRootURI().equals(getRootURI())) {\r\n return false;\r\n }\r\n return checkName(ancestor.getPath(), getPath(), NameScope.DESCENDENT);\r\n }",
"public boolean isDescendant(RMShape aShape) { return aShape!=null && aShape.isAncestor(this); }",
"public boolean addActor(Actor actor) {\n\t\tCoordinate pos = actor.getPosition();\n\t\tTile tile = getTileAt(pos.x, pos.y);\n\t\tif (tile.getActor() != null)\n\t\t\treturn false;\n\n\t\tactors.add(actor);\n\t\ttile.setActor(actor);\n\t\treturn true;\n\t}",
"public final boolean locationEquals(Actor other) {\n if (location.equals(other.location)) { return true; }\n return false;\n }",
"public boolean isAscending() {\n\t\t\treturn this.equals(ASC);\n\t\t}",
"public boolean isParent();",
"public boolean isCardToAccuse() {\n\t\treturn (getOwner() == CASE_FILE_PLAYER);\n\t}",
"private boolean isOpponentAround(Actor actor, GameMap map) {\n Location currentPosition = map.locationOf(this);\n int closeOpponent = 0;\n for (Exit exit : currentPosition.getExits()) {\n Location destination = exit.getDestination();\n if (destination.containsAnActor()) {\n if (!(destination.getActor()\n instanceof Player)) { // If not player there is dinasours arround\n closeOpponent++;\n }\n }\n }\n return closeOpponent > 0;\n }",
"public boolean amIWinning() {\n return myCommitment != null && winning;\n }",
"public boolean isChild();",
"public boolean collides(AirObject ao) {\n LinkedNode curr = head;\n while (curr != null) {\n if (!curr.collides(ao)) {\n return false;\n }\n curr = curr.next();\n }\n return true;\n }",
"@Override\r\n\tpublic boolean containsActor(String v)\r\n\t{\r\n\t\tActor actor = new Actor(v);\r\n\r\n\t\tif(graph.containsVertex(actor))\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean isGoal(){\n char c = this.getGoalLetter();\n return 'a' <= c && c <= 'z'; // will return true if goalLetter is a lowercase letter\n }",
"private boolean canArcherHarrasing(Creature a) {\n return heroC.getX() == a.getX() || heroC.getY() == a.getY();\n }",
"public boolean isChildOf(Cause cause) {\n\t\tCause[] parents = this.getParents();\n\t\tif (parents != null) {\n\t\t\tfor (int i = 0; i < parents.length; i++) {\n\t\t\t\tif (parents[i].equals(cause)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public final boolean isAcyclic() {\n return this.topologicalSort().size() == this.sizeNodes();\n }",
"public boolean hasEnteredActivity() {\n\n for (Annotation annotation : annotationList)\n if (annotation instanceof AttachScreen)\n return ((AttachScreen) annotation).isActive();\n\n return false;\n }",
"@Override\n\tpublic boolean shouldExecute() {\n\t\tif (!theEntityTameable.isTamed())\n\t\t\treturn false;\n\t\telse {\n\t\t\tfinal EntityLivingBase var1 = theEntityTameable.getOwner();\n\n\t\t\tif (var1 == null)\n\t\t\t\treturn false;\n\t\t\telse {\n\t\t\t\ttheTarget = var1.getLastAttacker();\n\t\t\t\tfinal int var2 = var1.getLastAttackerTime();\n\t\t\t\treturn var2 != field_142050_e\n\t\t\t\t\t\t&& isSuitableTarget(theTarget, false)\n\t\t\t\t\t\t&& theEntityTameable.func_142018_a(theTarget, var1);\n\t\t\t}\n\t\t}\n\t}",
"public boolean isBelow( PlanNode possibleAncestor ) {\n PlanNode node = this;\n while (node != null) {\n if (node == possibleAncestor) return true;\n node = node.getParent();\n }\n return false;\n }",
"public Boolean isParentable();",
"public boolean isAbove( PlanNode possibleDescendant ) {\n return possibleDescendant != null && possibleDescendant.isBelow(this);\n }",
"public boolean isConversing ( ) {\n\t\treturn extract ( handle -> handle.isConversing ( ) );\n\t}",
"protected boolean isValidInteractee() {\n\t\treturn interactee.isInteracteeNeutral(xGameCoord, yGameCoord, orientation);\n\t}",
"public Boolean equals(Agent agent) {\n if (agent != null &&\n AID == agent.AID &&\n leaderAID == agent.leaderAID &&\n conversions == agent.conversions &&\n metFollowers == agent.metFollowers &&\n isLeader == agent.isLeader &&\n electionComplete == agent.electionComplete) {\n\n return true;\n }\n\n return false;\n }",
"public boolean canMove ()\n {\n return ((ActiveAdvancer)_advancer).canMove();\n }",
"public boolean isAdjacentTo(StandardCoordinate where) {\n\t\treturn where.getAdjacencyList().contains(this);\n\t}",
"boolean hasParent();",
"boolean hasParent();",
"public boolean getIsOutOfLineFODescendant() {\n return isOutOfLineFODescendant;\n }",
"protected boolean sameActorTypes(FieldActorDescriptor[] xactors)\n {\n // Compare all the other objects in the array to the first argument's\n // class type.\n\n Class type = xactors[0].getClass();\n\n for(int i=1; i<xactors.length; i++)\n {\n if(!type.isInstance(xactors[i]))\n return false;\n }\n\n return true;\n }",
"public boolean isAdjacent(NodeTree location){\n return isAdjacent(this.head, location);\n }",
"public boolean hasAncestorOfType( Type type ) {\n return hasAncestorOfType(EnumSet.of(type));\n }",
"public static boolean query(TypeSummary node, TypeSummary ancestor)\n\t{\n\t\tTypeSummary current = node;\n\t\tif ((ancestor == null) || (current == null)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (ancestor.getName().equals(\"Object\")) {\n\t\t\treturn true;\n\t\t}\n\n\t\tdo {\n\t\t\tTypeDeclSummary decl = current.getParentClass();\n\t\t\tcurrent = GetTypeSummary.query(decl);\n\n\t\t\tif (current == ancestor) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} while (current != null);\n\n\t\treturn false;\n\t}",
"public boolean isHorizontal(){\n return head().getY() == tail().getY();\n }",
"public boolean canMoveToRoomInDirection(@NonNull Action a) {\n return adjacentRooms.containsKey(a);\n }",
"boolean hasParentalStatus();",
"public boolean isAdjacentToRoom(@Nullable Room other) {\n \tif(other==null) {\n \t\treturn false;\n \t}\n\n for (Room room : adjacentRooms.values()) {\n if (other.compareTo(room) == 0) {\n return true;\n }\n }\n return false;\n }",
"public boolean isSelfMessage(BeginSendEntry beginSendEntry);",
"public abstract boolean isParent(T anItem);",
"boolean ordered() {\n\t\treturn (this.left == null || (this.value > this.left.max().value && this.left.ordered()))\n\t\t\t\t&& (this.right == null || (this.value < this.right.min().value && this.right.ordered()));\n\t}",
"public boolean removeActor(Actor actor) {\n\t\tLog.debug(\"Removing actor \" + actor.getName());\n\n\t\tCoordinate pos = actor.getPosition();\n\t\tTile tile = getTileAt(pos.x, pos.y);\n\t\tif (tile.getActor() == null) {\n\t\t\tLog.warning(\"Failed! actor=\" + actor.getName());\n\t\t\treturn false;\n\t\t}\n\t\tLog.debug(\"Success!\");\n\n\t\tactors.remove(actor);\n\t\tLog.debug(\" > actors count: \" + actors.getAll().size());\n\t\ttile.setActor(null);\n\t\treturn true;\n\t}",
"public boolean contactsSprite(Sprite other) {\r\n\t\treturn bb.intersects(other.getBoundingBox());\r\n\t}",
"public boolean isChild(){\n return child;\n }",
"public boolean isChild(){\n return child;\n }",
"public boolean isInFrontOf(Shape other)\n {\n return parent != null && parent.isInFrontOf(this, other);\n }",
"public boolean isOther() {\n\t\t\treturn this == OTHER;\n\t\t}",
"default public boolean isTeamLeader() {\n return equals(team().leader());\n }",
"public boolean overlap(Entity entity){\n \t\n \tif (entity == null) throw new IllegalArgumentException(\"The second entity does not exist. @overlap\");\n\t\tif (this == entity) return true;\n\t\treturn this.getDistanceBetweenEdge(entity) <= -0.01;\n }",
"private boolean handleCollisionWithAntOrNest()\n {\n ArrayList<GameObject> collisions = this.getCollisions();\n if(!collisions.isEmpty() && (collisions.get(0) instanceof Ant || collisions.get(0) instanceof Nest))\n {\n this.opponent = collisions.get(0);\n return true;\n }\n\n return false;\n }",
"public boolean equals(Owner owner) {\n\n return (this.name == owner.getFirstName() && this.manager == owner.getManager());\n }",
"public boolean moveActor(Actor actor, Coordinate newPosition) {\n\t\tCoordinate pos = actor.getPosition();\n\t\tTile tile = getTileAt(pos.x, pos.y);\n\t\tif (tile.getActor() != null) {\n\t\t\tif (tile.moveActorTo(getTileAt(newPosition))) {\n\t\t\t\tactor.setPosition(newPosition.x, newPosition.y);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public static boolean isRelationshipElementType(IElementType type) {\r\n\t\tboolean result = false;\r\n\t\tEClass eclass = type.getEClass();\r\n\t\tif (UMLPackage.Literals.RELATIONSHIP.isSuperTypeOf(eclass)\r\n\t\t\t\t|| UMLPackage.Literals.CONNECTOR.isSuperTypeOf(eclass)) {\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"public boolean equals(Case c){\n\t\treturn (this.posX==c.getPosX() && this.posY==c.getPosY()); \n\t}",
"public boolean areAdjacent() {\n return areAdjacent;\n }",
"public Boolean isHorizontal() {\n return this == EAST || this == WEST;\n }",
"public boolean isChild(){\r\n return(leftleaf == null) && (rightleaf == null)); \r\n }",
"public boolean belongs(String i) {\n btNode p = c;\n while (p != null && !p.info.equals(i)) {\n if (p.info.compareTo(i) < 0) {\n p = p.rt;\n } else {\n p = p.lt;\n }\n }\n return p != null;\n }",
"public boolean inBounds(Actor a)\n {\n boolean inX = Math.abs(a.getXPos()) < levelWidth/2;\n boolean inY = Math.abs(a.getYPos()) < levelHeight/2;\n return inX && inY;\n }",
"public boolean isSortedAscending() {\n\t\treturn iconLabel.getIcon() == UP_ICON;\n\t}",
"public boolean isAdjacentTo(final Vertex other){\n\t\tboolean result = false;\n\t\tif(getNeighbours().contains(other))\n\t\t\tresult = true;\n\t\treturn result;\n\t}",
"public boolean isAluno() {\n\t\treturn aluno != null;\n\t}",
"public boolean isPressed() {\r\n List<Entity> entities = dungeon.getEntities();\r\n for (Entity e: entities) {\r\n if (e != null && e.getY() == getY() && e.getX() == getX()) {\r\n if (\"Boulder\".equals(e.getClass().getSimpleName()))\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public boolean isEqualArrow()\n {\n return Operators.isEqualArrow(getContent());\n }",
"public Actor getActor() {\r\n \t\treturn actor;\r\n \t}",
"@Override\n\tpublic boolean shouldExecute() {\n\t\tif (!theEntity.isTamed())\n\t\t\treturn false;\n\t\telse if (theEntity.isInWater())\n\t\t\treturn false;\n\t\telse if (!theEntity.onGround)\n\t\t\treturn false;\n\t\telse {\n\t\t\tfinal EntityLivingBase var1 = theEntity.getOwner();\n\t\t\treturn var1 == null ? true\n\t\t\t\t\t: theEntity.getDistanceSqToEntity(var1) < 144.0D\n\t\t\t\t\t\t\t&& var1.getAITarget() != null ? false : isSitting;\n\t\t}\n\t}",
"public boolean isMoveUp() {\n return moveUp;\n }",
"public boolean isAiTurn() {\n return whosTurn() == aiPlayer;\n }",
"public boolean isInversed() {\n return isinv != null && isinv.booleanValue();\n }",
"public boolean isTree() {\n\t\tif (vertices.size() == 0 || vertices.size() == 1) return true;\n\t\tSet<String> visited = new HashSet<String>();\n\t\treturn !isCyclicUtil(vertices.iterator().next(), visited, null) && visited.size() == vertices.size();\n\t}",
"public Vector2 localToAscendantCoordinates(Actor ascendant, Vector2 localCoords) {\n if(ascendant instanceof Group){\n Group group=(Group)ascendant;\n return internalGroup.localToAscendantCoordinates(group.internalGroup, localCoords);\n\n }\n return internalGroup.localToAscendantCoordinates(ascendant.internalActor, localCoords);\n }",
"@Override\n public boolean isSelfOpted(String groupPath, String username) {\n logger.info(\"isSelfOpted; group: \" + groupPath + \"; username: \" + username + \";\");\n\n if (isMember(groupPath, username)) {\n WsGetMembershipsResults wsGetMembershipsResults = hs.membershipsResults(username, groupPath);\n String membershipID = hs.extractFirstMembershipID(wsGetMembershipsResults);\n\n WsAttributeAssign[] wsAttributes =\n getMembershipAttributes(ASSIGN_TYPE_IMMEDIATE_MEMBERSHIP, SELF_OPTED, membershipID);\n\n for (WsAttributeAssign att : wsAttributes) {\n if (att.getAttributeDefNameName() != null) {\n if (att.getAttributeDefNameName().equals(SELF_OPTED)) {\n return true;\n }\n }\n }\n }\n\n return false;\n }",
"private boolean amIleader() {\n \t\treturn vs.getRank(myEndpt) == 0;\n \t}",
"public static boolean isAncestorOrSelf(NodeInfo a, NodeInfo d) {\n // Fast path for the TinyTree implementation\n if (a instanceof TinyNodeImpl) {\n if (d instanceof TinyNodeImpl) {\n return ((TinyNodeImpl)a).isAncestorOrSelf((TinyNodeImpl)d);\n } else if (d.getNodeKind() == Type.NAMESPACE) {\n // fall through\n } else {\n return false;\n }\n }\n // Generic implementation\n NodeInfo p = d;\n while (p != null) {\n if (a.isSameNodeInfo(p)) {\n return true;\n }\n p = p.getParent();\n }\n return false;\n }",
"public boolean isTerminal() {\n\t\tif(this.getSuccessors('1').length == 0 && this.getSuccessors('2').length == 0)\r\n\t\t\treturn true;\r\n\r\n\t\t//Else the baord is not a terminal node\r\n\t\treturn false;\r\n\t}",
"@Pure\n public boolean is_class_relation() {\n return parent_ppt_name.endsWith(\":::CLASS\");\n }",
"@Override\n public boolean isOwner(String groupingPath, String username) {\n return isMember(groupingPath + OWNERS, username);\n }",
"public boolean isInteractionRoot()\n\t{\n\t\treturn this == model.getInteractionRoot();\n\t}"
] |
[
"0.6852095",
"0.66795385",
"0.65715796",
"0.619151",
"0.61508113",
"0.5834644",
"0.57714045",
"0.5611884",
"0.55677134",
"0.5567695",
"0.54681605",
"0.54293394",
"0.5417975",
"0.53932095",
"0.52970254",
"0.5294913",
"0.52668655",
"0.525351",
"0.5231495",
"0.5228101",
"0.5212424",
"0.5201137",
"0.5194299",
"0.51924884",
"0.5155118",
"0.5151788",
"0.5085231",
"0.5041229",
"0.5040925",
"0.5028066",
"0.49786118",
"0.4965182",
"0.4961908",
"0.49468768",
"0.4909069",
"0.49057993",
"0.49039707",
"0.48983306",
"0.48837635",
"0.48658398",
"0.48584569",
"0.48545584",
"0.4852089",
"0.48506057",
"0.48212594",
"0.48183283",
"0.48023626",
"0.47921878",
"0.47893232",
"0.4769188",
"0.4769188",
"0.47559348",
"0.47550064",
"0.4747765",
"0.47338772",
"0.4727602",
"0.47271386",
"0.47091812",
"0.47062847",
"0.4682017",
"0.46627128",
"0.46609643",
"0.46563753",
"0.46525764",
"0.46492293",
"0.46489245",
"0.46489245",
"0.4645731",
"0.4643736",
"0.4642034",
"0.46396106",
"0.46366894",
"0.46298915",
"0.46236098",
"0.46202955",
"0.46202263",
"0.46065766",
"0.46049383",
"0.46007434",
"0.46005994",
"0.45977575",
"0.459591",
"0.45889375",
"0.45829555",
"0.4582853",
"0.4580752",
"0.45778054",
"0.45737022",
"0.45633882",
"0.45593372",
"0.4557958",
"0.45546862",
"0.45513895",
"0.45509547",
"0.45480937",
"0.4547334",
"0.45454916",
"0.4544649",
"0.45433456",
"0.45424846"
] |
0.7959205
|
0
|
Returns true if the actor's parent is not null.
|
public boolean hasParent() {
return internalGroup.hasParent();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean hasParent() {\r\n if (parent == null) \r\n return false;\r\n \r\n return true;\r\n }",
"public boolean isParent();",
"public boolean hasParent() {\n return getParent() != null;\n }",
"boolean hasParent();",
"boolean hasParent();",
"protected boolean parentExists() {\n\n\t\tIRodinElement parentElement = getParent();\n\t\tif (parentElement == null)\n\t\t\treturn true;\n\t\treturn parentElement.exists();\n\t}",
"public Boolean isParentable();",
"public Boolean getIsParent() {\n return isParent;\n }",
"boolean parentIsRoot()\n {\n return this.parent != null && this.parent.isRoot();\n }",
"public boolean IsParent(KDNode parent) {\n\t\t\n\t\tKDNode ptr = this;\n\t\twhile(ptr != null) {\n\t\t\tif(ptr == parent) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tptr = ptr.parent_ptr;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean isChild();",
"public boolean isActor() {\r\n \t\treturn (actor != null);\r\n \t}",
"public boolean isRoot() {\r\n return (_parent == null);\r\n }",
"public boolean hasParent(ParentEntity arg0, boolean arg1)\n throws EntityPersistenceException {\n return false;\n }",
"boolean hasParentalStatus();",
"boolean isParentInitialized();",
"boolean hasParent(CtElement candidate);",
"public boolean isChild(){\n return child;\n }",
"public boolean isChild(){\n return child;\n }",
"boolean coreHasParent();",
"public static boolean visibleInParents(Node node) {\n // TODO: Add overflow check (if overflow support will be added).\n List<Node> parentList = new ArrayList<>();\n for (Node parent = node.parent(); parent != null; parent = parent.parent()) {\n parentList.add(parent);\n }\n\n if (!parentList.isEmpty()) {\n var pos = new Vector2f(0, 0);\n var rect = new Vector2f(0, 0);\n var absolutePosition = node.box().borderBoxPosition();\n\n Vector2fc currentSize = node.box().contentSize();\n Vector2fc currentPos = node.box().contentPosition();\n\n float lx = absolutePosition.x;\n float rx = absolutePosition.x + currentSize.x();\n float ty = absolutePosition.y;\n float by = absolutePosition.y + currentSize.y();\n\n // check top parent\n\n Vector2f parentPaddingBoxSize = node.parent().box().paddingBoxSize();\n if (currentPos.x() > parentPaddingBoxSize.x\n || currentPos.x() + currentSize.x() < 0\n || currentPos.y() > parentPaddingBoxSize.y\n || currentPos.y() + currentSize.y() < 0) {\n return false;\n }\n if (parentList.size() != 1) {\n // check from bottom parent to top parent\n for (int i = parentList.size() - 1; i >= 1; i--) {\n Node parent = parentList.get(i);\n pos.add(parent.box().contentPosition());\n rect.set(pos).add(parent.box().contentSize());\n\n if (lx > rect.x || rx < pos.x || ty > rect.y || by < pos.y) {\n return false;\n }\n }\n }\n }\n return true;\n }",
"public abstract boolean isParent(T anItem);",
"public boolean isParent(AppFile anItem) { return anItem.isParent(); }",
"boolean isRoot()\n {\n return this.parent == null;\n }",
"public boolean isParent(T anItem) { return false; }",
"public boolean isChild(){\r\n return(leftleaf == null) && (rightleaf == null)); \r\n }",
"public boolean isSetParentId() {\n return EncodingUtils.testBit(__isset_bitfield, __PARENTID_ISSET_ID);\n }",
"public boolean isChild(){\n return false;\n }",
"public boolean isSetParent_id() {\n return EncodingUtils.testBit(__isset_bitfield, __PARENT_ID_ISSET_ID);\n }",
"public boolean canRemoveParent(ParentEntity arg0) {\n return false;\n }",
"public Boolean isThisParent(Flow f){\n\t\treturn false;\n\t}",
"@Override\n\t\tpublic boolean isSetParentInfo() {\n\t\t\treturn false;\n\t\t}",
"public boolean hasContainingParentType() {\n return fieldSetFlags()[2];\n }",
"public boolean isParent() { return _file.isDir(); }",
"public boolean isAscendantOf(Actor actor) {\n if (actor == null) throw new IllegalArgumentException(\"actor cannot be null.\");\n if(actor instanceof Group){\n Group group=(Group)actor;\n return internalGroup.isAscendantOf(group.internalGroup);\n }\n return internalGroup.isAscendantOf(actor.internalActor);\n }",
"public boolean hasContainingParentId() {\n return fieldSetFlags()[1];\n }",
"public boolean hasContainingParentLevel() {\n return fieldSetFlags()[3];\n }",
"public boolean isRoot()\r\n\t{\r\n\t\treturn (m_parent == null);\r\n\t}",
"default boolean isParent(@NotNull Type type, @NotNull Meta meta, @NotNull List<Object> children) {\r\n return false;\r\n }",
"public boolean canBeSeen()\n {\n if (!this.hasParent() || !this.isVisible())\n {\n return false;\n }\n\n GuiElement element = this;\n\n while (true)\n {\n if (!element.isVisible())\n {\n return false;\n }\n\n GuiElement parent = element.getParent();\n\n if (parent instanceof GuiDelegateElement && ((GuiDelegateElement) parent).delegate != element)\n {\n return false;\n }\n\n if (parent == null)\n {\n break;\n }\n\n element = parent;\n }\n\n return element instanceof GuiBase.GuiRootElement;\n }",
"public boolean isChild() {\n\t\treturn false;\n\t}",
"public boolean isParentOf(FcgLevel other) {\n\t\tif (isSource()) {\n\t\t\treturn other.getDistance() == 1;\n\t\t}\n\n\t\tif (direction != other.direction) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// e.g., row 2 - row 1 = 1\n\t\treturn other.getDistance() - getDistance() == 1;\n\t}",
"public boolean isAncestor(RMShape aShape) { return aShape==_parent || (_parent!=null && _parent.isAncestor(aShape)); }",
"public boolean hasNoParents()\r\n\t{\treturn (this.strongParents.isEmpty()) && (this.weakParents.isEmpty());\t}",
"private boolean _hasChild() {\r\n boolean ret = false;\r\n if (_childs != null && _childs.size() > 0) {\r\n ret = true;\r\n }\r\n\r\n return ret;\r\n }",
"public boolean canAddParent(ParentEntity arg0) {\n return false;\n }",
"public final boolean isOwner() {\n return currentOwner == this;\n }",
"public boolean isSetParentIndex() {\n return EncodingUtils.testBit(__isset_bitfield, __PARENTINDEX_ISSET_ID);\n }",
"public static boolean isSigned_parent() {\n return false;\n }",
"public boolean isUseParent()\n {\n return (isPragma() && getModule().toKeyword().isParentKeyword());\n }",
"boolean hasParentalStatusView();",
"public boolean isParent(File child) {\n\t\tboolean result = false;\n\t\t\n\t\tif (child != null && this != null) {\n\t\t\tif (child.getParentFile() == null) {\n\t\t\t\tresult = false;\n\t\t\t} else {\n\t\t\t\tif (child.getParentFile().getAbsolutePath().equals(this.getAbsolutePath())) {\n\t\t\t\t\tresult = true;\n\t\t\t\t} else {\n\t\t\t\t\tresult = isParent((File) child.getParentFile());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"public boolean isHasProvisioningOnThisObjectOrParent() {\r\n \r\n for (GuiGrouperProvisioningAttributeValue attributeValue: guiGrouperProvisioningAttributeValues) {\r\n if (attributeValue.getGrouperProvisioningAttributeValue().isDirectAssignment() || StringUtils.isNotBlank(attributeValue.getGrouperProvisioningAttributeValue().getOwnerStemId())) {\r\n return true;\r\n }\r\n }\r\n \r\n return false;\r\n }",
"public boolean containsChild() {\n return !(getChildList().isEmpty());\n }",
"public boolean isDescendantOf(Actor actor) {\n if (actor == null)\n throw new IllegalArgumentException(\"actor cannot be null.\");\n\n if(actor instanceof Group){\n Group group=(Group)actor;\n return internalGroup.isDescendantOf(group.internalGroup);\n }\n\n return internalGroup.isDescendantOf(actor.internalActor);\n }",
"public boolean isChildOf(Cause cause) {\n\t\tCause[] parents = this.getParents();\n\t\tif (parents != null) {\n\t\t\tfor (int i = 0; i < parents.length; i++) {\n\t\t\t\tif (parents[i].equals(cause)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public Boolean getIsChild() {\n return isChild;\n }",
"public boolean isVitalForParent() {\n\t\treturn isVitalForParentFunction;\n\t}",
"public boolean isPaletteRoot() {\n return className == null \n && parent != null && parent.parent == null;\n }",
"public boolean hasParentTable(String utableName)\n {\n return this.parentTables.contains(utableName);\n }",
"public boolean HasChildren() {\n\t\treturn left_ptr != null && right_ptr != null;\n\t}",
"private boolean parentKiller() {\n RadioGroup radioGroupCity = (RadioGroup) findViewById(R.id.parent_killer);\n RadioButton parentCheckRadioButton = (RadioButton) radioGroupCity.findViewById(radioGroupCity.getCheckedRadioButtonId());\n boolean checked = (parentCheckRadioButton.isChecked());\n\n switch (parentCheckRadioButton.getId()) {\n case R.id.marconi_button:\n if (checked) {\n return false;\n }\n case R.id.falcone_button:\n if (checked) {\n return false;\n }\n case R.id.chill_button:\n if (checked) {\n return true;\n }\n case R.id.zucco_button:\n if (checked) {\n return false;\n }\n }\n return false;\n }",
"public Optional<Cause> getParent() {\n return this.parent;\n }",
"public boolean isHaveParent(List source, Map transedTree) {\n\t\tboolean result = false;\r\n\t\tif (source.isEmpty() || source.size() < 1 || source == null\r\n\t\t\t\t|| transedTree.isEmpty() || transedTree == null) {\r\n\t\t\treturn result;\r\n\t\t} else {\r\n\t\t\tif (transedTree.get(StringPool.TREE_PARENTID) == null) {\r\n\t\t\t\tresult = false;\r\n\t\t\t} else {\r\n\t\t\t\tMap parentTree = this.getTree(source, transedTree.get(\r\n\t\t\t\t\t\tStringPool.TREE_PARENTID).toString());\r\n\t\t\t\tif (parentTree.isEmpty() || parentTree == null) {\r\n\t\t\t\t\tresult = false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (source.contains(parentTree)) {\r\n\t\t\t\t\t\tresult = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tresult = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"private boolean hasParent(int i) {\n return i > 1;\n }",
"public boolean isParent(String anItem) { return anItem.equals(\"TreeView\"); }",
"public boolean containsAnActor() {\n\t\treturn map.isAnActorAt(this);\n\t}",
"public boolean isHaveParent(List source, Tree tree) {\n\t\tboolean result = false;\r\n\t\tif (!source.contains(tree)) {\r\n\t\t\treturn result;\r\n\t\t} else {\r\n\t\t\tif (tree.getParentTree() != null) {\r\n\t\t\t\tresult = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public boolean isPlayer() {\n return player != null;\n }",
"public boolean setParent (\n\t\tfinal BinomialTree<KEY, ITEM> parent)\n\t{\n\t\t_parent = parent;\n\t\treturn true;\n\t}",
"public boolean isRoot() {\n return !hasParent();\n }",
"public boolean hasChilds() {\n return childs != null && !childs.isEmpty();\n }",
"public static boolean isSigned_parentId() {\n return false;\n }",
"public final boolean hasChild ()\r\n {\r\n return _value.hasChild();\r\n }",
"protected final boolean isShowing() {\n synchronized (getPeerTreeLock()) {\n if (isVisible()) {\n final LWContainerPeer<?, ?> container = getContainerPeer();\n return (container == null) || container.isShowing();\n }\n }\n return false;\n }",
"public boolean isParent(String child) {\n\t\treturn this.isParent(new File(child));\n\t}",
"public final boolean isAbsoluteActive() {\n if (parent == this) {\n return active;\n }\n return (active && parent.isAbsoluteActive());\n }",
"public boolean isChildOf( InteractionClass other )\n\t{\n\t\t// look up our tree to see if the given class is one of our parents\n\t\tInteractionClass currentParent = this;\n\t\twhile( currentParent != null )\n\t\t{\n\t\t\tif( currentParent == other )\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\tcurrentParent = currentParent.parent;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean isNode() {\n return (kids != null);\n }",
"boolean isSliceParent();",
"public boolean isEditing() { RMShape p = getParent(); return p!=null && p.isEditing(); }",
"private boolean hasParent(int index) {\n return index > 1;\n }",
"public boolean isViewing() { RMShape p = getParent(); return p!=null && p.isViewing(); }",
"@Override\n\tpublic boolean isBlocked() {\n\t\treturn this.parent.isBlocked(this);\n\t}",
"public boolean isInteractionRoot()\n\t{\n\t\treturn this == model.getInteractionRoot();\n\t}",
"protected boolean isRoot(BTNode <E> v){\n\t\treturn (v.parent() == null); \n }",
"public boolean isParent(String anItem) { return anItem.equals(\"BrowserView\"); }",
"boolean hasChildren();",
"@Override\r\n\tpublic boolean hasLeftChild() {\n\t\treturn left!=null;\r\n\t}",
"public boolean hasLeftChild() {\n\t\treturn leftChild != null;\n\t}",
"public boolean isRootLevel(\n )\n {return parentLevel == null;}",
"public boolean attached()\n\t{\n\t\treturn this.getContainer() != null && this.getId() != null;\n\t}",
"public boolean isPalette() {\n return className == null \n && parent != null && parent.parent != null \n && parent.parent.parent == null;\n }",
"public boolean testTraversal() {\n if (parent == null){\n return false;\n }\n return testTraversalComponent(parent);\n }",
"public boolean isParent(AccessGroup group)\n {\n if (group == this)\n {\n return true;\n }\n if (group != null)\n {\n if (group.getExtendGroup() != null)\n {\n return group.getExtendGroup() == this || isParent(group.getExtendGroup());\n }\n }\n return false;\n }",
"public boolean canActorEnter(Actor actor) {\n\t\treturn !map.isAnActorAt(this) && ground.canActorEnter(actor);\n\t}",
"public boolean isOwner(EntityPlayer player) {\n\t\treturn player.getDisplayName().equals(owner) /*|| Platform.worldType() != Platform.WorldMode.MP*/;\r\n\t}",
"public boolean hasChildren()\n/* */ {\n/* 487 */ return !this.children.isEmpty();\n/* */ }",
"public abstract Optional<TypeName> parent();",
"public boolean isValidateRoot() {\n\tComponent parent = getParent();\n\tif (parent instanceof JViewport) {\n\t return false;\n\t}\n return true;\n }"
] |
[
"0.78990716",
"0.78037524",
"0.77708834",
"0.768461",
"0.768461",
"0.7216256",
"0.72053444",
"0.71693146",
"0.70660555",
"0.7001749",
"0.68032545",
"0.678005",
"0.6729371",
"0.6652059",
"0.6633085",
"0.6630336",
"0.6574583",
"0.6550989",
"0.6550989",
"0.65509254",
"0.65271413",
"0.65136844",
"0.65076864",
"0.6498697",
"0.64788693",
"0.6417651",
"0.641334",
"0.6408181",
"0.6402544",
"0.6400877",
"0.63997155",
"0.63884693",
"0.63827395",
"0.6365883",
"0.6361679",
"0.6337053",
"0.6328759",
"0.630855",
"0.62894773",
"0.6242402",
"0.6237902",
"0.6210136",
"0.6195154",
"0.61878115",
"0.61355203",
"0.61166275",
"0.6098521",
"0.6070027",
"0.6067523",
"0.60605747",
"0.60313004",
"0.60303664",
"0.60290927",
"0.60208434",
"0.6006894",
"0.59967136",
"0.59806526",
"0.597366",
"0.59591615",
"0.5952244",
"0.59315336",
"0.5915012",
"0.5904537",
"0.5875422",
"0.5862798",
"0.5860485",
"0.58585244",
"0.5851454",
"0.5844663",
"0.5842892",
"0.58212346",
"0.5801325",
"0.579057",
"0.5786981",
"0.57852507",
"0.57852155",
"0.5777461",
"0.5773862",
"0.5772141",
"0.5764861",
"0.57579714",
"0.57556784",
"0.5748123",
"0.5742607",
"0.5740442",
"0.5737328",
"0.57135594",
"0.5712544",
"0.5708926",
"0.5704882",
"0.5697573",
"0.56962675",
"0.5691692",
"0.56864214",
"0.5684218",
"0.56576204",
"0.565689",
"0.56416255",
"0.5631831",
"0.5627925"
] |
0.71617466
|
8
|
Returns the parent actor, or null if not in a group.
|
public Group getParent() {
com.guidebee.game.engine.scene.Group group = internalGroup.getParent();
if (group != null) {
return (Group) group.getUserObject();
}
return null;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Optional<Cause> getParent() {\n return this.parent;\n }",
"private HObject checkParent(String groupName, Group parentGroup)\n\t{\n\t\tfor(HObject h : parentGroup.getMemberList())\n\t\t{\n\t\t\tif(h.getName().equals(groupName))\n\t\t\t{\n\t\t\t\treturn h;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public String getParentId() {\n return getParent() != null ? getParent().getId() : null;\n }",
"public TaskGroup getSelectedTaskParent()\n {\n boolean first = true;\n TaskGroup allParent = null;\n\n // Examine the parent task group for each selected undertaking\n Iterator<AUndertaking> taskIt = getSelectedTaskIterator();\n\n while (taskIt.hasNext()) {\n AUndertaking item = taskIt.next();\n\n TaskGroup parentOfItem = item.getTaskGroup();\n\n // If the selected item represents a top-level undertaking,\n // then null is the only possible response.\n if (parentOfItem == null) {\n return null;\n }\n\n // Remember first parent to compare against the remaining ones\n if (first) {\n first = false;\n allParent = parentOfItem;\n }\n else if (parentOfItem != allParent) {\n // If a subsequent parent is different from the remembered one,\n // return null\n return null;\n }\n }\n\n // If there is no selected undertaking, return null\n if (allParent == null) {\n return null;\n }\n\n // Otherwise, return the shared parent task group\n return allParent;\n }",
"public CompositeObject getParent(\n )\n {return (parentLevel == null ? null : (CompositeObject)parentLevel.getCurrent());}",
"public CUser getParent() {\n return this.parent;\n }",
"public Optional<NamespaceId> getParentId() {\n return parentId;\n }",
"public RBNode<T> parentOf(RBNode<T> node) {\n return node != null? node.parent : null;\r\n }",
"public Cause getParent() {\n\t\tif (this.equals(this.rcaCase.problem)) {\n\t\t\treturn null;\n\t\t} else if (this.effectRelations.size() > 0) {\n\t\t\treturn ((Relation) this.effectRelations.toArray()[0]).causeTo;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public Component getParentComponent() {\r\n\t\tif (parentComponent == null) {\r\n\t\t\tif (view != null)\r\n\t\t\t\tparentComponent = view.getComponent(parentComponentName);\r\n\t\t}\r\n\t\treturn parentComponent;\r\n\t}",
"public String getParent() {\n return _theParent;\n }",
"public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }",
"Object getParent();",
"public Activity getParentActivity() {\r\n \treturn parentActivity;\r\n }",
"public Long getParentConversationId()\r\n\t{\r\n\t\treturn parentConversationId;\r\n\t}",
"public Object getParent() {\r\n return this.parent;\r\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public String getParent() {\n return _parent;\n }",
"public GitCommit getParent() { return _par!=null? _par : (_par=getParentImpl()); }",
"public VRL getParentLocation()\n {\n \tif (this.getVRL()==null)\n \t\treturn null; \n \t\n \treturn this._nodeVRL.getParent();\n }",
"public PafDimMember getParent() {\r\n\t\treturn parent;\r\n\t}",
"public IAVLNode getParent() {\n\t\t\treturn this.parent; // to be replaced by student code\n\t\t}",
"public String getParentActivity() {\n return parentActivity;\n }",
"public IPSComponent peekParent();",
"public String getParent() {\r\n return parent;\r\n }",
"public String getParent() {\r\n return this.parent;\r\n }",
"public Entity getParent() {\n return parent;\n }",
"public E getParentEntity() {\n return parentEntity;\n }",
"public TreeNode getParent() {\n\t\treturn null;\n\t}",
"@Override\r\n public FileName getParent() {\r\n final String parentPath;\r\n final int idx = getPath().lastIndexOf(SEPARATOR_CHAR);\r\n if (idx == -1 || idx == getPath().length() - 1) {\r\n // No parent\r\n return null;\r\n }\r\n if (idx == 0) {\r\n // Root is the parent\r\n parentPath = SEPARATOR;\r\n } else {\r\n parentPath = getPath().substring(0, idx);\r\n }\r\n return createName(parentPath, FileType.FOLDER);\r\n }",
"public String getParent() {\n return parent;\n }",
"public String getParentName() {\n return parentName;\n }",
"public ParseTreeNode getParent() {\r\n return _parent;\r\n }",
"public Foo getParent() {\n return parent;\n }",
"public final Cause<?> getParent() {\n return parent;\n }",
"public String getParentName() {\n return parentName;\n }",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return parentId;\n }",
"public EventNode getParent() {\n\t\treturn parent;\n\t}",
"public IMember getParentMember();",
"public String getParentName() {\n\t\treturn parentName;\n\t}",
"public @Nullable Node<@Nullable T> getParent() {\n return this.parent;\n }",
"Component getParent(Component c) {\n return hierarchy.getParent(c);\n }",
"public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }",
"public Folder getParentFolder() {\n\t\treturn parentFolder;\n\t}",
"public String getParentName() {\n return getProperty(Property.PARENT_NAME);\n }",
"protected Directory getParent() {\n return parent;\n }",
"public Instance getParent() {\r\n \t\treturn parent;\r\n \t}",
"public int getParentId() {\r\n\t\treturn parentId;\r\n\t}",
"public String getParent() {\r\n return (String) getAttributeInternal(PARENT);\r\n }",
"public ChatSession getParentChatSession() {\n return chatSession;\n }",
"public final ShapeView getParentView()\n {\n ShapeParent ancestor = getShapeParent();\n \n while (ancestor != null)\n {\n if (ancestor instanceof ShapeView)\n {\n return (ShapeView) ancestor;\n }\n \n ancestor = ancestor.getShapeParent();\n }\n \n return null;\n }",
"public VNode getParent() throws VlException\n {\n VRL pvrl=getParentLocation(); \n \n if (pvrl==null)\n \treturn null; \n \n return vrsContext.openLocation(getParentLocation());\n }",
"public String getParentId() {\n return getProperty(Property.PARENT_ID);\n }",
"public Long getParentId() {\n return parentId;\n }",
"public Long getParentId() {\n return parentId;\n }",
"public Long getParentId() {\n return parentId;\n }",
"public Long getParentId() {\n return parentId;\n }",
"public Node getParentNode() {\n return parentNode;\n }",
"public Resource getParent()\n {\n if(parent == null)\n {\n if(parentId != -1)\n {\n try\n {\n parent = new ResourceRef(coral.getStore().getResource(parentId), coral);\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"corrupted data parent resource #\"+parentId+\n \" does not exist\", e);\n }\n }\n else\n {\n parent = new ResourceRef(null, coral);\n }\n }\n try\n {\n return parent.get();\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"in-memory data incosistency\", e);\n }\n }",
"String getParentGroupId();",
"public Node getParent();",
"public java.lang.Long getParentId() {\n return parentId;\n }",
"public Integer getParentId() {\n return parentId;\n }",
"public Integer getParentId() {\n return parentId;\n }",
"public Integer getParentId() {\n return parentId;\n }",
"public abstract Optional<TypeName> parent();",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"@Override\r\n\t\tpublic Node getParentNode()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Pure\n\tpublic TreeNode<?, ?> getParentNode() {\n\t\treturn (TreeNode<?, ?>) getSource();\n\t}",
"public Comment getParent () {\n return parentComment;\n }",
"public RMParentShape getParent() { return _parent; }",
"@Override\n public final ObjectNode findParent(String fieldName) {\n return null;\n }",
"java.lang.String getParent();",
"java.lang.String getParent();",
"public long getParentGroupId() {\n return parentGroupId;\n }",
"public long getParentId()\n {\n return parentId;\n }",
"public Node getParent() {\n return parent;\n }",
"public Node getParent() {\n return parent;\n }",
"public int getParent();",
"public TreeNode getParent()\r\n\t{\r\n\t\treturn m_parent;\r\n\t}",
"public TreeNode getParent ()\r\n {\r\n return parent;\r\n }",
"ContentIdentifier getParent(ContentIdentifier cid);",
"public int getParentID() {\n\t\treturn _parentID;\n\t}",
"public TreeNode getParent()\n {\n return mParent;\n }",
"public WidgetParent getParent() {\n return this.m_parent;\n }",
"public int getParentID() {\n\t\treturn parentID;\n\t}",
"public Integer getParent(Integer e){\n\t\ttry{\n\t\t\treturn searchNodeRef(e).father.element;\n\t\t} catch (Exception exc) {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\r\n\tpublic UserInterface getParent() {\n\t\treturn null;\r\n\t}",
"public int getParentNode(){\n\t\treturn parentNode;\n\t}"
] |
[
"0.67689115",
"0.6628631",
"0.65193486",
"0.6475269",
"0.6465311",
"0.6389915",
"0.63786066",
"0.6361011",
"0.6280958",
"0.6280812",
"0.6197315",
"0.6174777",
"0.61625427",
"0.61399555",
"0.6135864",
"0.6118803",
"0.6114011",
"0.6114011",
"0.6114011",
"0.6086825",
"0.6052338",
"0.6051416",
"0.60374045",
"0.6020129",
"0.60155433",
"0.59948367",
"0.5991008",
"0.59836614",
"0.59795403",
"0.597654",
"0.5975611",
"0.5973145",
"0.5971664",
"0.5953228",
"0.59458375",
"0.5943697",
"0.59415853",
"0.59319335",
"0.59261906",
"0.59261906",
"0.59261906",
"0.59261906",
"0.59261906",
"0.59261906",
"0.59261906",
"0.59261906",
"0.59261906",
"0.591256",
"0.5905607",
"0.58970267",
"0.5896344",
"0.5885747",
"0.5885673",
"0.58713394",
"0.5856303",
"0.58548903",
"0.58538115",
"0.58450925",
"0.582903",
"0.5828804",
"0.58153886",
"0.5814205",
"0.5814084",
"0.5813829",
"0.5813829",
"0.5813829",
"0.5813829",
"0.58128434",
"0.5811545",
"0.5803382",
"0.5802713",
"0.5789382",
"0.5789207",
"0.5789207",
"0.5789207",
"0.5786171",
"0.5785722",
"0.5785722",
"0.5774905",
"0.5772939",
"0.57729006",
"0.57723504",
"0.57722706",
"0.5770762",
"0.5770762",
"0.5763736",
"0.5758915",
"0.5747881",
"0.5747881",
"0.57368314",
"0.5734057",
"0.5726772",
"0.5724757",
"0.5724717",
"0.5723769",
"0.5721685",
"0.57180715",
"0.5713503",
"0.5712506",
"0.5711364"
] |
0.750812
|
0
|
Called by the framework when an actor is added to or removed from a group.
|
protected void setParent(Group parent) {
internalGroup.setParent(parent.internalGroup);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public final void addActor(DodlesActor actor) {\n if (actor.getName() == null) {\n throw new GdxRuntimeException(\"Actor must have a name set!\");\n }\n\n all.put(actor.getName(), actor);\n\n if (actor instanceof BaseDodlesViewGroup) {\n for (Object view : ((BaseDodlesViewGroup) actor).getViews()) {\n BaseDodlesGroup bdgView = (BaseDodlesGroup) view;\n all.put(bdgView.getName(), bdgView);\n }\n }\n\n DodleReference ref = references.get(actor.getTrackingID());\n\n if (ref != null) {\n ref.addRef(actor.getName());\n }\n }",
"void add(Actor actor);",
"public final void rule__AstActor__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7525:1: ( ( 'actor' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7526:1: ( 'actor' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7526:1: ( 'actor' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7527:1: 'actor'\n {\n before(grammarAccess.getAstActorAccess().getActorKeyword_1()); \n match(input,70,FOLLOW_70_in_rule__AstActor__Group__1__Impl15563); \n after(grammarAccess.getAstActorAccess().getActorKeyword_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 }",
"public void addActor(Actor actor) { ActorSet.addElement(actor); }",
"public void addActor(CastMember actor)\n\t{\n\t\tpeopleAct.add(actor);\n\t}",
"public void groupArrived(Group group) {\n waiting.add(group);\n seatAllPossible();\n }",
"public void groupAdded(long pid, IGroup group) throws RemoteException {\n\t\tlogger.create().block(\"groupAdded\").info().level(1).msg(\n\t\t\t\t\"Adding addGroup request to update queue for: pid: \" + pid + \", group: \" + group).send();\n\t\tupdateList.add(new GroupAddedNotification(pid, group));\n\t}",
"public void addActor(Actor actor) {\n internalGroup.addActor(actor.internalActor);\n actor.setParent(this);\n actor.setStage(getStage());\n }",
"@Override\n public void Mesibo_onGroupCreated(MesiboProfile profile) {\n toast(\"New Group Created: \" + profile.getName());\n addGroupMembers(profile);\n }",
"public final void rule__AstExternalActor__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10872:1: ( ( 'actor' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10873:1: ( 'actor' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10873:1: ( 'actor' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10874:1: 'actor'\n {\n before(grammarAccess.getAstExternalActorAccess().getActorKeyword_2()); \n match(input,70,FOLLOW_70_in_rule__AstExternalActor__Group__2__Impl22160); \n after(grammarAccess.getAstExternalActorAccess().getActorKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void add(T actor)\n {\n\tif (actor == null)\n\t throw new IllegalArgumentException(\"actor cannot be null.\");\n\n\tboolean _shouldCheck = actor.isChecked() || actors.size < minCheckCount;\n\tactor.setActorGroup(this);\n\tactors.add(actor);\n\tif (_shouldCheck)\n\t actor.setChecked(true);\n }",
"public void memberJoined(ClusterEvent e) {}",
"void remove(Actor actor);",
"public void collect() {\n\t\tthis.getOwnerArea().unregisterActor(this);\n\t\t\n\t}",
"public final void rule__AstActor__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7494:1: ( ( () ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7495:1: ( () )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7495:1: ( () )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7496:1: ()\n {\n before(grammarAccess.getAstActorAccess().getAstActorAction_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7497:1: ()\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7499:1: \n {\n }\n\n after(grammarAccess.getAstActorAccess().getAstActorAction_0()); \n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"default void onMessageReceived(Group group, Message message, Ordering ordering) {}",
"public final void rule__AstActor__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7513:1: ( rule__AstActor__Group__1__Impl rule__AstActor__Group__2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7514:2: rule__AstActor__Group__1__Impl rule__AstActor__Group__2\n {\n pushFollow(FOLLOW_rule__AstActor__Group__1__Impl_in_rule__AstActor__Group__115532);\n rule__AstActor__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__2_in_rule__AstActor__Group__115535);\n rule__AstActor__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 }",
"public interface EventActorListener {\n\n public void onFinished(ActorDet actor);\n}",
"public interface GroupMessageObserver {\n public void onGroupMessage(IMMessage msg);\n public void onGroupMessageACK(int msgLocalID, long uid);\n public void onGroupMessageFailure(int msgLocalID, long uid);\n public void onGroupNotification(String notification);\n}",
"public void addActor(){\n actorProfileList.add(new ActorProfile());\n }",
"public final void rule__AstActor__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7544:1: ( rule__AstActor__Group__2__Impl rule__AstActor__Group__3 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7545:2: rule__AstActor__Group__2__Impl rule__AstActor__Group__3\n {\n pushFollow(FOLLOW_rule__AstActor__Group__2__Impl_in_rule__AstActor__Group__215594);\n rule__AstActor__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__3_in_rule__AstActor__Group__215597);\n rule__AstActor__Group__3();\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 }",
"public abstract void groupChatCreatedMessage(Message m);",
"public final void rule__AstActor__Group__11() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7813:1: ( rule__AstActor__Group__11__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7814:2: rule__AstActor__Group__11__Impl\n {\n pushFollow(FOLLOW_rule__AstActor__Group__11__Impl_in_rule__AstActor__Group__1116146);\n rule__AstActor__Group__11__Impl();\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 }",
"@Override\n\tpublic void gotMember(Member member) {\n\t\tDebug.log(\"netbeansgui.GroupPanel\",Debug.DEBUG,\"Tab for \" + groupName + \" got member \" + member);\n\t\t((DefaultListModel)nodeList.getModel()).addElement(member);\n\t\t//nodeList.repaint();\n\t\tappend(String.format(\">>> %s joined group (%s)\",member.getName(),member.getID()));\n\t}",
"public void newGroup() {\n addGroup(null, true);\n }",
"public void managerAdded(ManagerEvent e);",
"public final void rule__AstActor__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7482:1: ( rule__AstActor__Group__0__Impl rule__AstActor__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7483:2: rule__AstActor__Group__0__Impl rule__AstActor__Group__1\n {\n pushFollow(FOLLOW_rule__AstActor__Group__0__Impl_in_rule__AstActor__Group__015471);\n rule__AstActor__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__1_in_rule__AstActor__Group__015474);\n rule__AstActor__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 }",
"public final void rule__AstActor__Group_6_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8083:1: ( rule__AstActor__Group_6_1__1__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8084:2: rule__AstActor__Group_6_1__1__Impl\n {\n pushFollow(FOLLOW_rule__AstActor__Group_6_1__1__Impl_in_rule__AstActor__Group_6_1__116658);\n rule__AstActor__Group_6_1__1__Impl();\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 }",
"@Override\n public void onGroupDestroyed(final String groupId, String groupName) {\n getActivity().runOnUiThread(new Runnable() {\n public void run() {\n if (toChatUsername.equals(groupId)) {\n Toast.makeText(getActivity(), R.string.the_current_group_destroyed, Toast.LENGTH_LONG).show();\n Activity activity = getActivity();\n if (activity != null && !activity.isFinishing()) {\n activity.finish();\n }\n }\n }\n });\n }",
"public final void rule__AstActor__Group_8_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8207:1: ( rule__AstActor__Group_8_1__1__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8208:2: rule__AstActor__Group_8_1__1__Impl\n {\n pushFollow(FOLLOW_rule__AstActor__Group_8_1__1__Impl_in_rule__AstActor__Group_8_1__116903);\n rule__AstActor__Group_8_1__1__Impl();\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 }",
"public void updateCollisionGroup(){\n\t\tcollisionGroup = new CollisionGroup();\n\t\t\n\t\t//Adds tile from the Screen into the collisionGroup.\n\t\tfor(int x = 0; x<getScreen().getNumOfTilesX(); x++){\n\t\t\tfor(int y = 0; y<getScreen().getNumOfTilesY(); y++){\n\t\t\t\t\n\t\t\t\tTile sTile = getScreen().getTile(x, y);\n\t\t\t\tcollisionGroup.add(sTile);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Adds the Player to the collisionGroup.\n\t\tif(player != null){\n\t\t\tcollisionGroup.add(getPlayer());\n\t\t}\n\t}",
"public void setActor(Actor actor);",
"public final void rule__AstActor__Group__10() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7784:1: ( rule__AstActor__Group__10__Impl rule__AstActor__Group__11 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7785:2: rule__AstActor__Group__10__Impl rule__AstActor__Group__11\n {\n pushFollow(FOLLOW_rule__AstActor__Group__10__Impl_in_rule__AstActor__Group__1016085);\n rule__AstActor__Group__10__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__11_in_rule__AstActor__Group__1016088);\n rule__AstActor__Group__11();\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 }",
"public void act() \r\n {\r\n Actor hitMC = getOneIntersectingObject(MC.class);\r\n if (hitMC != null) {\r\n ((Hall) getWorld()).player.health++;\r\n getWorld().removeObject(this);\r\n }\r\n }",
"public synchronized void updateGroup() {\n RaftGroup newGroup = getCurrentGroup();\n if (!newGroup.equals(mRaftGroup)) {\n LOG.info(\"Raft group updated: old {}, new {}\", mRaftGroup, newGroup);\n mRaftGroup = newGroup;\n }\n }",
"@Override\n\tpublic void add() {\n\t\tSystem.out.println(\"前置通知\");\n\t\ttarget.add();\n\t\tSystem.out.println(\"后置通知\");\n\t}",
"public final void rule__AstActor__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7573:1: ( rule__AstActor__Group__3__Impl rule__AstActor__Group__4 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7574:2: rule__AstActor__Group__3__Impl rule__AstActor__Group__4\n {\n pushFollow(FOLLOW_rule__AstActor__Group__3__Impl_in_rule__AstActor__Group__315654);\n rule__AstActor__Group__3__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__4_in_rule__AstActor__Group__315657);\n rule__AstActor__Group__4();\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 }",
"public final void rule__AstActor__Group_4_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7959:1: ( rule__AstActor__Group_4_1__1__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7960:2: rule__AstActor__Group_4_1__1__Impl\n {\n pushFollow(FOLLOW_rule__AstActor__Group_4_1__1__Impl_in_rule__AstActor__Group_4_1__116413);\n rule__AstActor__Group_4_1__1__Impl();\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 }",
"public final void rule__AstActor__Group_6__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8020:1: ( rule__AstActor__Group_6__1__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8021:2: rule__AstActor__Group_6__1__Impl\n {\n pushFollow(FOLLOW_rule__AstActor__Group_6__1__Impl_in_rule__AstActor__Group_6__116534);\n rule__AstActor__Group_6__1__Impl();\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 }",
"public final void rule__AstActor__Group_4__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7896:1: ( rule__AstActor__Group_4__1__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7897:2: rule__AstActor__Group_4__1__Impl\n {\n pushFollow(FOLLOW_rule__AstActor__Group_4__1__Impl_in_rule__AstActor__Group_4__116289);\n rule__AstActor__Group_4__1__Impl();\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 }",
"public final void rule__AstActorDeclaration__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5423:1: ( rule__AstActorDeclaration__Group__1__Impl rule__AstActorDeclaration__Group__2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5424:2: rule__AstActorDeclaration__Group__1__Impl rule__AstActorDeclaration__Group__2\n {\n pushFollow(FOLLOW_rule__AstActorDeclaration__Group__1__Impl_in_rule__AstActorDeclaration__Group__111419);\n rule__AstActorDeclaration__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActorDeclaration__Group__2_in_rule__AstActorDeclaration__Group__111422);\n rule__AstActorDeclaration__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 }",
"public final void ruleAstActor() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:689:2: ( ( ( rule__AstActor__Group__0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:690:1: ( ( rule__AstActor__Group__0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:690:1: ( ( rule__AstActor__Group__0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:691:1: ( rule__AstActor__Group__0 )\n {\n before(grammarAccess.getAstActorAccess().getGroup()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:692:1: ( rule__AstActor__Group__0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:692:2: rule__AstActor__Group__0\n {\n pushFollow(FOLLOW_rule__AstActor__Group__0_in_ruleAstActor1414);\n rule__AstActor__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstActorAccess().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 }",
"public final void rule__AstActor__Group_8__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8144:1: ( rule__AstActor__Group_8__1__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8145:2: rule__AstActor__Group_8__1__Impl\n {\n pushFollow(FOLLOW_rule__AstActor__Group_8__1__Impl_in_rule__AstActor__Group_8__116779);\n rule__AstActor__Group_8__1__Impl();\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 }",
"public void addToGroup(Movable movable){\n things.add(movable);\n }",
"public void memberLeft(ClusterEvent e) {}",
"private void addNewMember(Event x) {\r\n \r\n \r\n \r\n }",
"public void groupUpdated(IGroup group) throws RemoteException {\n\n\t\tlogger.create().block(\"groupUpdated\").info().level(1).msg(\n\t\t\t\t\"Adding updateGroup request to update queue for group: \" + group).send();\n\n\t\tupdateList.add(new GroupUpdatedNotification(group));\n\t}",
"private void fireActivationEvent()\n {\n Set<DataGroupInfo> activated;\n Set<DataGroupInfo> deactivated;\n synchronized (this)\n {\n activated = New.set(myDeltaActivatedGroups);\n myDeltaActivatedGroups.clear();\n deactivated = New.set(myDeltaDeactivatedGroups);\n myDeltaDeactivatedGroups.clear();\n }\n\n myController.getToolbox().getEventManager().publishEvent(new ActiveDataGroupsChangedEvent(this, activated, deactivated));\n myActivationChangeSupport.notifyListeners(r -> r.run());\n }",
"public void addActorAt(int index, Actor actor) {\n internalGroup.addActorAt(index, actor.internalActor);\n actor.setParent(this);\n actor.setStage(getStage());\n }",
"public final void rule__AstActor__Group_6_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8052:1: ( rule__AstActor__Group_6_1__0__Impl rule__AstActor__Group_6_1__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8053:2: rule__AstActor__Group_6_1__0__Impl rule__AstActor__Group_6_1__1\n {\n pushFollow(FOLLOW_rule__AstActor__Group_6_1__0__Impl_in_rule__AstActor__Group_6_1__016596);\n rule__AstActor__Group_6_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group_6_1__1_in_rule__AstActor__Group_6_1__016599);\n rule__AstActor__Group_6_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 }",
"public final void rule__AstActor__Group__11__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7824:1: ( ( 'end' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7825:1: ( 'end' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7825:1: ( 'end' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7826:1: 'end'\n {\n before(grammarAccess.getAstActorAccess().getEndKeyword_11()); \n match(input,52,FOLLOW_52_in_rule__AstActor__Group__11__Impl16174); \n after(grammarAccess.getAstActorAccess().getEndKeyword_11()); \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 }",
"public final void rule__AstActor__Group_8_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8176:1: ( rule__AstActor__Group_8_1__0__Impl rule__AstActor__Group_8_1__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8177:2: rule__AstActor__Group_8_1__0__Impl rule__AstActor__Group_8_1__1\n {\n pushFollow(FOLLOW_rule__AstActor__Group_8_1__0__Impl_in_rule__AstActor__Group_8_1__016841);\n rule__AstActor__Group_8_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group_8_1__1_in_rule__AstActor__Group_8_1__016844);\n rule__AstActor__Group_8_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 }",
"public void mmAddFriendClick(ActionEvent event) throws Exception{\r\n displayManageFriendsGroups();\r\n }",
"public final void rule__AstActor__Group__6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7664:1: ( rule__AstActor__Group__6__Impl rule__AstActor__Group__7 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7665:2: rule__AstActor__Group__6__Impl rule__AstActor__Group__7\n {\n pushFollow(FOLLOW_rule__AstActor__Group__6__Impl_in_rule__AstActor__Group__615839);\n rule__AstActor__Group__6__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__7_in_rule__AstActor__Group__615842);\n rule__AstActor__Group__7();\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 }",
"@FXML\n\tprivate void createGroup(ActionEvent event){\n\t\tif(subgroup_menu.getValue().equals(\"--- INGEN ---\")){\n\t\t\tif(GroupName_field.getText().equals(\"\")){\n\t\t\t\tmakeDialog(\"Du må gi gruppen et navn.\");\n\t\t\t} else {\n\t\t\t\tDatabaseInterface db = new DatabaseInterface();\n\t\t\t\tdb.setGroup(GroupName_field.getText(), findInvited());\n\t\t\t\tStage stage = (Stage) create_btn.getScene().getWindow();\n\t\t\t stage.close();\n\t\t\t}\n\t//-------This kicks in if a user chose a group in the dropdown menu-----\\\\\n\t\t} else {\n\t\t\tif(GroupName_field.getText().equals(\"\")){\n\t\t\t\tmakeDialog(\"Du må gi gruppen et navn.\");\n\t\t\t} else {\n\t\t\t\tDatabaseInterface db = new DatabaseInterface();\n\t\t\t\tString supergroup_name = (String) subgroup_menu.getValue();\n\t\t\t\tint SubGroupId = db.setGroup(GroupName_field.getText(), findInvited()).getGroup_id();\n\t\t\t\tint SuperGroupId = getSupergroupID(supergroup_name);\n\t\t\t\tdb.setSubGroup(SuperGroupId, SubGroupId);\n\t\t\t\tStage stage = (Stage) create_btn.getScene().getWindow();\n\t\t\t stage.close();\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void removeActor(Actor act) { ActorSet.removeElement(act); }",
"@Override\n public void onGroupJoined(final String nickname, String groupCode, String username) {\n ServerAPI.joinGroup(groupCode, username, prefs.getDeviceID(), new RequestHandler<Group>() {\n @Override\n public void callback(Group joined) {\n if (joined == null) {\n Toast.makeText(context, \"Incorrect group code! Please try again.\", Toast.LENGTH_LONG).show();\n return;\n }\n savedGroups.add(new Pair<String, Group>(nickname, joined));\n populateListView();\n saveGroups();//Save list to the SharedPreferences\n }\n });\n }",
"@Override\r\n\tpublic boolean addActor(String v)\r\n\t{\r\n\t\tActor newActor = new Actor(v);\r\n\t\t\r\n\t\tif(!graph.containsVertex(newActor))\r\n\t\t{\r\n\t\t\tgraph.addVertex(newActor);\r\n\t\t\tactorNames.add(v);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public final void rule__AstActorDeclaration__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5454:1: ( rule__AstActorDeclaration__Group__2__Impl rule__AstActorDeclaration__Group__3 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5455:2: rule__AstActorDeclaration__Group__2__Impl rule__AstActorDeclaration__Group__3\n {\n pushFollow(FOLLOW_rule__AstActorDeclaration__Group__2__Impl_in_rule__AstActorDeclaration__Group__211481);\n rule__AstActorDeclaration__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActorDeclaration__Group__3_in_rule__AstActorDeclaration__Group__211484);\n rule__AstActorDeclaration__Group__3();\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 }",
"public void add(GameEvent e);",
"public void moveActor();",
"public void agentAdded(Simulation simulation, IAgent agent) {\n }",
"public final void rule__AstActorDeclaration__Group__6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5574:1: ( rule__AstActorDeclaration__Group__6__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5575:2: rule__AstActorDeclaration__Group__6__Impl\n {\n pushFollow(FOLLOW_rule__AstActorDeclaration__Group__6__Impl_in_rule__AstActorDeclaration__Group__611726);\n rule__AstActorDeclaration__Group__6__Impl();\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 }",
"public void addActor(Actor actor) {\n\t\tObjects.requireNonNull(actor);\n\t\tmap.addActor(actor, this);\n\t}",
"public abstract void onRemoveAction();",
"public void registerGroup(DataGroupInfo group)\n {\n group.groupStream().forEach(g ->\n {\n g.activationProperty().removeListener(myDataGroupActivationListener);\n g.activationProperty().addListener(myDataGroupActivationListener);\n });\n sendActivationsToNecessaryGroups(group);\n }",
"@Override\r\n\t\tpublic void buddyGroupAction(ItemAction arg0, BuddyGroup arg1) {\n\t\t\t\r\n\t\t}",
"public final void rule__AstActor__Group_4_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7928:1: ( rule__AstActor__Group_4_1__0__Impl rule__AstActor__Group_4_1__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7929:2: rule__AstActor__Group_4_1__0__Impl rule__AstActor__Group_4_1__1\n {\n pushFollow(FOLLOW_rule__AstActor__Group_4_1__0__Impl_in_rule__AstActor__Group_4_1__016351);\n rule__AstActor__Group_4_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group_4_1__1_in_rule__AstActor__Group_4_1__016354);\n rule__AstActor__Group_4_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 }",
"public final void rule__AstActor__Group_6__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7991:1: ( rule__AstActor__Group_6__0__Impl rule__AstActor__Group_6__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7992:2: rule__AstActor__Group_6__0__Impl rule__AstActor__Group_6__1\n {\n pushFollow(FOLLOW_rule__AstActor__Group_6__0__Impl_in_rule__AstActor__Group_6__016474);\n rule__AstActor__Group_6__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group_6__1_in_rule__AstActor__Group_6__016477);\n rule__AstActor__Group_6__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 }",
"@Override\n\tpublic void onEnable() {\n\t\tsetGMEventHandler(new GroupManagerEventHandler(this));\n\t\tonEnable(false);\n\t}",
"public void onHitOther(Actor other) {\n\t\t\r\n\t}",
"public final void rule__AstActor__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7604:1: ( rule__AstActor__Group__4__Impl rule__AstActor__Group__5 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7605:2: rule__AstActor__Group__4__Impl rule__AstActor__Group__5\n {\n pushFollow(FOLLOW_rule__AstActor__Group__4__Impl_in_rule__AstActor__Group__415716);\n rule__AstActor__Group__4__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__5_in_rule__AstActor__Group__415719);\n rule__AstActor__Group__5();\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 }",
"public final void rule__AstExternalActor__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10829:1: ( rule__AstExternalActor__Group__1__Impl rule__AstExternalActor__Group__2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10830:2: rule__AstExternalActor__Group__1__Impl rule__AstExternalActor__Group__2\n {\n pushFollow(FOLLOW_rule__AstExternalActor__Group__1__Impl_in_rule__AstExternalActor__Group__122067);\n rule__AstExternalActor__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstExternalActor__Group__2_in_rule__AstExternalActor__Group__122070);\n rule__AstExternalActor__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 }",
"void memberAdded(final String id);",
"void add(R group);",
"@Override\n public void collidedWith (Participant p)\n {\n \n }",
"public void addGroupListener(ZGroupListener l) {\n fListenerList.add(ZGroupListener.class, l);\n }",
"private void onTrackDevice(RequestTrackDevice trackMsg){\n\t\tif(this.groupId.equals(trackMsg.groupId)){\n\t\t\t//If the group is correct, we proceed\n\t\t\tActorRef deviceActor = deviceActors.get(trackMsg.deviceId);\n\t\t\t\n\t\t\t//If the device actor already exists, we just forward the message\n\t\t\tif(deviceActor != null){\n\t\t\t\tdeviceActor.forward(trackMsg, getContext());\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//Otherwise, we must create a new one and forward the message\n\t\t\t\tlog.info(\"Creating device actor for {}\", trackMsg.deviceId);\n\t\t\t\tdeviceActor = getContext().actorOf(Device.props(groupId, trackMsg.deviceId),\"device-\"+trackMsg.deviceId);\n\t\t\t\t\n\t\t\t\t//The group actor must watch every device to, if they shutdown,\n\t\t\t\t//it must be removed from the group\n\t\t\t\tgetContext().watch(deviceActor);\n\t\t\t\t\n\t\t\t\t//Then, the new actor is stored on the maps\n\t\t\t\tdeviceActors.put(trackMsg.deviceId, deviceActor);\n\t\t\t\tactorsIds.put(deviceActor, trackMsg.deviceId);\n\t\t\t\tdeviceActor.forward(trackMsg, getContext());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\t//Else, a warning is shown\n\t\t\tlog.warning(\"Ignoring TrackDevice request for {}. This actor is responsible for {}.\",trackMsg.groupId, groupId);\n\t\t}\n\t}",
"public void handleAdd(ActionEvent actionEvent) {\n }",
"public final void rule__AstActor__Group__5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7633:1: ( rule__AstActor__Group__5__Impl rule__AstActor__Group__6 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7634:2: rule__AstActor__Group__5__Impl rule__AstActor__Group__6\n {\n pushFollow(FOLLOW_rule__AstActor__Group__5__Impl_in_rule__AstActor__Group__515777);\n rule__AstActor__Group__5__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group__6_in_rule__AstActor__Group__515780);\n rule__AstActor__Group__6();\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 }",
"public void addGroup(Group group) \n\t\t{\n\t\t\tif(m_groups == null)\n\t\t\t{\n\t\t\t\tm_groups = new Vector();\n\t\t\t}\n\t\t\tif(! hasGroup(group.getReference()))\n\t\t\t{\n\t\t\t\tm_groups.add(group);\n\t\t\t}\n\t\t}",
"@MessageMapping(\"/chat/rooms/{groupName}/addGroup\")\r\n public void addGroupToRoom(@DestinationVariable String groupName,@Payload ChatRoom chatRoom){\r\n chatService.saveGroup(groupName,chatRoom.getRoomName());\r\n\r\n\r\n }",
"@Override\n void onCollide(Actor other, Contact contact) {\n }",
"@Override\n public void processCollision(GameEngine gameEngine, int collisionGroup) {\n if (collisionGroup == 1 || collisionGroup == 2) {\n gameEngine.addScore(scoreGiven);\n gameEngine.removeGameObject(this);\n gameEngine.playSound(2);\n }\n }",
"public void objectAdded(NamingEvent evt) throws RemoteException;",
"public void listGroup() {\r\n List<Group> groupList = groups;\r\n EventMessage evm = new EventMessage(\r\n EventMessage.EventAction.FIND_MULTIPLE,\r\n EventMessage.EventType.OK,\r\n EventMessage.EventTarget.GROUP,\r\n groupList);\r\n notifyObservers(evm);\r\n }",
"public final void rule__AstExternalActor__Group__10() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:11100:1: ( rule__AstExternalActor__Group__10__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:11101:2: rule__AstExternalActor__Group__10__Impl\n {\n pushFollow(FOLLOW_rule__AstExternalActor__Group__10__Impl_in_rule__AstExternalActor__Group__1022620);\n rule__AstExternalActor__Group__10__Impl();\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 }",
"public void groupObsSequenceAdded(long gid, ISequenceComponent sequence) throws RemoteException {\n\n\t\tlogger.create().block(\"groupObsSequenceAdded\").info().level(1).msg(\n\t\t\t\t\"Adding addSequence request to update queue for gid: \" + gid + \", seq: \" + sequence).send();\n\n\t\tupdateList.add(new GroupSequenceUpdatedNotification(gid, sequence));\n\t}",
"public final void rule__AstActor__Group_4__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7867:1: ( rule__AstActor__Group_4__0__Impl rule__AstActor__Group_4__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7868:2: rule__AstActor__Group_4__0__Impl rule__AstActor__Group_4__1\n {\n pushFollow(FOLLOW_rule__AstActor__Group_4__0__Impl_in_rule__AstActor__Group_4__016229);\n rule__AstActor__Group_4__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group_4__1_in_rule__AstActor__Group_4__016232);\n rule__AstActor__Group_4__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 }",
"@Override\n public synchronized Host joinGroup(String groupName, Host newMember) throws RemoteException, MalformedURLException, NotBoundException, java.net.UnknownHostException {\n logger.error(\"joinGroup from \" + newMember + \" for group:\" + groupName);\n Host leader;\n if((leader = databaseHandler.getLeader(groupName)) == null) {\n setLeader(groupName, newMember);\n leader = newMember;\n }\n\n // Use leaders addMember method.\n logger.error(\"before addmember\");\n NameServiceClient nameServiceClient = null;\n try {\n nameServiceClient = (NameServiceClient)Naming.lookup(\"rmi://\" + newMember + \"/\" + NameServiceClient.class.getSimpleName());\n nameServiceClient.setLeader(groupName, leader);\n } catch (NotBoundException | MalformedURLException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try {\n logger.error(\"sending addMember for: \" + newMember + \" to: \" + leader + \" for group: \" + groupName);\n sendAddMember(groupName, leader, newMember);\n } catch(NotBoundException | RemoteException | MalformedURLException | UnknownHostException e) {\n if (nameServiceClient != null) {\n nameServiceClient.setLeader(groupName, newMember);\n databaseHandler.updateMemberConnected(groupName, leader, false);\n setLeader(groupName, newMember);\n logger.error(\"Leader not reachable, new leader - \" + newMember);\n }\n }\n\n logger.error(\"after addMember\");\n\n return leader;\n }",
"public final void rule__AstActor__Group_8__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8115:1: ( rule__AstActor__Group_8__0__Impl rule__AstActor__Group_8__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:8116:2: rule__AstActor__Group_8__0__Impl rule__AstActor__Group_8__1\n {\n pushFollow(FOLLOW_rule__AstActor__Group_8__0__Impl_in_rule__AstActor__Group_8__016719);\n rule__AstActor__Group_8__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActor__Group_8__1_in_rule__AstActor__Group_8__016722);\n rule__AstActor__Group_8__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 }",
"public final void rule__AstExternalActor__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10810:1: ( ( () ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10811:1: ( () )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10811:1: ( () )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10812:1: ()\n {\n before(grammarAccess.getAstExternalActorAccess().getAstExternalActorAction_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10813:1: ()\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10815:1: \n {\n }\n\n after(grammarAccess.getAstExternalActorAccess().getAstExternalActorAction_0()); \n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void addGroup(String name) {\n if(isGroup(name) == false) {\n /* Create a new groupchatpanel */\n GroupChatPanel gcp = new GroupChatPanel(guicontrol, concontrol, name);\n \n /* Add the group to the hashmap */\n grouptabs.put(name, gcp);\n \n /* Add the group to the JTabbedPane */\n tbMain.addTab(name, gcp);\n \n /* Now focus on the tab */\n tbMain.setSelectedComponent(gcp);\n \n /* Now focus on the TextField */\n gcp.tfSendPrep.requestFocusInWindow();\n }\n }",
"private void sendAddMember(String groupName, Host leader, Host newMember) throws RemoteException, NotBoundException, MalformedURLException, UnknownHostException {\n NameServiceClient stub = (NameServiceClient) Naming.lookup(\"rmi://\" + leader + \"/\" + NameServiceClient.class.getSimpleName());\n stub.addMember(groupName, newMember);\n }",
"private void onAddRole() {\n\t\troleProxy.addRoleToUser(user, selectedRole);\n\t}",
"private void handleMembershipEvent(GroupMembershipEvent event) {\n post(new ClusterMembershipEvent(ClusterMembershipEvent.Type.valueOf(event.type().name()), event.member()));\n }",
"public void act()\n {\n addBox();\n }",
"public void addActorBefore(Actor actorBefore, Actor actor) {\n internalGroup.addActorBefore(actorBefore.internalActor, actor.internalActor);\n actor.setParent(this);\n actor.setStage(getStage());\n }",
"public final void rule__AstExternalActor__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10860:1: ( rule__AstExternalActor__Group__2__Impl rule__AstExternalActor__Group__3 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10861:2: rule__AstExternalActor__Group__2__Impl rule__AstExternalActor__Group__3\n {\n pushFollow(FOLLOW_rule__AstExternalActor__Group__2__Impl_in_rule__AstExternalActor__Group__222129);\n rule__AstExternalActor__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstExternalActor__Group__3_in_rule__AstExternalActor__Group__222132);\n rule__AstExternalActor__Group__3();\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 }",
"void onUserAdded();",
"public final void rule__AstActorDeclaration__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5394:1: ( rule__AstActorDeclaration__Group__0__Impl rule__AstActorDeclaration__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5395:2: rule__AstActorDeclaration__Group__0__Impl rule__AstActorDeclaration__Group__1\n {\n pushFollow(FOLLOW_rule__AstActorDeclaration__Group__0__Impl_in_rule__AstActorDeclaration__Group__011359);\n rule__AstActorDeclaration__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstActorDeclaration__Group__1_in_rule__AstActorDeclaration__Group__011362);\n rule__AstActorDeclaration__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 }"
] |
[
"0.6317587",
"0.6308894",
"0.6290111",
"0.6261664",
"0.59920895",
"0.5982826",
"0.5969766",
"0.59428906",
"0.5913767",
"0.5826596",
"0.57844204",
"0.5721258",
"0.57094824",
"0.5678682",
"0.5663752",
"0.5660363",
"0.5649475",
"0.56372",
"0.56201434",
"0.5612692",
"0.5537354",
"0.5531555",
"0.5528283",
"0.5517932",
"0.5495036",
"0.5483948",
"0.5477553",
"0.5462118",
"0.5446913",
"0.5440592",
"0.5430021",
"0.5418302",
"0.54131633",
"0.53877765",
"0.5384881",
"0.5383548",
"0.5376834",
"0.5374103",
"0.5373351",
"0.5369967",
"0.5369874",
"0.5369201",
"0.5343432",
"0.53418636",
"0.53401476",
"0.53382677",
"0.5332514",
"0.5327732",
"0.53273565",
"0.531632",
"0.5314515",
"0.53031623",
"0.5302195",
"0.52996427",
"0.52886254",
"0.52860487",
"0.52718896",
"0.5270462",
"0.5268239",
"0.52657527",
"0.52606124",
"0.52578557",
"0.52568024",
"0.5256569",
"0.5237735",
"0.52331626",
"0.5215322",
"0.52150255",
"0.52134734",
"0.5207339",
"0.5206584",
"0.5202678",
"0.5200113",
"0.5195026",
"0.51949334",
"0.51876986",
"0.5174315",
"0.517173",
"0.5171033",
"0.51672006",
"0.5166854",
"0.5165183",
"0.5163721",
"0.5154882",
"0.51524025",
"0.515134",
"0.5149707",
"0.5149253",
"0.51388925",
"0.5138041",
"0.51377255",
"0.5130241",
"0.51254344",
"0.51216865",
"0.51056147",
"0.51053065",
"0.5100226",
"0.5090082",
"0.5086418",
"0.5085873",
"0.50847954"
] |
0.0
|
-1
|
Add x and y to current position
|
public void moveBy(float x, float y) {
internalGroup.moveBy(x, y);
dataTrait.x = internalGroup.getX();
dataTrait.y = internalGroup.getY();
resetSprite();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void updatePosition() {\n \t\r\n \tx += dx;\r\n \ty += dy;\r\n \t\r\n\t}",
"protected void addPosition(float x, float y) {\n\t\tif (Double.isNaN(x) || Double.isNaN(y)) {\n\t\t\tSystem.err.println(LocalizedString.getString(getClass(), \"INVALID_POSITION\", getName()));\n\t\t} else {\n\t\t\tthis.position.add(x, y);\n\t\t}\n\t}",
"public void updatePosition() {\n\n this.x = this.temp_x;\n this.y = this.temp_y;\n this.ax = 0;\n this.ay = 0;\n\t\tthis.axplusone = 0;\n this.ayplusone = 0;\n \n }",
"public void addPoint(int x, int y) {\n\t\tshape.addPoint(x, y);\n\t}",
"void setPos(float x, float y);",
"public void setPosition(float x, float y);",
"public final void addPoint(final int x, final int y) {\n points.add(new Position(x, y));\n }",
"public void updatePosition(float x, float y){\n rect = new Rectangle2D.Float(x,y,width,height);\n this.x = x;\n this.y = y;\n }",
"void moveToPoint(float x, float y) {\n _x = x;\n _y = y;\n }",
"void setPosition(double xPos, double yPos);",
"public void move(){\n x+=xDirection;\n y+=yDirection;\n }",
"public void movePositionBy(int x, int y) {\n\t\tthis.setX(getX() + x);\r\n\t\tthis.setY(getY() + y);\r\n\t}",
"public void changePos(double xP, double yP){ \n this.xCoor += xP;\n this.yCoor += yP;\n \n }",
"public void moveRelative(int x, int y) {\n this.x = this.x + x;\n this.y = this.y + y;\n }",
"public Point2D addPoint(double x, double y);",
"public void moveTo(int newX, int newY) {\n xPosition = newX-radius;\n yPosition = newY-radius;\n }",
"private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }",
"public void Move(int x, int y)\r\n\t{\r\n\t\tP.x+=x;\r\n\t\tP.y+=y;\r\n\t}",
"private void setPosition(float x, float y) {\n this.x = x;\r\n this.y = y;\r\n group();\r\n }",
"public void addPoint(double x, double y) {\n xList.add(x);\n yList.add(y);\n }",
"public void setLocation(float x, float y);",
"public void mou(){\n\n this.setY(getY() + getVelocitatY());\n this.setX(getX() + getVelocitatX());\n\n }",
"@Override\n public void move() {\n this.point.x += vector.x * getCurrentSpeed();\n this.point.y += vector.y * getCurrentSpeed();\n }",
"public void addPoint( final double x, final double y ){\n points.add(new Point2d(x,y));\n\n dirty = true;\n }",
"@Override\n public void move(double xa, double ya) {\n if (alive) {\n y += ya;\n x += xa;\n }\n }",
"public void add(float x, float y) {\n\t\tpoints.add(new GPoint(x, y));\n\t}",
"public void updatePosition(int xPos, int yPos) {\n this.pos.x = xPos;\n this.pos.y = yPos;\n }",
"@Override\n public void setPosition(float x, float y) {\n }",
"public void setPosition(double x, double y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}",
"protected abstract void moveTo(final float x, final float y);",
"public void addPoint(float x, float y) {\n Vector2 point = new Vector2(x, y);\n points.add(point);\n }",
"@Override\n public void move() {\n _location.x++;\n }",
"public void move(int x, int y) {\n \tint xOld = this.x;\n \tint yOld = this.y;\n \tthis.x = x;\n \tthis.y = y;\n \tSystem.out.print (\"point moved from (\" + xOld + \",\" + yOld + \") to (\" + this.x + \",\" + this.y + \")\");\n }",
"public void updatePosition(int y, int x){\r\n\t\tposition = owner.getPosition().add(new Vector(x*SIZE, y*SIZE));\r\n\t\tcenter = this.position.add(new Vector(SIZE/2.,SIZE/2.));\r\n\t\tnode = new Node(center, y*owner.C + x);\r\n\t}",
"Point add (double x, double y);",
"public void updateXLoc();",
"public void setPosition(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"posXY(int x, int y){\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"public void add(double x, double y) {\n\t\tadd(new GPoint(x, y));\n\t}",
"void touch_move_draw(float event_x, float event_y) {\n path.lineTo(event_x,event_y);\n cur_x = event_x;\n cur_y = event_y;\n\n // Add point to list\n addPoint();\n }",
"public void setPosition(float x, float y) {\n this.x = x;\n this.y = y;\n }",
"protected void moveTo (int x, int y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"public void addLocation(int x, int y){\n locations[loc][0] = x;\n locations[loc][1] = y;\n loc++;\n }",
"public void addLocX (int adder)\n {\n locX += adder;\n }",
"public void setPosition(double x, double y){\r\n this.x = (float)x;\r\n this.y = (float)y;\r\n changed();\r\n }",
"public void update(int x,int y);",
"public void moveTo(int x, int y) {\n\t\tx2 = x;\n\t\ty2 = y;\n\t}",
"public void add(int index, float x, float y) {\n\t\tpoints.add(index, new GPoint(x, y));\n\t}",
"public void addToCurrY(int y) {\n currY += y;\n }",
"public void addToCurrX(int x) {\n currX += x;\n }",
"public void translate(int x, int y) {\n\t\tthis.x += x;\n\t\tthis.y += y;\n\t}",
"public void setPosition(int x, int y) {\r\n\t\tmyX = x;\r\n\t\tmyY = y;\r\n\t}",
"void move(int dx, int dy) {\n position = position.addX(dx);\n position = position.addY(dy);\n }",
"public void addPoint() {\n points += 1;\n }",
"public abstract void moveTo(double x, double y);",
"public AnimatorType position(float x, float y)\n {\n return position(new PointF(x, y));\n }",
"public void setPosition(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"void setLocation(int x, int y);",
"public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }",
"@Override\n\tpublic void setLocation(double x, double y) {\n\t\tdouble oldX = getX();\n\t\tdouble oldY = getY();\n\t\tdouble dx = x - oldX;\n\t\tdouble dy = y - oldY;\n\t\tfor (GPoint point : this) {\n\t\t\tpoint.translate(dx, dy);\n\t\t}\n\t\trepaint();\n\t}",
"public void move(int x, int y)\r\n\t{\r\n\t\ttheX = x;\r\n\t\ttheY = y;\r\n\t}",
"public void setPosition(int x, int y) {\n this.coordX = x;\n this.coordY = y;\n }",
"@Override\n\tpublic void setPos(int x, int y) {\n\t\txPos = x;\n\t\tyPos = y;\n\t}",
"@Override\r\n\tpublic void moveTo(float x, float y) {\n\t\t\r\n\t}",
"public void move(int x, int y){\n universe.erase(this);\n this.yPosition = y;\n this.xPosition = x;\n universe.draw(this);\n }",
"public Position add(Position p) {\n return new Position(r + p.getR(), c + p.getC());\n }",
"public void addPoints(int point){\n\t\tthis.points += point;\n\t}",
"public Point add(Point point)\n {\n return new Point(this.x + point.x, this.y + point.y);\n }",
"public void moveTo(double x, double y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}",
"public void setPosition(double x, double y)\n {\n mPosition = new Point2D.Double(x, y);\n }",
"public void setPosition(Point newPosition);",
"public void move() {\r\n posX += movementX;\r\n posY += movementY;\r\n anchorX += movementX;\r\n anchorY += movementY;\r\n }",
"public void add(double amount) {\n x += amount;\n y += amount;\n }",
"public void addPoint(double x, double y)\t{\n\t\tdouble[][] pointsCopy = new double[points.length][3];\n\t\tfor (int i = 0; i < points.length; i++)\t{\n\t\t\tpointsCopy[i][0] = points[i][0];\n\t\t\tpointsCopy[i][1] = points[i][1];\n\t\t\tpointsCopy[i][2] = points[i][2];\n\t\t}\n\t\tpoints = new double[points.length+1][3];\n\t\tint stopon = 0;\n\t\tfor (int i = 0; i < pointsCopy.length; i++)\t{\n\t\t\tif (x < pointsCopy[i][0]) break;\n\t\t\tstopon = i + 1;\n\t\t\tpoints[i][0] = pointsCopy[i][0];\n\t\t\tpoints[i][1] = pointsCopy[i][1];\n\t\t\tpoints[i][2] = pointsCopy[i][2];\n\t\t}\n\t\tfor (int i = stopon; i < pointsCopy.length; i++)\t{\n\t\t\tpoints[i+1][0] = pointsCopy[i][0];\n\t\t\tpoints[i+1][1] = pointsCopy[i][1];\n\t\t\tpoints[i+1][2] = pointsCopy[i][2];\n\t\t}\n\t\tpoints[stopon][0] = x;\n\t\tpoints[stopon][1] = y;\n\t\tpoints[stopon][2] = lineon;\n\t\tif (x > maxX) maxX = x;\n\t\tif (y > maxY)\tmaxY = y;\n\t\tif (maxX > XEnd) XEnd = maxX;\n\t\tif (maxY > YEnd) YEnd = maxY;\n\t\tif (autoUpdate) repaint();\n\t}",
"public void update(){\n\t\tx+=xspeed; \n\t\ty+=yspeed;\t\n\t}",
"public void updateYLoc();",
"public void moveBy(int dx, int dy){\n x += dx;\n y += dy;\n }",
"public void move() {\n\t\tx+= -1;\n\t\tif (x < 0) {\n\t\t\tx = (processing.width - 1);\n\t\t}\n\t\ty+= 1;\n\t\tif (y > processing.height-1)\n\t\t\ty=0;\n\t}",
"@Override\n public Position setPosition(double x, double y) {\n this.x = x;\n this.y = y;\n\n return new Position(x, y);\n }",
"@Override\n\tpublic void moveTo(int x, int y) {\n\t\tstartPoint.moveTo(x,y);\n\t\tendPoint.moveTo(x,y);\n\t}",
"public Vector2f add (float x, float y, Vector2f result)\n {\n return result.set(this.x + x, this.y + y);\n }",
"@Deprecated\n\tpublic void pushPosition(float x, float y) {\n\t\tpositions.add(x);\n\t\tpositions.add(y);\n\t}",
"public void goToXY(float x, float y) {\n float oldX, oldY;\n oldX = pos.x;\n oldY = pos.y; \n pos.x = x; \n pos.y = y;\n if (penDown) {\n pen.beginDraw();\n pen.line(oldX,oldY,pos.x,pos.y);\n pen.endDraw();\n }\n }",
"public void move(int dx, int dy) {\n this.xPosition += dx;\n this.yPosition += dy;\n }",
"public void setPosition(int x, int y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"public void setPosicion(double x, double y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}",
"public void setPostion(int newXPosition, int newYPosition) {\n xPosition = newXPosition;\n yPosition = newYPosition;\n }",
"public final void setPosition(float x, float y) {\n\t\ttranslate(x - this.x(), y - this.y());\n\t}",
"public void moveBallTo(int x, int y)\n {\n currentBallX = x;\n currentBallY = y;\n }",
"public void addLocY (int adder)\n {\n locY += adder;\n }",
"public void move(){\n\t\t\tbx += (int)movex;\n\t\t\tby += (int)movey;\n\t\t\tthis.setBounds((int)bx,(int)by,10,10);\n\n\t\t\t\n\t\t}",
"public void addPoint(Point p) {\r\n line.add(p);\r\n }",
"public void setPosition(double x, double y) {\n\t\tsetX(x);\n\t\tsetY(y);\n\t}",
"Point getPosition();",
"Point getPosition();",
"protected void moveTo(int x, int y) {\n\n if (x < 0 || x > 2)\n throw new IllegalArgumentException(\"x is out of bound\");\n\n if (y < 0 || y > 3)\n throw new IllegalArgumentException(\"y is out of bound\");\n\n this.xPosition = x;\n this.yPosition = y;\n }",
"public void moveTo(Point point){\n updateUndoBuffers(new LinkedList<>());\n xPos = point.getMyX()+myGrid.getWidth()/ HALF;\n yPos = myGrid.getHeight()/ HALF-point.getMyY();\n }",
"public void move(int x, int y) {\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"public void move()\n {\n x = x + unitVector.getValue(1)*speed;\n y = y + unitVector.getValue(2)*speed;\n }",
"public void setPosition(double x, double y) {\n // set the location\n setLocation((int)Math.round(x), (int)Math.round(y));\n \n // set the position variables\n position.x = x;\n position.y = y;\n }"
] |
[
"0.73593664",
"0.7047249",
"0.7017441",
"0.69751185",
"0.6941119",
"0.69335866",
"0.6918111",
"0.69178736",
"0.68976116",
"0.6896681",
"0.6861334",
"0.6823411",
"0.68187875",
"0.6812261",
"0.67890835",
"0.67384714",
"0.67339927",
"0.6716063",
"0.66916656",
"0.66877747",
"0.66871834",
"0.66864014",
"0.6655719",
"0.66398954",
"0.66378444",
"0.66026866",
"0.65732205",
"0.65669674",
"0.65615654",
"0.65533614",
"0.65531975",
"0.6552291",
"0.65508765",
"0.65284425",
"0.6518867",
"0.65171075",
"0.64950854",
"0.649342",
"0.648911",
"0.64856595",
"0.6472396",
"0.64642984",
"0.64495844",
"0.6448336",
"0.64435947",
"0.6422476",
"0.6421152",
"0.64104927",
"0.6401838",
"0.6372444",
"0.6369537",
"0.6367898",
"0.6356133",
"0.63542354",
"0.6350217",
"0.634757",
"0.6342384",
"0.6332249",
"0.6329574",
"0.63180846",
"0.6305",
"0.6295474",
"0.62795186",
"0.6278942",
"0.627198",
"0.6270674",
"0.6267313",
"0.6266865",
"0.62575096",
"0.6255635",
"0.62544256",
"0.62522024",
"0.6247192",
"0.6245564",
"0.6240745",
"0.6229616",
"0.62288916",
"0.62234",
"0.6195677",
"0.6193664",
"0.61893123",
"0.6185245",
"0.6184356",
"0.6182323",
"0.61784196",
"0.61775327",
"0.61764276",
"0.6172266",
"0.61717635",
"0.61627865",
"0.61512715",
"0.6149791",
"0.61468136",
"0.6144963",
"0.61442876",
"0.61442876",
"0.614408",
"0.6137427",
"0.61366427",
"0.61336064",
"0.6132049"
] |
0.0
|
-1
|
Get the X position of the actor (bottom edge of actor)
|
public float getX() {
return internalGroup.getX();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public float getX()\n {\n return getBounds().left + positionAnchor.x;\n }",
"public int getX() { return position.x; }",
"double getXPosition();",
"public final int getPositionX() {\r\n return (int) position.x();\r\n }",
"public double getUserFriendlyXPos(){\n return xPos - myGrid.getWidth()/ HALF;\n }",
"public float getPositionX() {return this.position.getX();}",
"double getPositionX();",
"double getPositionX();",
"double getPositionX();",
"public final float getPositionX() {\r\n\t\treturn getState(false).getPositionX();\r\n\t}",
"public int getX() {\r\n\t\t\r\n\t\treturn topX;\r\n\t}",
"public int getXPos();",
"public int getX() {\n return (int) center.getX();\n }",
"public int getX() {\r\n return (int) center.getX();\r\n }",
"public final int getX()\n\t{\n\t\treturn pos.x;\n\t}",
"public int getX() {\n return (int) this.center.getX();\n }",
"public int getXPosition() {\n\t\treturn this.position.x;\n\t}",
"public int getX() {\r\n return xpos;\r\n }",
"public int getX() {\n return pos_x;\n }",
"public int getAbsoluteX() {\r\n return getAbsoluteLeft() - getParent().getAbsoluteLeft();\r\n }",
"public float getX() {\n return pos.x;\n }",
"public int getPositionX(){\n\t\treturn positionx;\n\t}",
"public int getPositionX() {\r\n\t\treturn positionX;\r\n\t}",
"public float getX(){\n return hitBox.left;\n }",
"public int getXPosition() {\n return this.xPosition;\n }",
"public int getXPosition()\n {\n return xPosition;\n }",
"public int getXPosition()\n {\n return xPosition;\n }",
"public final int getAbsoluteX() {\n assert (parent != null);\n if (parent == this) {\n return x;\n }\n if ((parent instanceof TWindow)\n && !(parent instanceof TMenu)\n && !(parent instanceof TDesktop)\n ) {\n // Widgets on a TWindow have (0,0) as their top-left, but this is\n // actually the TWindow's (1,1).\n return parent.getAbsoluteX() + x + 1;\n }\n return parent.getAbsoluteX() + x;\n }",
"public int getPositionX() {\n return positionX;\n }",
"public int getXPosition() {\n return xPosition;\n }",
"public int getX() {\n return (int) xPos;\n }",
"public int getX() {\n return positionX;\n }",
"public double getPositionX() {\n return positionX_;\n }",
"public double getPositionX() {\n return positionX_;\n }",
"public double getPositionX() {\n return positionX_;\n }",
"public int getXPosition(){\n\t\treturn xPosition;\n\t}",
"public double getPositionX() {\n return positionX_;\n }",
"public double getPositionX() {\n return positionX_;\n }",
"public double getPositionX() {\n return positionX_;\n }",
"private int get_x() {\n return center_x;\n }",
"public double getX() {\n return position.getX();\n }",
"public int getX()\r\n {\r\n \treturn xPos;\r\n }",
"public int getX(){ return xPosition; }",
"public int getX() {\n return posX;\n }",
"@Override\n\tpublic int getPosX() {\n\t\treturn posX;\n\t}",
"public double getPositionX() {\n\t\treturn this.tilePositionX;\n\t}",
"public int getPos_x(){\n\t\treturn pos_x;\n\t}",
"public int getxPosition() {\n\t\treturn xPosition;\n\t}",
"public int xPos() {\r\n\t\treturn this.xPos;\r\n\t}",
"public int xPos() {\r\n\t\treturn this.xPos;\r\n\t}",
"public double getX() {\n\t\tRectangle2D bounds = _parentFigure.getBounds();\n\t\tdouble x = bounds.getX() + (_xt * bounds.getWidth());\n\t\treturn x;\n\t}",
"public int getX() {\n synchronized (this.xLock) {\n return (int) this.movementComposer.getXPosition();\n }\n }",
"public int getX() {\r\n\t\treturn xcoord;\r\n\t}",
"public int getxPos() {\n return xPos;\n }",
"public float getAttachLocationX() {\n\t\treturn attachLocationX;\n\t}",
"public int getXPos() {\n\t\treturn xPos;\n\t}",
"public int getxPos() \n\t{\n\t\treturn xPos;\n\t}",
"public double getXPosition()\n\t{\n\t\treturn xPosition;\n\t}",
"public int getSpawnX() \n\t{\n\t\treturn spawnX;\n\t}",
"public double getXPos() {\n\t\treturn this.position[0];\n\t}",
"String getPosX();",
"@Override\n public double getPosX() {\n return this.pos[0];\n }",
"@Override\n\tpublic double getXLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn x+side;\n\t}",
"public float getxPosition() {\n return xPosition;\n }",
"int getX() {\n return xPos;\n }",
"public int get_X_Coordinate()\n {\n return currentBallX;\n }",
"public int getxPos() {\n\t\treturn xPos;\n\t}",
"public int getPosX() {\r\n\t\treturn posX;\r\n\t}",
"public int getX() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.x();\n }",
"public int getX() {\n\t\t\n\t\treturn xPosition;\t\t// Gets the x integer\n\t}",
"public int getX() {\n return xCoord;\n }",
"public int getPosX() {\n\t\treturn posX;\n\t}",
"public int getX() {\n return this.coordinate.x;\n }",
"public int getPosX() {\n return posX;\n }",
"public static int getEndXCoordinate(){\n\t\tint x = getThymioEndField_X(); \n\t\t\n\t\tif(x == 0){\n\t\t\n \t}else{\n \t x *= FIELD_HEIGHT;\n \t}\n\n\t\treturn x;\n\t}",
"private double getPosX() {\n\t\treturn this.posX.get();\n\t}",
"public int getXPoint() {\r\n return this.x;\r\n }",
"public float getX() { return xCoordinate;}",
"public int getX()\n\t{\n\t\treturn m_nPosX;\n\t}",
"public int getX(){\n\t\treturn this.x_location;\n\t}",
"public int getX()\r\n {\r\n return xCoord;\r\n }",
"public int getXLeftUpper() {\n return xLeftUpper;\n }",
"public double getXPos(){\n return xPos;\n }",
"@Override\n\tpublic double getMaxX() {\n\t\treturn this.getPosition().getX();\n\t}",
"public int getXpos() {\n\t\treturn xpos;\n\t}",
"public int getX(){\n return this.position[0];\n }",
"public int getX()\n\t{\n\t\treturn mX;\n\t}",
"public int getSpawnX()\n {\n return spawnX;\n }",
"public int x() {\r\n\t\treturn xCoord;\r\n\t}",
"public int getCoordX() \r\n {\r\n \treturn this.coordX;\r\n }",
"public final int getCursorAbsoluteX() {\n return getAbsoluteX() + cursorX;\n }",
"public int getXOffset();",
"public int getXPos() {\r\n\t\treturn this.cameraX;\r\n\t}",
"public int getPosX(){\n\t\treturn this.posX; \n\t}",
"public float getLowerLeftX()\n {\n return ((COSNumber)rectArray.get(0)).floatValue();\n }",
"public float getUpperRightX()\n {\n return ((COSNumber)rectArray.get(2)).floatValue();\n }",
"public float getPosX() {\r\n\t\treturn posX;\r\n\t}",
"public float getPosX() {\n return posX;\n }",
"public int getX()\r\n {\r\n return xLoc;\r\n }",
"public int getLocationX() {\r\n\t\treturn x;\r\n\t}",
"public int getLeftX() {\n\t\treturn 0;\r\n\t}"
] |
[
"0.7266663",
"0.7251947",
"0.7242982",
"0.72421634",
"0.72036564",
"0.71785945",
"0.71549034",
"0.71549034",
"0.71549034",
"0.70938337",
"0.7080892",
"0.70431423",
"0.70361876",
"0.7014012",
"0.7012623",
"0.7003644",
"0.6997535",
"0.6987913",
"0.69875926",
"0.69849473",
"0.69831824",
"0.6968236",
"0.69607675",
"0.69593513",
"0.6945834",
"0.69432247",
"0.69432247",
"0.69208944",
"0.69199336",
"0.6918855",
"0.6917094",
"0.69116724",
"0.69069624",
"0.69069624",
"0.6906897",
"0.69068676",
"0.6892453",
"0.6891259",
"0.6891259",
"0.6883929",
"0.68501794",
"0.68347216",
"0.6815735",
"0.6814327",
"0.679023",
"0.67821157",
"0.6760661",
"0.67513454",
"0.6740074",
"0.6740074",
"0.6739902",
"0.6731695",
"0.67259645",
"0.6725103",
"0.67205703",
"0.6719939",
"0.6713226",
"0.6711499",
"0.6706468",
"0.6704416",
"0.6698579",
"0.66975224",
"0.66926074",
"0.6686855",
"0.6678889",
"0.66766113",
"0.66701216",
"0.6669419",
"0.66617465",
"0.66614425",
"0.66410404",
"0.6640274",
"0.6632172",
"0.6625577",
"0.66230506",
"0.66177696",
"0.66104805",
"0.6606561",
"0.6604057",
"0.6603182",
"0.6594347",
"0.6589649",
"0.6578288",
"0.6564312",
"0.6546087",
"0.6541918",
"0.654047",
"0.65283406",
"0.6519568",
"0.65095806",
"0.6508531",
"0.6507273",
"0.6499381",
"0.6498001",
"0.64967024",
"0.6496404",
"0.64934576",
"0.6474445",
"0.6468867",
"0.6460915",
"0.64504826"
] |
0.0
|
-1
|
Get the Y position of the actor (bottom edge of actor)
|
public float getY() {
return internalGroup.getY();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public float getY(){\n return hitBox.top;\n }",
"public float getY()\n {\n return getBounds().top + positionAnchor.y;\n }",
"public double getUserFriendlyYPos(){\n return myGrid.getHeight()/ HALF-yPos;\n }",
"public int getYBottom() {\n return getYTop() + getYWidth();\n }",
"public int yPos() {\n\t\treturn Engine.scaleY(y);\n\t}",
"double getPositionY();",
"double getPositionY();",
"double getPositionY();",
"public int getBottomY() {\n\t\treturn 0;\r\n\t}",
"public int getTopY() {\n\t\treturn 0;\r\n\t}",
"public final int getPositionY() {\r\n return (int) position.y();\r\n }",
"public final float getPositionY() {\r\n\t\treturn getState(false).getPositionY();\r\n\t}",
"double getYPosition();",
"public int getAbsoluteY() {\r\n return getAbsoluteTop() - getParent().getAbsoluteTop();\r\n }",
"public int getBottom(){\n\t\treturn platformHitbox.y+height;\n\t}",
"public int getYPos();",
"@Override\n public double getPosY() {\n return this.pos[1];\n }",
"public float getUpperRightY()\n {\n return ((COSNumber)rectArray.get(3)).floatValue();\n }",
"public final int getY()\n\t{\n\t\treturn pos.y;\n\t}",
"public int getY() {\n return pos_y;\n }",
"public int getPositionY(){\n\t\treturn positiony;\n\t}",
"public float getY() {\n return pos.y;\n }",
"public int getY() {\n return positionY;\n }",
"public int getPositionY() {\r\n\t\treturn positionY;\r\n\t}",
"public int getY(){ return yPosition; }",
"public int getY() { return loc.y; }",
"public double getPositionY() {\n\t\treturn this.tilePositionY;\n\t}",
"public int getY() {\n return posY;\n }",
"public int getY() {\n return (int) yPos;\n }",
"public int getPos_y(){\n\t\treturn pos_y;\n\t}",
"public int getY() {\r\n\t\t\r\n\t\treturn topY;\r\n\t}",
"public int getPositionY() {\n return positionY;\n }",
"public double getPositionY() {\n return positionY_;\n }",
"public double getPositionY() {\n return positionY_;\n }",
"public double getPositionY() {\n return positionY_;\n }",
"public int getyPos() {\n return yPos;\n }",
"public double getPositionY() {\n return positionY_;\n }",
"public double getPositionY() {\n return positionY_;\n }",
"public double getPositionY() {\n return positionY_;\n }",
"public int get_Y_Coordinate()\n {\n return currentBallY;\n }",
"public int getyPosition() {\n\t\treturn yPosition;\n\t}",
"public int getY(){\n return this.position[1];\n }",
"public int getY() {\n return (int) this.center.getY();\n }",
"public int getyPos() \n\t{\n\t\treturn yPos;\n\t}",
"public static int getEndYCoordinate(){\n\tint y = getThymioEndField_Y(); \n\t\t\n\t\tif(y == 0){\n\t\t\n \t}else{\n \t y *= FIELD_HEIGHT;\n \t}\n\t\treturn y;\n\t}",
"public int getY() {\r\n return ypos;\r\n }",
"public int getYPosition() {\n return this.yPosition;\n }",
"String getPosY();",
"public int getYOffset();",
"public int yPos() {\r\n\t\treturn this.yPos;\r\n\t}",
"public int yPos() {\r\n\t\treturn this.yPos;\r\n\t}",
"public double getY() {\n return position.getY();\n }",
"public int getyPos() {\n\t\treturn yPos;\n\t}",
"public float getyPosition() {\n return yPosition;\n }",
"public int getYPosition() {\n\t\treturn this.position.y;\n\t}",
"public int getBottom() {\n return position[0] + (size - 1) / 2;\n }",
"public double getYPos() {\n\t\treturn this.position[1];\n\t}",
"public int getY() {return y;}",
"private double getPosY() {\n\t\treturn this.posX.get();\n\t}",
"public int getYPosition()\n {\n return yPosition;\n }",
"public int getYPosition()\n {\n return yPosition;\n }",
"int getY() {\n return yPos;\n }",
"public int getY() { return y; }",
"public int getY() { return y; }",
"public int getY() {\n return (int) center.getY();\n }",
"public int getTop(){\n\t\treturn platformHitbox.y;\n\t}",
"int getYPos() {\n if (new Random().nextBoolean()) {\n return CollectTheFruit.height - 35;\n } \n else {\n return CollectTheFruit.height - 200;\n }\n }",
"int getBoundsY();",
"public float getAttachLocationY() {\n\t\treturn attachLocationY;\n\t}",
"public double getBottom() {\n return this.yD;\n }",
"public int getY()\r\n {\r\n return yLoc;\r\n }",
"public int getYPosition(){\n\t\treturn yPosition;\n\t}",
"public final int getAbsoluteY() {\n assert (parent != null);\n if (parent == this) {\n return y;\n }\n if ((parent instanceof TWindow)\n && !(parent instanceof TMenu)\n && !(parent instanceof TDesktop)\n ) {\n // Widgets on a TWindow have (0,0) as their top-left, but this is\n // actually the TWindow's (1,1).\n return parent.getAbsoluteY() + y + 1;\n }\n return parent.getAbsoluteY() + y;\n }",
"public int getYLeftUpper() {\n return yLeftUpper;\n }",
"public double Bottom(){\n\t\tdouble fary = y + sizeY - 1;\n\t\treturn (fary);\n\t}",
"public int getPosY() {\r\n\t\treturn posY;\r\n\t}",
"public int getYPosition() {\n return yPosition;\n }",
"public int getPosY() {\n return posY;\n }",
"public int getYTop() {\n return yTop;\n }",
"public int getY() { return y;}",
"public int getY() { return y;}",
"public int getY() {\r\n return (int) center.getY();\r\n }",
"public Integer getYOffset() {\n\t\tdouble frameHeight = this.pixy.getFrameHeight();\n\t\tdouble blockY = this.getY();\n\n\t\treturn (int) (frameHeight / 2 + blockY);\n\t}",
"Point getTopXY();",
"public float getPosY(){return py;}",
"public int getPosY() {\n\t\treturn posY;\n\t}",
"public int getSpawnY() {\n\t\treturn spawnY;\n\t}",
"public double getyOffset() {\n\n return currentYOffset + yOffset;\n }",
"public double getY() { return _height<0? _y + _height : _y; }",
"public double getYPos(){\n return yPos;\n }",
"public int y() {\r\n\t\treturn yCoord;\r\n\t}",
"public int getY() {\n synchronized (this.yLock) {\n return (int) this.movementComposer.getYPosition();\n }\n }",
"public int getLocationY() {\r\n\t\treturn y;\r\n\t}",
"public int getCoordY() \r\n {\r\n \treturn this.coordY;\r\n }",
"public int getYPos() {\r\n\t\treturn this.cameraY;\r\n\t}",
"public double getY() {\n\t\tRectangle2D bounds = _parentFigure.getBounds();\n\t\tdouble y = bounds.getY() + (_yt * bounds.getHeight());\n\t\treturn y;\n\t}",
"public int getSpawnY()\n {\n return spawnY;\n }",
"public double getYPosition()\n\t{\n\t\treturn yPosition;\n\t}",
"public int getYPos() {\n\t\treturn yPos;\n\t}",
"public double monsterPos(){\r\n\r\n\t\treturn monster.getY();\r\n\r\n\t}",
"public int getY() {\r\n\t\treturn ycoord;\r\n\t}"
] |
[
"0.7459285",
"0.74539775",
"0.742115",
"0.7389901",
"0.73394704",
"0.7322105",
"0.7322105",
"0.7322105",
"0.72665834",
"0.72253066",
"0.71844566",
"0.7160701",
"0.71539915",
"0.7150153",
"0.7101531",
"0.71007925",
"0.70934963",
"0.70784587",
"0.70772564",
"0.70718324",
"0.70704013",
"0.70646745",
"0.7059288",
"0.70454645",
"0.70400137",
"0.7028678",
"0.7017098",
"0.7012312",
"0.7008964",
"0.7006179",
"0.7006068",
"0.69999427",
"0.6998658",
"0.6997394",
"0.6997394",
"0.69875187",
"0.6986066",
"0.6986066",
"0.6986066",
"0.6984303",
"0.6982047",
"0.6968787",
"0.6966836",
"0.69624007",
"0.695617",
"0.6952277",
"0.69321495",
"0.69286036",
"0.69229764",
"0.69103557",
"0.69103557",
"0.6905596",
"0.6899934",
"0.68930614",
"0.688943",
"0.68810797",
"0.68473524",
"0.6841548",
"0.6839214",
"0.6834976",
"0.6834976",
"0.68306065",
"0.6829982",
"0.6829982",
"0.6820086",
"0.6815868",
"0.68077344",
"0.67978406",
"0.67920285",
"0.6790679",
"0.67880505",
"0.6787071",
"0.6784813",
"0.67817664",
"0.6775712",
"0.6774296",
"0.6772436",
"0.6769994",
"0.67673767",
"0.67661166",
"0.67661166",
"0.67609024",
"0.67566454",
"0.6755017",
"0.67438525",
"0.67433167",
"0.67421466",
"0.67390794",
"0.6737227",
"0.6734737",
"0.6718564",
"0.6715676",
"0.67150795",
"0.67087",
"0.67080903",
"0.6707944",
"0.6705218",
"0.67011124",
"0.6688957",
"0.668891",
"0.66773915"
] |
0.0
|
-1
|
Adds the specified rotation to the current rotation.
|
public void rotateBy(float amountInDegrees) {
internalGroup.rotateBy(amountInDegrees);
dataTrait.rotation = internalGroup.getRotation();
resetSprite();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Vector2 addRotation(double rotation) {\n return withRotation(getRotation() + rotation);\n }",
"public void addRotation(int frame, Quaternion rotation) {\r\n // copy the quaternion, avoid sharing quaternion rotations.\r\n\r\n Quaternion copy = new Quaternion(rotation);\r\n if (frame + 1 > rotationFrames.size()) {\r\n int numElements = frame + 1 - rotationFrames.size();\r\n rotationFrames.ensureCapacity(frame + 1);\r\n for (int i = 0; i < numElements; ++i) {\r\n rotationFrames.add(null);\r\n }\r\n }\r\n\r\n rotationFrames.set(frame, copy);\r\n }",
"public RotationComponent add(float degrees) {\n\trotation += degrees;\n\n\treturn this;\n }",
"public void rotate(Rotation rotation)\r\n\t{\r\n\t\tthis.currentDirection=this.currentDirection.rotate(rotation);\r\n\t}",
"public void addRotor(BasicRotor rotor, int slot)\n\t{\n\t\trotors[slot] = rotor;\n\t}",
"@SuppressWarnings(\"unchecked\")\n public AnimatorType rotation(float rotation)\n {\n addTransformer(new RotationTransformer(getShape(), rotation));\n return (AnimatorType) this;\n }",
"@Override\n default void appendRollRotation(double roll)\n {\n AxisAngleTools.appendRollRotation(this, roll, this);\n }",
"public void setRotation(int rotation) {\r\n\t\tthis.rotation = rotation;\r\n\t}",
"public void rotate(int rotation) {\n rotateCO(rotation);\n rotateCP(rotation);\n rotateEO(rotation);\n rotateEP(rotation);\n }",
"public void rotate(float angle);",
"public void rotate(Vector3 rotationVector) {\n // setta la matrice lastRotation come matrice identità...\n Matrix.setIdentityM(lastRotation, 0);\n // ...gli applica la rotazione...\n Matrix.rotateM(lastRotation, 0, (float) rotationVector.x(), 1.0f, 0.0f, 0.0f);\n Matrix.rotateM(lastRotation, 0, (float) rotationVector.y(), 0.0f, 1.0f, 0.0f);\n Matrix.rotateM(lastRotation, 0, (float) rotationVector.z(), 0.0f, 0.0f, 1.0f);\n\n // ...applica questa nuova rotazione alla matrice di rotazione complessiva...\n Matrix.multiplyMM(rotationMatrix, 0, lastRotation, 0, accumulatedRotation, 0);\n\n // ...e salva questa nuova matrice di rotazione in accumulatedRotation che verrà usata nel rendering\n System.arraycopy(rotationMatrix, 0, accumulatedRotation, 0, 16);\n\n // come ultima cosa calcola i gradi che esprimono la rotazione attuale\n // convertendoli da radianti in gradi e poi cambiandone il segno\n angle.x(-Math.atan2(accumulatedRotation[9],accumulatedRotation[10])*180/Math.PI);\n angle.y(-Math.atan2(-accumulatedRotation[8],\n (float)Math.sqrt(accumulatedRotation[9]*accumulatedRotation[9]+accumulatedRotation[10]*accumulatedRotation[10]))*180/Math.PI);\n angle.z(-Math.atan2(accumulatedRotation[4],accumulatedRotation[0])*180/Math.PI);\n }",
"public void setRotation(int indexInST, float time, Quaternion rot) {\n PointInTime toAdd=findTime(time);\n toAdd.setRotation(indexInST,rot);\n }",
"void setRotation(int objIndex,Quaternion rot){\n look[objIndex].setRotationQuaternion(rot);\n usedRot.set(objIndex);\n }",
"public void setRotation(int degree) {\n\trotation = degree;\n}",
"public void applyRotation(final float rotation)\n\t{\n\t\tfor (final FeatureElement element : featureElements)\n\t\t{\n\t\t\tif (element instanceof RelativeFeatureElement)\n\t\t\t{\n\t\t\t\tfinal RelativeFeatureElement rel = (RelativeFeatureElement) element;\n\t\t\t\tfinal TFloatArrayList steps = rel.walk().steps();\n\t\t\t\tif (steps.size() > 0)\n\t\t\t\t{\n\t\t\t\t\tsteps.setQuick(0, steps.getQuick(0) + rotation);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void rotateBy(float angleDelta)\n {\n this.rotation += angleDelta;\n \n updateTransform();\n notifyParentOfPositionChange();\n conditionallyRepaint();\n }",
"public void setRotationAngle(final double rotationAngle) {\n\t\t_rotationAngle = rotationAngle;\n\t\t_polylineDecoration.setRotation(Math.toRadians(_rotationAngle));\n\t}",
"public void setRotation(double rotation)\r\n\t{\r\n\t\t// AutoCAD's angle of rotation is opposite to SVG so\r\n\t\t// we have to convert it.\r\n\t\t// AutoCAD's angles are in radians and turn in the opposite\r\n\t\t// direction to SVG's.\r\n\r\n\t\tRotation = svgUtility.trimDouble(-rotation % 360.0);\r\n\t}",
"public Vector2 withRotation(double rotation) {\n return new Vector2(Degrees.cos(rotation) * getMagnitude(), Degrees.sin(rotation) * getMagnitude());\n }",
"public void rotateBy(Quaternionf quaternion) {\n\t\trotation.rotateBy(quaternion);\n\t\tmodified = true;\n\t}",
"public void turn(int angle)\n {\n setRotation(getRotation() + angle);\n }",
"public void turn(int angle)\n {\n setRotation(getRotation() + angle);\n }",
"public final void setRotation(float newRotation) {\n\t\ttile.setRotation(newRotation);\n\t\tarrow.setRotation(newRotation);\n\t}",
"public TurnInstruction(Rotation rot) {\r\n\t\tthis.rotation = rot;\r\n\t}",
"public void setRotation(float rotation){\n\t\tmBearing = rotation;\n\t}",
"public void resetRotation(Vector3 rotationVector) {\n // setta la matrice accumulatedRotation come matrice identità...\n Matrix.setIdentityM(accumulatedRotation, 0);\n // ...gli applica la rotazione...\n Matrix.rotateM(accumulatedRotation, 0, (float) rotationVector.x(), 1.0f, 0.0f, 0.0f);\n Matrix.rotateM(accumulatedRotation, 0, (float) rotationVector.y(), 0.0f, 1.0f, 0.0f);\n Matrix.rotateM(accumulatedRotation, 0, (float) rotationVector.z(), 0.0f, 0.0f, 1.0f);\n\n // come ultima cosa tiene traccia degli angoli di rotazione sui 3 assi\n angle.x(rotationVector.x());\n angle.y(rotationVector.y());\n angle.z(rotationVector.z());\n }",
"public void rotate(double degrees) {\n \tboolean added = CommandQueue.add(Commands.rotate((int) degrees, 50), name);\n \tif (added) { \n \t\tSystem.out.println(\"Rotated by \" + degrees);\n \t}\n }",
"public void increaseRotation(float dx, float dy, float dz);",
"public void setRotation(float newRotation)\n {\n setRotation(newRotation, Anchor.CENTER.of(this));\n }",
"public DynamicModelPart setRotation(float[] rotation) {\n this.rotation = rotation;\n return this;\n }",
"public String polarRotation(double angle, double newAngle)\n {\n angle = angle + newAngle;\n \n String str = \"Rotated polar point:\" + angle;\n return str;\n }",
"public void add(double angle) {\n GyroReading gyroReading = new GyroReading(angle, System.currentTimeMillis());\n\n add(gyroReading);\n }",
"public PointDetails setRotation(double rot){\n\t\t\treturn setRotation(()->rot);\n\t\t}",
"void rotate();",
"public void addStudent(String student, int rotation) {\n if (isFull(rotation)) {\n throw new ArrayIndexOutOfBoundsException(\"Table is already full.\");\n }\n students.get(rotation).add(student);\n }",
"public void addTo(Vector3 addition) {\n\t\tthis.x += addition.x;\n\t\tthis.y += addition.y;\n\t\tthis.z += addition.z;\n\t}",
"public Bearing rotate(Rotation rotation) {\n switch (rotation.min()) {\n case L90:\n return this.leftFrom();\n case R90:\n return this.rightFrom();\n case L180:\n case R180:\n return this.reverse();\n }\n return this; // matches NONE\n }",
"@Override\n public void rotate(double angle) {\n graphicsEnvironmentImpl.rotate(canvas, angle);\n }",
"@Override\n\t\tpublic void onOrientationData(Myo myo, long timestamp,\n\t\t\t\tQuaternion rotation) {\n\t\t\t// Calculate Euler angles (roll, pitch, and yaw) from the\n\t\t\t// quaternion.\n\n\t\t\tMyMyo selected = myos.get(myos.indexOf(new MyMyo(myo)));\n\n\t\t\trotationZ = (float) Math.toDegrees(Quaternion.roll(rotation));\n\t\t\trotationX = (float) Math.toDegrees(Quaternion.pitch(rotation));\n\t\t\trotationY = (float) Math.toDegrees(Quaternion.yaw(rotation));\n\n\t\t\tselected.setRotationX(rotationX);\n\t\t\tselected.setRotationY(rotationY);\n\t\t\tselected.setRotationZ(rotationZ);\n\n\t\t\tif (playingGame) {\n\t\t\t\tselected.addSum();\n\t\t\t}\n\n\t\t\tif (myos.size() > 1)\n\t\t\t\treturn;\n\n\t\t\tfloat heading1 = 0;\n\t\t\tfloat speed1 = 0;\n\t\t\tif (ride) {\n\t\t\t\t// if (ref_rotationZ < rotationZ) {\n\t\t\t\t// float zero = ref_rotationZ;\n\t\t\t\t// float max = left_rotationZ - zero;\n\t\t\t\t// heading1 = rotationZ - zero;\n\t\t\t\t// heading1 /= max;\n\t\t\t\t// heading += 1;\n\t\t\t\t// heading *= -heading1;\n\t\t\t\t// } else {\n\t\t\t\t// float zero = ref_rotationZ;\n\t\t\t\t// float max = right_rotationZ - zero;\n\t\t\t\t//\n\t\t\t\t//\n\t\t\t\t// }\n\t\t\t\tspeed1 = (ref_rotationX - rotationX) / 100;\n\t\t\t\tif (speed1 != Float.NaN) {\n\t\t\t\t\tref_rotationX = rotationX;\n\t\t\t\t\trotx -= speed1;\n\t\t\t\t}\n\t\t\t\t// speed += rotx;\n\t\t\t\t// heading = heading % 360;\n\n\t\t\t\theading1 = (ref_rotationZ - rotationZ) / 50;\n\t\t\t\tref_rotationZ = rotationZ;\n\t\t\t\trotz += heading1;\n\t\t\t\theading += rotz;\n\t\t\t\theading = heading % 360;\n\t\t\t\tif (heading < 0)\n\t\t\t\t\theading = 360 + heading;\n\t\t\t\tif (rotx < 0)\n\t\t\t\t\trotx = 0;\n\t\t\t\tif (rotx > 1)\n\t\t\t\t\trotx = 1;\n\t\t\t\tif (mRobot != null && ride)\n\t\t\t\t\tmRobot.drive(heading, rotx);\n\t\t\t\telse if (mRobot != null)\n\t\t\t\t\tmRobot.drive(0.0f, 0.0f);\n\t\t\t}\n\n\t\t\t// X.setText(String.format(\"x: %.3f / %.3f\", rotationX, rotx));\n\t\t\t// Y.setText(String.format(\"y: %.3f\", rotationY));\n\t\t\t// Z.setText(String.format(\"z: %.3f / %.3f / %.3f\", rotationZ, rotz,\n\t\t\t// heading));\n\t\t\t// Next, we apply a rotation to the text view using the roll, pitch,\n\t\t\t// and yaw.\n\t\t\t// mTextView.setRotation(-rotationZ);\n\t\t\t// mTextView.setRotationX(-rotationX);\n\t\t\t// mTextView.setRotationY(rotationY);\n\t\t}",
"void setRotationDegrees(int rotationDegrees) {\n int temp = rotationDegrees % 360;\n if (temp < 0) {\n temp = 360 + temp;\n }\n this.rotationDegrees = temp;\n }",
"@VisibleForTesting\n public void setRotation(int newRotation) {\n this.mRotation = newRotation;\n this.mDisplayRotation.setRotation(newRotation);\n }",
"@Override\n default void prependRollRotation(double roll)\n {\n AxisAngleTools.prependRollRotation(roll, this, this);\n }",
"public void rotate(double theta)\r\n\t{\r\n\t\t// System.out.println(\"rotate\");\r\n\t}",
"public abstract void rotate();",
"public void setRotation(float newRotation, PointF newPivot)\n {\n this.rotation = newRotation;\n this.rotationPivot = newPivot;\n \n updateTransform();\n notifyParentOfPositionChange();\n conditionallyRepaint();\n }",
"public void setRotationModifer(int degrees) {\n\t\tthis.rotation = degrees;\n\t}",
"private void turn(String rotate) {\n if(Objects.nonNull(this.position)) {\n int currentIntDirection = this.directionConversionMap.get(this.position.getDirection());\n int newIntDirection = this.rotateRobotMap.get(rotate).apply(currentIntDirection,directionConversionMap);\n Optional<Direction> direction = findDirection(newIntDirection);\n this.position = new Position(this.position.getX(), this.position.getY(), direction.get());\n }\n }",
"public void setRotation(float angle) {\n\t\tthis.rotate(this.rotation - angle);\n\t\trotation -= angle;\n\t}",
"public void rotate() {\n // amoeba rotate\n // Here i will use my rotation_x and rotation_y\n }",
"void rotate(float x, float y, float z) {\n target_angle[0] += x;\n target_angle[1] += y;\n target_angle[2] += z;\n postSetAngle();\n }",
"public void setRotation(float angle) {\n \t\tthis.angle = angle;\n \t\tupdateTransform();\n \t\tfireEvent(new RotationEvent(angle));\n \t}",
"public Degree360 add(Degree360 degree){\n\t\treturn Degree360.valueOf(this.getDouble() + degree.getDouble());\r\n\t}",
"public DynamicModelPart rotateModelPart(float[] rotation) {\n MatrixStack rotationStack = new MatrixStack();\n rotationStack.translate(rotation[0], rotation[1], rotation[2]);\n this.rotate(rotationStack);\n return this;\n }",
"public boolean hasRotate() { return hasRotate; }",
"public PointDetails setRotation(DoubleSupplier rotation){\n\t\t\tthis.rot = rotation;\n\t\t\treturn this;\n\t\t}",
"public void rotate(Point P, int rotation) {\n\n\n }",
"public void incRotations(int delta) {\n\t\tif (delta > 0) {\n\t\t\trotations += delta;\n\t\t}\n\t}",
"public void rotateToAngle(double angle) {\n controlState = ControlState.POSITION;\n outputPosition = -angle * TurretConstants.TICKS_PER_DEGREE;\n }",
"public void addRotors() throws IOException {\r\n\t\tSystem.out.println(\"Enter the rotor type for slot 0\");\r\n\t\tString type0 = this.readStringFromCmd();\r\n\t\tSystem.out.println(\"Enter the initial position of slot 0\");\r\n\t\tint position0 = this.readIntegerFromCmd();\r\n\t\tSystem.out.println(\"Enter the rotor type for slot 1\");\r\n\t\tString type1 = this.readStringFromCmd();\r\n\t\tSystem.out.println(\"Enter the initial position of slot 1\");\r\n\t\tint position1 = this.readIntegerFromCmd();\r\n\t\tSystem.out.println(\"Enter the rotor type for slot 2\");\r\n\t\tString type2 = this.readStringFromCmd();\r\n\t\tSystem.out.println(\"Enter the initial positon of slot 2\");\r\n\t\tint position2 = this.readIntegerFromCmd();\r\n\t\t\r\n\t\tenigma.addRotor(new BasicRotor(type0), 0);\r\n\t\tenigma.addRotor(new BasicRotor(type1), 1);\r\n\t\tenigma.addRotor(new BasicRotor(type2), 2);\r\n\t\tenigma.setPosition(0, position0);\r\n\t\tenigma.setPosition(1, position1);\r\n\t\tenigma.setPosition(2, position2);\r\n\t}",
"public RotationComponent setRotation(float degrees) {\n\trotation = degrees;\n\n\treturn this;\n }",
"public void setPieRotation(int rotation) {\n rotation = (rotation % 360 + 360) % 360;\n mPieRotation = rotation;\n mPieView.rotateTo(rotation);\n }",
"public void setRotation(double angle)\n\t{\n\t\tdouble cos = Math.cos(angle);\n\t\tdouble sin = Math.sin(angle);\n\t\tmatrix[0].x=cos;\n\t\tmatrix[0].y=sin;\n\t\tmatrix[1].x=-sin;\n\t\tmatrix[1].y=cos;\n\t}",
"void setRotation (DMatrix3C R);",
"Point rotate (double angle);",
"public void rotate(double angle) {\t\t\n\t\t// precompute values\n\t\tVector t = new Vector(this.a14, this.a24, this.a34);\n\t\tif (t.length() > 0) t = t.norm();\n\t\t\n\t\tdouble x = t.x();\n\t\tdouble y = t.y();\n\t\tdouble z = t.z();\n\t\t\n\t\tdouble s = Math.sin(angle);\n\t\tdouble c = Math.cos(angle);\n\t\tdouble d = 1 - c;\n\t\t\n\t\t// precompute to avoid double computations\n\t\tdouble dxy = d*x*y;\n\t\tdouble dxz = d*x*z;\n\t\tdouble dyz = d*y*z;\n\t\tdouble xs = x*s;\n\t\tdouble ys = y*s;\n\t\tdouble zs = z*s;\n\t\t\n\t\t// update matrix\n\t\ta11 = d*x*x+c; a12 = dxy-zs; a13 = dxz+ys;\n\t\ta21 = dxy+zs; a22 = d*y*y+c; a23 = dyz-xs;\n\t\ta31 = dxz-ys; a32 = dyz+xs; a33 = d*z*z+c;\n\t}",
"public void setRotation(int newRotation) {\n\n int progressVal = newRotation + Math.round(thisNumLEDs / 2);\n\n // If the new rotation would put the rotation value out of range, then ignore it\n\n if (progressVal < 0 | thisNumLEDs < progressVal) {\n return;\n }\n\n // Update the rotation to the new value\n currentRotation = newRotation;\n\n // Update all required widgets\n sliceRotateView.setText(Integer.toString(currentRotation));\n sliceRotateSlider.setProgress(progressVal);\n\n\n // Redraw the pattern\n updatePattern();\n }",
"void setRotations(Vec2 rotations);",
"private void rotateScreen(Activity activity, String rotation){\n \t\tif(rotation == null || rotation.isEmpty())\n \t\t\treturn;\n \t\t\n \t\tif(ROTATION_BOTH.equals(rotation)){\n \t\tactivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);\n \t}else if(ROTATION_PORTRAIT.equals(rotation)){\n \t\tactivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n \t}else if(ROTATION_LANDSCAPE.equals(rotation)){\n \t\tactivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\t\n \t}else{\n \t\tLog.e(\"CreateMenus\", \"Rotation undefined: '\"+rotation+\"'\");\n \t\trotateScreen(activity, ROTATION_BOTH);//Default\n \t}\n \t}",
"@Override\r\n\tpublic void rotate() {\n\t\t\r\n\t}",
"public void copyRotations(AnimationPart part)\n {\n part.prev_rotateAngleX = prev_rotateAngleX;\n part.prev_rotateAngleY = prev_rotateAngleY;\n part.prev_rotateAngleZ = prev_rotateAngleZ;\n }",
"public void rotate(Point rotationPoint, double magnitude) {\n\t\tdouble translatedX = x - rotationPoint.getX();\r\n\t\tdouble translatedY = y - rotationPoint.getY();\r\n\t\t\r\n\t\t//do rotation at origin, then translate so that rotation is about rotation point\r\n\t\tdouble xprime = translatedX * Math.cos(Math.toRadians(magnitude)) - translatedY * Math.sin(Math.toRadians(magnitude));\r\n\t\tdouble yprime = translatedX * Math.sin(Math.toRadians(magnitude)) + translatedY * Math.cos(Math.toRadians(magnitude));\r\n\r\n\t\tsetAll(xprime + rotationPoint.getX(), yprime + rotationPoint.getY());\r\n\t}",
"@Override\n\tpublic void rotate() {\n\t}",
"@Override\n default void appendPitchRotation(double pitch)\n {\n AxisAngleTools.appendPitchRotation(this, pitch, this);\n }",
"public void setRotation(Quaternionf quaternion) {\n\t\trotation = quaternion;\n\t\tmodified = true;\n\t}",
"double adjust_angle_rotation(double angle) {\n double temp;\n temp=angle;\n if(temp>90) {\n temp=180-temp;\n }\n return temp;\n }",
"public void setRotationAngle(float mAngle) {\n mPolygonShapeSpec.setRotation(mAngle);\n rebuildPolygon();\n invalidate();\n }",
"public void addPolar(double r, double theta) {\n\t\tGPoint prev = isEmpty() ? new GPoint(0, 0) : last();\n\t\tdouble newX = prev.getX() + r * Math.cos(theta * Math.PI / 180);\n\t\tdouble newY = prev.getY() - r * Math.sin(theta * Math.PI / 180);\n\t\tadd(newX, newY);\n\t}",
"public void Rotation(int i) {\n mRender.Rotation(i);\n }",
"public void rotate(float f, float f2, float f3) {\n this.rotation += f;\n this.matrix.postRotate(f, f2, f3);\n }",
"protected void sequence_Rotate(ISerializationContext context, Rotate semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.ROTATE__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.ROTATE__NAME));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.ROTATE__ANGLE_CST) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.ROTATE__ANGLE_CST));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.ROTATE__TEMPS_CST) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.ROTATE__TEMPS_CST));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getRotateAccess().getNameRotateKeyword_0_0(), semanticObject.getName());\n\t\tfeeder.accept(grammarAccess.getRotateAccess().getAngleCSTEIntParserRuleCall_4_0(), semanticObject.getAngleCST());\n\t\tfeeder.accept(grammarAccess.getRotateAccess().getTempsCSTINTTerminalRuleCall_7_0(), semanticObject.getTempsCST());\n\t\tfeeder.finish();\n\t}",
"public void onRotate(float rad) {\n rotateRadian = rad;\n rotate(rotateRadian);\n }",
"public void rotation(double degrees) {\r\n \tdegrees = checkDegrees(degrees);\r\n \tsetFacingDirection(degrees);\r\n \trotation = (degrees * flipValue) * Math.PI / 180;\r\n }",
"public void rotate(double degrees) {\n\t\trotate(degrees, true, false);\n\t}",
"public void setRotations(AnimationPart part)\n {\n prev_rotateAngleX = part.prev_rotateAngleX;\n prev_rotateAngleY = part.prev_rotateAngleY;\n prev_rotateAngleZ = part.prev_rotateAngleZ;\n }",
"public void setDeviceRotation(int rotation);",
"AngleAdd createAngleAdd();",
"void turn(float degrees) {\n _rotVector.rotate(radians(degrees));\n }",
"public void setRotationAngle(double angle) {\n if (angle >= MIN_ROTATION_ANGLE && angle <= MAX_ROTATION_ANGLE) {\n rotationAngle = angle;\n }\n }",
"public double getRotation();",
"public Quaternion getCurrentRotation() {\n long currentTimeMillis = System.currentTimeMillis();\n\n if (currentTimeMillis > finishTimeMillis) {\n return finishRotation;\n } else {\n float percent = ((float)(currentTimeMillis-startTimeMillis)) / ((float)(finishTimeMillis-startTimeMillis));\n Quaternion interpolatedRotation = new Quaternion();\n \n // Not sure if slerp is right, but you never know !\n interpolatedRotation.slerp(startRotation, finishRotation, percent);\n return interpolatedRotation;\n }\n }",
"public void zRotate() {\n\t\t\n\t}",
"public void setRotationAngle(float angle) {\n /* 360 */\n this.mRawRotationAngle = angle;\n /* 361 */\n this.mRotationAngle = Utils.getNormalizedAngle(this.mRawRotationAngle);\n /* */\n }",
"public void setTargetRotation (float rotation)\n {\n if ((_targetRotation = rotation) == _actor.getRotation()) {\n reachedTargetRotation();\n }\n }",
"@Override\n\tpublic void rotation(double rx, double ry, double rz) {\n\t\tint i;\n\t\t\n\t\tfor (i = 0; i<6; i++) {\n\t\t\tthis.plans.get(i).rotation(rx, ry, rz);\n\t\t}\n\t\t//Ca me parait un peu foireux comme methode faudra voir apres ave l'interface graphique si\n\t\t//�a marche comme �a.\n\t}",
"public void xRotate() {\n\t\t\n\t}",
"private void setRotation()\n\t{\n\t\tGL11.glPushMatrix();\n\t\tGL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);\n\t}",
"private void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z)\n {\n modelRenderer.rotateAngleX = x;\n modelRenderer.rotateAngleY = y;\n modelRenderer.rotateAngleZ = z;\n }",
"private void rotateShape(double degree) {\n takeModuleOfShape(index);\n\n shiftMemento(index);\n draw.setMementos(mementos);\n\n mementos[mementoIndex - 1].setDegree(mementos[mementoIndex - 1].getDegree() + degree);\n\n shapes.get(shapes.size() - 1).draw(mementos[mementoIndex - 1].getRectangle(), mementos[mementoIndex - 1].getDegree());\n\n mementos = draw.getMementos();\n\n draw.revalidate();\n draw.repaint();\n gui.arrayPanel[1].repaintPanel();\n flagCopy = true;\n draw.setFlag(false);\n }",
"public void setRotation(){\n\t\t\tfb5.accStop();\n\t\t\twt.turning = true;\n\t\t\tif(state == BotMove.RIGHT_15){\n\t\t\t\tfb5.turnRightBy(6);\n\t\t\t\tangle = (angle+360-20)%360;\n\t\t\t}\n\t\t\telse if(state == BotMove.RIGHT_10){\n\t\t\t\tfb5.turnRightBy(3);\n\t\t\t\tangle = (angle+360-10)%360;\n\t\t\t}\n\t\t\telse if(state == BotMove.LEFT_5){\n\t\t\t\tfb5.turnLeftBy(2);\n\t\t\t\tangle = (angle+360+5)%360;\n\t\t\t}\n\t\t}",
"public Vector3 rotated(float angle, Vector3 rotationVec) {\n float[] rotMat = new float[16];\n float[] asArray = asVec4Array();\n float[] resultVec = new float[4];\n Matrix.setRotateM(rotMat, 0, angle, rotationVec.x, rotationVec.y, rotationVec.z);\n Matrix.multiplyMV(resultVec, 0, rotMat, 0, asArray, 0);\n return new Vector3(resultVec[0], resultVec[1], resultVec[2]);\n }",
"void rotation(String sensRotation);"
] |
[
"0.78359264",
"0.73105097",
"0.66501844",
"0.6463648",
"0.64306754",
"0.612415",
"0.60893655",
"0.60741687",
"0.60724",
"0.60682166",
"0.6055688",
"0.6039073",
"0.57418853",
"0.571878",
"0.569935",
"0.55947626",
"0.5593763",
"0.559154",
"0.557735",
"0.55699205",
"0.554607",
"0.554607",
"0.5523215",
"0.55143994",
"0.5508376",
"0.54907763",
"0.54884076",
"0.5473077",
"0.54722303",
"0.5454554",
"0.5444208",
"0.5434713",
"0.5409809",
"0.5388738",
"0.5362433",
"0.5353691",
"0.5352757",
"0.535008",
"0.5344003",
"0.5338722",
"0.53254324",
"0.5316002",
"0.52907294",
"0.5286434",
"0.5278928",
"0.52771777",
"0.52661246",
"0.524604",
"0.52411586",
"0.52387416",
"0.5232362",
"0.5229086",
"0.52277935",
"0.5222841",
"0.5215169",
"0.52023077",
"0.5196666",
"0.5191838",
"0.51894754",
"0.5184697",
"0.5184013",
"0.5181955",
"0.5176093",
"0.5175664",
"0.5172076",
"0.5157495",
"0.5150306",
"0.5118601",
"0.5100659",
"0.5087859",
"0.5081142",
"0.5071069",
"0.5066807",
"0.5064675",
"0.5059565",
"0.50577855",
"0.5042453",
"0.5040344",
"0.5035579",
"0.5034415",
"0.5028857",
"0.50282496",
"0.5027348",
"0.4996067",
"0.49901474",
"0.498841",
"0.49858034",
"0.49801984",
"0.4979088",
"0.49754938",
"0.49735773",
"0.49642012",
"0.49631113",
"0.49553984",
"0.4950887",
"0.4940917",
"0.49385282",
"0.49384445",
"0.49317142",
"0.49311307",
"0.49217805"
] |
0.0
|
-1
|
Adds the specified scale to the current scale.
|
public void scaleBy(float scale) {
internalGroup.scaleBy(scale);
dataTrait.scaleX = internalGroup.getScaleX();
dataTrait.scaleY = internalGroup.getScaleY();
resetSprite();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void scaleAdd(double scale, Color rhs) {\n\n\t\tthis.r += scale * rhs.r;\n\t\tthis.g += scale * rhs.g;\n\t\tthis.b += scale * rhs.b;\n\n\t}",
"public void addScaledVector(Vector3 addition, double scale) {\n\t\tthis.x += addition.x * scale;\n\t\tthis.y += addition.y * scale;\n\t\tthis.z += addition.z * scale;\n\t}",
"public void setScale(Scale scale) {\n this.scale = scale;\n }",
"public void setScale(final double scale) {\r\n\t\tthis.scale = scale;\r\n\t}",
"public void setScale( float scale ) {\n\t\tthis.scale = scale;\n\t}",
"public void setScale(float scale) {\n this.scale = scale;\n }",
"public void setScale(float scale) {\n setLocalScale(scale);\n }",
"public void setScale(float scale);",
"public void scale(Point3 scale) {\r\n\t\tx *= scale.x;\r\n\t\ty *= scale.y;\r\n\t\tz *= scale.z;\r\n\t}",
"@Override\n public void setScale(float scale) {\n this.scale = scale;\n }",
"public void setScale(int indexInST, float time, Vector3f scale) {\n PointInTime toAdd=findTime(time);\n toAdd.setScale(indexInST,scale);\n }",
"public void setScale(double scale) {\r\n if (scale >= 0.1) {\r\n this.scale = scale;\r\n }\r\n }",
"public Scale(Scale newScale){\n \tsuper(newScale);\n }",
"public final void setScale(float scale) {\n\t\n \tthis.svd(this);\n \tthis.mul(scale);\n }",
"public void scale(float scale, float scale2) {\n\t\t\n\t}",
"public void scale(Vector2 scale)\n\t{\n\t\tthis.scaleBasis(scale);\n\t\tthis.matrix[2] = this.matrix[2].multiply(scale);\n\t}",
"public void setScale(double scale) {\n\t\tdouble tx = this.transform.getTranslateX();\n\t\tdouble ty = this.transform.getTranslateY();\n\t\tthis.transform.setToScale(scale, scale);\n\t\tthis.transform.translate(tx, ty);\n\t}",
"public PointDetails setScaling(double scale){\n\t\t\treturn setScaling(()->scale);\n\t\t}",
"public void setScale(float scale) {\n \t\tthis.scale = scale;\n \t\tupdateTransform();\n \t\tfireEvent(new ScalingEvent(scale));\n \t}",
"@Override\n\tpublic void setScale(Vector3d scale) {\n\t\t\n\t}",
"protected void zoomToScale(float scale) {\n \t\tif (tweening) {\n \t\t\tscaleIntegrator.target(scale);\n \t\t} else {\n \t\t\tmapDisplay.sc = scale;\n \t\t\t// Also update Integrator to support correct tweening after switch\n \t\t\tscaleIntegrator.target(scale);\n \t\t\tscaleIntegrator.set(scale);\n \t\t}\n \t}",
"public void setScale(final float scale) {\n if (equal(mScale, scale) != true) {\n Log.d(TAG, \"setScale(): old: %.2f, new: %.2f\", mScale, scale);\n mScale = scale;\n setScale(mSceneRootObject, scale);\n setScale(mMainCameraRootObject, scale);\n setScale(mLeftCameraRootObject, scale);\n setScale(mRightCameraRootObject, scale);\n for (OnScaledListener listener : mOnScaledListeners) {\n try {\n listener.onScaled(scale);\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(TAG, e, \"setScale()\");\n }\n }\n }\n }",
"private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }",
"public void scale(float scale, float x, float y) {\n\t\tcompose(new TransformMatrix(scale,scale, x - scale * x,y - scale * y));\n\t}",
"public CreateTaskSetRequest withScale(Scale scale) {\n setScale(scale);\n return this;\n }",
"public TiledView setScales(AxisScale scale) {\n return setScales(scale,scale);\n }",
"public Action scaleCurrentDuration(float scale) {\n mDuration = (long) (mDuration * scale);\n mStartOffset = (long) (mStartOffset * scale);\n return this;\n }",
"public void setScale(double scale, double xscale, double yscale) {\n\t\tif (this.scale != scale || this.xscale != xscale || this.yscale != yscale) {\n\t\t\tthis.scale = scale;\n\t\t\tthis.xscale = xscale;\n\t\t\tthis.yscale = yscale;\n\n\t\t\t// calculate the absolute coordinates and dimensions on the base\n\t\t\t// of the given scale parameters\n\t\t\tint x = (int) (xRel * xscale);\n\t\t\tint y = (int) (yRel * yscale);\n\t\t\tint width = (int) (widthRel * scale);\n\t\t\tint height = (int) (heightRel * scale);\n\n\t\t\t// the border rope holders must always be at the border\n\t\t\t// small rounding failures are eliminated here\n\t\t\tif (this instanceof Seilaufhaenger) {\n\t\t\t\tSeilaufhaenger aufhaenger = (Seilaufhaenger) this;\n\t\t\t\tif (!aufhaenger.isUnderTreibscheibe()) {\n\t\t\t\t\tif (aufhaenger.getHimmel() == Seilaufhaenger.NORD) {\n\t\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\t\tx = 1;\n\t\t\t\t\t\ty = 1;\n\t\t\t\t\t} else if (aufhaenger.getHimmel() == Seilaufhaenger.SUED) {\n\t\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\t\tx = 1;\n\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t} else if (aufhaenger.getHimmel() == Seilaufhaenger.WEST) {\n\t\t\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t\tif (y < 1)\n\t\t\t\t\t\t\ty = 1;\n\t\t\t\t\t\tx = 1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t\tif (y < 1)\n\t\t\t\t\t\t\ty = 1;\n\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t}\n\t\t\t\t\t// moves and resizes the element\n\t\t\t\t\tsetSize(width, height);\n\t\t\t\t\tsetLocation(x, y);\n\t\t\t\t} else {\n\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\tx = 1;\n\t\t\t\t\t// moves and resizes the element\n\t\t\t\t\tsetSize(width, height);\n\t\t\t\t\t// setLocation(x, y);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\tif (x < 1)\n\t\t\t\t\tx = 1;\n\t\t\t\tif (y < 1)\n\t\t\t\t\ty = 1;\n\t\t\t\t// moves and resizes the element\n\t\t\t\tsetSize(width, height);\n\t\t\t\tsetLocation(x, y);\n\t\t\t}\n\t\t}\n\t}",
"void scale(double factor);",
"public void scale(float scale) {\n if (scale != 1.0f) {\n left = (int) (left * scale + 0.5f);\n top = (int) (top * scale + 0.5f);\n right = (int) (right * scale + 0.5f);\n bottom = (int) (bottom * scale + 0.5f);\n }\n }",
"public PointDetails setScaling(DoubleSupplier scale){\n\t\t\tthis.scale = scale;\n\t\t\treturn this;\n\t\t}",
"public void setScale(double value) {\n this.scale = value;\n }",
"public void setScale(Vector3d scale) {\r\n transform3D.setScale(scale);\r\n transformGroup.setTransform(transform3D);\r\n }",
"public Delta scaled(int scale) {\n return new Delta(deltaFile * scale, deltaRank * scale);\n }",
"public vec3 addScaled(float s, vec3 arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.addScaled(this, s, arg);\r\n\t\treturn tmp;\r\n\t}",
"public void setScaleEnd(double scaleEnd) {\n\t\tm_dScaleEnd = scaleEnd;\n\t}",
"void setScale(int objIndex,Vector3f scale){\n look[objIndex].setScale(scale);\n usedScale.set(objIndex);\n }",
"public TiledView setVScale(AxisScale scale) {\n return setScales(_bhp.getScale(),scale);\n }",
"public void setScaleStart(double scaleStart) {\n\t\tm_dScaleStart = scaleStart;\n\t}",
"private double scale (double curr, double goal, double scale, double threshold) {\n return (Math.abs(goal - curr) < threshold ?\n goal : goal * scale + curr * (1 - scale));\n }",
"public void scaleBasis(Vector2 scale)\n\t{\n\t\tthis.matrix[0] = this.matrix[0].multiply(scale);\n\t\tthis.matrix[1] = this.matrix[1].multiply(scale);\n\t}",
"public void addTrackKey(String name, InputKey key, float scale) {\n synchronized(tracks) {\n InputTrack track = tracks.get(name);\n if(track == null)\n tracks.put(name, track = new InputTrack());\n track.addKey(key, scale);\n }\n }",
"public void scaleTransform(Vector3f scale) {\r\n\t\tm[0][0] = scale.x; m[0][1] = 0.0f; m[0][2] = 0.0f; m[0][3] = 0.0f;\r\n\t\tm[1][0] = 0.0f; m[1][1] = scale.y; m[1][2] = 0.0f; m[1][3] = 0.0f;\r\n\t\tm[2][0] = 0.0f; m[2][1] = 0.0f; m[2][2] = scale.z; m[2][3] = 0.0f;\r\n\t\tm[3][0] = 0.0f; m[3][1] = 0.0f; m[3][2] = 0.0f; m[3][3] = 1.0f;\r\n\r\n\t}",
"public void setScaleFactor(float scale){\n scaleFactor = scale;\n }",
"public void setScale(double scale) {\n double oldScale = scale;\n this.scale = scale;\n if (actor != null) {\n actor.SetScale(normalActorSize * scale);\n double[] x = new double[3];\n for (int i=0; i<3; i++) {\n axeTitleActor[i].SetScale(normalTitleSize * scale);\n for (int k=0; k<3; k++) x[k] = axeTitlePosition[i][k]*scale*normalActorSize;\n axeTitleActor[i].SetPosition(x);\n }\n }\n firePropertyChange(\"scale\", new Double(oldScale), new Double(scale));\n }",
"public void setScale(int scale) {\n\t\tif ((numberType == NumericFieldType.DOUBLE) && (scale <= 0)) {\n\t\t\tnumberType = NumericFieldType.INTEGER;\n\t\t}\n\t\tthis.scale = scale;\n\t\trequestRepaint();\n\t}",
"public void setDecimalScale(int scale) {\n this.mScale = scale;\n }",
"public ImageProperties setScale(ImageScale scale) {\n this.scale = scale;\n return this;\n }",
"public void scale(double s);",
"public void addTrackAxis(String name, InputAxis axis, float scale) {\n synchronized(tracks) {\n InputTrack track = tracks.get(name);\n if(track == null)\n tracks.put(name, track = new InputTrack());\n track.addAxis(axis, scale);\n }\n }",
"ScaleType getScale();",
"public void setCurrentScale(String currentScale) {\n this.currentScale = currentScale == null ? null : currentScale.trim();\n }",
"public synchronized void addZoom(float zoom)\r\n {\r\n this.setZoom(zoom + this.getZoom());\r\n }",
"public void adjustZoomLvl(double scale){\n zoomLevel = ZoomCalculator.calculateZoom(scale);\n scale = ZoomCalculator.setScale(zoomLevel);\n transform.setToScale(scale, -scale);\n }",
"public boolean hasScale() { return hasScale; }",
"void setScale(ScaleSelector sensor, int scaleNo);",
"public void zoomScale(double scaleDelta) {\n \t\tzoomToScale((float) (mapDisplay.sc * scaleDelta));\n \t}",
"public void scale(Point P, int scaleFactor) {\n\n\n }",
"public void setCanScale(boolean scale){\n mScale = scale;\n }",
"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 }",
"public void scale(double sx, double sy)\r\n\t{\r\n\t\t// System.out.println(\"scale\");\r\n\t}",
"public void setMeScale (jkt.hms.masters.business.MasStoreMeScale meScale) {\n\t\tthis.meScale = meScale;\n\t}",
"public void addScaled(vec3 a, float s, vec3 b) {\r\n\t\tx = a.x + s * b.x;\r\n\t\ty = a.y + s * b.y;\r\n\t\tz = a.z + s * b.z;\r\n\t}",
"private static <T extends Shape> void scaleShape(T shape, double scale){\r\n\t\tshapeContainer = new ShapeContainer<Shape>(shape);\r\n\t\ttry {\r\n\t\t\tshapeContainer.changeShapeScale(scale);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}",
"public void setScale(Integer scale) throws DBException {\n _scale = scale;\n }",
"public void setScale(Integer scale) throws DBException {\n _scale = scale;\n }",
"public void setScaleTo(Integer scaleTo)\n {\n getStateHelper().put(PropertyKeys.scaleTo, scaleTo);\n }",
"public void setScale(float scale, int xform) {\n\t\tm_xforms[xform].m_scale = scale;\n\t}",
"public void scale(float scalar) {\n\t\tthis.scale(scalar, scalar);\n\t}",
"private void reloadCanvas(float scale) {\n mScale = scale;\n updateImageSize(mScale);\n }",
"public void scale(float x, float y);",
"public void setScaleXY(double sx, double sy) { setScaleX(sx); setScaleY(sy); }",
"public Scale getScale() {\n return this.scale;\n }",
"public void increaseSize(int delta){\n\t\tif(scale < scaleMax)\n\t\t\tscale += enlarge * delta;\n\t}",
"public void setScalePublic(float scale) {\n\t\tdouble posXTmp = posX;\n\t\tdouble posYTmp = posY;\n\t\tdouble posZTmp = posZ;\n\t\tboolean onGroundTmp = onGround;\n\n\t\tsetScale(scale);\n\n\t\t// workaround for a vanilla bug; the position is apparently not set correcty\n\t\t// after changing the entity size, causing asynchronous server/client positioning\n\t\tsetPosition(posXTmp, posYTmp, posZTmp);\n\n\t\t// otherwise, setScale stops the dragon from landing while it is growing\n\t\tonGround = onGroundTmp;\n\t}",
"void onScaleChange(float scaleFactor, float focusX, float focusY);",
"public TiledView setHScale(AxisScale scale) {\n return setScales(scale,_bvp.getScale());\n }",
"private void scaleImagePanel(float scale){\n float oldZoom = imagePanel.getScale();\n float newZoom = oldZoom+scale;\n Rectangle oldView = scrollPane.getViewport().getViewRect();\n // resize the panel for the new zoom\n imagePanel.setScale(newZoom);\n // calculate the new view position\n Point newViewPos = new Point();\n newViewPos.x = (int)(Math.max(0, (oldView.x + oldView.width / 2) * newZoom / oldZoom - oldView.width / 2));\n newViewPos.y = (int)(Math.max(0, (oldView.y + oldView.height / 2) * newZoom / oldZoom - oldView.height / 2));\n scrollPane.getViewport().setViewPosition(newViewPos);\n }",
"public void setGlobalScale(float newScale) {\n scale(new Vector3(newScale, newScale, newScale));\n }",
"public void zoomScaleIn() {\n \t\tzoomScale(SCALE_DELTA_IN);\n \t}",
"public double getScale(\n )\n {return scale;}",
"public void setScale(float xScale, float yScale) {\n\t\tthis.xScale = xScale;\n\t\tthis.yScale = yScale;\n\t}",
"public void increaseTimescale() {\n\t\ttimeScaler = timeScaler>=5 ? 5 : timeScaler + TIMESCLALER_FACTOR;\n\t}",
"public void polyScale(GrowQueue_I8 input , int scale , GrowQueue_I8 output) {\n\n\t\toutput.resize(input.size);\n\n\t\tfor (int i = 0; i < input.size; i++) {\n\t\t\toutput.data[i] = (byte)multiply(input.data[i]&0xFF, scale);\n\t\t}\n\t}",
"public void setScaleY(double yscale)\r\n\t{\tyScale = yscale;\t}",
"public final void set(float scale) {\n\tm00 = scale; m01 = 0.0f; m02 = 0.0f;\n\tm10 = 0.0f; m11 = scale; m12 = 0.0f;\n\tm20 = 0.0f; m21 = 0.0f; m22 = scale;\n }",
"public ScaleField addScaleField(final IntegerProperty property, final int minimum, final int maximum,\n final int increment) {\n return addScaleField(property.getKey(), minimum, maximum, increment);\n }",
"public double getScale(){\n\t\treturn scale;\n\t}",
"@Override\n public boolean onScale(ScaleGestureDetector scaleGestureDetector) {\n zoom *= scaleGestureDetector.getScaleFactor();\n recalculateView();\n return true;\n }",
"public void setScale(float scaleX, float scaleY) {\n internalGroup.setScale(scaleX, scaleY);\n dataTrait.scaleX = scaleX;\n dataTrait.scaleY = scaleY;\n resetSprite();\n }",
"public void updateScale()\n {\n // get scale from world presenter\n s2 = (cam.getScale());\n //Convert to English Miles if appropriate\n if( !SettingsScreen.getUnits() ) s2 *= 0.60934;\n s1 = s2/2;\n repaint();\n }",
"public void scaleBy(float scaleX, float scaleY) {\n internalGroup.scaleBy(scaleX, scaleY);\n dataTrait.scaleX = internalGroup.getScaleX();\n dataTrait.scaleY = internalGroup.getScaleY();\n resetSprite();\n }",
"public void setResolution(Size resolution, long scale) {\n\t\tAssert.assertNotNull(resolution);\n\n\t\tJWLC.nativeHandler().wlc_output_set_resolution(this.to(),\n\t\t\t\tresolution.to(), Utils.getAsUnsignedInt(scale));\n\t}",
"public TiledView setScales(AxisScale hscale, AxisScale vscale) {\n return null;\n }",
"public PartyScaleUse createPartyScaleUse(Party party, ScaleUseType scaleUseType, Scale scale, BasePK createdBy) {\n PartyScaleUse partyScaleUse = PartyScaleUseFactory.getInstance().create(party, scaleUseType, scale,\n session.START_TIME_LONG, Session.MAX_TIME_LONG);\n \n sendEvent(party.getPrimaryKey(), EventTypes.MODIFY, partyScaleUse.getPrimaryKey(), EventTypes.CREATE, createdBy);\n \n return partyScaleUse;\n }",
"public double getScale() {\r\n return scale;\r\n }",
"public double getScale() {\n return scale;\n }",
"public void scale(double xScale, double yScale, double zScale) {\n\t\t// Create a matrix that will transform vertices to their new positions\n\t\tMatrix scaleMatrix = new Matrix(3, 3);\n\t\tscaleMatrix.setElement(0, 0, xScale);\n\t\tscaleMatrix.setElement(1, 1, yScale);\n\t\tscaleMatrix.setElement(2, 2, zScale);\n\t\tfor (int i = 0; i < verts.length; i++) {\n\t\t\tverts[i] = scaleMatrix.multiply(verts[i]);\n\t\t}\n\t}",
"public Image getScaledCopy(float scale) {\r\n\t\treturn getScaledCopy(width * scale, height * scale);\r\n\t}",
"public void setScale(float scaleXY) {\n internalGroup.setScale(scaleXY);\n dataTrait.scaleX = scaleXY;\n dataTrait.scaleY = scaleXY;\n resetSprite();\n }"
] |
[
"0.74984634",
"0.70767903",
"0.67026347",
"0.65284586",
"0.6424506",
"0.6406735",
"0.634384",
"0.62867135",
"0.6267569",
"0.62552434",
"0.6251564",
"0.62382853",
"0.6231985",
"0.6196522",
"0.61688256",
"0.61282563",
"0.6104871",
"0.6007944",
"0.5978086",
"0.59716266",
"0.5964083",
"0.5916235",
"0.5873378",
"0.5865648",
"0.58431363",
"0.5839181",
"0.58254594",
"0.58124834",
"0.5809696",
"0.5793016",
"0.5775684",
"0.5751847",
"0.57044923",
"0.56612325",
"0.566121",
"0.56379545",
"0.5618255",
"0.55962634",
"0.55924964",
"0.5581738",
"0.55694413",
"0.556862",
"0.5560313",
"0.55549806",
"0.5550641",
"0.55359286",
"0.5530752",
"0.5523724",
"0.55233884",
"0.55206823",
"0.5515656",
"0.55048317",
"0.5499377",
"0.54991555",
"0.54922915",
"0.54890424",
"0.5485351",
"0.5471",
"0.5469948",
"0.544792",
"0.54417366",
"0.5429769",
"0.5414765",
"0.54087573",
"0.5402789",
"0.5402789",
"0.53992254",
"0.5369324",
"0.5358539",
"0.5349142",
"0.53337777",
"0.5328709",
"0.53245264",
"0.5293351",
"0.52851707",
"0.52737767",
"0.5252282",
"0.5248237",
"0.5205816",
"0.52018905",
"0.51930666",
"0.5182084",
"0.5165971",
"0.5165739",
"0.5159873",
"0.51486623",
"0.51421463",
"0.51391953",
"0.5113345",
"0.5112828",
"0.50867724",
"0.5082919",
"0.5079027",
"0.50785786",
"0.5073177",
"0.5067341",
"0.50611186",
"0.5050393",
"0.50478697",
"0.504724"
] |
0.6177884
|
14
|
Adds the specified scale to the current scale.
|
public void scaleBy(float scaleX, float scaleY) {
internalGroup.scaleBy(scaleX, scaleY);
dataTrait.scaleX = internalGroup.getScaleX();
dataTrait.scaleY = internalGroup.getScaleY();
resetSprite();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void scaleAdd(double scale, Color rhs) {\n\n\t\tthis.r += scale * rhs.r;\n\t\tthis.g += scale * rhs.g;\n\t\tthis.b += scale * rhs.b;\n\n\t}",
"public void addScaledVector(Vector3 addition, double scale) {\n\t\tthis.x += addition.x * scale;\n\t\tthis.y += addition.y * scale;\n\t\tthis.z += addition.z * scale;\n\t}",
"public void setScale(Scale scale) {\n this.scale = scale;\n }",
"public void setScale(final double scale) {\r\n\t\tthis.scale = scale;\r\n\t}",
"public void setScale( float scale ) {\n\t\tthis.scale = scale;\n\t}",
"public void setScale(float scale) {\n this.scale = scale;\n }",
"public void setScale(float scale) {\n setLocalScale(scale);\n }",
"public void setScale(float scale);",
"public void scale(Point3 scale) {\r\n\t\tx *= scale.x;\r\n\t\ty *= scale.y;\r\n\t\tz *= scale.z;\r\n\t}",
"@Override\n public void setScale(float scale) {\n this.scale = scale;\n }",
"public void setScale(int indexInST, float time, Vector3f scale) {\n PointInTime toAdd=findTime(time);\n toAdd.setScale(indexInST,scale);\n }",
"public void setScale(double scale) {\r\n if (scale >= 0.1) {\r\n this.scale = scale;\r\n }\r\n }",
"public Scale(Scale newScale){\n \tsuper(newScale);\n }",
"public final void setScale(float scale) {\n\t\n \tthis.svd(this);\n \tthis.mul(scale);\n }",
"public void scaleBy(float scale) {\n internalGroup.scaleBy(scale);\n dataTrait.scaleX = internalGroup.getScaleX();\n dataTrait.scaleY = internalGroup.getScaleY();\n resetSprite();\n\n }",
"public void scale(float scale, float scale2) {\n\t\t\n\t}",
"public void scale(Vector2 scale)\n\t{\n\t\tthis.scaleBasis(scale);\n\t\tthis.matrix[2] = this.matrix[2].multiply(scale);\n\t}",
"public void setScale(double scale) {\n\t\tdouble tx = this.transform.getTranslateX();\n\t\tdouble ty = this.transform.getTranslateY();\n\t\tthis.transform.setToScale(scale, scale);\n\t\tthis.transform.translate(tx, ty);\n\t}",
"public PointDetails setScaling(double scale){\n\t\t\treturn setScaling(()->scale);\n\t\t}",
"public void setScale(float scale) {\n \t\tthis.scale = scale;\n \t\tupdateTransform();\n \t\tfireEvent(new ScalingEvent(scale));\n \t}",
"@Override\n\tpublic void setScale(Vector3d scale) {\n\t\t\n\t}",
"protected void zoomToScale(float scale) {\n \t\tif (tweening) {\n \t\t\tscaleIntegrator.target(scale);\n \t\t} else {\n \t\t\tmapDisplay.sc = scale;\n \t\t\t// Also update Integrator to support correct tweening after switch\n \t\t\tscaleIntegrator.target(scale);\n \t\t\tscaleIntegrator.set(scale);\n \t\t}\n \t}",
"public void setScale(final float scale) {\n if (equal(mScale, scale) != true) {\n Log.d(TAG, \"setScale(): old: %.2f, new: %.2f\", mScale, scale);\n mScale = scale;\n setScale(mSceneRootObject, scale);\n setScale(mMainCameraRootObject, scale);\n setScale(mLeftCameraRootObject, scale);\n setScale(mRightCameraRootObject, scale);\n for (OnScaledListener listener : mOnScaledListeners) {\n try {\n listener.onScaled(scale);\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(TAG, e, \"setScale()\");\n }\n }\n }\n }",
"private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }",
"public void scale(float scale, float x, float y) {\n\t\tcompose(new TransformMatrix(scale,scale, x - scale * x,y - scale * y));\n\t}",
"public CreateTaskSetRequest withScale(Scale scale) {\n setScale(scale);\n return this;\n }",
"public TiledView setScales(AxisScale scale) {\n return setScales(scale,scale);\n }",
"public Action scaleCurrentDuration(float scale) {\n mDuration = (long) (mDuration * scale);\n mStartOffset = (long) (mStartOffset * scale);\n return this;\n }",
"public void setScale(double scale, double xscale, double yscale) {\n\t\tif (this.scale != scale || this.xscale != xscale || this.yscale != yscale) {\n\t\t\tthis.scale = scale;\n\t\t\tthis.xscale = xscale;\n\t\t\tthis.yscale = yscale;\n\n\t\t\t// calculate the absolute coordinates and dimensions on the base\n\t\t\t// of the given scale parameters\n\t\t\tint x = (int) (xRel * xscale);\n\t\t\tint y = (int) (yRel * yscale);\n\t\t\tint width = (int) (widthRel * scale);\n\t\t\tint height = (int) (heightRel * scale);\n\n\t\t\t// the border rope holders must always be at the border\n\t\t\t// small rounding failures are eliminated here\n\t\t\tif (this instanceof Seilaufhaenger) {\n\t\t\t\tSeilaufhaenger aufhaenger = (Seilaufhaenger) this;\n\t\t\t\tif (!aufhaenger.isUnderTreibscheibe()) {\n\t\t\t\t\tif (aufhaenger.getHimmel() == Seilaufhaenger.NORD) {\n\t\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\t\tx = 1;\n\t\t\t\t\t\ty = 1;\n\t\t\t\t\t} else if (aufhaenger.getHimmel() == Seilaufhaenger.SUED) {\n\t\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\t\tx = 1;\n\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t} else if (aufhaenger.getHimmel() == Seilaufhaenger.WEST) {\n\t\t\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t\tif (y < 1)\n\t\t\t\t\t\t\ty = 1;\n\t\t\t\t\t\tx = 1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t\tif (y < 1)\n\t\t\t\t\t\t\ty = 1;\n\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t}\n\t\t\t\t\t// moves and resizes the element\n\t\t\t\t\tsetSize(width, height);\n\t\t\t\t\tsetLocation(x, y);\n\t\t\t\t} else {\n\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\tx = 1;\n\t\t\t\t\t// moves and resizes the element\n\t\t\t\t\tsetSize(width, height);\n\t\t\t\t\t// setLocation(x, y);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\tif (x < 1)\n\t\t\t\t\tx = 1;\n\t\t\t\tif (y < 1)\n\t\t\t\t\ty = 1;\n\t\t\t\t// moves and resizes the element\n\t\t\t\tsetSize(width, height);\n\t\t\t\tsetLocation(x, y);\n\t\t\t}\n\t\t}\n\t}",
"void scale(double factor);",
"public void scale(float scale) {\n if (scale != 1.0f) {\n left = (int) (left * scale + 0.5f);\n top = (int) (top * scale + 0.5f);\n right = (int) (right * scale + 0.5f);\n bottom = (int) (bottom * scale + 0.5f);\n }\n }",
"public PointDetails setScaling(DoubleSupplier scale){\n\t\t\tthis.scale = scale;\n\t\t\treturn this;\n\t\t}",
"public void setScale(double value) {\n this.scale = value;\n }",
"public void setScale(Vector3d scale) {\r\n transform3D.setScale(scale);\r\n transformGroup.setTransform(transform3D);\r\n }",
"public Delta scaled(int scale) {\n return new Delta(deltaFile * scale, deltaRank * scale);\n }",
"public vec3 addScaled(float s, vec3 arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.addScaled(this, s, arg);\r\n\t\treturn tmp;\r\n\t}",
"public void setScaleEnd(double scaleEnd) {\n\t\tm_dScaleEnd = scaleEnd;\n\t}",
"void setScale(int objIndex,Vector3f scale){\n look[objIndex].setScale(scale);\n usedScale.set(objIndex);\n }",
"public TiledView setVScale(AxisScale scale) {\n return setScales(_bhp.getScale(),scale);\n }",
"public void setScaleStart(double scaleStart) {\n\t\tm_dScaleStart = scaleStart;\n\t}",
"private double scale (double curr, double goal, double scale, double threshold) {\n return (Math.abs(goal - curr) < threshold ?\n goal : goal * scale + curr * (1 - scale));\n }",
"public void scaleBasis(Vector2 scale)\n\t{\n\t\tthis.matrix[0] = this.matrix[0].multiply(scale);\n\t\tthis.matrix[1] = this.matrix[1].multiply(scale);\n\t}",
"public void addTrackKey(String name, InputKey key, float scale) {\n synchronized(tracks) {\n InputTrack track = tracks.get(name);\n if(track == null)\n tracks.put(name, track = new InputTrack());\n track.addKey(key, scale);\n }\n }",
"public void scaleTransform(Vector3f scale) {\r\n\t\tm[0][0] = scale.x; m[0][1] = 0.0f; m[0][2] = 0.0f; m[0][3] = 0.0f;\r\n\t\tm[1][0] = 0.0f; m[1][1] = scale.y; m[1][2] = 0.0f; m[1][3] = 0.0f;\r\n\t\tm[2][0] = 0.0f; m[2][1] = 0.0f; m[2][2] = scale.z; m[2][3] = 0.0f;\r\n\t\tm[3][0] = 0.0f; m[3][1] = 0.0f; m[3][2] = 0.0f; m[3][3] = 1.0f;\r\n\r\n\t}",
"public void setScaleFactor(float scale){\n scaleFactor = scale;\n }",
"public void setScale(double scale) {\n double oldScale = scale;\n this.scale = scale;\n if (actor != null) {\n actor.SetScale(normalActorSize * scale);\n double[] x = new double[3];\n for (int i=0; i<3; i++) {\n axeTitleActor[i].SetScale(normalTitleSize * scale);\n for (int k=0; k<3; k++) x[k] = axeTitlePosition[i][k]*scale*normalActorSize;\n axeTitleActor[i].SetPosition(x);\n }\n }\n firePropertyChange(\"scale\", new Double(oldScale), new Double(scale));\n }",
"public void setScale(int scale) {\n\t\tif ((numberType == NumericFieldType.DOUBLE) && (scale <= 0)) {\n\t\t\tnumberType = NumericFieldType.INTEGER;\n\t\t}\n\t\tthis.scale = scale;\n\t\trequestRepaint();\n\t}",
"public void setDecimalScale(int scale) {\n this.mScale = scale;\n }",
"public ImageProperties setScale(ImageScale scale) {\n this.scale = scale;\n return this;\n }",
"public void scale(double s);",
"public void addTrackAxis(String name, InputAxis axis, float scale) {\n synchronized(tracks) {\n InputTrack track = tracks.get(name);\n if(track == null)\n tracks.put(name, track = new InputTrack());\n track.addAxis(axis, scale);\n }\n }",
"ScaleType getScale();",
"public void setCurrentScale(String currentScale) {\n this.currentScale = currentScale == null ? null : currentScale.trim();\n }",
"public synchronized void addZoom(float zoom)\r\n {\r\n this.setZoom(zoom + this.getZoom());\r\n }",
"public void adjustZoomLvl(double scale){\n zoomLevel = ZoomCalculator.calculateZoom(scale);\n scale = ZoomCalculator.setScale(zoomLevel);\n transform.setToScale(scale, -scale);\n }",
"public boolean hasScale() { return hasScale; }",
"void setScale(ScaleSelector sensor, int scaleNo);",
"public void zoomScale(double scaleDelta) {\n \t\tzoomToScale((float) (mapDisplay.sc * scaleDelta));\n \t}",
"public void scale(Point P, int scaleFactor) {\n\n\n }",
"public void setCanScale(boolean scale){\n mScale = scale;\n }",
"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 }",
"public void scale(double sx, double sy)\r\n\t{\r\n\t\t// System.out.println(\"scale\");\r\n\t}",
"public void setMeScale (jkt.hms.masters.business.MasStoreMeScale meScale) {\n\t\tthis.meScale = meScale;\n\t}",
"public void addScaled(vec3 a, float s, vec3 b) {\r\n\t\tx = a.x + s * b.x;\r\n\t\ty = a.y + s * b.y;\r\n\t\tz = a.z + s * b.z;\r\n\t}",
"private static <T extends Shape> void scaleShape(T shape, double scale){\r\n\t\tshapeContainer = new ShapeContainer<Shape>(shape);\r\n\t\ttry {\r\n\t\t\tshapeContainer.changeShapeScale(scale);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}",
"public void setScale(Integer scale) throws DBException {\n _scale = scale;\n }",
"public void setScale(Integer scale) throws DBException {\n _scale = scale;\n }",
"public void setScaleTo(Integer scaleTo)\n {\n getStateHelper().put(PropertyKeys.scaleTo, scaleTo);\n }",
"public void setScale(float scale, int xform) {\n\t\tm_xforms[xform].m_scale = scale;\n\t}",
"public void scale(float scalar) {\n\t\tthis.scale(scalar, scalar);\n\t}",
"private void reloadCanvas(float scale) {\n mScale = scale;\n updateImageSize(mScale);\n }",
"public void scale(float x, float y);",
"public void setScaleXY(double sx, double sy) { setScaleX(sx); setScaleY(sy); }",
"public Scale getScale() {\n return this.scale;\n }",
"public void increaseSize(int delta){\n\t\tif(scale < scaleMax)\n\t\t\tscale += enlarge * delta;\n\t}",
"public void setScalePublic(float scale) {\n\t\tdouble posXTmp = posX;\n\t\tdouble posYTmp = posY;\n\t\tdouble posZTmp = posZ;\n\t\tboolean onGroundTmp = onGround;\n\n\t\tsetScale(scale);\n\n\t\t// workaround for a vanilla bug; the position is apparently not set correcty\n\t\t// after changing the entity size, causing asynchronous server/client positioning\n\t\tsetPosition(posXTmp, posYTmp, posZTmp);\n\n\t\t// otherwise, setScale stops the dragon from landing while it is growing\n\t\tonGround = onGroundTmp;\n\t}",
"void onScaleChange(float scaleFactor, float focusX, float focusY);",
"public TiledView setHScale(AxisScale scale) {\n return setScales(scale,_bvp.getScale());\n }",
"private void scaleImagePanel(float scale){\n float oldZoom = imagePanel.getScale();\n float newZoom = oldZoom+scale;\n Rectangle oldView = scrollPane.getViewport().getViewRect();\n // resize the panel for the new zoom\n imagePanel.setScale(newZoom);\n // calculate the new view position\n Point newViewPos = new Point();\n newViewPos.x = (int)(Math.max(0, (oldView.x + oldView.width / 2) * newZoom / oldZoom - oldView.width / 2));\n newViewPos.y = (int)(Math.max(0, (oldView.y + oldView.height / 2) * newZoom / oldZoom - oldView.height / 2));\n scrollPane.getViewport().setViewPosition(newViewPos);\n }",
"public void setGlobalScale(float newScale) {\n scale(new Vector3(newScale, newScale, newScale));\n }",
"public void zoomScaleIn() {\n \t\tzoomScale(SCALE_DELTA_IN);\n \t}",
"public double getScale(\n )\n {return scale;}",
"public void setScale(float xScale, float yScale) {\n\t\tthis.xScale = xScale;\n\t\tthis.yScale = yScale;\n\t}",
"public void increaseTimescale() {\n\t\ttimeScaler = timeScaler>=5 ? 5 : timeScaler + TIMESCLALER_FACTOR;\n\t}",
"public void polyScale(GrowQueue_I8 input , int scale , GrowQueue_I8 output) {\n\n\t\toutput.resize(input.size);\n\n\t\tfor (int i = 0; i < input.size; i++) {\n\t\t\toutput.data[i] = (byte)multiply(input.data[i]&0xFF, scale);\n\t\t}\n\t}",
"public void setScaleY(double yscale)\r\n\t{\tyScale = yscale;\t}",
"public final void set(float scale) {\n\tm00 = scale; m01 = 0.0f; m02 = 0.0f;\n\tm10 = 0.0f; m11 = scale; m12 = 0.0f;\n\tm20 = 0.0f; m21 = 0.0f; m22 = scale;\n }",
"public ScaleField addScaleField(final IntegerProperty property, final int minimum, final int maximum,\n final int increment) {\n return addScaleField(property.getKey(), minimum, maximum, increment);\n }",
"public double getScale(){\n\t\treturn scale;\n\t}",
"@Override\n public boolean onScale(ScaleGestureDetector scaleGestureDetector) {\n zoom *= scaleGestureDetector.getScaleFactor();\n recalculateView();\n return true;\n }",
"public void setScale(float scaleX, float scaleY) {\n internalGroup.setScale(scaleX, scaleY);\n dataTrait.scaleX = scaleX;\n dataTrait.scaleY = scaleY;\n resetSprite();\n }",
"public void updateScale()\n {\n // get scale from world presenter\n s2 = (cam.getScale());\n //Convert to English Miles if appropriate\n if( !SettingsScreen.getUnits() ) s2 *= 0.60934;\n s1 = s2/2;\n repaint();\n }",
"public void setResolution(Size resolution, long scale) {\n\t\tAssert.assertNotNull(resolution);\n\n\t\tJWLC.nativeHandler().wlc_output_set_resolution(this.to(),\n\t\t\t\tresolution.to(), Utils.getAsUnsignedInt(scale));\n\t}",
"public TiledView setScales(AxisScale hscale, AxisScale vscale) {\n return null;\n }",
"public PartyScaleUse createPartyScaleUse(Party party, ScaleUseType scaleUseType, Scale scale, BasePK createdBy) {\n PartyScaleUse partyScaleUse = PartyScaleUseFactory.getInstance().create(party, scaleUseType, scale,\n session.START_TIME_LONG, Session.MAX_TIME_LONG);\n \n sendEvent(party.getPrimaryKey(), EventTypes.MODIFY, partyScaleUse.getPrimaryKey(), EventTypes.CREATE, createdBy);\n \n return partyScaleUse;\n }",
"public double getScale() {\r\n return scale;\r\n }",
"public double getScale() {\n return scale;\n }",
"public void scale(double xScale, double yScale, double zScale) {\n\t\t// Create a matrix that will transform vertices to their new positions\n\t\tMatrix scaleMatrix = new Matrix(3, 3);\n\t\tscaleMatrix.setElement(0, 0, xScale);\n\t\tscaleMatrix.setElement(1, 1, yScale);\n\t\tscaleMatrix.setElement(2, 2, zScale);\n\t\tfor (int i = 0; i < verts.length; i++) {\n\t\t\tverts[i] = scaleMatrix.multiply(verts[i]);\n\t\t}\n\t}",
"public Image getScaledCopy(float scale) {\r\n\t\treturn getScaledCopy(width * scale, height * scale);\r\n\t}",
"public void setScale(float scaleXY) {\n internalGroup.setScale(scaleXY);\n dataTrait.scaleX = scaleXY;\n dataTrait.scaleY = scaleXY;\n resetSprite();\n }"
] |
[
"0.74984634",
"0.70767903",
"0.67026347",
"0.65284586",
"0.6424506",
"0.6406735",
"0.634384",
"0.62867135",
"0.6267569",
"0.62552434",
"0.6251564",
"0.62382853",
"0.6231985",
"0.6196522",
"0.6177884",
"0.61688256",
"0.61282563",
"0.6104871",
"0.6007944",
"0.5978086",
"0.59716266",
"0.5964083",
"0.5916235",
"0.5873378",
"0.5865648",
"0.58431363",
"0.5839181",
"0.58254594",
"0.58124834",
"0.5809696",
"0.5793016",
"0.5775684",
"0.5751847",
"0.57044923",
"0.56612325",
"0.566121",
"0.56379545",
"0.5618255",
"0.55962634",
"0.55924964",
"0.5581738",
"0.55694413",
"0.556862",
"0.5560313",
"0.55549806",
"0.5550641",
"0.55359286",
"0.5530752",
"0.5523724",
"0.55233884",
"0.55206823",
"0.5515656",
"0.55048317",
"0.5499377",
"0.54991555",
"0.54922915",
"0.54890424",
"0.5485351",
"0.5471",
"0.5469948",
"0.544792",
"0.54417366",
"0.5429769",
"0.5414765",
"0.54087573",
"0.5402789",
"0.5402789",
"0.53992254",
"0.5369324",
"0.5358539",
"0.5349142",
"0.53337777",
"0.5328709",
"0.53245264",
"0.5293351",
"0.52851707",
"0.52737767",
"0.5252282",
"0.5248237",
"0.5205816",
"0.52018905",
"0.51930666",
"0.5182084",
"0.5165971",
"0.5165739",
"0.5159873",
"0.51486623",
"0.51421463",
"0.51391953",
"0.5113345",
"0.5112828",
"0.50867724",
"0.5079027",
"0.50785786",
"0.5073177",
"0.5067341",
"0.50611186",
"0.5050393",
"0.50478697",
"0.504724"
] |
0.5082919
|
92
|
Set bounds the x, y, width, and height.
|
public void setBounds(float x, float y, float width, float height) {
internalGroup.setBounds(x, y, width, height);
dataTrait.x = x;
dataTrait.y = y;
dataTrait.width = width;
dataTrait.height = height;
resetSprite();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setBounds(double anX, double aY, double aW, double aH) { setX(anX); setY(aY); setWidth(aW); setHeight(aH); }",
"public void setBounds(Rect bounds) {\r\n\t\tthis.widthAndHeight = bounds;\r\n\t\tc.setBounds(bounds);\r\n\t}",
"public void setBounds(Rectangle bounds) {\r\n this.bounds = bounds;\r\n }",
"void setBounds(Rectangle rectangle);",
"public void setBounds(Rectangle2D bounds){\r\n\t\tthis.bounds = bounds;\r\n\t}",
"public void setBounds(Rectangle b);",
"@Override\n\tpublic void setBounds(int x, int y, int width, int height) {\n\t\t\n\t\t\n\t\tsuper.setBounds(x, y, width, height);\n\t}",
"void addBounds(int x, int y, int width, int height);",
"@Override\r\n\tpublic void setBounds(int x, int y, int width, int height) {\r\n\t\tsuper.setBounds(x, y, width, height);\r\n\t\tpv.update();\r\n\t}",
"@Override\n public void setBounds(int x, int y, int w, int h, int op) {\n setBounds(x, y, w, h, op, true, false);\n }",
"public void setBounds(Rectangle2D aRect)\n{\n setBounds(aRect.getX(), aRect.getY(), aRect.getWidth(), aRect.getHeight());\n}",
"public boolean setBounds(Rectangle bounds);",
"public void updateBounds() {\n this.setBounds(left, top, width, height);\n }",
"public void set(double x, double y, double width, double height) {\n setRect(x, y, width, height);\n }",
"@Override\n public void setBounds(Rectangle bounds) {\n final Rectangle repaintBounds = new Rectangle(getBounds());\n\n final Rectangle newBounds = new Rectangle(ajustOnGrid(bounds.x),\n ajustOnGrid(bounds.y), ajustOnGrid(bounds.width), bounds.height);\n\n newBounds.width = newBounds.width < MINIMUM_SIZE.x ? MINIMUM_SIZE.x\n : newBounds.width;\n\n this.bounds = newBounds;\n\n parent.getScene().repaint(repaintBounds);\n parent.getScene().repaint(newBounds);\n\n // Move graphics elements associated with this component\n leftMovableSquare.setBounds(computeLocationResizer(0));\n rightMovableSquare.setBounds(computeLocationResizer(bounds.width));\n\n setChanged();\n notifyObservers();\n }",
"void setBounds(double x, double y, double scale) {\n double drawAspect = (double)width / (double)height;\n\n double halfPlotWidth = scale / 2.0;\n double halfPlotHeight = scale / 2.0;\n if (drawAspect > 1.0) {\n halfPlotWidth *= drawAspect;\n } else {\n halfPlotHeight /= drawAspect;\n }\n\n setBounds(x - halfPlotWidth, y - halfPlotHeight, x + halfPlotWidth, y + halfPlotHeight);\n }",
"public void setPosition(int xpos, int ypos) {\r\n this.xpos = xpos;\r\n this.ypos = ypos;\r\n bounds.x = xpos;\r\n bounds.y = ypos;\r\n }",
"public void setBounds(int x, int y, int width, int height) {\n\n // must set this first\n super.setBounds(x, y, width, height);\n\n int vpw = getViewportSize().width;\n int vph = getViewportSize().height;\n int imw = im.getWidth();\n int imh = im.getHeight();\n\n if ( vpw >= imw && vph >= imh ) {\n ic.setBounds(x, y, width, height); \n } else {\n // BUG\n // This fixes bad image positions during resize\n // but breaks tiles (causes them all to load)\n // Somehow the graphics context clip area gets\n // changed in the ImageCanvas update(g) call.\n // This occurs when the image size is greater\n // than the viewport when the display first\n // comes up. Removing the repaint in the\n // ImageCanvas fixes this, but breaks ImageCanvas.\n // Should have a new ImageCanvas call that sets\n // the origin without a repaint.\n\n /* causes all tiles to be loaded, breaks scrolling, fixes resize */\n //setOrigin(0, 0);\n\n /* causes image to shift incorrectly on resize event */\n ic.setBounds(x, y, vpw, vph);\n }\n\n this.panelWidth = width;\n this.panelHeight = height;\n }",
"public void setStuff(int x, int y, int w, int h)\n {\n\t xPos = x;\n\t yPos = y;\n\t width = w;\n\t height = h;\n }",
"public void set(Bounds boundsObject) {\n\tbounds = boundsObject;\n }",
"public void setRectangleBounds(String bounds) {\n checkAvailable();\n impl.setRectangle(bounds);\n }",
"public static void setBounds() {\n\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\r\n\t\t// Determine the new location of the window\r\n\t\tint w = gameFrame.getSize().width;\r\n\t\tint h = gameFrame.getSize().height;\r\n\t\tint x = (dim.width/2)-(w/2);\r\n\t\tint y = (dim.height/2)-(h/2);\r\n\t\t// Move the window\r\n\t\tgameFrame.setLocation(x, y);\r\n\t\tgameFrame.setVisible(true);\r\n\t}",
"private void setBounds(RectProto.Builder builderForValue) {\n this.bounds_ = (RectProto) builderForValue.build();\n this.bitField0_ |= 8;\n }",
"private void setBounds(RectProto value) {\n if (value != null) {\n this.bounds_ = value;\n this.bitField0_ |= 8;\n return;\n }\n throw new NullPointerException();\n }",
"@Override\n public void setRectangle() {\n switch (direction){\n case 0:\n rectangle.setLocation((int)x+5,(int)y+8);\n break;\n case 2:\n rectangle.setLocation((int)x+5,(int)y+8);\n break;\n case 1:\n rectangle.setLocation((int)x+13,(int)y+8);\n break;\n case 3:\n rectangle.setLocation((int)x+2,(int)y+8);\n break;\n }\n\n }",
"public static final void setBounds(UIObject o, Rect bounds) {\n setPosition(o, bounds);\n setSize(o, bounds);\n }",
"public void setSize(int x, int y)\n {\n \tthis.width = x;\n \tthis.height = y;\n }",
"public void setView(Rectangle2D bounds) {\r\n if (bounds == null) {\r\n return;\r\n }\r\n Rectangle2D old = getView();\r\n defaultView = new Rectangle2D.Double(bounds.getX(), bounds.getY(),\r\n bounds.getWidth(), bounds.getHeight());\r\n \r\n minX = defaultView.getMinX();\r\n maxX = defaultView.getMaxX();\r\n minY = defaultView.getMinY();\r\n maxY = defaultView.getMaxY();\r\n \r\n majorX = defaultMajorX;\r\n majorY = defaultMajorY;\r\n firePropertyChange(\"view\", old, getView());\r\n repaint();\r\n }",
"public void setBounds(int x, int y, int width, int height) \n\t{\n\t\tsuper.setBounds(x, y, width, height);\n\t\tfm = getFontMetrics(getFont());\n\t\ttitleHeight = fm.getHeight();\n\t\tyLabelWidth = fm.stringWidth(yLabel);\n\t\txLabelHeight = fm.getHeight();\n\t\t\n\t\tlabelWidth = Math.max(fm.stringWidth(Integer.valueOf(min).toString()),\n\t\t\t\t\t\t\t\t\t\t\t\t\tfm.stringWidth(Integer.valueOf(max).toString())) + 2;\n\t\ttop = padding + titleHeight;\n\t\tbottom = getSize().height - padding - xLabelHeight - fm.getHeight();\n\t\tleft = padding + yLabelWidth;\n\t\tright = getSize().width - padding;\n\t}",
"public Bounds(double x, double y, double width, double height) {\n\t\tsuper();\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t}",
"void setDimension(double width, double height);",
"public static void bgfx_set_view_rect(@NativeType(\"bgfx_view_id_t\") int _id, @NativeType(\"uint16_t\") int _x, @NativeType(\"uint16_t\") int _y, @NativeType(\"uint16_t\") int _width, @NativeType(\"uint16_t\") int _height) {\n nbgfx_set_view_rect((short)_id, (short)_x, (short)_y, (short)_width, (short)_height);\n }",
"public void setViewAndOrigin(Rectangle2D bounds) {\r\n setView(bounds);\r\n setOrigin(new Point2D.Double(bounds.getCenterX(), bounds.getCenterY()));\r\n }",
"@Override\n public void rect(double x, double y, double width, double height) {\n graphicsEnvironmentImpl.rect(canvas, x, y, width, height);\n }",
"public void setAnalysisBounds(Rectangle bounds) {\n this.bounds = bounds;\n }",
"public void setStartBounds(int x, int minY, int maxY) {\r\n\t\tstartBounds = new Rectangle(x, minY, x, maxY);\r\n\t}",
"public void setBoundsInScreen(Rect bounds) {\n/* 730 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public final native void setBounds(LatLngBounds bounds) /*-{\n this.setBounds(bounds); \n }-*/;",
"public void set(BoundsUserSpace b) {\n setRect(b.x, b.y, b.width, b.height);\n }",
"public void setGraphicalWidgetBounds(double tempOriginX,\n double tempOriginY,\n double tempWidth,\n double tempHeight,\n GraphicalWidget<?> gw)\n {\n frameUI.setGraphicalWidgetBounds(tempOriginX,\n tempOriginY,\n tempWidth,\n tempHeight,\n gw);\n }",
"public void setMovingBounds() {\r\n maxY = this.getParent().getYmax();\r\n minY = this.getParent().getYmin();\r\n maxX = this.getParent().getXmax();\r\n minX = this.getParent().getXmin();\r\n }",
"public RMRect bounds() { return new RMRect(x(), y(), width(), height()); }",
"public void setRange(int spatialWidth, int spatialHeight) {\n\t\tthis.spatialWidth = spatialWidth;\n\t\tthis.spatialHeight = spatialHeight;\n\t}",
"public void setBounds(RectF newBounds)\n {\n this.bounds = GeometryUtils.copy(newBounds);\n \n if (getShapeParent() != null)\n {\n GeometryUtils.resolveGeometry(this.bounds, this);\n }\n \n notifyParentOfPositionChange();\n conditionallyRepaint();\n }",
"public void setWidthHeight(double x, double y) {\n\t\twidth = x;\n\t\theight = y;\n\t}",
"public void setCoords(int x, int y) {\n\t\t setLayoutX(x);\n\t setLayoutY(y);\n\t}",
"public void setPosition(int x, int y)\n\t{\n\t\tint w = getSize().width;\n\t\tint h = getSize().height;\n\n\t\tpos.x = x;\n\n\t\tpos.y = y;\n\n\t\trect.setLocation(x - w / 2, y - h / 2);\n\t}",
"@Override\n\tpublic void setWidthAndHeight(int width, int height) {\n\t\t\n\t}",
"public void setBound(final Bounds bounds) {\n\t\tbound.setBound(relation, bounds);\n\t}",
"public void setRectangleClip(int x, int y, float width, float height);",
"public void updateBounds() {\n\t\tswitch (this.species){\n\t\tcase HOGCHOKER:\n\t\tcase SILVERSIDE:\n\t\tcase FLOUNDER:\n\t\t\tthis.topYBound = frameHeight / 3 * 2;\n\t\t\tthis.bottomYBound = frameHeight - imageHeight - frameBarSize;\n\t\t\tbreak;\n\t\tcase PERCH: \n\t\tcase MINNOW: \n\t\tcase WEAKFISH:\n\t\t\tthis.topYBound = frameHeight / 3;\n\t\t\tthis.bottomYBound = frameHeight / 3 * 2 - imageHeight;\n\t\t\tbreak;\n\n\t\tcase MENHADEN:\n\t\tcase MUMMICHOG:\n\t\t\tthis.topYBound = 0;\n\t\t\tthis.bottomYBound = frameHeight / 3 - imageHeight;\n\t\t\tbreak;\n\t\tcase GOLD:\n\t\tdefault:\n\t\t\ttopYBound = 0;\n\t\t\tbottomYBound = frameHeight;\n\t\t}\n\t}",
"void setPosition(int posX, int posY, int width, int height) {\n this.posX = posX;\n this.posY = posY;\n this.width = width;\n this.height = height;\n }",
"public void setXY(int newX, int newY)\n\t{\n\t\tx=newX; \n\t\ty=newY;\n\t\tboundingBox = new Rectangle(x,y,width,height);\n\t}",
"private void updateViewBounds() \r\n {\r\n assert !sim.getMap().isEmpty() : \"Visualiser needs simulator whose a map has at least one node\"; \r\n \r\n \r\n viewMinX = minX * zoomFactor;\r\n viewMinY = minY * zoomFactor;\r\n \r\n viewMaxX = maxX * zoomFactor;\r\n viewMaxY = maxY * zoomFactor;\r\n \r\n \r\n double marginLength = zoomFactor * maxCommRange;\r\n \r\n \r\n // Set the size of the component\r\n int prefWidth = (int)Math.ceil( (viewMaxX - viewMinX) + (marginLength * 2) );\r\n int prefHeight = (int)Math.ceil( (viewMaxY - viewMinY) + (marginLength * 2) );\r\n setPreferredSize( new Dimension( prefWidth, prefHeight ) );\r\n \r\n \r\n // Adjust for margin lengths \r\n viewMinX -= marginLength;\r\n viewMinY -= marginLength;\r\n \r\n viewMaxX += marginLength;\r\n viewMaxY += marginLength;\r\n }",
"protected void calculateBounds()\r\n {\r\n Toolkit DefaultToolkit = Toolkit.getDefaultToolkit();\r\n Dimension ScreenSize = DefaultToolkit.getScreenSize();\r\n int FrameWidth = ScreenSize.width - 100;\r\n int FrameHeight = ScreenSize.height - 100;\r\n setBounds(50, 50, FrameWidth, FrameHeight);\r\n }",
"public RectangleShape(int xCoord, int yCoord, int widthOfRect, int heightOfRect)\n {\n System.out.println(\"setting x to: \"+ xCoord+\" & setting y to: \"+ yCoord);\n x = xCoord;\n y = yCoord;\n width = widthOfRect;\n height = heightOfRect;\n }",
"public void onBoundsChange(Rect bounds) {\n this.boxWidth = bounds.width();\n this.boxHeight = bounds.height() - this.pointerHeight;\n super.onBoundsChange(bounds);\n }",
"public void setValidRange (int lowerBounds, int upperBounds)\r\n\t{\r\n\t\tm_lowerBounds = lowerBounds;\r\n\t\tm_upperBounds = upperBounds;\r\n\t}",
"public void setBounds(Point3D minBounds, Point3D maxBounds) {\n this.minBounds = minBounds;\n this.maxBounds = maxBounds;\n }",
"public void fillRect(int x, int y, int width, int height);",
"public void setBoundsInParent(Rect bounds) {\n/* 707 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public PickBounds(Bounds boundsObject) {\n\tbounds = boundsObject;\n }",
"public LatLngBounds setupBounds(){\n\t\t\n\t\t\n\t\tdouble deltaLat = 0.000015; // correction value\n\t\t\n\t\tLatLng northEast = new LatLng(60.1876397959336 + (2.4 * deltaLat), 24.8207008838576);\n\t\tLatLng southWest = new LatLng(60.1866756699501 + deltaLat, 24.8172971606177);\n\t\t\n\t\t\n\t\t// 60.1866756699501\n\t\treturn new LatLngBounds(southWest, northEast);\n\t}",
"public void setSize(double aWidth, double aHeight) { setWidth(aWidth); setHeight(aHeight); }",
"private void setFrameSize(int width, int height){\r\n\t\tthis.framewidth=width;\r\n\t\tthis.frameheight=height;\r\n\t}",
"public void setMinSize(double aWidth, double aHeight) { setMinWidth(aWidth); setMinHeight(aHeight); }",
"void setRectHitbox(float w, float h) {\n _hitbox = new PVector[]{\n new PVector(-w/2, h/2),\n new PVector(-w/2, -h/2),\n new PVector(w/2, -h/2),\n new PVector(w/2, h/2)\n };\n }",
"Rectangle(double newWidth, double newHeight){\n height = newHeight;\n width = newWidth;\n }",
"public Rectangle set(int x, int y, int width, int height) {\n\t\tthis.corner.set(x, y);\n\t\tthis.size.set(width, height);\n\t\treturn this;\n\t}",
"public BoundsUserSpace(double x, double y, double w, double h) {\n super(x, y, w, h);\n }",
"public void setFrame(Rectangle2D aRect) { setFrame(aRect.getX(), aRect.getY(), aRect.getWidth(), aRect.getHeight()); }",
"public void setViewport(final int x, final int y, final int width, final int height) {\n viewport.set(x, y, width, height);\n }",
"public BoundingBox(double minX, double minY, double maxX, double maxY) {\r\n this.setMinX(minX);\r\n this.setMinY(minY);\r\n this.setMaxX(maxX);\r\n this.setMaxY(maxY);\r\n }",
"protected abstract void fillRect(final float x, final float y,\n final float width, final float height);",
"public void showRectangleSizeSetup() {\n sizeArea.removeAllViewsInLayout();\n sizeArea.addView(heightEdit);\n sizeArea.addView(widthEdit);\n }",
"@Override\n public Rectangle getBounds() {\n return new Rectangle(x,y,64,64);\n }",
"public FrustRectangle(int x, int y, int maxX, int maxY, int width, int height) {\n super(x, y, maxX, maxY);\n if (width < 0) {\n width = 0;\n }\n if (height < 0) {\n height = 0;\n }\n this.width = width;\n this.height = height;\n }",
"@Override\r\n\tpublic Rectangle getBound() {\n\t\treturn new Rectangle((int)x, (int)y, (int)width, (int)height);\r\n\t}",
"public void setBounds(Double min, Double max) {\n Double aMin = Math.min(min, max);\n Double aMax = Math.max(min, max);\n if (aMin != this.min || aMax != this.max) {\n super.setMinimum(aMin);\n super.setMaximum(aMax);\n }\n fireStateChanged();\n }",
"protected void createRect()\r\n\t{\r\n\t\trect = new Rectangle(getX(),getY(),width,height);\r\n\t}",
"public void setFrame(double anX, double aY, double aWidth, double aHeight)\n{\n setFrameXY(anX, aY);\n setFrameSize(aWidth, aHeight);\n}",
"public void setBounds(float leftEdge, float rightEdge) {\n this.leftEdge = leftEdge;\n this.rightEdge = rightEdge;\n invalidateDraw();\n }",
"public void init(){\n\t\tsetSize (800,600);\n\t\t//el primer parametro del rectangulo en el ancho\n\t\t//y el alto\n\t\trectangulo = new GRect(120,80);\n\t\t\n\t}",
"private void setAppBounds(RectProto value) {\n if (value != null) {\n this.appBounds_ = value;\n this.bitField0_ |= 1;\n return;\n }\n throw new NullPointerException();\n }",
"public void setWindowRect(int width, int height) {\n \t\tGWT.log(\"setWindowRect(\" + width + \", \" + height + \")\");\n \t\twindowRect.setWidth(width);\n \t\twindowRect.setHeight(height);\n \t\tupdateTransform();\n \t}",
"public void fillRectangle(int x, int y, int width, int height);",
"public void setPosition(float x, float y)\n {\n bounds.offsetTo(\n x - positionAnchor.x,\n y - positionAnchor.y);\n notifyParentOfPositionChange();\n conditionallyRelayout();\n }",
"@Override\n\tpublic void setFrame(double x, double y, double w, double h){\n\t\ttry {\n\t\t\tsetFrame((int) x, (int) y, (int) w, (int) h );\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }",
"protected void setCoordinate(GAnchor anchor, Rectangle bounds) {\n\t\tPoint areaPoint = anchor.getAreaPoint(bounds);\n\n\t\t// Correct Location\n\t\tareaPoint.translate(-ANCHOR_WIDTH / 2, -ANCHOR_HEIGHT / 2);\n\n\t\t// Set Frame Of Anchor\n\t\tanchor.setFrame(areaPoint.getX(), areaPoint.getY(), ANCHOR_WIDTH, ANCHOR_HEIGHT);\n\t}",
"public X bounds(int x, int y, int width, int height) {\n component.setBounds(x, y, width, height);\n return (X) this;\n }",
"public Rectangle() {\n\t\tthis.corner = new Point();\n\t\tthis.size = new Point();\n\t}",
"@Override\r\n public void map(Double minX, Double maxX, Double minY, Double maxY) {\r\n this.minX = minX;\r\n this.maxX = maxX;\r\n this.minY = minY;\r\n this.maxY = maxY;\r\n }",
"public Rectangle getBounds()\n {\n return new Rectangle ((int)x,(int)y,32,32);\n }",
"public Rectangle getBounds(){\r\n return new Rectangle(x, y, w, w);\r\n }",
"public Rectangle(int x, int y, int w, int h) {\n this.x = x;\n this.y = y;\n this.size = new Dimension(w, h);\n }",
"@As( \"figure with dimensions x: $, y: $, width: $, height: $\" )\n void figure(double x, double y, double width, double height) {\n figure = new SVGRectFigure(x,y,width,height);\n handles.clear();\n ResizeHandleKit.addEdgeResizeHandles(figure,handles);\n ResizeHandleKit.addCornerResizeHandles(figure, handles);\n setUpView();\n }",
"public void getBounds(Rect bounds) {\n final int outerX = (int) mOuterX;\n final int outerY = (int) mOuterY;\n final int r = (int) mOuterRadius + 1;\n bounds.set(outerX - r, outerY - r, outerX + r, outerY + r);\n }",
"public void setBounds(int var1, int var2, int var3, int var4) {\n if(var1 < 0) {\n var1 = 0;\n }\n\n if(var2 < 0) {\n var2 = 0;\n }\n\n if(var3 > this.field_723) {\n var3 = this.field_723;\n }\n\n if(var4 > this.field_724) {\n var4 = this.field_724;\n }\n\n this.field_745 = var1;\n this.field_743 = var2;\n this.field_746 = var3;\n this.field_744 = var4;\n }",
"public void drawRect(int x, int y, int width, int height);"
] |
[
"0.8339741",
"0.80829406",
"0.78281695",
"0.7754674",
"0.7576356",
"0.7568748",
"0.75328004",
"0.71887994",
"0.7185893",
"0.70596325",
"0.70574117",
"0.7019175",
"0.7018231",
"0.7009139",
"0.69867164",
"0.6918101",
"0.68837774",
"0.68132234",
"0.6810024",
"0.6764684",
"0.67263395",
"0.67235285",
"0.65947795",
"0.6540865",
"0.65052474",
"0.64934635",
"0.6488483",
"0.64810836",
"0.6476068",
"0.6474474",
"0.644273",
"0.6402586",
"0.6394299",
"0.63643366",
"0.6362086",
"0.63550615",
"0.63489664",
"0.6334793",
"0.63296634",
"0.6323553",
"0.6286355",
"0.62674534",
"0.626731",
"0.6249729",
"0.6233633",
"0.62240106",
"0.6214599",
"0.619954",
"0.6187789",
"0.61867744",
"0.6142636",
"0.6141087",
"0.6138667",
"0.6129302",
"0.6121317",
"0.61041874",
"0.6097974",
"0.6082651",
"0.60794294",
"0.60631514",
"0.6038743",
"0.6027303",
"0.601077",
"0.59866345",
"0.59857076",
"0.5981001",
"0.59782857",
"0.59638673",
"0.5956867",
"0.59312207",
"0.593026",
"0.5929703",
"0.5928535",
"0.59178907",
"0.58646095",
"0.58569634",
"0.58383995",
"0.58341736",
"0.58333236",
"0.5831391",
"0.5828875",
"0.5825661",
"0.58213377",
"0.5816673",
"0.58141845",
"0.5813085",
"0.58119863",
"0.58079636",
"0.58046633",
"0.580033",
"0.57951015",
"0.57866657",
"0.5784598",
"0.5783351",
"0.57800084",
"0.57750374",
"0.57688177",
"0.5767848",
"0.5767205",
"0.5760158"
] |
0.71363056
|
9
|
Set position of Actor centered on x, y
|
public void setCenterPosition(float x, float y) {
internalGroup.setCenterPosition(x, y);
dataTrait.x = internalGroup.getX();
dataTrait.y = internalGroup.getY();
dataTrait.boundingRect.x = dataTrait.x;
dataTrait.boundingRect.y = dataTrait.y;
resetSprite();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void centerOn(float x, float y) {\r\n\t\tposx_ = x - w() / 2;\r\n\t\tposy_ = y - h() / 2;\r\n\t}",
"public void setSpawnPoint() {\n if (this.dirVec.y == 0) {\n super.centerRectAt(new Point(-1*OUTER_OFFSET, super.getCenter().y));\n }\n else {\n super.centerRectAt(new Point(super.getCenter().x, OUTER_OFFSET));\n }\n }",
"public void center() {\n\t\tif(parent != null) {\n\t\t\tfloat parMidWidth = parent.getWidth() / 2f;\n\t\t\tfloat parMidHeight = parent.getHeight() / 2f;\n\t\t\tfloat midWidth = width / 2f;\n\t\t\tfloat midHeight = height / 2f;\n\t\t\t\n\t\t\tfloat newX = parent.getX() + (parMidWidth - midWidth);\n\t\t\tfloat newY = parent.getY() + (parMidHeight - midHeight);\n\t\t\t\n\t\t\tposition = new Vec2f(newX, newY);\n\t\t\tfindPosRatios();\n\t\t}\n\t}",
"void setHitboxCenter(float x, float y) {\n _hitboxCenter = new PVector(x, y);\n }",
"public void setPosition(float x, float y);",
"void setPos(float x, float y);",
"PositionedObject(){\n float x = DrawingHelper.getGameViewWidth()/2;\n float y = DrawingHelper.getGameViewHeight()/2;\n _position.set(x,y);\n }",
"public void setPosition(int x, int y)\n\t{\n\t\tint w = getSize().width;\n\t\tint h = getSize().height;\n\n\t\tpos.x = x;\n\n\t\tpos.y = y;\n\n\t\trect.setLocation(x - w / 2, y - h / 2);\n\t}",
"void setPosition(double xPos, double yPos);",
"public void setCenter(float x, float y) {\r\n\t\tbasePoly.translate((int) -center.x, (int) -center.y);\r\n\t\tcenter = new Point2D.Float(x, y);\r\n\t\tbasePoly.translate((int) center.x, (int) center.y);\r\n\t}",
"private void center() {\r\n\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\r\n\r\n\t\tint x = (dim.width - getSize().width) / 2;\r\n\t\tint y = (dim.height - getSize().height) / 2;\r\n\r\n\t\tsetLocation(x, y);\r\n\t}",
"protected void positionCenter() {\n\t\tlog(\"Positioning on center of line.\");\n\t\tdouble offset = -lineWidth / 2;\n\t\tbindTransition(getPilot().travelComplete(offset), LineFinderState.FINISH);\n\t}",
"private void updatePosition (float newCenterX, float newCenterY) {\n centerX = newCenterX;\n centerY = newCenterY;\n\n atomSpriteBoundary.left = centerX - spriteLength/2;\n atomSpriteBoundary.right = centerX + spriteLength/2;\n atomSpriteBoundary.top = centerY - spriteHeight/2;\n atomSpriteBoundary.bottom = centerY + spriteHeight/2;\n }",
"private void setPosition(float x, float y) {\n this.x = x;\r\n this.y = y;\r\n group();\r\n }",
"public void setPosition(float x, float y) {\n internalGroup.setPosition(x, y);\n dataTrait.x = x;\n dataTrait.y = y;\n resetSprite();\n }",
"@Override\n public void setPosition(float x, float y) {\n }",
"public void setPosition(float x, float y) {\n this.x = x;\n this.y = y;\n }",
"public final void setPosition(float x, float y) {\n\t\ttranslate(x - this.x(), y - this.y());\n\t}",
"private void centerScreen(){\n\t\tint xCenter = Toolkit.getDefaultToolkit().getScreenSize().width/2;\n\t\tint yCenter = Toolkit.getDefaultToolkit().getScreenSize().height/2;\n\t\tint xSize = this.getSize().width;\n\t\tint ySize = this.getSize().height;\n\t\tPoint p = new Point();\n\t\tp.setLocation(xCenter - xSize/2, yCenter - ySize/2);\n\t\tthis.setLocation(p);\n\t}",
"public void centerScreen(int x, int y)\r\n {\r\n // Scaled parameters\r\n int width = View.WIDTH;\r\n int height = View.HEIGHT;\r\n int mapWidth = gameData.getMap().getWidth();\r\n int mapHeight = gameData.getMap().getHeight();\r\n\r\n xScreenOffset = x - width / 2;\r\n yScreenOffset = y - height / 2;\r\n\r\n // Limit Offset, so that the view never leaves the map\r\n if (xScreenOffset < 0)\r\n {\r\n xScreenOffset = 0;\r\n }\r\n if (xScreenOffset > mapWidth - width)\r\n {\r\n xScreenOffset = mapWidth - width;\r\n }\r\n if (yScreenOffset < 0)\r\n {\r\n yScreenOffset = 0;\r\n }\r\n if (yScreenOffset > mapHeight - height)\r\n {\r\n yScreenOffset = mapHeight - height;\r\n }\r\n }",
"@Override\r\n public void act() \r\n {\n int posx = this.getX();\r\n int posy = this.getY();\r\n //calculamos las nuevas coordenadas\r\n int nuevox = posx + incx;\r\n int nuevoy = posy + incy;\r\n \r\n //accedemos al mundo para conocer su tamaño\r\n World mundo = this.getWorld();\r\n if(nuevox > mundo.getWidth())//rebota lado derecho\r\n {\r\n incx = -incx;\r\n }\r\n if(nuevoy > mundo.getHeight())//rebota en la parte de abajo\r\n {\r\n incy = -incy;\r\n }\r\n \r\n if(nuevoy < 0)//rebota arriba\r\n {\r\n incy = -incy;\r\n }\r\n if(nuevox < 0)//rebota izquierda\r\n {\r\n incx = -incx;\r\n }\r\n //cambiamos de posicion a la pelota\r\n this.setLocation(nuevox,nuevoy);\r\n }",
"private void center() {\n if (autoCenter) {\n animateTranslationX();\n animateTranslationY();\n }\n }",
"public void centerMapOnPoint(int targetX, int targetY) {\n\n int scaledWidth = (int) (TileDataRegister.TILE_WIDTH * scale);\n int scaledHeight = (int) (TileDataRegister.TILE_HEIGHT * scale);\n int baseX = (int) (map.getWidth() * TileDataRegister.TILE_WIDTH * scale) / 2;\n\n int x = baseX + (targetY - targetX) * scaledWidth / 2;\n x -= viewPortWidth * 0.5;\n int y = (targetY + targetX) * scaledHeight / 2;\n y -= viewPortHeight * 0.5;\n\n currentXOffset = -x;\n currentYOffset = -y;\n\n gameChanged = true;\n }",
"public void setStartPosition() {\n bounds.offsetTo((SanitizorGame.mSurfaceWidth - bounds.width()) / 2,\n SanitizorGame.mSurfaceHeight - (BOTTOM_PADDING + bounds.height()));\n }",
"public void setLocation(float x, float y);",
"public void setSpawn (int x, int y) {\n xCord = x;\n yCord = y;\n }",
"public void setPosition(float x, float y){\n\t\t\n\t\tsprite.setPosition(x, y);\n\t}",
"public void setPosition(Point position){\r\n this.position.set(position.x, position.y);\r\n\r\n this.shadow.setPosition(position);\r\n this.surface.setPosition(position);\r\n this.shading.setPosition(position);\r\n\r\n\r\n this.setBounds(new Rect(\r\n this.position.x - this.radius,\r\n this.position.y - this.radius,\r\n this.position.x + this.radius,\r\n this.position.y + this.radius\r\n ));\r\n \r\n }",
"public void centerOnScreen() {\n Runnable doUpdate = new Runnable() {\n public void run() {\n Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();\n Dimension window = getSize();\n int iCenterX = screen.width / 2;\n int iCenterY = screen.height / 2;\n setLocation(iCenterX - (window.width / 2), iCenterY - (window.height / 2));\n }\n };\n SwingUtilities.invokeLater(doUpdate);\n }",
"void setCenter() {\n\t\tLine line02 = new Line(myParent, new PVector(), new PVector());\n\t\tLine line13 = new Line(myParent, new PVector(), new PVector());\n\t\tline02.set(point[0].position, point[2].position);\n\t\tline13.set(point[1].position, point[3].position);\n\t\tif (line02.intersects_at(line13) != null) // if two points are on each\n\t\t\t\t\t\t\t\t\t\t\t\t\t// other\n\t\t\tcenter.set(line02.intersects_at(line13));\n\t}",
"public static void centerOn(Sprite sprite, float x, float y) {\n\t\tsprite.setOrigin(sprite.getWidth() * 0.5f, sprite.getHeight() * 0.5f);\n\t\tsprite.setPosition(x - sprite.getOriginX(), y - sprite.getOriginY());\n\t}",
"public void setPosition(float x, float y)\n {\n if (getMazeSprite() != null)\n {\n this.getMazeSprite().setPosition(x, y);\n }\n }",
"public void setPosition(float x, float y)\n {\n bounds.offsetTo(\n x - positionAnchor.x,\n y - positionAnchor.y);\n notifyParentOfPositionChange();\n conditionallyRelayout();\n }",
"public void setPosition(int x, int y) {\n this.coordX = x;\n this.coordY = y;\n }",
"public void centerOnScreen()\n {\n \t// Get the size of the screen\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n \n // Determine the new location of the window\n int w = frame.getSize().width;\n int h = frame.getSize().height;\n int xloc = (dim.width-w)/2;\n int yloc = (dim.height-h)/2;\n\n // Move the window\n frame.setLocation(xloc, yloc);\n }",
"public void updatePosition(float x, float y){\n rect = new Rectangle2D.Float(x,y,width,height);\n this.x = x;\n this.y = y;\n }",
"public void centre(){\n //Skip if not windowed\n if(type != Type.WINDOWED){\n return;\n }\n\n //Retrieve the handle of the primary monitor\n long primaryMonitor = glfwGetPrimaryMonitor();\n\n //Retrieve the top left corner of the primary monitor\n IntBuffer posX;\n IntBuffer posY;\n try(MemoryStack stack = MemoryStack.stackPush()){\n posX = stack.mallocInt(1);\n posY = stack.mallocInt(1);\n glfwGetMonitorPos(primaryMonitor, posX, posY);\n }\n\n //Centre the window on that monitor\n GLFWVidMode mode = glfwGetVideoMode(primaryMonitor);\n int newX = posX.get(0) + (mode.width() / 2) - (int) (size.x / 2);\n int newY = posY.get(0) + (mode.height() / 2) - (int) (size.y / 2);\n\n //Move the window and change the field\n glfwSetWindowPos(handle, newX, newY);\n position.set(newX, newY);\n }",
"public void setPosition(double x, double y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"private void setSpritesPosition()\r\n\t{\r\n\t\tfloat w = Gdx.graphics.getWidth();\r\n\t\tfloat h = Gdx.graphics.getHeight();\r\n\t\t\r\n\t\tsetX(camera.position.x-camera.viewportWidth/2 + 0.1f * camera.viewportWidth/2);\r\n\t\tsetY(camera.position.y + camera.viewportHeight/2 - 0.15f*w/h* camera.viewportHeight/2);\r\n\t\theroHealth.setX(getX());\r\n\t\theroHealth.setY(getY());\r\n\t\t\r\n\t\tcover.setX(getX() + 10f/270f * heroHealth.getWidth());\r\n\t\tcover.setY(getY());\r\n\t\t\r\n\t}",
"private void centerFrame() {\n Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();\n\n int x = (int) ((dimension.getWidth() - this.getWidth()) / 2);\n int y = (int) ((dimension.getHeight() - this.getHeight()) / 2);\n\n this.setLocation(x, y);\n }",
"public void updatePosition(int y, int x){\r\n\t\tposition = owner.getPosition().add(new Vector(x*SIZE, y*SIZE));\r\n\t\tcenter = this.position.add(new Vector(SIZE/2.,SIZE/2.));\r\n\t\tnode = new Node(center, y*owner.C + x);\r\n\t}",
"public void placeInCenter( JFrame f ){\n f.setLocation(widthScreen / 2 - f.getWidth()/2 , heightScreen / 2 - f.getHeight()/2);\n }",
"protected void centra() {\n\t\t\n\t\t// dimensione schermo\n\t\tDimension dimScreen = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint wScreen=dimScreen.width;\n\t\tint hScreen=dimScreen.height;\n\n\t\t// dimensione frame\n\t\tint wFrame=this.getWidth();\n\t\tint hFrame=this.getHeight();\n\t\t\n\t\t// calcolo le nuove coordinate\n\t\tint x = (wScreen-wFrame)/2;\n\t\tint y = (hScreen-hFrame)/2;\n\t\t\n\t\t// sposto il frame\n\t\tsetLocation(x, y);\n\t\t\n\t}",
"public AnimatorType position(float x, float y)\n {\n return position(new PointF(x, y));\n }",
"public void translate(float x, float y){\n hitBox.offset(x, y);\n }",
"public void setPosition(float x, float y) {\n\t\tthis.position.set(x, y, 0);\n\t}",
"public void SetPosition(float x, float y) {\n mX = x;\n mY = y;\n for (int i = 0; i < mCardCount; i++) {\n SetCardPosition(i);\n }\n }",
"public void setPosicao() {\n Dimension d = this.getDesktopPane().getSize();\n this.setLocation((d.width - this.getSize().width) / 2, (d.height - this.getSize().height) / 2);\n }",
"private void updatePosition (Coordinate newPosition) {\n centerX = newPosition.x;\n centerY = newPosition.y;\n\n atomSpriteBoundary.left = centerX - spriteLength/2;\n atomSpriteBoundary.right = centerX + spriteLength/2;\n atomSpriteBoundary.top = centerY - spriteHeight/2;\n atomSpriteBoundary.bottom = centerY + spriteHeight/2;\n }",
"public void setPosition(double x, double y) {\n getMotion().setPosition(x, y);\n }",
"void setPos(Vec3 pos);",
"public void setPosition(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"private void centre() {\n Dimension localDimension = Toolkit.getDefaultToolkit().getScreenSize();\n int i2 = (int) Math.min(localDimension.width * WIDTH, localDimension.height * WIDTH);\n\n Rectangle localRectangle = new Rectangle();\n localRectangle.setBounds(((localDimension.width - i2) / TWO), \n ((localDimension.height - i2) / TWO), i2, i2);\n\n setBounds(localRectangle);\n\n }",
"public void centerCanvasAt(float x, float y)\n\t{\n\t\tcameraX = x;\n\t\tcameraY = y;\n\n\t\tupdateCurrentSheetCameraValues();\n\n\t\trenderer.updateMvpMatrix();\n\t\tloadAllVisibleChunks(true, true);\n\t\trequestRender();\n\t}",
"public void centerMapOnCurrentHero() {\n if (map.getCurrentTurnHero() == null) {\n return;\n }\n centerMapOnPoint(map.getCurrentTurnHero().getX(), map.getCurrentTurnHero().getY());\n }",
"public void setPosition(int x, int y) {\r\n\t\tmyX = x;\r\n\t\tmyY = y;\r\n\t}",
"public void setLocation(int x, int y){\n if(x < 0 || x > 19 || y < 0 || y > 19){\n // The user has tried to move outside the bounds of the world, so\n // we call the die() method which causes the Player to die.\n die();\n } else {\n // The user is trying to move within the bounds of the world. Run\n // the Actor class' own setLocation() method to move the Player.\n super.setLocation(x, y);\n }\n }",
"@Override\n\tpublic void setPos(int x, int y) {\n\t\txPos = x;\n\t\tyPos = y;\n\t}",
"public void setPosition(double x, double y){\r\n this.x = (float)x;\r\n this.y = (float)y;\r\n changed();\r\n }",
"public void setPosition(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"public void setPos(float x, float y, float z)\n {\n worldMatrix.setPos(x, y, z);\n mPosition = worldMatrix.getPos();\n }",
"public void setCenter(Point center) {\r\n this.center = center;\r\n }",
"private void centreFrameInScreen() {\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n }",
"public void setPosition(int x, int y) {\n this.mXPosition = x;\n this.mYPosition = y;\n }",
"public void setStartCoords(float x, float y) {\n\t\tplay.setX(x);\n\t\tplay.setY(y);\n\t}",
"public void centerCameraOn(GameObject thing) {\r\n\t\tthis.cameraX = (int)(thing.getX() - Game.WIDTH / 2);\r\n\t\tthis.cameraY = (int) (thing.getY() - Game.HEIGHT / 2);\r\n\t}",
"private void drawCenter(double x, double y) {\n\t\tdouble r = findCenterRadius(x, y);\n\t\tGPoint corner = findCenterCorner(r, x ,y);\n\t\tcenterCircle = new GOval(2*r,2*r);\n\t\tadd(centerCircle, corner);\n\t\t//GPoint center = new GPoint(corner.getX() - r, corner.getY() - r );\n\t}",
"private void centerFrame() {\n Dimension dim = Utils.getScreenSize();\n /* Calculate the new position, according frame size itself\n and set it to window location */\n MainFrame.setLocation((dim.width - X_SIZE) / 2, (dim.height - Y_SIZE) / 2);\n\n }",
"public void panCenterTo(Coordinate coord) {\n \t\tpanCenterTo(coord, tweening);\n \t}",
"public void setCenterX(double x) { centerX.set(clamp(x, X_MIN, X_MAX)); }",
"public void setCardPos(double x, double y ){\r\n setX(x);\r\n setY(y);\r\n }",
"public void panOriginTo(double x, double y) {\n \t\tfloat tx = (float) (x / mapDisplay.sc);\n \t\tfloat ty = (float) (y / mapDisplay.sc);\n \t\tsetPosition(tx, ty, tweening);\n \t}",
"private void positionObjectInScene(float x, float y, float z) {\n setIdentityM(modelMatrix, 0);\n translateM(modelMatrix, 0, x, y, z);\n multiplyMM(modelViewProjectionMatrix, 0, viewProjectionMatrix,\n 0, modelMatrix, 0);\n }",
"public void panCenterTo(float x, float y) {\n \t\tLocation location = mapDisplay.pointLocation(x, y);\n \t\tpanCenterTo(location);\n \t}",
"public void setPosition(int x, int y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"public void setPosition(double x, double y) {\n\t\tsetX(x);\n\t\tsetY(y);\n\t}",
"public void setX(float x){\n hitBox.offsetTo(x,hitBox.top);\n //this.x=x;\n }",
"void moveToPoint(float x, float y) {\n _x = x;\n _y = y;\n }",
"void setOffsetWorldPosition(double x, double y, double z);",
"public void setBallLocation(int x, int y, int level){\n rect.left = x ;\n rect.top = y-200;\n rect.right = x + width;\n rect.bottom = y - 100 - height;\n\n this.setRandomVelocity(level);\n this.xVelocity = 0;\n }",
"public void setCenter(Point center) {\r\n\t\tthis.center = center;\r\n\t}",
"@Override\n public void setLoc(Point p) {\n this.rect.setLocation(p);\n }",
"private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }",
"public void centerFrame() {\n Toolkit toolkit = getToolkit();\n Dimension size = toolkit.getScreenSize();\n setLocation((size.width/2 - getWidth()/2),(size.height/2 - getHeight()/2));\n }",
"Point getCenter();",
"Point getCenter();",
"public void updatePosition() {\n \t\r\n \tx += dx;\r\n \ty += dy;\r\n \t\r\n\t}",
"public void setCenterPosition(ViewPosition p) {\n\n\t}",
"public void setPosition(Point position);",
"public void setPosition(double x, double y) {\n // set the location\n setLocation((int)Math.round(x), (int)Math.round(y));\n \n // set the position variables\n position.x = x;\n position.y = y;\n }",
"public void setPosition(Point pos) {\n this.topLeft = pos.asVector();\n }",
"public void Center(JFrame frame)\n\t{\n\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint w = frame.getSize().width;\n\t\tint h = frame.getSize().height;\n\t\tint x = (dim.width-w)/2;\n\t\tint y = (dim.height-h)/2;\t\n\t\tframe.setLocation(x, y);\n\t}",
"public void positionBall (int nx, int ny)\n {\n ballX= nx; \n ballY= ny; \n this.width=this.getWidth();\n this.height=this.getHeight();\n repaint();\n }",
"@Override\n public void updateCenter(int newX, int newY) {\n Point oldCenter = wrappedPolygon.getCenterPoint();\n wrappedPolygon.translate(newX - oldCenter.x, newY - oldCenter.y);\n }",
"private void center(Display display) {\n\t Monitor primary = display.getPrimaryMonitor();\n\t Rectangle bounds = primary.getBounds();\n\t Rectangle rect = shell.getBounds();\n\t int x = bounds.x + (bounds.width - rect.width) / 2;\n\t int y = bounds.y + (bounds.height - rect.height) / 2;\n\t shell.setLocation(x, y);\n\t}",
"public void movePositionBox(double x, double y) {\n double myX = x - positionBoxSizeX / 2;\n double myY = y - positionBoxSizeY / 2;\n if (myX > drawPane.getWidth() - positionBoxSizeX) {\n myX = drawPane.getWidth() - positionBoxSizeX;\n } else if (x < (positionBoxSizeX / 2)) {\n myX = 0;\n }\n if (myY > drawPane.getHeight() - positionBoxSizeY) {\n myY = drawPane.getHeight() - positionBoxSizeY;\n } else if (myY < 0) {\n myY = 0;\n }\n positionBox.relocate(myX, myY);\n }",
"private void setUpStartPosition()\n {\n \tthis.xPos = startTile.xPos;\n this.yPos = startTile.yPos - startTile.tileHeight;\n yPos--;\n \n System.out.println(\"Player is on level \" + level + \n \" at position x: \" + xPos + \", y: \" + yPos); \n }",
"public void setPosition(ScreenPoint p) {\n setX(p.x);\n setY(p.y);\n }",
"void setPosition(Vector3f position);",
"public void setPosicao() {\n Dimension d = this.getDesktopPane().getSize();\n this.setLocation((d.width - this.getSize().width) / 2, (d.height - this.getSize().height) / 2); \n}"
] |
[
"0.7532271",
"0.71160835",
"0.69488597",
"0.6943513",
"0.6868103",
"0.68049073",
"0.67797065",
"0.6718457",
"0.6618873",
"0.6603303",
"0.6597672",
"0.656355",
"0.6560592",
"0.6538006",
"0.649694",
"0.6469292",
"0.64211273",
"0.6377504",
"0.63757354",
"0.6371156",
"0.6369781",
"0.6356591",
"0.6347342",
"0.63358754",
"0.6318846",
"0.6310005",
"0.63095355",
"0.6308752",
"0.62862104",
"0.6277794",
"0.6253716",
"0.6244433",
"0.62376046",
"0.6236623",
"0.6231295",
"0.62066257",
"0.61885333",
"0.6177718",
"0.617561",
"0.6164174",
"0.6157991",
"0.61546284",
"0.61538833",
"0.61506045",
"0.61503905",
"0.6137297",
"0.613508",
"0.6107539",
"0.6105182",
"0.6086247",
"0.60854506",
"0.60710317",
"0.606731",
"0.6064961",
"0.6058785",
"0.6057977",
"0.60565984",
"0.6052352",
"0.60516053",
"0.60412264",
"0.603435",
"0.6032091",
"0.6011939",
"0.5986462",
"0.5985687",
"0.5968417",
"0.59655815",
"0.596142",
"0.59521914",
"0.5950277",
"0.5950162",
"0.5937214",
"0.59360605",
"0.5935015",
"0.59327817",
"0.5930177",
"0.5927916",
"0.5927376",
"0.5914521",
"0.5907898",
"0.5896495",
"0.5881202",
"0.58801484",
"0.58797747",
"0.58785176",
"0.58785176",
"0.58771765",
"0.5876275",
"0.58726656",
"0.58690405",
"0.5863338",
"0.58571225",
"0.5856933",
"0.5853448",
"0.5845089",
"0.5839444",
"0.5829168",
"0.58290565",
"0.5812957",
"0.58116126"
] |
0.7176508
|
1
|
Returns the color the actor will be tinted when drawn. The returned instance can be modified to change the color.
|
public Color getColor() {
return internalGroup.getColor();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected final Color getColor() {\n\t\treturn tile.getColor();\n\t}",
"public Color getColor() {\r\n\t\tColor retVal = theColor;\r\n\t\treturn retVal;\r\n\t}",
"@Override\n Color getColor() {\n return new Color(32, 83, 226, 255);\n }",
"public Color getColor() {\n\t\treturn (Color)p.getPaint();\n\t}",
"public final Color getColor() {\n return color;\n }",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"public final Color getColor() {\r\n return color;\r\n }",
"public final Color getColor() {\n\t\treturn color;\n\t}",
"public Color getColor() {\n return Color.YELLOW;\n }",
"public Color getColor() {\n switch(this.value) {\n case 2: return new Color(0xEEE4DA);\n case 4: return new Color(0xEDE0C8);\n case 8: return new Color(0xF2B179);\n case 16: return new Color(0xF59563);\n case 32: return new Color(0xF67C5F);\n case 64: return new Color(0xF65E3B);\n case 128: return new Color(0xEDCF72);\n case 256: return new Color(0xEDCC61);\n case 512: return new Color(0xEDC850);\n case 1024: return new Color(0xEDC53F);\n case 2048: return new Color(0xEDC22E);\n \n }\n // Default color for null tiles\n return new Color(0xCDC1B4);\n }",
"public RMColor getColor()\n {\n return getStyle().getColor();\n }",
"public Color getColorObject() {\n switch (this) {\n case WHITE:\n return new Color(255,255,255);\n case BLACK:\n return new Color(0,0,0);\n case RED:\n return new Color(255,0,0);\n case GREEN:\n return new Color(0,255,0);\n case BLUE:\n return new Color(0,0,255);\n default:\n return null;\n }\n\n }",
"public Color getColor();",
"public Color getColor();",
"public Color getColor();",
"public Color getColor() \n\t{\n\t\treturn color;\n\t}",
"java.awt.Color getColor();",
"@Override\n public ShapeColor getColor() {\n return new ShapeColor(this.r, this.g, this.b);\n }",
"public Color getColor() {\n \t\treturn color;\n \t}",
"public int getColor() {\n \t\treturn color;\n \t}",
"public Integer getColor() {\n\t\treturn color;\n\t}",
"public int getColor() {\n return color;\n }",
"public Color getColor()\n {\n return mTeam.getColor();\n }",
"public Color getColor() {\r\n\t\treturn color;\r\n\t}",
"public Color getColor() {\r\n\t\treturn color;\r\n\t}",
"public Color getColor() {\n\t\treturn this.color;\n\t}",
"public Color getColor() {\n\t\treturn _color;\n\t}",
"public Color getColor()\n {\n return color;\n }",
"public Color getColor()\n {\n return color;\n }",
"public Color getColor()\n {\n return color;\n }",
"public Color getColor()\n {\n return color;\n }",
"public int getColor() {\n return this.color;\n }",
"public Color getColor() {\n return color;\r\n }",
"public int getColor() {\r\n return Color;\r\n }",
"public int getColor(){\r\n\t\treturn color;\r\n\t}",
"public String getColor() {\r\n\t\treturn color;\r\n\t}",
"public Color getColor() {\n\t\treturn color;\n\t}",
"public Color getColor() {\n\t\treturn color;\n\t}",
"public Color getColor() {\n\t\treturn color;\n\t}",
"public Color getColor() {\n\t\treturn color;\n\t}",
"@Override\n\tpublic Color getColor() {\n\t\treturn playerColor;\n\t}",
"public Color getCurrentColor();",
"public String getColor() {\n\t\treturn color;\n\t}",
"public String getColor() {\n\t\treturn color;\n\t}",
"public AvatarColor getColor() {\n return this.color;\n }",
"public Color getColor() { return color.get(); }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\n return color;\n }",
"public Color getColor() {\r\n return color;\r\n }",
"public Color getColor() {\r\n return color;\r\n }",
"public Color getColor() {\r\n return color;\r\n }",
"public int getColor(){\n\t\treturn color;\n\t}",
"public int getColor(){\n\t\treturn color;\n\t}",
"public static Color getColor() {\n return myColor;\n }",
"public Color getColor() {\n return color;\n }",
"public int getColor()\r\n {\r\n return m_iColor;\r\n }",
"public Color color() {\n r = 34;\n g = 0;\n b = 231;\n return color(r, g, b);\n }",
"public Color getColor() {\n return this.color;\n }",
"public Color getColor() {\n return this.color;\n }",
"public Color getColor() {\n return this.color;\n }",
"public Color getColor() {\r\n return this.color;\r\n }",
"@ColorInt\n public int getColor() {\n return mColor;\n }",
"public int getColor();",
"public int getColor();",
"public String getColor()\n {\n return color;\n }",
"public String getColor()\n {\n return color;\n }",
"public Color getColor() {\n\t\treturn Color.RED;\n\t}",
"public Color getColor() {\n\t\treturn couleur;\n\t}",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public Color getColor()\r\n\t{\r\n\t\treturn _g2.getColor();\r\n\t}",
"public Color getColor() {\n return this.color;\n }",
"public GameColor getColor();",
"public String getColor() {\r\n return color;\r\n }",
"public Color getColor() { return color; }",
"public Color getColor() {\n\treturn color;\n }",
"@Override\n public Color getColor() {\n return color;\n }",
"public String getColor()\n {\n return this.color;\n }",
"public Color getColor() {\r\n return currentColor;\r\n }",
"public Color getColor()\n { \n return color;\n }",
"public java.awt.Color getColor() {\n return this.color;\n }",
"public java.awt.Color getColor() {\n return this.color;\n }",
"@Override\n public String getColor() {\n return this.color.name();\n }",
"public java.awt.Color getColor() {\r\n return color;\r\n }",
"public Color getColor(){\n return color;\n }",
"public java.awt.Color getColor() {\r\n return this.color;\r\n }",
"public String getColor() {\n return this.color;\n }"
] |
[
"0.699758",
"0.6832386",
"0.6742325",
"0.6727275",
"0.6711614",
"0.6681707",
"0.6681707",
"0.6681707",
"0.6681707",
"0.6681707",
"0.66524065",
"0.664097",
"0.6629548",
"0.658149",
"0.65637255",
"0.65567",
"0.65276223",
"0.65276223",
"0.65276223",
"0.6524218",
"0.65222996",
"0.6504012",
"0.64734876",
"0.64702356",
"0.64671475",
"0.64573735",
"0.64353234",
"0.6424712",
"0.6424712",
"0.64187753",
"0.6405337",
"0.6404599",
"0.6399534",
"0.6399534",
"0.6399534",
"0.6398679",
"0.63979244",
"0.63924867",
"0.63847315",
"0.6384235",
"0.63837504",
"0.63837504",
"0.63837504",
"0.63837504",
"0.63835436",
"0.6383085",
"0.63798624",
"0.63798624",
"0.6374839",
"0.63709855",
"0.63703585",
"0.63703585",
"0.63703585",
"0.63703585",
"0.63703585",
"0.63703585",
"0.6360554",
"0.6360554",
"0.6360554",
"0.6358517",
"0.6358517",
"0.63580865",
"0.635033",
"0.6342454",
"0.6339145",
"0.63346297",
"0.63346297",
"0.63346297",
"0.6325414",
"0.63242525",
"0.6315146",
"0.6315146",
"0.6314055",
"0.6314055",
"0.63119686",
"0.6306026",
"0.6300416",
"0.6300416",
"0.6300416",
"0.6300416",
"0.6300416",
"0.6300416",
"0.6300416",
"0.6300416",
"0.62885094",
"0.6286598",
"0.62857556",
"0.6278441",
"0.6272816",
"0.62653553",
"0.62590075",
"0.62582135",
"0.62558174",
"0.62294996",
"0.62268335",
"0.62268335",
"0.62222296",
"0.6220182",
"0.6219727",
"0.6211516",
"0.62101275"
] |
0.0
|
-1
|
Sets a name for easier identification of the actor in application code.
|
public void setName(String name) {
internalGroup.setName(name);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public final void setName(String name) {_name = name;}",
"public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\n _name = name;\n }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public synchronized void setName(Identifier name) {\n Identifier old = this.name;\n this.name = name;\n firePropertyChange (PROP_NAME, old, name);\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(final String name);",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\n\t\tName = name;\n\t}",
"void setName(String name_);",
"public void setName( String name )\n {\n this.name = name;\n }",
"public void setName( String name )\n {\n this.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName( final String name )\r\n {\r\n this.name = name;\r\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName(String name) {\r\n\t\t_name = name;\r\n\t}",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName( String name ) {\n this.name = name;\n }",
"public void setName(String name)\n {\n this.name = name;\n }",
"public void setName(String name)\n {\n this.name = name;\n }",
"public void setName(String name)\n {\n this.name = name;\n }",
"public void setName(String name)\n {\n this.name = name;\n }",
"public void setName(String name)\n {\n this.name = name;\n }",
"public void setName(String name)\n {\n this.name = name;\n }",
"public void setName(String name)\n {\n this.name = name;\n }",
"public void setName(String name)\n {\n this.name = name;\n }",
"public void setName(String name)\n {\n this.name = name;\n }",
"public void setName(String name)\n {\n this.name = name;\n }",
"protected void setName(String name) {\n this._name = name;\n }",
"public void setName(String aName) {\n name = aName;\n }",
"public void setName (String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name)\n {\n this.name = name;\n }",
"public void setName(String name) {\r\n \t\tthis.name = name;\r\n \t}",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name)\r\n {\r\n\tthis.name = name;\r\n }",
"public void setName(String name) {\r\n this._name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name)\n \t{\n \t\tthis.name = name;\n \t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"public void setName(String name) {\n\n this.name = name;\n }",
"public final void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }"
] |
[
"0.7591428",
"0.7411985",
"0.73689586",
"0.73689586",
"0.73689586",
"0.73655367",
"0.73528725",
"0.73528725",
"0.73528725",
"0.73528725",
"0.7339159",
"0.7333917",
"0.7333917",
"0.7333917",
"0.7333917",
"0.7330487",
"0.7330487",
"0.7330487",
"0.7328177",
"0.73281187",
"0.73281187",
"0.73281187",
"0.73281187",
"0.73281187",
"0.73281187",
"0.73281187",
"0.73281187",
"0.73281187",
"0.73281187",
"0.73281187",
"0.73281187",
"0.73281187",
"0.73281187",
"0.73281187",
"0.73281187",
"0.73281187",
"0.73281187",
"0.73281187",
"0.73242164",
"0.73220325",
"0.7321683",
"0.7321683",
"0.73165905",
"0.73165905",
"0.73135436",
"0.73117214",
"0.7311695",
"0.7311695",
"0.7311695",
"0.7311202",
"0.7310993",
"0.7310993",
"0.73082536",
"0.73082536",
"0.73082536",
"0.73082536",
"0.73082536",
"0.73082536",
"0.73082536",
"0.73082536",
"0.73082536",
"0.73082536",
"0.73082536",
"0.7302305",
"0.73019034",
"0.7300136",
"0.7300136",
"0.7300136",
"0.7300136",
"0.7300136",
"0.7300136",
"0.7300136",
"0.7300136",
"0.7300136",
"0.7300136",
"0.7299142",
"0.729894",
"0.72981167",
"0.7297268",
"0.72959775",
"0.7295328",
"0.7293924",
"0.72902334",
"0.72893536",
"0.72893536",
"0.72893536",
"0.7285856",
"0.72826725",
"0.72826725",
"0.72826725",
"0.728242",
"0.7280323",
"0.72798306",
"0.7278382",
"0.7278382",
"0.7278382",
"0.7278382",
"0.7278382",
"0.7278382",
"0.7278382",
"0.7278382"
] |
0.0
|
-1
|
Returns y plus height.
|
public float getTop() {
return internalGroup.getTop();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public double getY() { return _height<0? _y + _height : _y; }",
"public int getYBottom() {\n return getYTop() + getYWidth();\n }",
"public float getYHeight() {\n\t\treturn this.yHeight;\n\t}",
"public double getMaxY() { return getY() + getHeight(); }",
"public double getyOffset() {\n\n return currentYOffset + yOffset;\n }",
"public int getHeight() {\r\n\t\treturn height + yIndent;\r\n\t}",
"public int yPos() {\n\t\treturn Engine.scaleY(y);\n\t}",
"public double getMaximumY () {\n return minimumY + height;\n }",
"public int y() {\r\n\t\treturn yCoord;\r\n\t}",
"private int abstToDeskY(float y)\n {\n return (int)(height*y);\n }",
"public double getY() {\r\n return this.dy;\r\n }",
"public final int getMaxY() {\n return getMinY() + getHeight();\n }",
"public int getSizeY() {\r\n\t\treturn sizeY;\r\n\t}",
"protected float getY(float y) {\r\n\t\treturn this.getHeight() - ((y - viewStart.y) * parent.pixelsPerUnit);\r\n\t}",
"public int getYSize()\n\t{\n\t\treturn this.ySize;\n\t}",
"public int getHeight() { return height; }",
"public final int getHeight() {\r\n return (int) size.y();\r\n }",
"@Override\r\n\tpublic int getY() {\n\t\treturn (int)y;\r\n\t}",
"public int getYSize() {\n\t\treturn (highPoint.getBlockY() - lowPoint.getBlockY()) + 1;\n\t}",
"private int pileHeightY() {\n\t\treturn VSHIFT*(size()-1) + Card.height;\n\t}",
"public int getY() { return y; }",
"public int getY() { return y; }",
"public void changeHeight(double y)\r\n {\n }",
"public int getBottomY() {\n\t\treturn 0;\r\n\t}",
"double getNewHeight();",
"public int getSizeY(){\r\n\t\treturn size[1];\r\n\t}",
"public int getY() {\n return y;\r\n }",
"public int getY() {\r\n\t\treturn y;\r\n\t}",
"public int getY() {\r\n\t\treturn y;\r\n\t}",
"public int getY() {\r\n\t\treturn y;\r\n\t}",
"int getheight();",
"public int getY() {return y;}",
"public float getHeight()\n {\n return getUpperRightY() - getLowerLeftY();\n }",
"int getHeight() {return height;}",
"public int getHeight() {return height;}",
"int getLineHeight() {\n\treturn ascent + descent;\n}",
"public int getY()\r\n\t{\r\n\t\treturn y;\r\n\t}",
"long getY();",
"public int getY() {\r\n return y;\r\n }",
"public int getY() {\r\n return y;\r\n }",
"public int getyCoord() {\r\n\t\treturn yCoord;\r\n\t}",
"public int getY() {\n return y;\n }",
"public int getY() {\n return y;\n }",
"public int getY() {\n return y;\n }",
"public int getY() {\n return y;\n }",
"public int getY() {\n return y;\n }",
"public int getY() {\n return y;\n }",
"public int getY() {\n return y;\n }",
"public int getY() {\n return y;\n }",
"public int getY() {\n return y;\n }",
"public int getY() {\n return y;\n }",
"public int getY() {\n return y;\n }",
"public int getY() {\n return y;\n }",
"public int getY() {\n return y;\n }",
"public int getY() {\n return y;\n }",
"public int getY() {\n return y;\n }",
"public float getHeight() {\n return 2f * yRadius;\n }",
"public double fixY( double y )\n {\n return pageSize.getHeight() - y;\n }",
"public int getY(){\r\n\t\treturn y;\r\n\t}",
"public int getY() {\n\t\treturn y;\n\t}",
"public int getY() {\n\t\treturn y;\n\t}",
"public int getY() {\n\t\treturn y;\n\t}",
"public int getY() {\n\t\treturn y;\n\t}",
"public int getY() {\n\t\treturn y;\n\t}",
"public int getY() {\n\t\treturn y;\n\t}",
"public int getY() {\n\t\treturn y;\n\t}",
"public int getY() {\n\t\treturn y;\n\t}",
"public int getY() {\n\t\treturn y;\n\t}",
"public int getY() {\n\t\treturn y;\n\t}",
"public int getY() {\n\t\treturn y;\n\t}",
"public int getCurrentHeight();",
"public int y() {\n\t\treturn this.y;\n\t}",
"int getY() {\n return y;\n }",
"int getY() {\n return y;\n }",
"int getY() {\n return y;\n }",
"public double getY() {\n\t\tRectangle2D bounds = _parentFigure.getBounds();\n\t\tdouble y = bounds.getY() + (_yt * bounds.getHeight());\n\t\treturn y;\n\t}",
"public double getBottom() {\n return this.yD;\n }",
"public int getY() {\n return (int) Math.round(y);\n }",
"public int getY()\n {\n return y;\n }",
"public int getY()\n {\n return y;\n }",
"public int getY() { return (int)y; }",
"public Integer getYOffset() {\n\t\tdouble frameHeight = this.pixy.getFrameHeight();\n\t\tdouble blockY = this.getY();\n\n\t\treturn (int) (frameHeight / 2 + blockY);\n\t}",
"public int getY() {\n return PADDING;\n //return rowToY(this.getRows());\n //throw new UnsupportedOperationException();\n }",
"public int getHeight(){\n \treturn height;\n }",
"public int getY()\n {\n return this.y;\n }",
"public int getyPosition() {\n\t\treturn yPosition;\n\t}",
"public int getY()\n\t{\n\t\treturn y;\n\t}",
"public int getY()\n\t{\n\t\treturn y;\n\t}",
"public int getY()\n\t{\n\t\treturn y;\n\t}",
"public int getY()\n\t{\n\t\treturn y;\n\t}",
"public int getY()\n\t{\n\t\treturn y;\n\t}",
"public int getY()\n\t{\n\t\treturn y;\n\t}",
"public int getY()\r\n\t{\r\n\t\treturn (int)y;\r\n\t}",
"double getOldHeight();",
"public int getY() {\r\n return this.y;\r\n }",
"public int getY() {\r\n\t\treturn this.y;\r\n\t}",
"private double getHeight() {\n\t\treturn height;\n\t}",
"public int getY() { return y;}",
"public int getY() { return y;}",
"int getY();",
"int getY();"
] |
[
"0.80818033",
"0.7450128",
"0.7405723",
"0.728737",
"0.7133754",
"0.7104616",
"0.7070045",
"0.705346",
"0.6986415",
"0.6926421",
"0.69210017",
"0.6910647",
"0.68961173",
"0.6888386",
"0.68652105",
"0.6862996",
"0.68621665",
"0.68465424",
"0.6842829",
"0.6828914",
"0.68272376",
"0.68272376",
"0.6823936",
"0.68181723",
"0.67989945",
"0.67956644",
"0.6792498",
"0.6789182",
"0.6789182",
"0.6789182",
"0.67862284",
"0.67832094",
"0.6777045",
"0.67758346",
"0.67724675",
"0.6771664",
"0.6770783",
"0.6769903",
"0.676426",
"0.676426",
"0.67474604",
"0.6747152",
"0.6747152",
"0.6747152",
"0.6747152",
"0.6747152",
"0.6747152",
"0.6747152",
"0.6747152",
"0.6747152",
"0.6747152",
"0.6747152",
"0.6747152",
"0.6747152",
"0.6747152",
"0.6747152",
"0.6745274",
"0.6743275",
"0.6740476",
"0.67378527",
"0.67378527",
"0.67378527",
"0.67378527",
"0.67378527",
"0.67378527",
"0.67378527",
"0.67378527",
"0.67378527",
"0.67378527",
"0.67378527",
"0.67375684",
"0.67366",
"0.67364717",
"0.67364717",
"0.67364717",
"0.67358804",
"0.67282134",
"0.6726508",
"0.67249125",
"0.67249125",
"0.67246896",
"0.67230254",
"0.6720214",
"0.67196333",
"0.67181814",
"0.6709238",
"0.6708381",
"0.6708381",
"0.6708381",
"0.6708381",
"0.6708381",
"0.6708381",
"0.6706484",
"0.6701988",
"0.6700043",
"0.6699979",
"0.6698599",
"0.6697699",
"0.6697699",
"0.66965115",
"0.66965115"
] |
0.0
|
-1
|
Returns x plus width.
|
public float getRight() {
return internalGroup.getRight();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public double getX() { return _width<0? _x + _width : _x; }",
"public int getCurrentWidth();",
"public final int getWidth() {\r\n return (int) size.x();\r\n }",
"Integer getCurrentWidth();",
"int getWidth() {return width;}",
"public float getWidth() {\n return xRadius;\n }",
"public int getWidth() { return width; }",
"public int getWidth() { return width; }",
"public int getXLength() {\n return xLength;\n }",
"double getNewWidth();",
"private int addCharWidth(int x, char ch) {\n if (ch == '\\t') {\n return x + SINGLE_TAB.getDisplayWidth(x);\n } else if (ch < ' ' || ch == '\\u007f') {\n // FIXME: we could cache these, since there are so few.\n StringBuilder chars = new StringBuilder(6);\n StringUtilities.appendUnicodeEscape(chars, ch);\n return x + metrics[Font.PLAIN].stringWidth(chars.toString());\n } else {\n return x + metrics[Font.PLAIN].charWidth(ch);\n }\n }",
"public double getWidth() {\n\t\treturn mx-nx;\n\t}",
"private int abstToDeskX(float x)\n {\n return (int)(width*x);\n }",
"public double getWxInc() { return extents.getWidth() /getMyWidth(); }",
"public int width();",
"int width();",
"public abstract int getExtraWidth(int specifiedWidth);",
"public static int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"private int getX(int arg) {\n\n\t\targ = (arg * Width) / 1000;\n\n\t\treturn arg;\n\t}",
"private int getX(int arg) {\n\n\t\targ = (arg * Width) / 1000;\n\n\t\treturn arg;\n\t}",
"public final int getWidth(){\n return width_;\n }",
"public int getSizeX() {\r\n\t\treturn sizeX;\r\n\t}",
"public int getWidth() {\r\n return width;\r\n }",
"public float getWidth()\n {\n return getUpperRightX() - getLowerLeftX();\n }",
"public int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public int getWidth()\n {\n return width;\n }",
"int iX(float x)\r\n {return Math.round(cX + x / pSize);}",
"public final int getWidth() {\r\n return width;\r\n }",
"public int xPos() {\n\t\treturn Engine.scaleX(x);\n\t}",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"public int getWidth(){\n\t\treturn width;\n\t}",
"public int getWidth();",
"public int getWidth();",
"public int getWidth();",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\r\n return width;\r\n }",
"public int getWidth() \n\t{\n\t\treturn width;\n\t}",
"public double getMaxX() { return getX() + getWidth(); }",
"public int getWidth() {\n\t\treturn width;\r\n\t}",
"private double getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n\treturn width;\n }",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth()\n\t{\n\t\treturn width;\n\t}",
"public int getWidth()\n\t{\n\t\treturn width;\n\t}",
"public int getWidth()\n {return width;}",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth(){\n return width;\n }",
"int getWidth()\n {\n return width;\n }",
"public double getWidth()\r\n {\r\n return width;\r\n }",
"public org.apache.xmlbeans.XmlString xgetWidth()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(WIDTH$20);\n return target;\n }\n }",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n return width_;\n }",
"public int getWidth(){\n \treturn width;\n }",
"public double getWidth();"
] |
[
"0.7431202",
"0.6633398",
"0.6630444",
"0.65616786",
"0.65230304",
"0.64998335",
"0.64977396",
"0.64977396",
"0.6480235",
"0.6460135",
"0.6439133",
"0.6418156",
"0.64166325",
"0.641074",
"0.637086",
"0.6360272",
"0.63483745",
"0.63323474",
"0.6326182",
"0.6326182",
"0.63215405",
"0.6317514",
"0.6316464",
"0.6304648",
"0.6304403",
"0.6300303",
"0.6294704",
"0.6292325",
"0.6280907",
"0.62802225",
"0.62802225",
"0.62802225",
"0.62802225",
"0.62802225",
"0.62802225",
"0.62802225",
"0.62802225",
"0.62802225",
"0.62802225",
"0.62802225",
"0.62802225",
"0.62802225",
"0.62802225",
"0.62802225",
"0.62802225",
"0.62802225",
"0.627887",
"0.62728757",
"0.62728757",
"0.62728757",
"0.62714064",
"0.62714064",
"0.62710106",
"0.62710106",
"0.62702537",
"0.6267139",
"0.62646574",
"0.6262417",
"0.62613344",
"0.62550944",
"0.62550944",
"0.62550944",
"0.62463766",
"0.62438226",
"0.62438226",
"0.62438226",
"0.62438226",
"0.62438226",
"0.62438226",
"0.62438226",
"0.62438226",
"0.62438226",
"0.62438226",
"0.62438226",
"0.62438226",
"0.62438226",
"0.6237842",
"0.6237842",
"0.6237171",
"0.6234422",
"0.6234422",
"0.6234422",
"0.6234422",
"0.6234422",
"0.6234422",
"0.6234422",
"0.6234422",
"0.6234422",
"0.6234422",
"0.6234422",
"0.6234422",
"0.6234422",
"0.62250376",
"0.62227035",
"0.6222089",
"0.6212246",
"0.6206725",
"0.6206276",
"0.6206276",
"0.6204901",
"0.6202973"
] |
0.0
|
-1
|
Sets the origin X and origin Y.
|
public void setOrigin(float originX, float originY) {
internalGroup.setOrigin(originX, originY);
dataTrait.originX = originX;
dataTrait.originY = originY;
resetSprite();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setOrigin(int x, int y) {\r\n\t\torigin.setLocation(x, y);\r\n\t}",
"public void setOrigin(Point origin) {\n setOrigin(origin.x, origin.y);\n }",
"public void setOrigin(){\n // draw X-axis\n graphics2D.draw(new Line2D.Double(leftMiddle, rightMiddle));\n\n // draw string \"+X\" and \"-X\"\n graphics2D.drawString(\"+X\", (int) rightMiddle.getX() - 10, (int) rightMiddle.getY() - 5);\n graphics2D.drawString(\"-X\", (int) leftMiddle.getX() + 10, (int) leftMiddle.getY() + 10);\n\n // draw Y-axis\n graphics2D.draw(new Line2D.Double(topMiddle, bottomMiddle));\n\n // draw string \"+Y\" and \"-Y\"\n graphics2D.drawString(\"+Y\", (int) topMiddle.getX() + 5, (int) topMiddle.getY() + 10);\n graphics2D.drawString(\"-Y\", (int) bottomMiddle.getX() - 15, (int) bottomMiddle.getY());\n\n }",
"@Override\n\tpublic LSystemBuilder setOrigin(double x, double y) {\n\t\tthis.origin = new Vector2D(x, y);\n\t\treturn this;\n\t}",
"public void setOrigin(Point2D origin) {\r\n if (origin == null) {\r\n return;\r\n }\r\n\r\n Point2D old = getOrigin();\r\n originX = origin.getX();\r\n originY = origin.getY();\r\n firePropertyChange(\"origin\", old, getOrigin());\r\n repaint();\r\n }",
"public void setOrigin(int x, int y) {\n ic.setOrigin(x, y);\n notifyViewportListeners(x, y, panelWidth, panelHeight);\n }",
"public void setOrigin(Point p) {\n origin = new Point(p);\n }",
"public void setOrigin(Vector3f origin) {\r\n\t\tmOrigin.set(origin);\r\n\t}",
"abstract void setOrigin(double x, double y, double z);",
"private void setOrigin() {\n Hep3Vector origin = VecOp.mult(CoordinateTransformations.getMatrix(), _sensor.getGeometry().getPosition());\n // transform to p-side\n Polygon3D psidePlane = this.getPsidePlane();\n Translation3D transformToPside = new Translation3D(VecOp.mult(-1 * psidePlane.getDistance(),\n psidePlane.getNormal()));\n this._org = transformToPside.translated(origin);\n }",
"public void setPathOrigin(int x, int y);",
"public void setOrigin(int[] origin) throws Exception {\n\t\tif (origin[1]>width-1||origin[0]>height-1||origin[1]<1||origin[0]<1) {\n\t\t\tthrow new Exception(\"position wrong\");\n\t\t}\n\t\tthis.origin[0]=origin[0];\n\t\tthis.origin[1]=origin[1];\n\t}",
"@Override\n\tpublic void SetCoord(double x, double y) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void setOrigin(Vec4df origin) {\n this.origin = origin;\n }",
"public void setCoords(int x, int y) {\n\t\t setLayoutX(x);\n\t setLayoutY(y);\n\t}",
"public void setPosition(double x, double y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"public void setPosition(double x, double y) {\n\t\tsetX(x);\n\t\tsetY(y);\n\t}",
"public void setPosition(double x, double y) {\n // set the location\n setLocation((int)Math.round(x), (int)Math.round(y));\n \n // set the position variables\n position.x = x;\n position.y = y;\n }",
"public void setOrigin(int x, int y) {\n checkWidget();\n if (content == null)\n return;\n \n horizontalBar.setPosition(-x);\n verticalBar.setPosition(-y);\n //\t\t\n //\t\tScrollBar hBar = getHorizontalBar();\n //\t\tif (hBar != null) {\n //\t\t\thBar.setSelection(x);\n //\t\t\tx = -hBar.getSelection();\n //\t\t} else {\n //\t\t\tx = 0;\n //\t\t}\n //\t\tScrollBar vBar = getVerticalBar();\n //\t\tif (vBar != null) {\n //\t\t\tvBar.setSelection(y);\n //\t\t\ty = -vBar.getSelection();\n //\t\t} else {\n //\t\t\ty = 0;\n //\t\t}\n content.setLocation(x, y);\n }",
"void setXandY(double x, double y){\r\n\t\tthis.x=x;\r\n\t\tthis.y=y;\r\n\t}",
"public void setPosition(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"public void setLoc(int x, int y) {\n locX = x;\n locY = y;\n }",
"public void setPosition(double x, double y){\r\n this.x = (float)x;\r\n this.y = (float)y;\r\n changed();\r\n }",
"default void setOrigin(Vector3 point) {\r\n setOrigin(point.getX(), point.getY(), point.getZ());\r\n }",
"public void setPosition(int x, int y) {\n this.coordX = x;\n this.coordY = y;\n }",
"public void setPosition(double x, double y)\n {\n mPosition = new Point2D.Double(x, y);\n }",
"public void setLocXY(int x, int y) {\n locX = x;\n locY = y;\n }",
"void setPosition(double xPos, double yPos);",
"public void setLocation(float x, float y);",
"@Override\n\tpublic void setPos(int x, int y) {\n\t\txPos = x;\n\t\tyPos = y;\n\t}",
"public void setPosition(int x, int y) {\n this.mXPosition = x;\n this.mYPosition = y;\n }",
"public void setXY(int x, int y)\n\t{\n\t\tthis.x = x;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's x-coordinate \n\t\tthis.y = y;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's y-coordinate \n\t}",
"public void setLocation(int x, int y) {\r\n manager.setLocation(this, x, y);\r\n }",
"public void setPosition(float x, float y);",
"protected void setupRotationOrigin()\n\t{\n\t\tthis.currentRotationAxis = new Point2D.Double(getOriginX(), getOriginY());\n\t\tupdateDefaultMomentMass();\n\t\tthis.currentMomentMass = this.defaultMomentMass;\n\t\t\n\t\t//changeRotationAxisTo(new Point2D.Double(0, 0));\n\t}",
"public void setPosition(int x, int y)\n\t{\n\t\tint w = getSize().width;\n\t\tint h = getSize().height;\n\n\t\tpos.x = x;\n\n\t\tpos.y = y;\n\n\t\trect.setLocation(x - w / 2, y - h / 2);\n\t}",
"public void setCoordinates(int x, int y) {\n\t\t\n\t\txPosition = x;\t\t\t// Assigns the x integer\n\t\tyPosition = y;\t\t\t// Assigns the y integer\n\t}",
"public void setOriginCoordinatesText(double x, double y) {\n\t\toriginX.setText(Double.toString(x));\n\t\toriginY.setText(Double.toString(y));\n\t}",
"public void setGraphicalWidgetOrigin(double x,\n double y,\n GraphicalWidget<?> gw)\n {\n frameUI.setGraphicalWidgetOrigin(x, y, gw);\n }",
"public void setLocation(double x, double y) {\n currentLocation.x = (int) x;\n currentLocation.y = (int) y;\n refreshLocation();\n }",
"public void setXY(double anX, double aY) { setX(anX); setY(aY); }",
"public final void setPosition(float x, float y) {\n\t\ttranslate(x - this.x(), y - this.y());\n\t}",
"public void set(Coord dest) {\n x = dest.x;\n y = dest.y;\n }",
"public void setPosition(double x, double y) {\n getMotion().setPosition(x, y);\n }",
"public void setPosition(int x, int y) {\r\n\t\tmyX = x;\r\n\t\tmyY = y;\r\n\t}",
"public void setPosition(float x, float y) {\n this.x = x;\n this.y = y;\n }",
"public void setCoord(short xPos , short yPos ){\n this.xPos = xPos;\n this.yPos = yPos;\n }",
"public void setViewAndOrigin(Rectangle2D bounds) {\r\n setView(bounds);\r\n setOrigin(new Point2D.Double(bounds.getCenterX(), bounds.getCenterY()));\r\n }",
"public void setOrigin(String origin) {\n this.origin = origin;\n }",
"public void setOrigin(String origin) {\n this.origin = origin;\n }",
"public void setLocation(int x, int y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"public void setLocation(int X, int Y){\n \tlocation = new Point(X,Y);\n }",
"public void setLocation(int someX, int someY) {\r\n\t\tx = someX;\r\n\t\ty = someY;\r\n\t}",
"public void setLocation(int x,int y)\n\t{\n\t\tthis.x=x;\n\t\tthis.y=y;\n\t}",
"public void setPosicion(double x, double y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}",
"public void setPosition(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"public void setPosition(int x, int y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"void setPos(float x, float y);",
"@Override\n public Position setPosition(double x, double y) {\n this.x = x;\n this.y = y;\n\n return new Position(x, y);\n }",
"public void set(double x, double y) {\n \n _x = x;\n _y = y;\n \n }",
"@Override\n public Point getOrigin() {\n return origin;\n }",
"protected void setPosition(float x, float y) {\n\t\tif (Double.isNaN(x) || Double.isNaN(y)) {\n\t\t\tSystem.err.println(LocalizedString.getString(getClass(), \"INVALID_POSITION\", getName()));\n\t\t} else {\n\t\t\tthis.position.set(x, y);\n\t\t}\n\t}",
"@Override\n public void setPosition(float x, float y) {\n }",
"public void setOrigin(int source) {\r\n\t\tthis.origin = source;\r\n\t}",
"public void setPoint(int x, int y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"void setLocation(int x, int y);",
"public void setPosition(float x, float y) {\n\t\tthis.position.set(x, y, 0);\n\t}",
"@Override public void setPosition(double nx, double ny) {\n super.setPosition(nx, ny);\n ppx = px = nx;\n ppy = py = ny;\n }",
"public void setPosition(double x1, double y1, double x2, double y2){\n\t\tcircle.setFrame(x1, y1, CIRCLE_SIZE, CIRCLE_SIZE);\n\t\tcircle2.setFrame(x2, y2, CIRCLE_SIZE, CIRCLE_SIZE);\n\t}",
"public void panOriginTo(double x, double y) {\n \t\tfloat tx = (float) (x / mapDisplay.sc);\n \t\tfloat ty = (float) (y / mapDisplay.sc);\n \t\tsetPosition(tx, ty, tweening);\n \t}",
"private void setStartLocation(final double originCoord, final int axis) {\r\n\r\n String space;\r\n int index = 0;\r\n\r\n if ( (axis < 0) || (axis > 2)) {\r\n Preferences.debug(\"Error: Axis must be 0, 1, or 2.\\n\", Preferences.DEBUG_FILEIO);\r\n\r\n return;\r\n }\r\n\r\n // opposite axis: if axis is 2 we need to getDimElem(0). See previous examples\r\n // of String spacez = getDimElem(0).name. Minc stores the x dimension in\r\n // 2, the y dimension in 1, and the z dimension in 0.\r\n space = getDimElem(Math.abs(axis - 2)).name;\r\n\r\n for (int i = 0; i < varArray.length; i++) {\r\n\r\n if (varArray[i].name.equals(space)) {\r\n index = i;\r\n }\r\n }\r\n\r\n varArray[index].start = originCoord;\r\n }",
"public Point getOrigin() {\n return origin;\n }",
"private void setOriginNode() {\n double sumX = 0;\n double sumY = 0;\n Iterator<Point> it = _elements.iterator();\n while (it.hasNext()) {\n Point p = it.next();\n sumX += x(p);\n sumY += y(p);\n }\n _nodeOrigin[0] = sumX / _elements.size();\n _nodeOrigin[1] = sumY / _elements.size();\n }",
"public void setXY(int posX, int posY)\r\n\t{\r\n\t\tthis.X = posX;\r\n\t\tthis.Y = posY;\r\n\t}",
"public void setLoc(int lx, int ly){\r\n \tbox.setLocation(lx,ly);\r\n }",
"public void setPosition(float x, float y)\n {\n if (getMazeSprite() != null)\n {\n this.getMazeSprite().setPosition(x, y);\n }\n }",
"public void setCoordinates(final int x, final int y) {\n this.x = x;\n this.y = y;\n }",
"@Override\n\tpublic void setLocation(double x, double y) {\n\t\tdouble oldX = getX();\n\t\tdouble oldY = getY();\n\t\tdouble dx = x - oldX;\n\t\tdouble dy = y - oldY;\n\t\tfor (GPoint point : this) {\n\t\t\tpoint.translate(dx, dy);\n\t\t}\n\t\trepaint();\n\t}",
"public void xsetOrigin(org.apache.xmlbeans.XmlString origin)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ORIGIN$16, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ORIGIN$16);\n }\n target.set(origin);\n }\n }",
"public Vector3fc origin(Vector3f origin) {\n origin.x = cx;\n origin.y = cy;\n origin.z = cz;\n return origin;\n }",
"public void setOrigin(String origin){\r\n\t\tPointingElement originChild = new PointingElement(\"origin\",\"\");\r\n\t\toriginChild.addAttribute(new PointingElement(\"ref\",origin));\r\n\t\tthis.addChild(originChild);\r\n\t}",
"protected void setPosition(double xPosition, double yPosition) throws IllegalArgumentException {\n if ( (!isValidPosition(xPosition)) || (!isValidPosition(yPosition))) throw new IllegalArgumentException(\"Invalid position\");\n else {\n this.position[0] = xPosition;\n this.position[1] = yPosition;\n }\n }",
"public void setFromCoordinates(int fromX, int fromY);",
"public void setCoord(Coords coord) {\r\n\t\tthis.coord = coord;\r\n\t}",
"public Point2D getOrigin() {\r\n return new Point2D.Double(originX, originY);\r\n }",
"public void setPosition(float x, float y){\n\t\t\n\t\tsprite.setPosition(x, y);\n\t}",
"public void setCardPos(double x, double y ){\r\n setX(x);\r\n setY(y);\r\n }",
"public void setFrameXY(double anX, double aY) { setFrameX(anX); setFrameY(aY); }",
"public void set(int x, int y)\r\n\t{\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"@Override\n\tpublic void setCoordinates(double x1, double y2, double x2, double y1) {\n\t\tthis.x1 = x1;\n\t\tthis.y1 = y1;\n\t\tthis.x2 = x2;\n\t\tthis.y2 = y2;\n\t\t\n\t}",
"public void setxCoord(Location l) {\n\t\t\n\t}",
"public void setPosicao() {\n Dimension d = this.getDesktopPane().getSize();\n this.setLocation((d.width - this.getSize().width) / 2, (d.height - this.getSize().height) / 2);\n }",
"public void setStartCoords(float x, float y) {\n\t\tplay.setX(x);\n\t\tplay.setY(y);\n\t}",
"private void setPosition(float x, float y) {\n this.x = x;\r\n this.y = y;\r\n group();\r\n }",
"public void setRelPosition(double x, double y) {\n\t\trelX = x;\n\t\trelY = y;\n\t}",
"public void setOrigin(java.lang.String origin)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORIGIN$16, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ORIGIN$16);\n }\n target.setStringValue(origin);\n }\n }",
"public void setPosition(Point position){\r\n this.position.set(position.x, position.y);\r\n\r\n this.shadow.setPosition(position);\r\n this.surface.setPosition(position);\r\n this.shading.setPosition(position);\r\n\r\n\r\n this.setBounds(new Rect(\r\n this.position.x - this.radius,\r\n this.position.y - this.radius,\r\n this.position.x + this.radius,\r\n this.position.y + this.radius\r\n ));\r\n \r\n }",
"@Override\n public final void updateOrigin() {\n }",
"public void setLocation(float positionX, float positionY) {\r\n\t\tthis.setPositionX((int)positionX);\r\n\t\tthis.setPositionY((int)positionY);\r\n\t\tlocation.setLocation(positionX, positionY);\r\n\t}",
"public void setPosition(Vector2 pos) {\n\t\tsetX(pos.x);\n\t\tsetY(pos.y);\n\t}"
] |
[
"0.81496483",
"0.7958251",
"0.77404076",
"0.77263874",
"0.7491625",
"0.7487836",
"0.73059773",
"0.7176209",
"0.7144752",
"0.70536387",
"0.6925816",
"0.683199",
"0.67684484",
"0.6749346",
"0.67465824",
"0.6741119",
"0.6696216",
"0.66862535",
"0.6672994",
"0.6667985",
"0.66658145",
"0.666326",
"0.6662836",
"0.66565603",
"0.664914",
"0.66283417",
"0.65920055",
"0.6590071",
"0.6569913",
"0.6557137",
"0.65487325",
"0.65377206",
"0.65247935",
"0.6522845",
"0.6520709",
"0.6514522",
"0.6493205",
"0.6486073",
"0.6475963",
"0.6457199",
"0.6454905",
"0.6443428",
"0.6437332",
"0.6430117",
"0.6429297",
"0.6423558",
"0.6418994",
"0.638804",
"0.6382405",
"0.6382405",
"0.6378006",
"0.6346877",
"0.6327711",
"0.63273734",
"0.6320652",
"0.6313047",
"0.63012207",
"0.62848294",
"0.6274239",
"0.62718976",
"0.6250762",
"0.62272304",
"0.6225181",
"0.6221938",
"0.6220153",
"0.6215817",
"0.6211036",
"0.62038493",
"0.6196663",
"0.6183106",
"0.61770177",
"0.617588",
"0.6150988",
"0.61506146",
"0.614154",
"0.6136132",
"0.613037",
"0.61282396",
"0.6121638",
"0.61202794",
"0.6119888",
"0.61143607",
"0.61101794",
"0.61094624",
"0.6040768",
"0.6027298",
"0.60128254",
"0.5998126",
"0.5991355",
"0.59905356",
"0.5987866",
"0.59712833",
"0.5969232",
"0.596612",
"0.5957005",
"0.5955748",
"0.5941516",
"0.59409976",
"0.5937296",
"0.5936264"
] |
0.770664
|
4
|
Set position of Actor to x, y (using bottom left corner of Actor)
|
public void setPosition(float x, float y) {
internalGroup.setPosition(x, y);
dataTrait.x = x;
dataTrait.y = y;
resetSprite();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setPosition(float x, float y);",
"public void setPosition(int x, int y)\n\t{\n\t\tint w = getSize().width;\n\t\tint h = getSize().height;\n\n\t\tpos.x = x;\n\n\t\tpos.y = y;\n\n\t\trect.setLocation(x - w / 2, y - h / 2);\n\t}",
"void setPos(float x, float y);",
"void setPosition(double xPos, double yPos);",
"public void setPosition(float x, float y) {\n this.x = x;\n this.y = y;\n }",
"@Override\n public void setPosition(float x, float y) {\n }",
"private void setPosition(float x, float y) {\n this.x = x;\r\n this.y = y;\r\n group();\r\n }",
"public void setLocation(float x, float y);",
"public void setPosition(double x, double y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"public void setPosition(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"PositionedObject(){\n float x = DrawingHelper.getGameViewWidth()/2;\n float y = DrawingHelper.getGameViewHeight()/2;\n _position.set(x,y);\n }",
"public void setPosition(float x, float y)\n {\n if (getMazeSprite() != null)\n {\n this.getMazeSprite().setPosition(x, y);\n }\n }",
"public void setPosition(int x, int y) {\r\n\t\tmyX = x;\r\n\t\tmyY = y;\r\n\t}",
"public void setPosition(int x, int y) {\n this.coordX = x;\n this.coordY = y;\n }",
"public void setPosition(float x, float y){\n\t\t\n\t\tsprite.setPosition(x, y);\n\t}",
"@Override\n\tpublic void setPos(int x, int y) {\n\t\txPos = x;\n\t\tyPos = y;\n\t}",
"public void setPosition(int x, int y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"public void setPosition(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"public void setPosition(float x, float y) {\n\t\tthis.position.set(x, y, 0);\n\t}",
"public final void setPosition(float x, float y) {\n\t\ttranslate(x - this.x(), y - this.y());\n\t}",
"public void setPosition(double x, double y) {\n getMotion().setPosition(x, y);\n }",
"public void setPosition(float x, float y)\n {\n bounds.offsetTo(\n x - positionAnchor.x,\n y - positionAnchor.y);\n notifyParentOfPositionChange();\n conditionallyRelayout();\n }",
"public void updatePosition(float x, float y){\n rect = new Rectangle2D.Float(x,y,width,height);\n this.x = x;\n this.y = y;\n }",
"void moveToPoint(float x, float y) {\n _x = x;\n _y = y;\n }",
"public void setSpawn (int x, int y) {\n xCord = x;\n yCord = y;\n }",
"public void setLocation(int x, int y){\n if(x < 0 || x > 19 || y < 0 || y > 19){\n // The user has tried to move outside the bounds of the world, so\n // we call the die() method which causes the Player to die.\n die();\n } else {\n // The user is trying to move within the bounds of the world. Run\n // the Actor class' own setLocation() method to move the Player.\n super.setLocation(x, y);\n }\n }",
"public void setPosition(double x, double y){\r\n this.x = (float)x;\r\n this.y = (float)y;\r\n changed();\r\n }",
"public void setPosition(double x, double y) {\n // set the location\n setLocation((int)Math.round(x), (int)Math.round(y));\n \n // set the position variables\n position.x = x;\n position.y = y;\n }",
"public void teleportPlayer(int x, int y){\n hero.setX(x);\n hero.setY(y);\n }",
"protected void moveTo (int x, int y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"public void setPosition(double x, double y) {\n\t\tsetX(x);\n\t\tsetY(y);\n\t}",
"void setLocation(int x, int y);",
"public void updatePosition(int y, int x){\r\n\t\tposition = owner.getPosition().add(new Vector(x*SIZE, y*SIZE));\r\n\t\tcenter = this.position.add(new Vector(SIZE/2.,SIZE/2.));\r\n\t\tnode = new Node(center, y*owner.C + x);\r\n\t}",
"void setTubeUpPosition(double x, double y);",
"public void setBallLocation(int x, int y, int level){\n rect.left = x ;\n rect.top = y-200;\n rect.right = x + width;\n rect.bottom = y - 100 - height;\n\n this.setRandomVelocity(level);\n this.xVelocity = 0;\n }",
"public AnimatorType position(float x, float y)\n {\n return position(new PointF(x, y));\n }",
"public void setPosition(int x, int y) {\n this.mXPosition = x;\n this.mYPosition = y;\n }",
"public void setPosition(double x, double y)\n {\n mPosition = new Point2D.Double(x, y);\n }",
"protected void moveTo(int x, int y) {\n\n if (x < 0 || x > 2)\n throw new IllegalArgumentException(\"x is out of bound\");\n\n if (y < 0 || y > 3)\n throw new IllegalArgumentException(\"y is out of bound\");\n\n this.xPosition = x;\n this.yPosition = y;\n }",
"public void SetPosition(float x, float y) {\n mX = x;\n mY = y;\n for (int i = 0; i < mCardCount; i++) {\n SetCardPosition(i);\n }\n }",
"@Override\n public Position setPosition(double x, double y) {\n this.x = x;\n this.y = y;\n\n return new Position(x, y);\n }",
"public void setPosition(ScreenPoint p) {\n setX(p.x);\n setY(p.y);\n }",
"public void teleportTo(int y, int x){\n\t\tthis.position[y][x] = 1;//makes the position here, used for other object room\n\t}",
"public void setPosition(Point position);",
"public void setPosition(Point position){\r\n this.position.set(position.x, position.y);\r\n\r\n this.shadow.setPosition(position);\r\n this.surface.setPosition(position);\r\n this.shading.setPosition(position);\r\n\r\n\r\n this.setBounds(new Rect(\r\n this.position.x - this.radius,\r\n this.position.y - this.radius,\r\n this.position.x + this.radius,\r\n this.position.y + this.radius\r\n ));\r\n \r\n }",
"public void setCardPos(double x, double y ){\r\n setX(x);\r\n setY(y);\r\n }",
"public void setSpawnPoint() {\n if (this.dirVec.y == 0) {\n super.centerRectAt(new Point(-1*OUTER_OFFSET, super.getCenter().y));\n }\n else {\n super.centerRectAt(new Point(super.getCenter().x, OUTER_OFFSET));\n }\n }",
"public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"public void setLoc(int x, int y)\n {\n powerUp.setBounds(x,y,65,29);\n text.setBounds(x,y,65,29);\n }",
"public void setLocation(int x, int y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"void setEnemyPos(Point2D pos);",
"public void move(int x, int y)\r\n\t{\r\n\t\ttheX = x;\r\n\t\ttheY = y;\r\n\t}",
"public void setOrigin(int x, int y) {\r\n\t\torigin.setLocation(x, y);\r\n\t}",
"public void setGoalPosition(int y,int z,int x)\r\n\t{\r\n\t\tthis.goalPosition = new Position(y,z,x);\r\n\t}",
"public void setTargetPosition(float x, float y){\r\n this.targetX = x;\r\n this.targetY = y;\r\n }",
"public void setToCoordinates(int toX, int toY);",
"public void move(int x, int y) {\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"public void moveTo(double x, double y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}",
"void setPosition(Point point);",
"public void setLocation(int x,int y)\n\t{\n\t\tthis.x=x;\n\t\tthis.y=y;\n\t}",
"public void move(){\n\t\t\tbx += (int)movex;\n\t\t\tby += (int)movey;\n\t\t\tthis.setBounds((int)bx,(int)by,10,10);\n\n\t\t\t\n\t\t}",
"@Override\r\n public void act() \r\n {\n int posx = this.getX();\r\n int posy = this.getY();\r\n //calculamos las nuevas coordenadas\r\n int nuevox = posx + incx;\r\n int nuevoy = posy + incy;\r\n \r\n //accedemos al mundo para conocer su tamaño\r\n World mundo = this.getWorld();\r\n if(nuevox > mundo.getWidth())//rebota lado derecho\r\n {\r\n incx = -incx;\r\n }\r\n if(nuevoy > mundo.getHeight())//rebota en la parte de abajo\r\n {\r\n incy = -incy;\r\n }\r\n \r\n if(nuevoy < 0)//rebota arriba\r\n {\r\n incy = -incy;\r\n }\r\n if(nuevox < 0)//rebota izquierda\r\n {\r\n incx = -incx;\r\n }\r\n //cambiamos de posicion a la pelota\r\n this.setLocation(nuevox,nuevoy);\r\n }",
"public void movePositionBox(double x, double y) {\n double myX = x - positionBoxSizeX / 2;\n double myY = y - positionBoxSizeY / 2;\n if (myX > drawPane.getWidth() - positionBoxSizeX) {\n myX = drawPane.getWidth() - positionBoxSizeX;\n } else if (x < (positionBoxSizeX / 2)) {\n myX = 0;\n }\n if (myY > drawPane.getHeight() - positionBoxSizeY) {\n myY = drawPane.getHeight() - positionBoxSizeY;\n } else if (myY < 0) {\n myY = 0;\n }\n positionBox.relocate(myX, myY);\n }",
"public void moveTo(int x, int y) {\n\t\tx2 = x;\n\t\ty2 = y;\n\t}",
"public void setPosition(int x, int y){\n\t\t\n\t\tif(x>=ColumnNumber.firstColumn.ordinal() && x<=ColumnNumber.eightColumn.ordinal()){\n\t\t\txPosition=x;\n\t\t}\n\t\tif(y>=RowNumber.firstRow.ordinal() && y<=RowNumber.eightRow.ordinal()){\n\t\t\tyPosition=y;\n\t\t}\n\t\t\n\t}",
"public void setPos(float x, float y, float z)\n {\n worldMatrix.setPos(x, y, z);\n mPosition = worldMatrix.getPos();\n }",
"public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"public void moveBallTo(int x, int y)\n {\n currentBallX = x;\n currentBallY = y;\n }",
"public void updatePosition(int xPos, int yPos) {\n this.pos.x = xPos;\n this.pos.y = yPos;\n }",
"protected abstract void moveTo(final float x, final float y);",
"public void translate(float x, float y){\n hitBox.offset(x, y);\n }",
"public void setMoveTo(Coordinate coordinate);",
"public void moveActor();",
"public void setLoc(int lx, int ly){\r\n \tbox.setLocation(lx,ly);\r\n }",
"protected void setPosition(float x, float y) {\n\t\tif (Double.isNaN(x) || Double.isNaN(y)) {\n\t\t\tSystem.err.println(LocalizedString.getString(getClass(), \"INVALID_POSITION\", getName()));\n\t\t} else {\n\t\t\tthis.position.set(x, y);\n\t\t}\n\t}",
"public void movePositionBy(int x, int y) {\n\t\tthis.setX(getX() + x);\r\n\t\tthis.setY(getY() + y);\r\n\t}",
"public void move(float x, float y) {\n\t\tthis.position.set(this.position.x + x, this.position.y + y, 0);\n\t}",
"posXY(int x, int y){\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"public void setLoc(int x, int y) {\n locX = x;\n locY = y;\n }",
"@Override\n public void setLoc(Point p) {\n this.rect.setLocation(p);\n }",
"public void resetPaddleToStartingPosition(){\n myRectangle.setX(initialXLocation);\n }",
"public Position(int x, int y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}",
"public void setBallXY(int x, int y)\n\t{\n\t\tthis.x = x;\n\t\tthis.y = y; \n\t\t\n\t}",
"public void setLocation(int x, int y) {\r\n manager.setLocation(this, x, y);\r\n }",
"public void moveTo(float x, float y) {\n \tposition.set(x,y);\n \tif (mouseJoint != null) {\n \t\tmouseJoint.setTarget(position);\n \t}\n }",
"@Override\r\n\tpublic void moveTo(float x, float y) {\n\t\t\r\n\t}",
"void setPos(Vec3 pos);",
"public void setPosition(int posX, int posY) {\n\t}",
"public void move(int x, int y){\n universe.erase(this);\n this.yPosition = y;\n this.xPosition = x;\n universe.draw(this);\n }",
"protected void setRobotCoordinates(int x, int y, float a) {\r\n currentPos.setCoordinates(x, y, a, (float)x, (float)y);\r\n }",
"public void updatePosition() {\n \t\r\n \tx += dx;\r\n \ty += dy;\r\n \t\r\n\t}",
"public void moveRelative(int x, int y) {\n this.x = this.x + x;\n this.y = this.y + y;\n }",
"public void setPosition(double x, double y, double z) {\n getMotion().setPosition(x, y, z);\n }",
"Actor(int x, int y, Texture image) {\n this.setX(x);\n this.setY(y);\n setImage(image);\n }",
"final protected void setSpawnPosition(int newX, int newY)\n {\n spawnPoint = new Point(newX, newY);\n boundingBox.setLocation(spawnPoint);\n }",
"public void setPosition(double x, double y, double z) {\n super.setPosition(x, y, z);\n if (this.dataManager != null && this.ticksExisted != 0) {\n Optional<BlockPos> optional = this.dataManager.get(ATTACHED_BLOCK_POS);\n if (this.isAddedToWorld() && this.world instanceof net.minecraft.world.server.ServerWorld) ((net.minecraft.world.server.ServerWorld)this.world).chunkCheck(this); // Forge - Process chunk registration after moving.\n Optional<BlockPos> optional1 = Optional.of(new BlockPos(x, y, z));\n if (!optional1.equals(optional)) {\n this.dataManager.set(ATTACHED_BLOCK_POS, optional1);\n this.dataManager.set(PEEK_TICK, (byte)0);\n this.isAirBorne = true;\n }\n\n }\n }",
"public void setPoint(int x, int y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"public void moveToPosition( int xCoordinate, int yCoordinate ) {\n setXPosition( xCoordinate );\n setYPosition( yCoordinate );\n }",
"public void reposition(float x) {\r\n posTopTube.set(x, rand.nextInt(FLUCT) + TUBE_GAP + LOWEST_OPENING);\r\n posBotTube.set(x, posTopTube.y - TUBE_GAP - botTube.getHeight());\r\n\r\n boundsTop.setPosition(posTopTube.x, posTopTube.y);\r\n boundsBot.setPosition(posBotTube.x, posBotTube.y);\r\n }",
"public void moveToPoint(int x, int y) {\n /**\n * DO NOT EDIT THIS CODE TO REMOVE DUPLICATIONS IT WILL BREAK MULTIPLAYER\n * SERIOUSLY JUST DO NOT DO IT\n *\n * DON'T DO IT\n *\n *\n * JUST DON'T TOUCH THIS CODE AT ALL\n */\n AbstractHero hero = map.getCurrentTurnHero();\n\n // This short circuits but if it's not multiplayer the second statement will do nothing\n if (map.moveEntity(map.getCurrentTurnHero(), x, y)) {\n map.updateVisibilityArray();\n visionChanged = true;\n gameState.updateMovementGoal(x, y);\n }\n\n updateLiveTileEffectsOnCharacter(hero);\n gameChanged = true;\n minimapChanged = true;\n visionChanged = true;\n movementChanged = true;\n\n\n centerMapOnCurrentHero();\n }"
] |
[
"0.7422565",
"0.73102486",
"0.7238676",
"0.70663166",
"0.6944978",
"0.6930454",
"0.6922529",
"0.69004947",
"0.6867126",
"0.6862299",
"0.68535024",
"0.68331003",
"0.682328",
"0.68012524",
"0.6786028",
"0.6783587",
"0.6782909",
"0.6775077",
"0.67622507",
"0.67325664",
"0.67170024",
"0.6716658",
"0.67161477",
"0.6706177",
"0.6685159",
"0.6666485",
"0.662306",
"0.6606307",
"0.65936685",
"0.6569634",
"0.6563094",
"0.65332854",
"0.6508881",
"0.65009254",
"0.6497522",
"0.6464362",
"0.645345",
"0.64177",
"0.63961315",
"0.63916683",
"0.63884664",
"0.63757527",
"0.6349633",
"0.6335333",
"0.6332934",
"0.63265544",
"0.63144183",
"0.63017005",
"0.6296335",
"0.6292361",
"0.62883484",
"0.626778",
"0.6266419",
"0.62638307",
"0.62593865",
"0.62482816",
"0.62473875",
"0.6240212",
"0.6227977",
"0.6223301",
"0.6221551",
"0.6221197",
"0.62195885",
"0.62173206",
"0.6209427",
"0.62049454",
"0.6201849",
"0.6197812",
"0.6193254",
"0.6192765",
"0.6185708",
"0.618016",
"0.61779535",
"0.61737496",
"0.61704594",
"0.616583",
"0.615919",
"0.6148088",
"0.6143764",
"0.6137552",
"0.61359364",
"0.61357903",
"0.61349994",
"0.6127913",
"0.61266476",
"0.61249423",
"0.6119865",
"0.61192304",
"0.6115327",
"0.6113137",
"0.6110994",
"0.61055696",
"0.6104555",
"0.6101288",
"0.6097311",
"0.60877347",
"0.6085849",
"0.6084123",
"0.60655487",
"0.606285"
] |
0.67344016
|
19
|
Sets the scale X and scale Y.
|
public void setScale(float scaleX, float scaleY) {
internalGroup.setScale(scaleX, scaleY);
dataTrait.scaleX = scaleX;
dataTrait.scaleY = scaleY;
resetSprite();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setScaleXY(double sx, double sy) { setScaleX(sx); setScaleY(sy); }",
"public void setScale(float xScale, float yScale) {\n\t\tthis.xScale = xScale;\n\t\tthis.yScale = yScale;\n\t}",
"public void setScaleY(double yscale)\r\n\t{\tyScale = yscale;\t}",
"public void setScale(double scale) {\n\t\tdouble tx = this.transform.getTranslateX();\n\t\tdouble ty = this.transform.getTranslateY();\n\t\tthis.transform.setToScale(scale, scale);\n\t\tthis.transform.translate(tx, ty);\n\t}",
"@Override\n public void scale(double x, double y) {\n graphicsEnvironmentImpl.scale(canvas, x, y);\n }",
"public void setDrawScale(float x, float y) {\n \tdrawScale.set(x,y);\n }",
"private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }",
"public void setScale(double scale, double xscale, double yscale) {\n\t\tif (this.scale != scale || this.xscale != xscale || this.yscale != yscale) {\n\t\t\tthis.scale = scale;\n\t\t\tthis.xscale = xscale;\n\t\t\tthis.yscale = yscale;\n\n\t\t\t// calculate the absolute coordinates and dimensions on the base\n\t\t\t// of the given scale parameters\n\t\t\tint x = (int) (xRel * xscale);\n\t\t\tint y = (int) (yRel * yscale);\n\t\t\tint width = (int) (widthRel * scale);\n\t\t\tint height = (int) (heightRel * scale);\n\n\t\t\t// the border rope holders must always be at the border\n\t\t\t// small rounding failures are eliminated here\n\t\t\tif (this instanceof Seilaufhaenger) {\n\t\t\t\tSeilaufhaenger aufhaenger = (Seilaufhaenger) this;\n\t\t\t\tif (!aufhaenger.isUnderTreibscheibe()) {\n\t\t\t\t\tif (aufhaenger.getHimmel() == Seilaufhaenger.NORD) {\n\t\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\t\tx = 1;\n\t\t\t\t\t\ty = 1;\n\t\t\t\t\t} else if (aufhaenger.getHimmel() == Seilaufhaenger.SUED) {\n\t\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\t\tx = 1;\n\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t} else if (aufhaenger.getHimmel() == Seilaufhaenger.WEST) {\n\t\t\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t\tif (y < 1)\n\t\t\t\t\t\t\ty = 1;\n\t\t\t\t\t\tx = 1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t\tif (y < 1)\n\t\t\t\t\t\t\ty = 1;\n\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t}\n\t\t\t\t\t// moves and resizes the element\n\t\t\t\t\tsetSize(width, height);\n\t\t\t\t\tsetLocation(x, y);\n\t\t\t\t} else {\n\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\tx = 1;\n\t\t\t\t\t// moves and resizes the element\n\t\t\t\t\tsetSize(width, height);\n\t\t\t\t\t// setLocation(x, y);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\tif (x < 1)\n\t\t\t\t\tx = 1;\n\t\t\t\tif (y < 1)\n\t\t\t\t\ty = 1;\n\t\t\t\t// moves and resizes the element\n\t\t\t\tsetSize(width, height);\n\t\t\t\tsetLocation(x, y);\n\t\t\t}\n\t\t}\n\t}",
"public void setScale(float scaleXY) {\n internalGroup.setScale(scaleXY);\n dataTrait.scaleX = scaleXY;\n dataTrait.scaleY = scaleXY;\n resetSprite();\n }",
"public void scale(float x, float y);",
"public void setRescale(double x, double y) {\n scaleX = x;\n scaleY = y;\n System.out.println(\"Rescale \" + x + \" \" + y);\n }",
"public void setScale(float scale) {\n \t\tthis.scale = scale;\n \t\tupdateTransform();\n \t\tfireEvent(new ScalingEvent(scale));\n \t}",
"public void setScale(Scale scale) {\n this.scale = scale;\n }",
"public void setScale(float scale);",
"public void setScale() {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n scaleAffine();\n Scalebar.putZoomLevelDistances();\n\n //Set up the JFrame using the monitors resolution.\n setSize(screenSize); //screenSize\n setPreferredSize(new Dimension(800, 600)); //screenSize\n setExtendedState(Frame.NORMAL); //Frame.MAXIMIZED_BOTH\n }",
"public void scale(float scale, float x, float y) {\n\t\tcompose(new TransformMatrix(scale,scale, x - scale * x,y - scale * y));\n\t}",
"private void setXscale() {\n\t}",
"@Override\n\tfinal public void scale(double x, double y)\n\t{\n\t\twidth *= x;\n\t\theight *= y;\n\t}",
"public final void setScale(float scalarX, float scalarY) {\n\t\tfinal Vector2 oldScale = this.scale();\n\t\tthis.scale(scalarX/oldScale.x, scalarY/oldScale.y);\n\t}",
"public final void setScale(float scale) {\n\t\n \tthis.svd(this);\n \tthis.mul(scale);\n }",
"public void beginScaling() {\n xScale = 1.0f;\n yScale = 1.0f;\n }",
"public final void set(float scale) {\n\tm00 = scale; m01 = 0.0f; m02 = 0.0f;\n\tm10 = 0.0f; m11 = scale; m12 = 0.0f;\n\tm20 = 0.0f; m21 = 0.0f; m22 = scale;\n }",
"@Override\n public void setScale(float scale) {\n this.scale = scale;\n }",
"public void setScale(final double scale) {\r\n\t\tthis.scale = scale;\r\n\t}",
"public void setScale(double scale) {\n double oldScale = scale;\n this.scale = scale;\n if (actor != null) {\n actor.SetScale(normalActorSize * scale);\n double[] x = new double[3];\n for (int i=0; i<3; i++) {\n axeTitleActor[i].SetScale(normalTitleSize * scale);\n for (int k=0; k<3; k++) x[k] = axeTitlePosition[i][k]*scale*normalActorSize;\n axeTitleActor[i].SetPosition(x);\n }\n }\n firePropertyChange(\"scale\", new Double(oldScale), new Double(scale));\n }",
"public void setScale(float scale) {\n setLocalScale(scale);\n }",
"public void setScale(float scale) {\n this.scale = scale;\n }",
"public void setScale(double value) {\n this.scale = value;\n }",
"public void setScaleY(double aValue)\n{\n if(aValue==getScaleY()) return;\n repaint();\n firePropertyChange(\"ScaleY\", getRSS().scaleY, getRSS().scaleY = aValue, -1);\n}",
"public TiledView setScales(AxisScale scale) {\n return setScales(scale,scale);\n }",
"public void setScale( float scale ) {\n\t\tthis.scale = scale;\n\t}",
"public void setScale(double scale) {\r\n if (scale >= 0.1) {\r\n this.scale = scale;\r\n }\r\n }",
"void setBounds(double x, double y, double scale) {\n double drawAspect = (double)width / (double)height;\n\n double halfPlotWidth = scale / 2.0;\n double halfPlotHeight = scale / 2.0;\n if (drawAspect > 1.0) {\n halfPlotWidth *= drawAspect;\n } else {\n halfPlotHeight /= drawAspect;\n }\n\n setBounds(x - halfPlotWidth, y - halfPlotHeight, x + halfPlotWidth, y + halfPlotHeight);\n }",
"public void setScale(float scale, int xform) {\n\t\tm_xforms[xform].m_scale = scale;\n\t}",
"public PointDetails setScaling(double scale){\n\t\t\treturn setScaling(()->scale);\n\t\t}",
"public void scale(float x, float y) {\n multiply(\n x, 0F, 0F, 0F,\n 0F, y, 0F, 0F,\n 0F, 0F, 1F, 0F,\n 0F, 0F, 0F, 1F\n );\n }",
"public void scale( float x, float y )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.setScale( x );\n\t\tmat.mul( opMat );\n\t}",
"public PointDetails setScaling(DoubleSupplier scale){\n\t\t\tthis.scale = scale;\n\t\t\treturn this;\n\t\t}",
"public void setScaleY(double scaleY) {\n\t\tpointTransform.translate(pivotPoint.getX(),pivotPoint.getY());\n\t\tpointTransform.scale(1.0, 1.0/this.scaleY);\n\t\tthis.scaleY = scaleY;\n\t\tpointTransform.scale(1.0, scaleY);\n\t\tpointTransform.translate(-pivotPoint.getX(),-pivotPoint.getY());\n\t}",
"public void setScaleX(double xscale)\r\n\t{\txScale = xscale;\t}",
"public void setToScale(double Sx, double Sy, double Sz) {\r\n\t\tthis.M11 = Sx;\r\n\t\tthis.M22 = Sy;\r\n\t\tthis.M33 = Sz;\r\n\t\tthis.M44 = 1;\r\n\t\tthis.M12 = 0;\r\n\t\tthis.M13 = 0;\r\n\t\tthis.M14 = 0;\r\n\t\tthis.M21 = 0;\r\n\t\tthis.M23 = 0;\r\n\t\tthis.M24 = 0;\r\n\t\tthis.M31 = 0;\r\n\t\tthis.M32 = 0;\r\n\t\tthis.M34 = 0;\r\n\t\tthis.M41 = 0;\r\n\t\tthis.M42 = 0;\r\n\t\tthis.M43 = 0;\r\n\t}",
"public void setScaleY(int scaleY) {\n\t\tthis.scaleY = scaleY;\n\t}",
"public void scale(double sx, double sy)\r\n\t{\r\n\t\t// System.out.println(\"scale\");\r\n\t}",
"public void scale(float scale) {\n if (scale != 1.0f) {\n left = (int) (left * scale + 0.5f);\n top = (int) (top * scale + 0.5f);\n right = (int) (right * scale + 0.5f);\n bottom = (int) (bottom * scale + 0.5f);\n }\n }",
"private void setScaleToBoardViewPanes(double scale) {\n boardController.getDrawedBoard().setScaleX(scale);\n boardController.getDrawedBoard().setScaleY(scale);\n boardController.getCanvas().setScaleX(scale);\n boardController.getCanvas().setScaleY(scale);\n boardController.getDartBoard().setScaleX(scale);\n boardController.getDartBoard().setScaleY(scale);\n boardController.getPointsAreaPane().setScaleX(scale);\n boardController.getPointsAreaPane().setScaleY(scale);\n }",
"public void setScaleFactor(float scale){\n scaleFactor = scale;\n }",
"public void setScale(final float scale) {\n if (equal(mScale, scale) != true) {\n Log.d(TAG, \"setScale(): old: %.2f, new: %.2f\", mScale, scale);\n mScale = scale;\n setScale(mSceneRootObject, scale);\n setScale(mMainCameraRootObject, scale);\n setScale(mLeftCameraRootObject, scale);\n setScale(mRightCameraRootObject, scale);\n for (OnScaledListener listener : mOnScaledListeners) {\n try {\n listener.onScaled(scale);\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(TAG, e, \"setScale()\");\n }\n }\n }\n }",
"public void setSrcFlipScale(float x, float y) {\n if(mNativeAddress != 0)\n nativeSetSrcFlipScale(mNativeAddress, x, y);\n }",
"protected void updateScales() {\n hscale = 1f;\n vscale = 1f;\n viewData.setHscale(hscale);\n viewData.setVscale(vscale);\n }",
"private void setScale() {\n this.particleScale = (1 - ((float) slowTime / 50)) * (1.5f * (float) offset);\n }",
"void setScale(ScaleSelector sensor, int scaleNo);",
"public void setRenderFlipScale(float x, float y) {\n if(mNativeAddress != 0)\n nativeSetRenderFlipScale(mNativeAddress, x, y);\n }",
"public TiledView setVScale(AxisScale scale) {\n return setScales(_bhp.getScale(),scale);\n }",
"public void setScaleTo(Integer scaleTo)\n {\n getStateHelper().put(PropertyKeys.scaleTo, scaleTo);\n }",
"public void setDrawScale(Vector2 value) {\n \tsetDrawScale(value.x,value.y); \n\t}",
"public void updateScale()\n {\n // get scale from world presenter\n s2 = (cam.getScale());\n //Convert to English Miles if appropriate\n if( !SettingsScreen.getUnits() ) s2 *= 0.60934;\n s1 = s2/2;\n repaint();\n }",
"public void setCanvas(GameCanvas canvas) {\n\t\tthis.canvas = canvas;\n\t\tthis.scale.x = canvas.getWidth()/bounds.getWidth();\n\t\tthis.scale.y = canvas.getHeight()/bounds.getHeight();\n\t}",
"public void setXY(double anX, double aY) { setX(anX); setY(aY); }",
"public void setScale(double s){\n\t\tsetParameters(location, s);\n\t}",
"public void scale(float scalarX, float scalarY) {\n\t\ttile.scale(scalarX, scalarY);\n\t\tarrow.scale(scalarX, scalarY);\n\t}",
"public void scaleBy(float scale) {\n internalGroup.scaleBy(scale);\n dataTrait.scaleX = internalGroup.getScaleX();\n dataTrait.scaleY = internalGroup.getScaleY();\n resetSprite();\n\n }",
"@Override\n\tpublic void setScale(Vector3d scale) {\n\t\t\n\t}",
"public void scale(Point P, int scaleFactor) {\n\n\n }",
"public void setScaleX(double aValue)\n{\n if(aValue==getScaleX()) return;\n repaint();\n firePropertyChange(\"ScaleX\", getRSS().scaleX, getRSS().scaleX = aValue, -1);\n}",
"public void setScalePublic(float scale) {\n\t\tdouble posXTmp = posX;\n\t\tdouble posYTmp = posY;\n\t\tdouble posZTmp = posZ;\n\t\tboolean onGroundTmp = onGround;\n\n\t\tsetScale(scale);\n\n\t\t// workaround for a vanilla bug; the position is apparently not set correcty\n\t\t// after changing the entity size, causing asynchronous server/client positioning\n\t\tsetPosition(posXTmp, posYTmp, posZTmp);\n\n\t\t// otherwise, setScale stops the dragon from landing while it is growing\n\t\tonGround = onGroundTmp;\n\t}",
"void setScale(int objIndex,Vector3f scale){\n look[objIndex].setScale(scale);\n usedScale.set(objIndex);\n }",
"public void setScale(int scale) {\n\t\tif ((numberType == NumericFieldType.DOUBLE) && (scale <= 0)) {\n\t\t\tnumberType = NumericFieldType.INTEGER;\n\t\t}\n\t\tthis.scale = scale;\n\t\trequestRepaint();\n\t}",
"public void setScale(ExpressionData md, int col)\n\t{\n\t\tswitch(SCALE_MODE)\n\t\t\t{\n\t\t\tcase SCALE_MATRIX:\n\t\t\t//\tSystem.out.println(\"Changing scale to mode MATRIX\");\n\t\t\t\tminExp=md.min;\n\t\t\t\tmaxExp=md.max;\n\t\t\t\tavgExp=md.average;\n\t\t\t\tmedianExp=md.median;\n\t\t\t\tbreak;\n\t\t\tcase SCALE_CONDITION:\n\t\t\t//\tSystem.out.println(\"Changing scale to mode CONDITION\");\n\t\t\t\tminExp=md.minCols[col];\n\t\t\t\tmaxExp=md.maxCols[col];\n\t\t\t\tavgExp=md.averageCols[col];\n\t\t\t\tmedianExp=md.medianCols[col];\n\t\t\t\tbreak;\n\t\t\tcase SCALE_ONTOLOGY:\n\t\t\t\t//System.out.println(\"Changing scale to mode ONTOLOGY\");\n\t\t\t\tminExp=1000000000;\n\t\t\t\tmaxExp=-1000000000;\n\t\t\t\tavgExp=0;\n\t\t\t\tcontAvgExp=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t//System.out.println(\"Mapping expression for \"+md.getColumnLabel(col)+\" in scale mode \"+SCALE_MODE);\n\t\t\n\t\t\n\t\tif(SCALE_MODE==SCALE_ONTOLOGY)\n\t\t\tavgExp/=contAvgExp;\n\t\t}",
"public void scale(float scale, float scale2) {\n\t\t\n\t}",
"public void scale(Vector2 scale)\n\t{\n\t\tthis.scaleBasis(scale);\n\t\tthis.matrix[2] = this.matrix[2].multiply(scale);\n\t}",
"public Point scaleToGraphCanvasCoords(double x, double y);",
"public SceneGraphNode setScale(double sx, double sy, double sz) {\n\t\tscaleX = sx;\n\t\tscaleY = sy;\n\t\tscaleZ = sz;\n\t\treturn this;\n\t}",
"public void scaleBy(float scaleX, float scaleY) {\n internalGroup.scaleBy(scaleX, scaleY);\n dataTrait.scaleX = internalGroup.getScaleX();\n dataTrait.scaleY = internalGroup.getScaleY();\n resetSprite();\n }",
"public void scale(double xScale, double yScale, double zScale) {\n\t\t// Create a matrix that will transform vertices to their new positions\n\t\tMatrix scaleMatrix = new Matrix(3, 3);\n\t\tscaleMatrix.setElement(0, 0, xScale);\n\t\tscaleMatrix.setElement(1, 1, yScale);\n\t\tscaleMatrix.setElement(2, 2, zScale);\n\t\tfor (int i = 0; i < verts.length; i++) {\n\t\t\tverts[i] = scaleMatrix.multiply(verts[i]);\n\t\t}\n\t}",
"public void setScale(Vector3d scale) {\r\n transform3D.setScale(scale);\r\n transformGroup.setTransform(transform3D);\r\n }",
"public TiledView setScales(AxisScale hscale, AxisScale vscale) {\n return null;\n }",
"@Override\n\tpublic void setScaleX(final float pScaleX) {\n\t\tsuper.setScaleX(1f); //scale not allowed on Layout Object\n\t}",
"void setXandY(double x, double y){\r\n\t\tthis.x=x;\r\n\t\tthis.y=y;\r\n\t}",
"public void setScaleEnd(double scaleEnd) {\n\t\tm_dScaleEnd = scaleEnd;\n\t}",
"public void scale(Point3 scale) {\r\n\t\tx *= scale.x;\r\n\t\ty *= scale.y;\r\n\t\tz *= scale.z;\r\n\t}",
"public void setScaled(long _scaled) {\n\t\tscaled = _scaled;\n\t}",
"public void setScale(double d) {\n\t\tdisp.setScale(d);\n\t\texactZoom.setText(disp.getScale() + \"\");\n\t\tresize();\n\t\trepaint();\n\t}",
"protected void zoomToScale(float scale) {\n \t\tif (tweening) {\n \t\t\tscaleIntegrator.target(scale);\n \t\t} else {\n \t\t\tmapDisplay.sc = scale;\n \t\t\t// Also update Integrator to support correct tweening after switch\n \t\t\tscaleIntegrator.target(scale);\n \t\t\tscaleIntegrator.set(scale);\n \t\t}\n \t}",
"public void setScale(float x) {\n worldMatrix = math3d.mul(math3d.scaling(new vec3(x,x,x)), worldMatrix);\n }",
"public void set(double x, double y) {\n \n _x = x;\n _y = y;\n \n }",
"public Point scaleToGraphCanvasCoords(int x, int y);",
"@Override\n public void scale(double x, double y, double z) {\n GL11.glScaled(x, y, z);\n }",
"public void setScaleStart(double scaleStart) {\n\t\tm_dScaleStart = scaleStart;\n\t}",
"void onScaleChange(float scaleFactor, float focusX, float focusY);",
"public void scaleTransform(Vector3f scale) {\r\n\t\tm[0][0] = scale.x; m[0][1] = 0.0f; m[0][2] = 0.0f; m[0][3] = 0.0f;\r\n\t\tm[1][0] = 0.0f; m[1][1] = scale.y; m[1][2] = 0.0f; m[1][3] = 0.0f;\r\n\t\tm[2][0] = 0.0f; m[2][1] = 0.0f; m[2][2] = scale.z; m[2][3] = 0.0f;\r\n\t\tm[3][0] = 0.0f; m[3][1] = 0.0f; m[3][2] = 0.0f; m[3][3] = 1.0f;\r\n\r\n\t}",
"public TiledView setHScale(AxisScale scale) {\n return setScales(scale,_bvp.getScale());\n }",
"public double getScale(){\n\t\treturn scale;\n\t}",
"public void setResolution(Size resolution, long scale) {\n\t\tAssert.assertNotNull(resolution);\n\n\t\tJWLC.nativeHandler().wlc_output_set_resolution(this.to(),\n\t\t\t\tresolution.to(), Utils.getAsUnsignedInt(scale));\n\t}",
"public void setScaleX(int scaleX) {\n\t\tthis.scaleX = scaleX;\n\t}",
"public void setScalePosition(int level) throws RemoteException, IllegalParamException {\n io.scaleRMI(number, level);\n }",
"public void setZoom(int ps) {\n P_SCALE = ps;\n //EMBOSS = P_SCALE*8;\n }",
"public void setDecimalScale(int scale) {\n this.mScale = scale;\n }",
"protected void setScaleDenominator(double scaleDenominator) {\n this.scaleDenominator = scaleDenominator;\n }",
"public native void setYResolution(double yRes) throws MagickException;",
"void scale(double factor);"
] |
[
"0.8147191",
"0.7506104",
"0.7313331",
"0.73081577",
"0.72878814",
"0.7210981",
"0.71866786",
"0.7184787",
"0.7184282",
"0.7013618",
"0.69701844",
"0.6944198",
"0.6881121",
"0.684737",
"0.6844684",
"0.6843668",
"0.68274283",
"0.682507",
"0.6819811",
"0.6795699",
"0.6711982",
"0.6710744",
"0.67077947",
"0.6687631",
"0.66640306",
"0.66572934",
"0.6638401",
"0.6628104",
"0.66204",
"0.6620216",
"0.66200846",
"0.65796095",
"0.65701157",
"0.6527774",
"0.65259403",
"0.6485478",
"0.6476869",
"0.64725876",
"0.6461981",
"0.64615226",
"0.6433645",
"0.6404499",
"0.639617",
"0.63554287",
"0.63528615",
"0.63317126",
"0.63240105",
"0.63096195",
"0.63030326",
"0.630272",
"0.629619",
"0.6279975",
"0.62493867",
"0.62325263",
"0.62253845",
"0.62193984",
"0.6210648",
"0.61495",
"0.61460257",
"0.61391705",
"0.61290413",
"0.6101848",
"0.61004287",
"0.60992444",
"0.60881567",
"0.6076151",
"0.60719216",
"0.60280114",
"0.6017058",
"0.6015044",
"0.6001608",
"0.5997955",
"0.5994364",
"0.59756714",
"0.59720176",
"0.59539926",
"0.59424806",
"0.59390163",
"0.59316903",
"0.5930649",
"0.592815",
"0.5922305",
"0.59093916",
"0.5901675",
"0.5890762",
"0.5888886",
"0.5865497",
"0.5851836",
"0.58508307",
"0.58368444",
"0.58345383",
"0.5830492",
"0.5828581",
"0.5828512",
"0.5812649",
"0.5804012",
"0.5757305",
"0.5755859",
"0.5746726",
"0.5743473"
] |
0.6484868
|
36
|
Sets the scale for both X and Y
|
public void setScale(float scaleXY) {
internalGroup.setScale(scaleXY);
dataTrait.scaleX = scaleXY;
dataTrait.scaleY = scaleXY;
resetSprite();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setScaleXY(double sx, double sy) { setScaleX(sx); setScaleY(sy); }",
"public void scale(float x, float y);",
"@Override\n public void scale(double x, double y) {\n graphicsEnvironmentImpl.scale(canvas, x, y);\n }",
"public void setDrawScale(float x, float y) {\n \tdrawScale.set(x,y);\n }",
"public void setRescale(double x, double y) {\n scaleX = x;\n scaleY = y;\n System.out.println(\"Rescale \" + x + \" \" + y);\n }",
"@Override\n\tfinal public void scale(double x, double y)\n\t{\n\t\twidth *= x;\n\t\theight *= y;\n\t}",
"public void setScale(float xScale, float yScale) {\n\t\tthis.xScale = xScale;\n\t\tthis.yScale = yScale;\n\t}",
"private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }",
"private void setXscale() {\n\t}",
"public void setScale(float scale);",
"public void setScale(double scale) {\n\t\tdouble tx = this.transform.getTranslateX();\n\t\tdouble ty = this.transform.getTranslateY();\n\t\tthis.transform.setToScale(scale, scale);\n\t\tthis.transform.translate(tx, ty);\n\t}",
"public void scale( float x, float y )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.setScale( x );\n\t\tmat.mul( opMat );\n\t}",
"public void scale(float scale, float x, float y) {\n\t\tcompose(new TransformMatrix(scale,scale, x - scale * x,y - scale * y));\n\t}",
"public void scale(float x, float y) {\n multiply(\n x, 0F, 0F, 0F,\n 0F, y, 0F, 0F,\n 0F, 0F, 1F, 0F,\n 0F, 0F, 0F, 1F\n );\n }",
"public void setScale(double scale, double xscale, double yscale) {\n\t\tif (this.scale != scale || this.xscale != xscale || this.yscale != yscale) {\n\t\t\tthis.scale = scale;\n\t\t\tthis.xscale = xscale;\n\t\t\tthis.yscale = yscale;\n\n\t\t\t// calculate the absolute coordinates and dimensions on the base\n\t\t\t// of the given scale parameters\n\t\t\tint x = (int) (xRel * xscale);\n\t\t\tint y = (int) (yRel * yscale);\n\t\t\tint width = (int) (widthRel * scale);\n\t\t\tint height = (int) (heightRel * scale);\n\n\t\t\t// the border rope holders must always be at the border\n\t\t\t// small rounding failures are eliminated here\n\t\t\tif (this instanceof Seilaufhaenger) {\n\t\t\t\tSeilaufhaenger aufhaenger = (Seilaufhaenger) this;\n\t\t\t\tif (!aufhaenger.isUnderTreibscheibe()) {\n\t\t\t\t\tif (aufhaenger.getHimmel() == Seilaufhaenger.NORD) {\n\t\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\t\tx = 1;\n\t\t\t\t\t\ty = 1;\n\t\t\t\t\t} else if (aufhaenger.getHimmel() == Seilaufhaenger.SUED) {\n\t\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\t\tx = 1;\n\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t} else if (aufhaenger.getHimmel() == Seilaufhaenger.WEST) {\n\t\t\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t\tif (y < 1)\n\t\t\t\t\t\t\ty = 1;\n\t\t\t\t\t\tx = 1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t\tif (y < 1)\n\t\t\t\t\t\t\ty = 1;\n\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t}\n\t\t\t\t\t// moves and resizes the element\n\t\t\t\t\tsetSize(width, height);\n\t\t\t\t\tsetLocation(x, y);\n\t\t\t\t} else {\n\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\tx = 1;\n\t\t\t\t\t// moves and resizes the element\n\t\t\t\t\tsetSize(width, height);\n\t\t\t\t\t// setLocation(x, y);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\tif (x < 1)\n\t\t\t\t\tx = 1;\n\t\t\t\tif (y < 1)\n\t\t\t\t\ty = 1;\n\t\t\t\t// moves and resizes the element\n\t\t\t\tsetSize(width, height);\n\t\t\t\tsetLocation(x, y);\n\t\t\t}\n\t\t}\n\t}",
"public void setScale(double value) {\n this.scale = value;\n }",
"public void setScale(Scale scale) {\n this.scale = scale;\n }",
"@Override\n public void setScale(float scale) {\n this.scale = scale;\n }",
"public void setScale(float scale) {\n setLocalScale(scale);\n }",
"public final void setScale(float scalarX, float scalarY) {\n\t\tfinal Vector2 oldScale = this.scale();\n\t\tthis.scale(scalarX/oldScale.x, scalarY/oldScale.y);\n\t}",
"public void setScale(float scale) {\n \t\tthis.scale = scale;\n \t\tupdateTransform();\n \t\tfireEvent(new ScalingEvent(scale));\n \t}",
"public void setScale(float scale) {\n this.scale = scale;\n }",
"public void scale(Point P, int scaleFactor) {\n\n\n }",
"public void beginScaling() {\n xScale = 1.0f;\n yScale = 1.0f;\n }",
"public void setScale(double scale) {\r\n if (scale >= 0.1) {\r\n this.scale = scale;\r\n }\r\n }",
"public void setScale(float scale, int xform) {\n\t\tm_xforms[xform].m_scale = scale;\n\t}",
"public void setScale(final double scale) {\r\n\t\tthis.scale = scale;\r\n\t}",
"public void setScale( float scale ) {\n\t\tthis.scale = scale;\n\t}",
"public final void setScale(float scale) {\n\t\n \tthis.svd(this);\n \tthis.mul(scale);\n }",
"public PointDetails setScaling(double scale){\n\t\t\treturn setScaling(()->scale);\n\t\t}",
"public PointDetails setScaling(DoubleSupplier scale){\n\t\t\tthis.scale = scale;\n\t\t\treturn this;\n\t\t}",
"void setBounds(double x, double y, double scale) {\n double drawAspect = (double)width / (double)height;\n\n double halfPlotWidth = scale / 2.0;\n double halfPlotHeight = scale / 2.0;\n if (drawAspect > 1.0) {\n halfPlotWidth *= drawAspect;\n } else {\n halfPlotHeight /= drawAspect;\n }\n\n setBounds(x - halfPlotWidth, y - halfPlotHeight, x + halfPlotWidth, y + halfPlotHeight);\n }",
"public void setScale(double scale) {\n double oldScale = scale;\n this.scale = scale;\n if (actor != null) {\n actor.SetScale(normalActorSize * scale);\n double[] x = new double[3];\n for (int i=0; i<3; i++) {\n axeTitleActor[i].SetScale(normalTitleSize * scale);\n for (int k=0; k<3; k++) x[k] = axeTitlePosition[i][k]*scale*normalActorSize;\n axeTitleActor[i].SetPosition(x);\n }\n }\n firePropertyChange(\"scale\", new Double(oldScale), new Double(scale));\n }",
"@Override\n public void scale(double x, double y, double z) {\n GL11.glScaled(x, y, z);\n }",
"public void setScaleX(double xscale)\r\n\t{\txScale = xscale;\t}",
"public void scale(double sx, double sy)\r\n\t{\r\n\t\t// System.out.println(\"scale\");\r\n\t}",
"public void setScaleFactor(float scale){\n scaleFactor = scale;\n }",
"public void scale(float scale) {\n if (scale != 1.0f) {\n left = (int) (left * scale + 0.5f);\n top = (int) (top * scale + 0.5f);\n right = (int) (right * scale + 0.5f);\n bottom = (int) (bottom * scale + 0.5f);\n }\n }",
"public TiledView setScales(AxisScale scale) {\n return setScales(scale,scale);\n }",
"public final void set(float scale) {\n\tm00 = scale; m01 = 0.0f; m02 = 0.0f;\n\tm10 = 0.0f; m11 = scale; m12 = 0.0f;\n\tm20 = 0.0f; m21 = 0.0f; m22 = scale;\n }",
"private void setScale() {\n this.particleScale = (1 - ((float) slowTime / 50)) * (1.5f * (float) offset);\n }",
"public void scale(float scalarX, float scalarY) {\n\t\ttile.scale(scalarX, scalarY);\n\t\tarrow.scale(scalarX, scalarY);\n\t}",
"public void setScale() {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n scaleAffine();\n Scalebar.putZoomLevelDistances();\n\n //Set up the JFrame using the monitors resolution.\n setSize(screenSize); //screenSize\n setPreferredSize(new Dimension(800, 600)); //screenSize\n setExtendedState(Frame.NORMAL); //Frame.MAXIMIZED_BOTH\n }",
"public void setDrawScale(Vector2 value) {\n \tsetDrawScale(value.x,value.y); \n\t}",
"public void scaleBy(float scale) {\n internalGroup.scaleBy(scale);\n dataTrait.scaleX = internalGroup.getScaleX();\n dataTrait.scaleY = internalGroup.getScaleY();\n resetSprite();\n\n }",
"public void setScale(float scaleX, float scaleY) {\n internalGroup.setScale(scaleX, scaleY);\n dataTrait.scaleX = scaleX;\n dataTrait.scaleY = scaleY;\n resetSprite();\n }",
"public void setScaleX(double aValue)\n{\n if(aValue==getScaleX()) return;\n repaint();\n firePropertyChange(\"ScaleX\", getRSS().scaleX, getRSS().scaleX = aValue, -1);\n}",
"public void setScale(double s){\n\t\tsetParameters(location, s);\n\t}",
"public void setScaleY(double yscale)\r\n\t{\tyScale = yscale;\t}",
"void scale(double factor);",
"public void setScale(float x) {\n worldMatrix = math3d.mul(math3d.scaling(new vec3(x,x,x)), worldMatrix);\n }",
"public void scale(double s);",
"void setScale(ScaleSelector sensor, int scaleNo);",
"public void setToScale(double Sx, double Sy, double Sz) {\r\n\t\tthis.M11 = Sx;\r\n\t\tthis.M22 = Sy;\r\n\t\tthis.M33 = Sz;\r\n\t\tthis.M44 = 1;\r\n\t\tthis.M12 = 0;\r\n\t\tthis.M13 = 0;\r\n\t\tthis.M14 = 0;\r\n\t\tthis.M21 = 0;\r\n\t\tthis.M23 = 0;\r\n\t\tthis.M24 = 0;\r\n\t\tthis.M31 = 0;\r\n\t\tthis.M32 = 0;\r\n\t\tthis.M34 = 0;\r\n\t\tthis.M41 = 0;\r\n\t\tthis.M42 = 0;\r\n\t\tthis.M43 = 0;\r\n\t}",
"public void setScale(final float scale) {\n if (equal(mScale, scale) != true) {\n Log.d(TAG, \"setScale(): old: %.2f, new: %.2f\", mScale, scale);\n mScale = scale;\n setScale(mSceneRootObject, scale);\n setScale(mMainCameraRootObject, scale);\n setScale(mLeftCameraRootObject, scale);\n setScale(mRightCameraRootObject, scale);\n for (OnScaledListener listener : mOnScaledListeners) {\n try {\n listener.onScaled(scale);\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(TAG, e, \"setScale()\");\n }\n }\n }\n }",
"public void setScaleY(double aValue)\n{\n if(aValue==getScaleY()) return;\n repaint();\n firePropertyChange(\"ScaleY\", getRSS().scaleY, getRSS().scaleY = aValue, -1);\n}",
"public void updateScale()\n {\n // get scale from world presenter\n s2 = (cam.getScale());\n //Convert to English Miles if appropriate\n if( !SettingsScreen.getUnits() ) s2 *= 0.60934;\n s1 = s2/2;\n repaint();\n }",
"public void setScale(ExpressionData md, int col)\n\t{\n\t\tswitch(SCALE_MODE)\n\t\t\t{\n\t\t\tcase SCALE_MATRIX:\n\t\t\t//\tSystem.out.println(\"Changing scale to mode MATRIX\");\n\t\t\t\tminExp=md.min;\n\t\t\t\tmaxExp=md.max;\n\t\t\t\tavgExp=md.average;\n\t\t\t\tmedianExp=md.median;\n\t\t\t\tbreak;\n\t\t\tcase SCALE_CONDITION:\n\t\t\t//\tSystem.out.println(\"Changing scale to mode CONDITION\");\n\t\t\t\tminExp=md.minCols[col];\n\t\t\t\tmaxExp=md.maxCols[col];\n\t\t\t\tavgExp=md.averageCols[col];\n\t\t\t\tmedianExp=md.medianCols[col];\n\t\t\t\tbreak;\n\t\t\tcase SCALE_ONTOLOGY:\n\t\t\t\t//System.out.println(\"Changing scale to mode ONTOLOGY\");\n\t\t\t\tminExp=1000000000;\n\t\t\t\tmaxExp=-1000000000;\n\t\t\t\tavgExp=0;\n\t\t\t\tcontAvgExp=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t//System.out.println(\"Mapping expression for \"+md.getColumnLabel(col)+\" in scale mode \"+SCALE_MODE);\n\t\t\n\t\t\n\t\tif(SCALE_MODE==SCALE_ONTOLOGY)\n\t\t\tavgExp/=contAvgExp;\n\t\t}",
"@Override\n\tpublic void setScaleX(final float pScaleX) {\n\t\tsuper.setScaleX(1f); //scale not allowed on Layout Object\n\t}",
"public void scale(Point3 scale) {\r\n\t\tx *= scale.x;\r\n\t\ty *= scale.y;\r\n\t\tz *= scale.z;\r\n\t}",
"protected void updateScales() {\n hscale = 1f;\n vscale = 1f;\n viewData.setHscale(hscale);\n viewData.setVscale(vscale);\n }",
"public void scale(double x, double y, double z){\n \tMatrix scale = new Matrix();\n \tscale.identity();\n \tscale.set(1,1,x);\n \tscale.set(2,2,y);\n \tscale.set(3,3,z);\n \tthis.leftMultiply(scale);\n\n }",
"void onScaleChange(float scaleFactor, float focusX, float focusY);",
"public void scale(float scale, float scale2) {\n\t\t\n\t}",
"@Override\n\tpublic void setScale(Vector3d scale) {\n\t\t\n\t}",
"public void setSrcFlipScale(float x, float y) {\n if(mNativeAddress != 0)\n nativeSetSrcFlipScale(mNativeAddress, x, y);\n }",
"public void scale( float x, float y, float z )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.set( x );\n\t\tmat.mul( opMat );\n\t}",
"public void setRenderFlipScale(float x, float y) {\n if(mNativeAddress != 0)\n nativeSetRenderFlipScale(mNativeAddress, x, y);\n }",
"protected void zoomToScale(float scale) {\n \t\tif (tweening) {\n \t\t\tscaleIntegrator.target(scale);\n \t\t} else {\n \t\t\tmapDisplay.sc = scale;\n \t\t\t// Also update Integrator to support correct tweening after switch\n \t\t\tscaleIntegrator.target(scale);\n \t\t\tscaleIntegrator.set(scale);\n \t\t}\n \t}",
"public void setScale(int scale) {\n\t\tif ((numberType == NumericFieldType.DOUBLE) && (scale <= 0)) {\n\t\t\tnumberType = NumericFieldType.INTEGER;\n\t\t}\n\t\tthis.scale = scale;\n\t\trequestRepaint();\n\t}",
"public void scale(float val) {\r\n\t\tx *= val;\r\n\t\ty *= val;\r\n\t\tz *= val;\r\n\t}",
"public void setScale(double d) {\n\t\tdisp.setScale(d);\n\t\texactZoom.setText(disp.getScale() + \"\");\n\t\tresize();\n\t\trepaint();\n\t}",
"public void setScaleX(double d) {\n\t\tpointTransform.translate(pivotPoint.getX(),pivotPoint.getY());\n\t\tpointTransform.scale(1.0/this.scaleX, 1.0);\n\t\tthis.scaleX = d;\n\t\tpointTransform.scale(d, 1.0);\n\t\tpointTransform.translate(-pivotPoint.getX(),-pivotPoint.getY());\n\t}",
"public void scaleBy(float scaleX, float scaleY) {\n internalGroup.scaleBy(scaleX, scaleY);\n dataTrait.scaleX = internalGroup.getScaleX();\n dataTrait.scaleY = internalGroup.getScaleY();\n resetSprite();\n }",
"public void setScaleTo(Integer scaleTo)\n {\n getStateHelper().put(PropertyKeys.scaleTo, scaleTo);\n }",
"public void setXY(double anX, double aY) { setX(anX); setY(aY); }",
"public Point scaleToGraphCanvasCoords(double x, double y);",
"public void scale(Vector2 scale)\n\t{\n\t\tthis.scaleBasis(scale);\n\t\tthis.matrix[2] = this.matrix[2].multiply(scale);\n\t}",
"public TiledView setVScale(AxisScale scale) {\n return setScales(_bhp.getScale(),scale);\n }",
"private void setScaleToBoardViewPanes(double scale) {\n boardController.getDrawedBoard().setScaleX(scale);\n boardController.getDrawedBoard().setScaleY(scale);\n boardController.getCanvas().setScaleX(scale);\n boardController.getCanvas().setScaleY(scale);\n boardController.getDartBoard().setScaleX(scale);\n boardController.getDartBoard().setScaleY(scale);\n boardController.getPointsAreaPane().setScaleX(scale);\n boardController.getPointsAreaPane().setScaleY(scale);\n }",
"public double getScale(){\n\t\treturn scale;\n\t}",
"void setScale(int objIndex,Vector3f scale){\n look[objIndex].setScale(scale);\n usedScale.set(objIndex);\n }",
"MapScale(int x, int y, int width, int height, Camera cam)\n {\n super();\n this.cam = cam;\n s2 = (cam.getScale());\n setOpaque(false);\n\n setLocation(x, y);\n setSize(width, height);\n }",
"public void setScale(double n) {\n\n\t}",
"public void setScalePosition(int level) throws RemoteException, IllegalParamException {\n io.scaleRMI(number, level);\n }",
"public void setScale(Vector3d scale) {\r\n transform3D.setScale(scale);\r\n transformGroup.setTransform(transform3D);\r\n }",
"public void setScalePublic(float scale) {\n\t\tdouble posXTmp = posX;\n\t\tdouble posYTmp = posY;\n\t\tdouble posZTmp = posZ;\n\t\tboolean onGroundTmp = onGround;\n\n\t\tsetScale(scale);\n\n\t\t// workaround for a vanilla bug; the position is apparently not set correcty\n\t\t// after changing the entity size, causing asynchronous server/client positioning\n\t\tsetPosition(posXTmp, posYTmp, posZTmp);\n\n\t\t// otherwise, setScale stops the dragon from landing while it is growing\n\t\tonGround = onGroundTmp;\n\t}",
"public void scale(double xScale, double yScale, double zScale) {\n\t\t// Create a matrix that will transform vertices to their new positions\n\t\tMatrix scaleMatrix = new Matrix(3, 3);\n\t\tscaleMatrix.setElement(0, 0, xScale);\n\t\tscaleMatrix.setElement(1, 1, yScale);\n\t\tscaleMatrix.setElement(2, 2, zScale);\n\t\tfor (int i = 0; i < verts.length; i++) {\n\t\t\tverts[i] = scaleMatrix.multiply(verts[i]);\n\t\t}\n\t}",
"public double getScale() {\n return scale;\n }",
"public SceneGraphNode setScale(double sx, double sy, double sz) {\n\t\tscaleX = sx;\n\t\tscaleY = sy;\n\t\tscaleZ = sz;\n\t\treturn this;\n\t}",
"void setMaxScale(int value);",
"public void rescale()\r\n\t{\n\t}",
"public double getScale() {\r\n return scale;\r\n }",
"public void scale(double rhs) {\n\n\t\tthis.r *= rhs;\n\t\tthis.g *= rhs;\n\t\tthis.b *= rhs;\n\t}",
"public void setCanvas(GameCanvas canvas) {\n\t\tthis.canvas = canvas;\n\t\tthis.scale.x = canvas.getWidth()/bounds.getWidth();\n\t\tthis.scale.y = canvas.getHeight()/bounds.getHeight();\n\t}",
"@Override\n public float getScale() {\n return scale;\n }",
"public void setDecimalScale(int scale) {\n this.mScale = scale;\n }",
"public double getScale() {\n return scale;\n }",
"public Point scaleToGraphCanvasCoords(int x, int y);",
"public float getScale();"
] |
[
"0.8162992",
"0.79368025",
"0.7889694",
"0.7654723",
"0.7606808",
"0.75946724",
"0.7564777",
"0.7538851",
"0.7497723",
"0.7496134",
"0.74258715",
"0.7386323",
"0.732245",
"0.73222506",
"0.73073566",
"0.7278054",
"0.7204347",
"0.7191995",
"0.71609944",
"0.71517205",
"0.71030456",
"0.709327",
"0.70893747",
"0.7072318",
"0.7020104",
"0.7017259",
"0.69886273",
"0.69755286",
"0.69675976",
"0.69354314",
"0.69306386",
"0.6920184",
"0.68621314",
"0.6858729",
"0.6844949",
"0.68289185",
"0.68269515",
"0.67944735",
"0.67848086",
"0.67722017",
"0.67528766",
"0.67510676",
"0.66972876",
"0.6692547",
"0.6668089",
"0.6666985",
"0.6653473",
"0.66525716",
"0.6648226",
"0.66386306",
"0.6630832",
"0.66064984",
"0.6605992",
"0.6598481",
"0.65683806",
"0.6535292",
"0.65347767",
"0.6530637",
"0.6521466",
"0.6512288",
"0.65057904",
"0.6492032",
"0.6486473",
"0.6480554",
"0.64668685",
"0.64630705",
"0.6434491",
"0.64218205",
"0.6410583",
"0.64092815",
"0.63998115",
"0.6398235",
"0.63893527",
"0.63737726",
"0.6351462",
"0.6351141",
"0.6343048",
"0.63388395",
"0.63180023",
"0.62963414",
"0.6279259",
"0.62649167",
"0.62444836",
"0.6243144",
"0.62389255",
"0.6220266",
"0.62181807",
"0.62141734",
"0.62115157",
"0.6200649",
"0.61910355",
"0.6187478",
"0.61860645",
"0.6184589",
"0.6176623",
"0.6169274",
"0.6163865",
"0.61628956",
"0.61617416",
"0.6161299"
] |
0.7416297
|
11
|
Sets the width and height.
|
public void setSize(float width, float height) {
internalGroup.setSize(width, height);
dataTrait.width = width;
dataTrait.height = height;
resetSprite();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void setWidthAndHeight(int width, int height) {\n\t\t\n\t}",
"void setDimension(double width, double height);",
"public void setSize(double aWidth, double aHeight) { setWidth(aWidth); setHeight(aHeight); }",
"public void setSize(float width, float height);",
"void setSize(float w, float h) {\n _w = w;\n _h = h;\n }",
"private void setFrameSize(int width, int height){\r\n\t\tthis.framewidth=width;\r\n\t\tthis.frameheight=height;\r\n\t}",
"public void setSize(int width, int height) {\n this.width = width;\n this.height = height;\n }",
"@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }",
"public void setSize(int width, int height) {\n setWidth(width);\n setHeight(height);\n }",
"public void size(final int theWidth, final int theHeight);",
"void setWidth(int width);",
"void setWidth(int width);",
"public void setSize(int x, int y)\n {\n \tthis.width = x;\n \tthis.height = y;\n }",
"void setStats(double newWidth, double newHeight) {\n width = newWidth;\n height = newHeight;\n }",
"public void setDesiredSize(int width, int height) {\n mDesiredWidth = width;\n mDesiredHeight = height;\n if (mRenderSurface != null) {\n mRenderSurface.resize(width, height);\n }\n }",
"public void setSize(int width, int height) {\n if (width > 0) {\n setWidth(width + \"px\");\n }\n if (height > 0) {\n setHeight(height + \"px\");\n }\n }",
"public void setSurfaceSize(int width, int height) {\n // synchronized to make sure these all change atomically\n synchronized (surfaceHolder) {\n canvasWidth = width;\n canvasHeight = height;\n }\n }",
"void setWidthHeight() {\n\t\tsetWidthHeight(getNcols() * grid().gridW, getNvisibleRows() * grid().gridH);\n\t}",
"public void setSize(int width, int height) {\r\n\t\tthis.size = new Dimension(width, height);\r\n\t}",
"public void setWidthHeight(double x, double y) {\n\t\twidth = x;\n\t\theight = y;\n\t}",
"public void setWidth(int w){\n \twidth = w;\n }",
"public void setSize(int w, int h)\r\n {\r\n\t //ignore width (or ignore height)\r\n setWidth(h);\r\n setHeight(h);\r\n }",
"public void setMinSize(double aWidth, double aHeight) { setMinWidth(aWidth); setMinHeight(aHeight); }",
"public void set(double x, double y, double width, double height) {\n setRect(x, y, width, height);\n }",
"public void setFrameSize();",
"public void setWidth(int w)\n {\n width = w;\n }",
"public void settings() {\r\n size(WIDTH, HEIGHT); // Set size of screen\r\n }",
"public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }",
"public void setSize(int w, int h) {\n\t\twidth = w;\n\t\theight = h;\n\t\t//Log.d(TAG,\"w=\"+w+\" h=\"+h);\n\n\t}",
"private void basicSize(){\n setSize(375,400);\n }",
"public void setWidth(int w) {\n this.width = w;\n }",
"public void setWidth(int w) {\n this.W = w;\n }",
"public void setSize(int w, int h) {\n\n\t}",
"public void setDimensions(double newWidth, double newHeight) {\n this.width = newWidth;\n this.height = newHeight;\n }",
"public void setMouseSize(float width, float height) { \n \tpointer.width = width; \n \tpointer.height = height;\n }",
"@Before\n public void setDimension() {\n this.view.setDimension(new Dimension(WITDH, HEIGHT));\n }",
"public void setSize();",
"public void setWidth(int width) {\n\tthis.width = width;\n\tcalculateWidthRatio();\n }",
"public void setWidth(int width)\n {\n this.width = width;\n }",
"public void setWidth(int width) {\n this.width = width;\n }",
"public void settings() { size(1200, 800); }",
"public void settings() {\r\n size(750, 550);\r\n }",
"public void setPreviewSize(int width, int height) {\n String v = Integer.toString(width) + \"x\" + Integer.toString(height);\n set(\"preview-size\", v);\n }",
"public void settings() {\n size(640, 384);\n }",
"public void setScreenSize(int width, int height) {\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t\tthis.halfWidth = width >> 1;\r\n\t\tthis.halfHeight = height >> 1;\r\n\t\tthis.scaleFactor = ((width + height) >> 7) + 1;\r\n\t\tchanged = true;\r\n\t}",
"public void setWidth(int w) {\n\t\twidth = w;\n\t}",
"public void setScreenSize(int width, int height) {\n\t\tm_width = width;\n\t\tm_height = height;\n\t}",
"public void setSize(int w, int h){\n this.width = w;\n this.height = h;\n ppuX = (float)width / CAMERA_WIDTH;\n ppuY = (float)height / CAMERA_HEIGHT;\n }",
"public void changeSize(int width, int height) {\n this.width = width;\n this.height = height;\n updateBounds();\n updateChildren();\n }",
"@Override\n\tpublic void resize(int width, int height) {\n\t\trenderer.setSize(width, height);\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t}",
"void setSize(Dimension size);",
"public void setField(int fieldWidth, int fieldHeight){\n this.fieldWidth = fieldWidth;\n this.fieldHeight = fieldHeight;\n }",
"public void setWidth(final int theWidth) {\n myWidth = theWidth;\n }",
"protected final void setSize(float width, float height)\n {\n boolean flag = this.bokoblinWidth > 0.0F && this.bokoblinHeight > 0.0F;\n this.bokoblinWidth = width;\n this.bokoblinHeight = height;\n\n if (!flag)\n {\n this.multiplySize(1.0F);\n }\n }",
"void setHeight(int height);",
"void setHeight(int height);",
"@Override\r\n\tpublic void setWidth(int width) {\n\t\t\r\n\t}",
"@Override\n void setWidthHeight() {\n setWidth(explosions[0].getWidth());\n setHeight(explosions[1].getHeight());\n }",
"public void setBounds(double anX, double aY, double aW, double aH) { setX(anX); setY(aY); setWidth(aW); setHeight(aH); }",
"void setSize(int width, int height)\r\n\t{\r\n\t\tthis.controls.clear();\r\n\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t\t\r\n\t\tthis.innerHeight = this.height - TOP - BOTTOM;\r\n\t\tthis.innerWidth = this.width - (MARGIN * 2) - 6;\r\n\t}",
"public void setHeight(int height);",
"public void setHeight(int height);",
"public void setSize(RMSize aSize) { setSize(aSize.width, aSize.height); }",
"public void setWidth(Integer width) {\n this.width = width;\n control.draw();\n }",
"public void resize(int width, int height) {\n }",
"public Size(double width, double height)\r\n {\r\n this.width = width;\r\n this.height = height;\r\n }",
"public void setWidth(double width) {\r\n this.width = width;\r\n }",
"private void setWidthAndHeight(View view, int width, int height) {\n ViewGroup.LayoutParams params = view.getLayoutParams();\n if (width >= 0) {\n params.width = width;\n }\n if (height >= 0) {\n params.height = height;\n }\n }",
"public void setWidth(double width) {\n this.width = width;\n }",
"public void setWidth(int width) {\n\t\tw = width;\n\t}",
"public void setGameArea(int width, int height){\n this.gameAreaWidth = width;\n this.gameAreaHeight = height;\n }",
"@Override\n public void settings(){\n size(500, 500);\n }",
"public void setDisplaySize(int width, int height)\r\n\t{\r\n\t\tint xDiff = (int) Math.abs(height - height*ASPECT);\r\n\t\tint yDiff = (int) Math.abs(width - width/ASPECT);\r\n\t\tif (xDiff < yDiff)\r\n\t\t{\r\n\t\t\tmMaxWidth = (int) (height*ASPECT);\r\n\t\t\tmMaxHeight = height;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tmMaxWidth = width;\r\n\t\t\tmMaxHeight = (int)(width/ASPECT);\r\n\t\t}\r\n\t}",
"public void setStuff(int x, int y, int w, int h)\n {\n\t xPos = x;\n\t yPos = y;\n\t width = w;\n\t height = h;\n }",
"public void setWidth(int w){ widthRadius = w; }",
"public void setWidth(double width) {\n this.width = width;\n }",
"public void setPreferredSize( int width, int height ) {\n checkWidget();\n ideal = true;\n Point point = parent.fixPoint( width, height );\n preferredWidth = Math.max( point.x, MINIMUM_WIDTH );\n preferredHeight = point.y;\n }",
"public void setWidth(Integer width) {\n\t\tthis.width = width;\n\t\tthis.handleConfig(\"width\", width);\n\t}",
"public void setFrame(double anX, double aY, double aWidth, double aHeight)\n{\n setFrameXY(anX, aY);\n setFrameSize(aWidth, aHeight);\n}",
"public void setImageSize(int width, SpecialDimension height)\n\t{\n\t\tsetImageWidth(width);\n\t\tsetImageHeight(height);\n\t}",
"public void setWidth( int width ) {\n\t\t_width = width;\n\t}",
"void setTubeUpDimension(double width, double height);",
"public void setSurfaceSize(int width, int height) {\n\t\t// synchronized to make sure these all change atomically\n\t\tsynchronized (mSurfaceHolder) {\n\t\t\tmCanvasWidth = width;\n\t\t\tmCanvasHeight = height;\n\n\t\t\t// don't forget to resize the background image\n\t\t\tmBackgroundImage = Bitmap.createScaledBitmap(mBackgroundImage, width, height, true);\n\t\t}\n\t}",
"public void setImageSize(SpecialDimension width, int height)\n\t{\n\t\tsetImageWidth(width);\n\t\tsetImageHeight(height);\n\t}",
"public void setSize( int width, int height ) {\n checkWidget();\n int newHeight = height;\n int newWidth = width;\n Point point = parent.fixPoint( newWidth, newHeight );\n newWidth = Math.max( point.x, minimumWidth + MINIMUM_WIDTH );\n newHeight = Math.max( point.y, 0 );\n if ( !ideal ) {\n preferredWidth = newWidth;\n preferredHeight = newHeight;\n }\n itemBounds.width = requestedWidth = newWidth;\n itemBounds.height = newHeight;\n if ( control != null ) {\n int controlWidth = newWidth - MINIMUM_WIDTH;\n if ( (style & SWT.DROP_DOWN) != 0 && newWidth < preferredWidth ) {\n controlWidth -= CHEVRON_IMAGE_WIDTH + CHEVRON_HORIZONTAL_TRIM\n + CHEVRON_LEFT_MARGIN;\n }\n control.setSize( parent.fixPoint( controlWidth, newHeight ) );\n }\n parent.relayout();\n updateChevron();\n }",
"public void setWidth(int width) {\n\t\tthis.width = width;\n\t}",
"public void setSize(int width, int height){\n mHolder.setFixedSize(width, height);\n }",
"public void setImageSize(SpecialDimension width, SpecialDimension height)\n\t{\n\t\tsetImageWidth(width);\n\t\tsetImageHeight(height);\n\t}",
"@Override\n public void settings() {\n size(800, 800, P3D);\n }",
"void setDimensions(double w, double h, double d) {\n width = w;\n height = h;\n d = depth;\n }",
"public void setWidth(double value) {\n this.width = value;\n }",
"public void setSize(int size);",
"public void setPictureSize(int width, int height) {\n String v = Integer.toString(width) + \"x\" + Integer.toString(height);\n set(\"picture-size\", v);\n }",
"public static void setResolution(int width, int height) {\n WIDTH = width;\n HEIGHT = height;\n SCALAR = 1920 / WIDTH + ((1920 % WIDTH == 0) ? 0 : 1);\n }",
"public void SetResolution() {\r\n DisplayMetrics displayMetrics = new DisplayMetrics();\r\n WindowManager wm = (WindowManager) getContext().getSystemService(Context.WINDOW_SERVICE);\r\n wm.getDefaultDisplay().getMetrics(displayMetrics);\r\n this.ScreenWidth = displayMetrics.widthPixels;\r\n this.ScreenHeight = displayMetrics.heightPixels;\r\n }",
"@Override\n\tpublic void resize(int width, int height) {\n\t\tcreate();\n\t}",
"@Override\n\tpublic void setWidth(float width) {\n\n\t}",
"public void setImagesize(int W, int H)\n {\n \n setImagesize_0(nativeObj, W, H);\n \n return;\n }",
"public void setCameraPreviewSize(int width, int height) {\n Log.d(TAG, \"setCameraPreviewSize\");\n mIncomingWidth = width;\n mIncomingHeight = height;\n mIncomingSizeUpdated = true;\n }",
"public void setSize(float width, float height) {\n if (view != null) {\n view.setSize(width, height);\n }\n }"
] |
[
"0.8331385",
"0.80021465",
"0.7983627",
"0.7861937",
"0.7649575",
"0.7644993",
"0.7644901",
"0.76053303",
"0.73426515",
"0.73068064",
"0.72832924",
"0.72832924",
"0.72694016",
"0.72413135",
"0.7241139",
"0.72241634",
"0.71997064",
"0.71717054",
"0.71692854",
"0.7149339",
"0.7137109",
"0.71313053",
"0.70900714",
"0.7076614",
"0.70614696",
"0.70597184",
"0.7038273",
"0.7033293",
"0.70330226",
"0.6933315",
"0.6907284",
"0.69048166",
"0.6900753",
"0.68649715",
"0.68501645",
"0.6836677",
"0.68338704",
"0.6832155",
"0.6824048",
"0.6819508",
"0.67902136",
"0.67895144",
"0.67881167",
"0.6780729",
"0.6764474",
"0.6749737",
"0.6741907",
"0.67368966",
"0.6721622",
"0.671434",
"0.6700663",
"0.6693943",
"0.66935503",
"0.6683151",
"0.6683131",
"0.6683131",
"0.66329265",
"0.662588",
"0.66222185",
"0.66212165",
"0.66141057",
"0.66141057",
"0.660486",
"0.6601279",
"0.65942097",
"0.65921295",
"0.65586644",
"0.6555442",
"0.65541035",
"0.6551282",
"0.65417767",
"0.65349805",
"0.65248287",
"0.6524825",
"0.6510296",
"0.6495825",
"0.64798754",
"0.64772147",
"0.6470792",
"0.64690125",
"0.645948",
"0.6436837",
"0.6436571",
"0.64328563",
"0.64306796",
"0.642911",
"0.64288926",
"0.6423182",
"0.6421515",
"0.64214987",
"0.64185137",
"0.64101344",
"0.6408768",
"0.6404429",
"0.640392",
"0.6400362",
"0.63973683",
"0.63919806",
"0.6390793",
"0.6389267"
] |
0.65442735
|
70
|
If false, the actor will not be drawn and will not receive touch events. Default is true.
|
public void setVisible(boolean visible) {
internalGroup.setVisible(visible);
dataTrait.visible = visible;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public boolean onTouchEvent(MotionEvent event) {\n return false;\n }",
"@Override\n public boolean onTouchEvent(MotionEvent event) {\n return false;\n }",
"@Override\r\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\treturn false;\n\t}",
"void setTouchable(Boolean touchable);",
"Boolean isTouchable();",
"public final boolean isTouching(Shape shape) {\n\t\t// TODO: write this function.\n\t\treturn false;\n\t}",
"@Override\n public boolean dispatchTouchEvent(MotionEvent ev) {\n return DefaultApplication.isWaiting() ? false : super.dispatchTouchEvent(ev);\n }",
"public boolean isActor() {\r\n \t\treturn (actor != null);\r\n \t}",
"@Override\r\n\tpublic boolean onTouchEvent(final MotionEvent e) {\n\t\t\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onTouch(View v, MotionEvent event) {\n return false;\n }",
"public boolean canInteract(){\n\t\treturn false;\n\t}",
"default boolean isPaintballEnabled() {\n return false;\n }",
"@Override\r\n public boolean onTouchEvent(MotionEvent event) {\n return super.onTouchEvent(event);\r\n }",
"@Override\r\n\t\tpublic boolean onTouchEvent(MotionEvent event) {\n\r\n\t\t\treturn true;\r\n\t\t}",
"@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn false;\n\t}",
"public boolean isPaintable() {\n\t\treturn false;\n\t}",
"@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n public boolean onTouch(View v, MotionEvent event) {\n return false;\n }",
"@Override\n public boolean shouldPaint() {\n return false;\n }",
"@Override\n public Actor hit(float x, float y, boolean touchable) {\n return super.hit(x, y, touchable);\n }",
"@Override\n public Actor hit(float x, float y, boolean touchable) {\n if((touchable && getTouchable() != Touchable.enabled)) {\n return null;\n } else {\n int pix = (touchableMask != null) ? touchableMask.getPixel((int) touchPosition.x + (int) x, (int) touchPosition.y + (int) (getHeight() - y)) : 1;\n //return (super.hit(x, y, touchable) != null) && ((pix & 0x000000ff) != 0) ? this : null;\n boolean t = (super.hit(x, y, touchable) != null) &&\n (x > touchableRectangle.x &&\n x < touchableRectangle.x + touchableRectangle.width &&\n y > touchableRectangle.y &&\n y < touchableRectangle.y + touchableRectangle.height);\n if (t) {\n Gdx.app.error(LOG_TAG, \"domino hit x: \" + x + \" y: \" + y + \" actorX: \" + getX() + \" actorY: \" + getY() + \" touchRegionX: \" + touchableRectangle.x + \" touchRegionY: \" + touchableRectangle.y);\n }\n return t ? this : null;\n }\n}",
"public boolean getIsTouchEnabled() {\r\n\t\treturn isTouchEnabled;\r\n\t}",
"@Override\r\n\tpublic boolean isTouchLeftDown() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\t\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}",
"@Override\n public boolean onInterceptTouchEvent(MotionEvent e) {\n return (!(ROCKET_LAUNCHER && mManeuveringThrusters));\n }",
"public boolean isShooting()\r\n\t{\r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\n\t\treturn super.onTouchEvent(event);\n\t}",
"@Override\n\tpublic boolean isGamePlayScreen () {\n\t\treturn false;\n\t}",
"@Override\n public boolean onTouchEvent(MotionEvent event) {\n manager.receiveTouch(event);\n\n return true;\n }",
"public boolean isEnableGestureRecognization() {\n return false;\n }",
"@Override\n public boolean onTouchEvent(MotionEvent ev) {\n return mDetector.onTouchEvent(ev) || super.onTouchEvent(ev);\n }",
"@Override\r\npublic boolean isOnScreen() {\nreturn false;\r\n}",
"@Override\n\tpublic boolean isMovable() {\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic boolean isCircle() {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean isCellInteractable() {\n\t\treturn false;\n\t}",
"@SuppressLint(\"ClickableViewAccessibility\")\n @Override\n public boolean onTouchEvent(MotionEvent event) {\n return true;\n }",
"public void allowDraw() {\n this.m_canDraw = true;\n }",
"public boolean onTouchEvent(MotionEvent event) {\r\n int action = event.getActionMasked();\r\n switch (action) {\r\n //if the user touched the screen\r\n case MotionEvent.ACTION_DOWN: {\r\n //check if the input is inside the circle\r\n if(CheckIfInside(event.getX(), event.getY())) {\r\n this.playMoving = true;\r\n }\r\n break;\r\n }\r\n case MotionEvent.ACTION_MOVE: {\r\n if (!this.playMoving)\r\n return true;\r\n //make sure user input is inside limits\r\n if (CheckForLimit(event.getX(), event.getY())) {\r\n this.x = event.getX();\r\n this.y = event.getY();\r\n notifyObservers(normelizeAilron(this.x), normelizeElevator(this.y));\r\n invalidate();\r\n }\r\n break;\r\n }\r\n //user input's is finished\r\n case MotionEvent.ACTION_UP :\r\n this.playMoving = false;\r\n returnDefualt();\r\n //call on draw\r\n invalidate();\r\n }\r\n return true;\r\n }",
"@Override\n public boolean onTouch(View view, MotionEvent me){\n game.onTouch(me);\n return false;\n }",
"public boolean playerCollideTest(PlayerObject player)\n {\n if (this.isTouchable)\n {\n return true;\n\n }\n else return false;\n }",
"@Override\n\tpublic boolean isGameTied() {\t\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isClickable() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isClickable() {\n\t\treturn false;\n\t}",
"@Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n return true;\n }",
"@Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n return true;\n }",
"@Override\n public boolean onTouchEvent( MotionEvent event )\n {\n if ( gesture_detector.onTouchEvent( event ) )\n {\n return true;\n }\n else\n {\n return super.onTouchEvent( event );\n }\n }",
"@Override\n public boolean onTouchEvent(final MotionEvent event) {\n final Scene scene = mScene;\n if (!mEnabled || scene == null) {\n return false;\n }\n\n final int action = event.getActionMasked();\n final int pointerIndex = (event.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) >> MotionEvent.ACTION_POINTER_INDEX_SHIFT;\n final PointF touchedPoint = scene.getTouchedPoint(pointerIndex);\n\n if (action == MotionEvent.ACTION_DOWN || action == MotionEvent.ACTION_POINTER_DOWN) {\n if (!mFocus && hitTest(touchedPoint.x, touchedPoint.y)) {\n // keep pointer id\n mTouchPointerID = event.getPointerId(pointerIndex);\n // flag focus\n mFocus = true;\n setState(STATE_DOWN);\n\n // event\n if (mTouchListener != null) {\n mTouchListener.onTouchDown(this);\n }\n\n // take control\n return true;\n }\n } else if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_POINTER_UP) {\n if (mFocus && event.getPointerId(pointerIndex) == mTouchPointerID) {\n mTouchPointerID = -1;\n // unflag focus\n mFocus = false;\n\n // hit test\n final boolean hit = hitTest(touchedPoint.x, touchedPoint.y);\n // local callback\n onTouchUp(hit);\n\n setState(STATE_UP);\n\n // event\n if (mTouchListener != null) {\n mTouchListener.onTouchUp(this, hit);\n }\n if (hit) {\n // take control\n return true;\n }\n }\n } else if (action == MotionEvent.ACTION_MOVE) {\n final int touchPointerIndex = event.findPointerIndex(mTouchPointerID);\n if (mFocus && touchPointerIndex >= 0) {\n final PointF movePoint = scene.getTouchedPoint(touchPointerIndex);\n if (hitTest(movePoint.x, movePoint.y)) {\n setState(STATE_DOWN);\n } else {\n setState(STATE_UP);\n }\n }\n }\n\n return false;\n }",
"static void setNotDraging(){isDraging=false;}",
"protected boolean canApplyTouchFeedback(@NonNull KrollDict props)\n\t\t{\n\t\t\treturn false;\n\t\t}",
"public boolean isTouched() {\n return touched;\n }",
"@Override\n\tpublic boolean isViewInteractable() {\n\t\treturn true;\n\t}",
"@Override\n public boolean dispatchTouchEvent(MotionEvent event) {\n return mViewModel.getAppUtil().detectObscuredWindow(this, event) || super.dispatchTouchEvent(event);\n }",
"public boolean touched(Agent agent)\n {\n if(pick)\n return false;\n double distance = Math.sqrt(Math.pow(agent.x-x,2)+Math.pow(agent.y-y,2));\n return distance<=size/(agentIsSized?1:2);\n }",
"@Override\n public boolean touchDragged(int screenX, int screenY, int pointer) {\n return false;\n }",
"@Override\n public boolean touchDragged(int screenX, int screenY, int pointer) {\n return false;\n }",
"@Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n return true;\n }",
"@SuppressLint(\"ClickableViewAccessibility\")\n\t\t\t@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1) {\n\t\t\t\treturn true;\n\t\t\t}",
"@Override\n\tpublic boolean isMyRectangle() {\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic boolean canMove() {\r\n\t\treturn false;\r\n\t}",
"public boolean onTouchEvent(MotionEvent event) {\n int action = MotionEventCompat.getActionMasked(event);\n switch (action) {\n\n case MotionEvent.ACTION_DOWN: {\n\n if(CheckIfInside(event.getX(), event.getY())) {\n this.playMoving = true;\n }\n break;\n }\n case MotionEvent.ACTION_MOVE: {\n if (!this.playMoving)\n return true;\n\n if (CheckForLimit(event.getX(), event.getY())) {\n this.x = event.getX();\n this.y = event.getY();\n invalidate();\n ///////////////////////////////////////////////////\n double normalizedX = normalizeAileron(x);\n double normalizedY = normalizeElevator(y);\n TcpClient tcpClient = TcpClient.getInstance();\n tcpClient.sendMessage(\"set controls/flight/aileron \" + normalizedX + \"\\r\\n\");\n tcpClient.sendMessage(\"set controls/flight/elevator \" + normalizedY + \"\\r\\n\");\n }\n break;\n }\n //user input's is finished\n case MotionEvent.ACTION_UP :\n this.playMoving = false;\n returnDefault();\n //call on draw\n invalidate();\n }\n return true;\n }",
"public boolean isAwake () {\n\t\treturn body.isAwake();\n\t}",
"@Override\n\tpublic boolean touchDown(float x, float y, int pointer) {\n\t\tGdx.app.log(Global.APP_TAG, \"touchDown\" + \" x = \" + x + \" orgX = \" + this.originX);\n\n\t\t//applyForceToCenter(new Vector2(1, 0));\n\t\t\n\t\t//body.setLinearVelocity(0.01001f, 0.0f);\n\t\t\n\t\t//this.body.ap\n\t\t\n\t\tGdx.app.log(Global.APP_TAG, \"actor size = \" + this.getStage().getActors().size());\n\t\tthis.destroy();\n\t\t\n\t\treturn super.touchDown(x, y, pointer);\n\t}",
"@Override\n public boolean onTouchEvent(MotionEvent e) {\n return gestureDetector.onTouchEvent(e);\n }",
"public boolean isHit() { return hit; }",
"@Override\n\tpublic boolean onAreaTouched(TouchEvent pSceneTouchEvent,\n\t\t\tITouchArea pTouchArea, float pTouchAreaLocalX,\n\t\t\tfloat pTouchAreaLocalY) {\n\t\treturn false;\n\t}",
"public boolean canHit(Figure entity) {\n return true;\n }",
"@Override\n public boolean usesEvents()\n {\n return false;\n }",
"@Override\n\tpublic boolean takeControl() {\n\t\treturn (touch_r.isPressed() || touch_l.isPressed());\n\t}",
"@Override\n\tpublic boolean collidesWithCircle(Circle circle) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean canRenderOnFire() {\n\t\treturn super.canRenderOnFire() && !getBreed().isImmuneToDamage(DamageSource.IN_FIRE);\n\t}",
"@Override\n\t\t\t\tpublic boolean touchDown(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\t\treturn true;\n\t\t\t\t}",
"public boolean isDraw() {\n\t\tif (!h1.isAlive() && !h2.isAlive())\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"@Override\npublic boolean touchDown(InputEvent event, float x, float y, int pointer,\n\t\tint button) {\n\t\n\tif(state == SPAWN || state == DYING || state == DEAD || stateTime < 0.5f) {\n\t\treturn false;\n\t}\n\n\t\n\n\t\n\ttempcoords.set(event.getStageX(),event.getStageY());\n\tVector2 coords = OnScreenController.stage.stageToScreenCoordinates(tempcoords);\n\tx = coords.x;\n\ty = coords.y;\n\tscreen_attack = true;\n\tattack_queue = true;\n\ttarget.set(x, y);\n\t\n\t\n//\tif(MapRenderer.CurrentRenderer.ItemAnimation == null) {\n//\t\t\n//\t\tif(Gdx.input.justTouched())\n//\t\t\tattack_queue = true;\n//\t\n//\t\n//\t\t\tif(attack_queue) {\n//\t\tDoMining(Gdx.input.getX(0),Gdx.graphics.getHeight()-Gdx.input.getY(0));\n//\t\t\n//\n//\t\t\t}\n//\n//\t//pos.x = x;\n//\t//pos.y = y;\n//\t}\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\treturn true;\n}",
"public boolean touches(MyShape c) {\n\t\tint deltaX = Math.abs((c.x + c.width / 2) - (x + width / 2)),\n\t\t\t\tdeltaY = Math.abs((c.y + c.height / 2) - (y + height / 2)), \n\t\t\t\toverlapX = c.width / 2 + width / 2, \n\t\t\t\toverlapY = c.height / 2 + height / 2; // this would simply be\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// height if both were\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the same size\n\t\t\tif (deltaX >= overlapX)\n\t\t\t\treturn false;\n\t\t\tif (deltaY >= overlapY)\n\t\t\t\treturn false;\n\t\t\treturn true;\n\t\t}",
"public boolean isOnscreen( )\r\n {\r\n if ( this.transform.tx( ) + this.width( ) < 0.0f ) return false;\r\n if ( this.transform.tx( ) > SkyDiver.WindowWidth ) return false;\r\n if ( this.transform.ty( ) + this.height( ) < 0.0f ) return false;\r\n if ( this.transform.ty( ) > SkyDiver.WindowHeight ) return false;\r\n\r\n return true;\r\n }",
"public boolean isRenderInsideShape() {\n return this.renderInsideShape;\n }",
"public boolean TapCard(float x, float y) { return false; }",
"public boolean isCollisionDisabled() { return mover.isCollisionDisabled(); }",
"@Override\n public boolean onInterceptTouchEvent(MotionEvent event) {\n return false;\n }",
"@Override\r\n public void beginContact(SensorEvent e) {\r\n if(e.getContactBody().equals(ninja))\r\n {\r\n //touchQuestion = true;\r\n addImage(helpTextImage);\r\n } \r\n }",
"@Override\n public boolean isTouching(Sprite other)\n {\n return Rect.intersects(other.spriteBounds, this.spriteBounds);\n }",
"@Override\n public void touch()\n {\n\n }",
"protected boolean animationsEnabled() {\n if (!isShown()) {\n return false;\n }\n if (getAlpha() != 1f) {\n return false;\n }\n getLocationOnScreen(mLocInScreen);\n return mLocInScreen[1] >= -getHeight();\n }",
"@Override\n public boolean onTouchEvent (MotionEvent me){\n detector.onTouchEvent(me);\n return super.onTouchEvent(me);\n }",
"public boolean onGround() {\n return getLocation().getY() <= 0 || (interactingWithY != null && interactingWithY.getLocation().getY() + interactingWithY.size.height <= getLocation().getY());\n }",
"@Override\n public boolean onTouchEvent(MotionEvent event) {\n int action = event.getAction();\n tb.tbOnTouch(action);\n return true;\n }",
"public void setTouched(boolean touched) {\n this.touched = touched;\n }",
"private void Lose(){\n touchable = false;\n RevealAll();\n }",
"@Override\n\tpublic boolean isInside() {\n\t\treturn false;\n\t}",
"public boolean collidepoint(float mX, float mY){\n return super.shape.contains(mX, mY);\n //return isPressed;\n }",
"@Override\n public boolean onTouchEvent(MotionEvent event)\n {\n switch (event.getAction())\n {\n case MotionEvent.ACTION_UP: // When the user lifts their finger from screen\n\n pacman.stopMoving();\n break;\n\n case MotionEvent.ACTION_DOWN: // When the user presses the screen\n\n pacman.startMoving();\n\n if(gameEnded) // If the user is game over - press the screen to start a new one\n {\n startGame();\n }\n break;\n }\n\n return true;\n }",
"@Override\r\n\tpublic boolean isTouchRightDown() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean touchDragged(int screenX, int screenY, int pointer) {\n\t\treturn false;\r\n\t}",
"@Override\n public boolean onInterceptTouchEvent(MotionEvent ev) {\n return false;\n }",
"@Override\n\tpublic void show()\n\t{\n\t\tGdx.input.setInputProcessor(this);\n\t}",
"@Override\n public boolean onTouch(View v, MotionEvent event) {\n return timerActive;\n }",
"@Override\n\tpublic boolean touchDown(float x, float y, int pointer, int button) {\n\t\treturn false;\n\t}"
] |
[
"0.6472948",
"0.6472948",
"0.64698875",
"0.6454449",
"0.62810034",
"0.62795264",
"0.62402296",
"0.62057",
"0.620431",
"0.6190413",
"0.61632407",
"0.615128",
"0.6139539",
"0.61329097",
"0.60936075",
"0.6085357",
"0.6085357",
"0.6085357",
"0.6061626",
"0.6046512",
"0.6045196",
"0.6022355",
"0.6000364",
"0.5981045",
"0.5972898",
"0.5944113",
"0.59326094",
"0.5915171",
"0.59079015",
"0.5904334",
"0.5894053",
"0.58649224",
"0.5863671",
"0.586159",
"0.5860366",
"0.5846448",
"0.58451766",
"0.5812276",
"0.5790781",
"0.577118",
"0.575666",
"0.5744559",
"0.57402945",
"0.5735785",
"0.5733741",
"0.5733741",
"0.57295936",
"0.57295936",
"0.5728153",
"0.57281023",
"0.5716007",
"0.5664283",
"0.56603926",
"0.56506896",
"0.5646006",
"0.5645811",
"0.5642002",
"0.5642002",
"0.564146",
"0.5635196",
"0.5628737",
"0.56136525",
"0.5608981",
"0.56087464",
"0.56032753",
"0.5599563",
"0.5588149",
"0.55848974",
"0.55834496",
"0.55821115",
"0.55809915",
"0.55736405",
"0.5570397",
"0.5567108",
"0.5566406",
"0.5559805",
"0.55581576",
"0.5557897",
"0.55539644",
"0.5548012",
"0.55448794",
"0.55425495",
"0.55414844",
"0.55397224",
"0.55395854",
"0.55375785",
"0.5534832",
"0.5527254",
"0.5519877",
"0.5518462",
"0.5497402",
"0.5494663",
"0.54927117",
"0.5478496",
"0.54780036",
"0.5477143",
"0.5470498",
"0.5468465",
"0.5468006",
"0.54678494",
"0.54609835"
] |
0.0
|
-1
|
Sets the zindex of this actor. The zindex is the index into the parent's , where a lower index is below a higher index. Setting a zindex higher than the number of children will move the child to the front. Setting a zindex less than zero is invalid.
|
public void setZIndex(int index) {
internalGroup.setZIndex(index);
dataTrait.zIndex = index;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void setZIndex(int index) {\n\t\t\r\n\t}",
"public void setZIndex(int newZIndex)\n {\n zIndex = newZIndex;\n \n if (parent != null)\n {\n parent.onZIndexChanged(this);\n }\n }",
"public void setZIndex(final int zIndex) {\n CSS.setZIndex(this, zIndex);\r\n }",
"public DraggableBehavior setZIndex(int zIndex)\n\t{\n\t\tthis.options.put(\"zIndex\", zIndex);\n\t\treturn this;\n\t}",
"public int getZIndex()\n {\n return zIndex;\n }",
"public void setFixedZdepth(int expectedZIndex);",
"public void toFront() {\n internalGroup.toFront();\n dataTrait.zIndex = internalGroup.getZIndex();\n }",
"public int getZIndex() {\n return internalGroup.getZIndex();\n }",
"public Builder setParentMonsterIndex(int value) {\n \n parentMonsterIndex_ = value;\n onChanged();\n return this;\n }",
"void setZOrder(int order, Object source);",
"@JSProperty(\"gridZIndex\")\n void setGridZIndex(double value);",
"void setDepthIndex(int depthIndex) {\n this.depthIndex = depthIndex;\n }",
"protected void setFixZIndexEnabled(final boolean enabled)\n\t{\n\t\tthis.getStyle().set(\"z-index\", enabled ? \"1\" : null);\n\t}",
"public void setZ(int value)\n\t{\n\t\tgetWorldPosition().setZ(value);\n\t}",
"PreBoneData(byte index, float x, float y, float z, byte parent) {\n\t\tthis.index = index;\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.z = z;\n\t\tthis.parentIndex = parent;\n\t}",
"public void addChild(final int childIndex) {\n if (!this.children.contains(childIndex)) {\n this.children.add(childIndex);\n }\n }",
"public void setChildViewToGroup() {\n int childViewCount = mDataList.size();\n mParent.removeAllViews();\n for(int i = 0; i < childViewCount; i++) {\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(mPopItemWidth, mPopItemHeight);\n ViewGroup v = (ViewGroup) mInflater.inflate(mResource, mParent, false);\n if (i == 0) {\n layoutParams.setMargins(0, mPopViewTopMargin, 0, 0);\n }\n else if (i == childViewCount - 1) {\n layoutParams.setMargins(0, 0, 0, mPopViewBottomMargin);\n }\n else {\n layoutParams.setMargins(0, 0, 0, 0);\n }\n v.setLayoutParams(layoutParams);\n v.setVisibility(INVISIBLE);\n mParent.addView(v);\n }\n }",
"private static void addChildAt(\n ReactShadowNode parentNode,\n ReactShadowNode childNode,\n int index,\n int prevIndex) {\n if (index <= prevIndex) {\n throw new RuntimeException(\n \"Invariant failure, needs sorting! \" + index + \" <= \" + prevIndex);\n }\n\n parentNode.addChildAt(childNode, index);\n }",
"@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }",
"public void addParent(final int parentIndex) {\n if (!this.parents.contains(parentIndex)) {\n this.parents.add(parentIndex);\n }\n }",
"private void moveChild(ReactShadowNode child, int moveFromIndex) {\n mMoveProxy.setChildMoveFrom(moveFromIndex, child);\n }",
"public void setZ(int zPos){\t\t\n\t\tz = new Integer(zPos);\n\t}",
"public void setSpawnZ(int z)\n {\n spawnZ = z;\n }",
"public int getChildIndex() {\n return childIndex;\n }",
"public void setParentId(java.lang.Integer parentId);",
"public void swap(int childIndex,int parentIndex);",
"@Override // com.android.server.wm.WindowContainer\n public void assignChildLayers(SurfaceControl.Transaction t) {\n assignStackOrdering(t);\n for (int i = 0; i < this.mChildren.size(); i++) {\n ((TaskStack) this.mChildren.get(i)).assignChildLayers(t);\n }\n }",
"public void moveChild( ChildType child, int index );",
"public void setOffsetZ(int offsetZ) {\n\t\tthis.offsetZ = offsetZ;\n\t}",
"@Override\n\tpublic void getChild(int index) {\n\t\t\n\t}",
"public void bringToFront()\n {\n this.toFront();\n }",
"public final void activate(final int tabOrder) {\n if (activeChild == null) {\n return;\n }\n TWidget child = null;\n for (TWidget widget: children) {\n if ((widget.enabled)\n && !(widget instanceof THScroller)\n && !(widget instanceof TVScroller)\n && (widget.tabOrder >= tabOrder)\n ) {\n child = widget;\n break;\n }\n }\n if ((child != null) && (child != activeChild)) {\n activeChild.active = false;\n assert (child.enabled);\n child.active = true;\n activeChild = child;\n }\n }",
"public void setLayerIndex(int index){\n layerIndex = index;\n }",
"public void sortChildsZ(){\n\t\tif(childList != null && childList.size() > 0){\n\t\t\tCollections.sort(childList);\n\t\t\tfor(Ent e: childList){\n\t\t\t\te.sortChildsZ();\n\t\t\t}\n\t\t}\n\t}",
"private int parentIdx(int idx) {\r\n // TODO\r\n return -1;\r\n }",
"public void setParent(int id);",
"void front() {\n startAnimation(frontSubCubes(), Axis.Z, Direction.CLOCKWISE);\n frontCubeSwap();\n }",
"public void addActorAt(int index, Actor actor) {\n internalGroup.addActorAt(index, actor.internalActor);\n actor.setParent(this);\n actor.setStage(getStage());\n }",
"public void setSelectedIndex(int index)\r\n {\r\n this.scrollBy(index - avatarIndex);\r\n }",
"private void incrementZIndexForNext(Container current) {\n\n Container next = current.getNext();\n\n if (next != null) {\n\n final WidgetEntity widgetOfGreater = next.getWidget();\n if (widgetOfGreater.getZIndex().equals(current.getWidget().getZIndex())) {\n widgetOfGreater.incZ();\n }\n incrementZIndexForNext(next);\n }\n }",
"private void frontObject() {\n\t\tif(this.curr_obj != null) {\n this.curr_obj.uMoveToFront();\n\t\t}\n\t}",
"public void setFront(int x) {\r\n front = x;\r\n }",
"void frontInv() {\n startAnimation(frontSubCubes(), Axis.Z, Direction.ANTICLOCKWISE);\n frontCubeSwap();\n frontCubeSwap();\n frontCubeSwap();\n }",
"public void toBack() {\n internalGroup.toBack();\n dataTrait.zIndex = internalGroup.getZIndex();\n }",
"@objid (\"808c0873-1dec-11e2-8cad-001ec947c8cc\")\n public final void moveChild(GmNodeModel child, int index) {\n int oldIndex = this.children.indexOf(child);\n \n if (oldIndex == -1) {\n throw new IllegalArgumentException(\"The element is not in the children list\");\n }\n \n // If child already at asked position do nothing\n if (index == oldIndex) {\n return;\n }\n \n // If child already at asked last position do nothing\n if (index == -1 && oldIndex == this.children.size() - 1) {\n return;\n }\n \n this.children.remove(child);\n \n if (index == -1) {\n // Add to the end\n this.children.add(child);\n } else if (index > oldIndex) {\n // Child moved after old position,\n // Fix the index after removal.\n this.children.add(index - 1, child);\n } else {\n // Child moved before old position\n this.children.add(index, child);\n }\n \n firePropertyChange(IGmObject.PROPERTY_CHILDREN, null, child);\n }",
"public void setBackground(int index){\r\n\t\tsuper.setBackground(myBackgrounds.get(index));\r\n\t}",
"@Pure\n\tpublic int getChildIndex() {\n\t\treturn this.childIndex;\n\t}",
"public void setChildrenParent ()\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"setChildrenParent of \" + this);\r\n }\r\n\r\n // Make all children point to this node as parent\r\n for (TreeNode node : children) {\r\n node.setParent(this);\r\n node.setChildrenParent(); // Recursively\r\n }\r\n }",
"public void setBlendOrderAt(@EntityInstance int instance, @IntRange(from = 0) int primitiveIndex,\n @IntRange(from = 0, to = 65535) int blendOrder) {\n nSetBlendOrderAt(mNativeObject, instance, primitiveIndex, blendOrder);\n }",
"@JSProperty(\"gridZIndex\")\n double getGridZIndex();",
"public void setParentNode(int nodeNum){\n\t\tparentNode=nodeNum;\n\t}",
"private void addChildren(\n ReactShadowNode parentNode,\n @Nullable ReadableArray addChildTags,\n @Nullable ReadableArray addAtIndices) {\n\n int prevIndex = -1;\n\n int moveToIndex;\n int moveToChildIndex;\n if (mMoveProxy.size() == 0) {\n moveToIndex = Integer.MAX_VALUE;\n moveToChildIndex = Integer.MAX_VALUE;\n } else {\n moveToIndex = 0;\n moveToChildIndex = mMoveProxy.getMoveTo(0);\n }\n\n int numNodesToAdd;\n int addToIndex;\n int addToChildIndex;\n if (addAtIndices == null) {\n numNodesToAdd = 0;\n addToIndex = Integer.MAX_VALUE;\n addToChildIndex = Integer.MAX_VALUE;\n } else {\n numNodesToAdd = addAtIndices.size();\n addToIndex = 0;\n addToChildIndex = addAtIndices.getInt(0);\n }\n\n // both mMoveProxy and addChildTags are already sorted, but combined order is not sorted. Use\n // a merge step from mergesort to walk over both arrays and extract elements in sorted order.\n\n while (true) {\n if (addToChildIndex < moveToChildIndex) {\n ReactShadowNode addToChild = resolveShadowNode(addChildTags.getInt(addToIndex));\n addChildAt(parentNode, addToChild, addToChildIndex, prevIndex);\n prevIndex = addToChildIndex;\n\n ++addToIndex;\n if (addToIndex == numNodesToAdd) {\n addToChildIndex = Integer.MAX_VALUE;\n } else {\n addToChildIndex = addAtIndices.getInt(addToIndex);\n }\n } else if (moveToChildIndex < addToChildIndex) {\n ReactShadowNode moveToChild = mMoveProxy.getChildMoveTo(moveToIndex);\n addChildAt(parentNode, moveToChild, moveToChildIndex, prevIndex);\n prevIndex = moveToChildIndex;\n\n ++moveToIndex;\n if (moveToIndex == mMoveProxy.size()) {\n moveToChildIndex = Integer.MAX_VALUE;\n } else {\n moveToChildIndex = mMoveProxy.getMoveTo(moveToIndex);\n }\n } else {\n // moveToChildIndex == addToChildIndex can only be if both are equal to Integer.MAX_VALUE\n // which means that we exhausted both arrays, and all children are added.\n break;\n }\n }\n }",
"public void addGuest(View aChild, int anIndex) { _scroller.addGuest(aChild, anIndex); }",
"private void swap(int parentIndex, int childIndex)\r\n\t{\r\n\t\tE parent = theData.get(parentIndex);\r\n\t\tE child = theData.get(childIndex);\r\n\t\t\r\n\t\ttheData.set(parentIndex, child);\r\n\t\ttheData.set(childIndex, parent);\r\n\t}",
"public void set_parentId(int value) {\n setUIntBEElement(offsetBits_parentId(), 16, value);\n }",
"public void setParent(Node parent) {\r\n//\t\tdepth = parent.depth + 1;\r\n\t\tthis.parent = parent;\r\n\t\t//return depth;\r\n\t\t\r\n\t}",
"public void bringToFront(int index) {\n\t\tif (index<this.size()){\n\t\t\tNode front = this.head;\n\t\t\tNode oneBack = new Node(\"\");\n\t\t\tfor (int counter=0; counter < index; counter++){\n\t\t\t\toneBack = front;\n\t\t\t\tfront = front.next;\n\t\t\t}\n\t\t\toneBack.next=front.next;\n\t\t\tfront.next = head;\n\t\t\thead = front;\n\t\t}\n\t}",
"@objid (\"d94cc6fc-55b6-11e2-877f-002564c97630\")\n @Override\n protected void reorderChild(final EditPart child, final int index) {\n IFigure childFigure = ((GraphicalEditPart) child).getFigure();\n super.reorderChild(child, index);\n setLayoutConstraint(child, childFigure, ((GmAbstractObject) child.getModel()).getLayoutData());\n }",
"public void setIndex(int index) { this.index = index; }",
"private void createChildren() {\n\t\t\n\t\tfor(int i=0;i<horizontal;i++) {\n\t\t\t\n\t\t\tAction a = new Action(i);\n\t\t\tif(!gameOver && actionIsValid(a)) {\n\t\t\t\t\n\t\t\t\tPlayer otherPlayer;\n\t\t\t\t\n\t\t\t\tif(player == Player.PLAYER_BLUE) {\n\t\t\t\t\totherPlayer = Player.PLAYER_RED;\n\t\t\t\t}else {\n\t\t\t\t\totherPlayer = Player.PLAYER_BLUE;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tPosition newPosition;\n\t\t\t\tnewPosition = new Position(a, ++moveCounter, otherPlayer, this);\n\t\t\t\tchildren.add(newPosition);\t\n\t\t\t}\n\t\t}\n\t}",
"private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }",
"private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }",
"private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }",
"public void positionChildAt(int position, TaskStack child, boolean includingParents) {\n int topChildPosition;\n if (!child.getWindowConfiguration().isAlwaysOnTop() || position == Integer.MAX_VALUE) {\n int targetPosition = findPositionForStack(position, child, false);\n super.positionChildAt(targetPosition, (int) child, includingParents);\n if (includingParents && targetPosition < (topChildPosition = getChildCount() - 1) && position >= topChildPosition) {\n getParent().positionChildAt(Integer.MAX_VALUE, this, true);\n }\n DisplayContent.this.setLayoutNeeded();\n return;\n }\n Slog.w(DisplayContent.TAG, \"Ignoring move of always-on-top stack=\" + this + \" to bottom\");\n super.positionChildAt(this.mChildren.indexOf(child), (int) child, false);\n }",
"int getZOrder();",
"public int setParent(PathNode2d parent) {\n depth = parent.depth + 1;\n this.parent = parent;\n\n return depth;\n }",
"private final void setDepth(int depth){\n\t\tthis.depth = depth;\n\t}",
"private void addChild(final TWidget child) {\n children.add(child);\n\n if ((child.enabled)\n && !(child instanceof THScroller)\n && !(child instanceof TVScroller)\n ) {\n for (TWidget widget: children) {\n widget.active = false;\n }\n child.active = true;\n activeChild = child;\n }\n for (int i = 0; i < children.size(); i++) {\n children.get(i).tabOrder = i;\n }\n }",
"private void addFaultsToParents(int parentIndexOfFault) {\n\t\twhile (parentIndexOfFault > StatisticsConstants.DEFAULT_PARENT_INDEX) {\n\t\t\tStatisticsLog updatingLog = messageFlowLogs.get(parentIndexOfFault);\n\t\t\tupdatingLog.incrementNoOfFaults();\n\t\t\tparentIndexOfFault = updatingLog.getParentIndex();\n\t\t}\n\t}",
"private void selectChild(int index) {\n if (selectedIndex != index) {\n selectedIndex = -1;\n for (int i = 0; i < getChildCount(); i++) {\n getChildAt(i).setSelected(i == index);\n if (i == index) {\n selectedIndex = index;\n }\n }\n\n if (changeListener != null)\n changeListener.onItemSelect(this, selectedIndex);\n }\n }",
"@Override\r\n\tpublic void setOrder(int order){\r\n\t\tthis.head.setOrder(order);\r\n\t}",
"public void addChildAt(int index, FileNode child) {\r\n child.setParent(this);\r\n this.children.add(index, child);\r\n childNum++;\r\n }",
"public void setParent(State aParent);",
"private synchronized void setParentVisible()\n {\n Platform.runLater(() ->\n {\n GridPane gridPane = (GridPane) this.temperatureView.getParent().getParent();\n gridPane.setVisible(true);\n if (gridPane.getOpacity() != 1)\n {\n FadeTransition fadeIn = new FadeTransition(Duration.seconds(2), gridPane);\n\n fadeIn.setFromValue(0);\n fadeIn.setToValue(1);\n fadeIn.play();\n }\n });\n }",
"private int parent(int index) {\n // Formula to calculate the index of the parent node\n return Math.floorDiv(index - 1, d);\n }",
"public void addChild(int index, Node node) {\n\t\tthis.children.add(index, node);\n\t}",
"public void setChildNum(int value) {\n this.childNum = value;\n }",
"private void bubbleUp(int index) {\n // TODO: YOUR CODE HERE\n E elem = getElement(index);\n E parent = getElement(getParentOf(index));\n int curr = index;\n while (parent != null && elem.compareTo(parent) < 0) {\n swap(curr, getParentOf(curr));\n curr = getParentOf(curr);\n if (curr == 1) {\n return;\n }\n parent = getElement(getParentOf(curr));\n }\n }",
"public void setDepth(int depth) {\r\n this.depth = depth;\r\n }",
"public void setZid(Integer zid) {\n this.zid = zid;\n }",
"public int getAccessibleIndexInParent() {\n return MenuComponent.this.getAccessibleIndexInParent();\n }",
"void addChild(InetSocketAddress address) throws IOException, JAXBException {\n if (!isRoot && parent.getAddress().equals(address)) {\n throw new IllegalArgumentException(\"Cannot assign parent to be a child\");\n }\n if (!children.containsKey(address)) {\n children.put(address, new Neighbor(socket, address, eventDispatcher));\n }\n }",
"private int leftChildIdx(int idx) {\r\n // TODO\r\n return -1;\r\n }",
"private static int parentIndex(int index) {\n\t\treturn (index - 1) / 2;\n\t}",
"public void insertChild(XMLElement child, int index)\n/* */ {\n/* 422 */ if (child == null) {\n/* 423 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 425 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 426 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* 427 */ if (lastChild.getLocalName() == null) {\n/* 428 */ lastChild.setContent(lastChild.getContent() + \n/* 429 */ child.getContent());\n/* 430 */ return;\n/* */ }\n/* */ }\n/* 433 */ child.parent = this;\n/* 434 */ this.children.insertElementAt(child, index);\n/* */ }",
"public final MotionUpdateEvent setZ(double z) {\n pos.setZ(z);\n return this;\n }",
"private static int leftChildIndex(int index) {\n\t\treturn (index * 2) + 1;\n\t}",
"public void setParentId(Integer parentId) {\n this.parentId = parentId;\n }",
"public void setParentId(Integer parentId) {\n this.parentId = parentId;\n }",
"public void setParentId(Integer parentId) {\n this.parentId = parentId;\n }",
"public void removeChild(int index)\n {\n children.remove(index);\n }",
"public void setIndex(int index){\r\n \tthis.index = index;\r\n }",
"public void setZ(int value) {\n this.Z = value;\n }",
"public void setParentid(Integer parentid) {\n\t\tthis.parentid = parentid;\n\t}",
"private void setIndex(int index){\n\t\tthis.index = index;\n\t}",
"private void _animateDeckDisplayedChild(UIComponent eventComponent, int newDisplayedChildIndex) {\n // Find the nearest deck ancestor:\n RichDeck deck = null;\n String eventComponentId = eventComponent.getId();\n while (deck == null) {\n if (eventComponent == null) {\n System.err.println(\"Unable to locate a deck ancestor from id \" + eventComponentId);\n return;\n } else if (eventComponent instanceof RichDeck) {\n deck = (RichDeck) eventComponent;\n break;\n }\n eventComponent = eventComponent.getParent();\n }\n System.out.println(\"Child is-\" + eventComponent.getId());\n String newDisplayedChild = deck.getChildren().get(newDisplayedChildIndex).getId();\n\n // Update the displayedChild:\n System.out.println(\"Display Child-\" + newDisplayedChild);\n deck.setDisplayedChild(newDisplayedChild);\n\n // Add this component as a partial target:\n RequestContext.getCurrentInstance().addPartialTarget(deck);\n }",
"public Builder setDepth(int value) {\n \n depth_ = value;\n onChanged();\n return this;\n }",
"public void setPosition(int index, float value) {\r\n\t\tswitch(index)\r\n\t\t{\r\n\t\t\tcase 0:\tthis.position.setX(value); break;\r\n\t\t\tcase 1: this.position.setY(value); break;\r\n\t\t\tcase 2: this.position.setZ(value); break;\r\n\t\t\tdefault: break;\r\n\t\t}\r\n\t}",
"public void insertChildAt(WSLNode node, int index) {\n\t\tchildren.insertElementAt(node, index);\n\t}",
"public void setSortindex(Integer sortindex) {\n this.sortindex = sortindex;\n }"
] |
[
"0.74284846",
"0.68359584",
"0.6748074",
"0.6441968",
"0.6202878",
"0.578442",
"0.57486975",
"0.5557674",
"0.55139613",
"0.5307031",
"0.5291551",
"0.52789396",
"0.5108279",
"0.5037692",
"0.5029244",
"0.49781507",
"0.49402195",
"0.48899174",
"0.47671038",
"0.47508225",
"0.47350714",
"0.47317898",
"0.47201705",
"0.47162306",
"0.47079465",
"0.46581125",
"0.46409792",
"0.46363178",
"0.46284616",
"0.4616917",
"0.46044207",
"0.4582683",
"0.45723578",
"0.45705688",
"0.45689726",
"0.45610142",
"0.4555613",
"0.4539858",
"0.4502037",
"0.45008442",
"0.44999918",
"0.44454736",
"0.4440998",
"0.44379216",
"0.44330737",
"0.44320574",
"0.44028053",
"0.43999282",
"0.43962666",
"0.439555",
"0.43875667",
"0.4379544",
"0.43795252",
"0.4371981",
"0.43622202",
"0.4362145",
"0.4360122",
"0.43595868",
"0.43593392",
"0.4353594",
"0.4338144",
"0.4338144",
"0.4338144",
"0.4337147",
"0.43312377",
"0.43234468",
"0.431908",
"0.4313314",
"0.43051124",
"0.4301752",
"0.43012667",
"0.4294279",
"0.42941228",
"0.42939773",
"0.4282",
"0.4280417",
"0.42735595",
"0.42587912",
"0.42586148",
"0.42572203",
"0.42571816",
"0.4251384",
"0.4250759",
"0.42497903",
"0.42463082",
"0.42324865",
"0.42304185",
"0.42285192",
"0.42285192",
"0.42285192",
"0.42276505",
"0.42263457",
"0.4225029",
"0.42230043",
"0.4221819",
"0.42046848",
"0.41976336",
"0.41966787",
"0.4187757",
"0.41832167"
] |
0.72490394
|
1
|
Returns the zindex of this actor.
|
public int getZIndex() {
return internalGroup.getZIndex();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getZIndex()\n {\n return zIndex;\n }",
"public int getzPos() {\n return zPos;\n }",
"public int getIndex() {\r\n return ordinal();\r\n }",
"@JsOverlay\n\tpublic final int getIndex() {\n\t\t// checks if there is the property\n\t\tif (ObjectType.UNDEFINED.equals(JsHelper.get().typeOf(this, \"index\"))) {\n\t\t\treturn Undefined.INTEGER;\n\t\t}\n\t\treturn getNativeIndex();\n\t}",
"public final int zzbel() {\n return this.zzidx;\n }",
"public int getSpawnZ()\n {\n return spawnZ;\n }",
"public int getZ() {\n\t\treturn -150;\n\t}",
"public int getZ() {\n\t\treturn z;\n\t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex() {\n\t\treturn 0;\n\t}",
"protected int getLeaderIndex() {\n // -1 means leader not found\n String leaderId = getLeaderId();\n if (WAITING_FOR_ELECTION.equals(leaderId)) {\n return -1;\n }\n String leaderAddress = leaderId.replace('_', ':');\n int index = 0;\n for (InetSocketAddress address : mClusterAddresses) {\n if (address.toString().equals(leaderAddress)) {\n return index;\n }\n index++;\n }\n return -1;\n }",
"public final int getIndex(){\n return index_;\n }",
"public int getIndex() {\n return mIndex;\n }",
"public int getIndex()\n {\n return getInt(\"Index\");\n }",
"public int getZwid() {\n return zwid;\n }",
"public Number getIdx() {\n return (Number)getAttributeInternal(IDX);\n }",
"int getIndex() {\n\t\treturn index;\n\t}",
"public int getIndex() {\n\t\treturn index;\n\t}",
"public int getIndex() {\n\t\treturn index;\n\t}",
"public int getIndex() {\n\t\treturn index;\n\t}",
"int getZOrder();",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n\t\treturn this.mIndex;\n\t}",
"public int getIndex() {\r\n return index;\r\n }",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n\t\treturn this.index;\n\t}",
"public int getIndex() {\n \t\treturn index;\n \t}",
"public int getIndex() {\r\n\t\treturn index;\r\n\t}",
"public int getIndex() {\n return this.index;\n }",
"public int getIndex() {\n return this.index;\n }",
"public final float getZIndex() {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).getZIndex()\");\n return ((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).getZIndex();\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).getZIndex()\");\n return ((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).getZIndex();\n }\n }",
"public Integer getZid() {\n return zid;\n }",
"public Integer getZhiyuanIndex() {\n return zhiyuanIndex;\n }",
"public int getIndex() {\r\n return _index;\r\n }",
"public int getIndex() {\r\n return _index;\r\n }",
"@Override\n\tpublic double getZLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn z-side;\n\t}",
"public int getIndex()\n {\n return index;\n }",
"public int getIndex()\n {\n return m_index;\n }",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex(){\r\n \treturn index;\r\n }",
"public int index() {\n\t\treturn this.index;\n\t}",
"@Override\n public int getZ() {\n return (int) claim.getZ();\n }",
"public int getIndex()\n {\n return index;\n }",
"@JSProperty(\"gridZIndex\")\n double getGridZIndex();",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public Integer getIndex() {\n return index;\n }",
"public int getAccessibleIndexInParent() {\n return MenuComponent.this.getAccessibleIndexInParent();\n }",
"public int getIndex(){\n return index;\n }",
"public int getIndex(){\n return index;\n }",
"private int getIndex() {\n\t\treturn this.index;\r\n\t}",
"public Integer index() {\n return this.index;\n }",
"public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}",
"public int getZ()\n {\n return zaxis;\n }",
"public double getZ() {\n return position.getZ();\n }",
"public int getIdx() {\n return idx;\n }",
"int getMonsterIndex();",
"int getMonsterIndex();",
"public int getIndex() { return this.index; }",
"int getIndex(){\r\n\t\treturn index;\r\n\t}",
"public Integer getIdx() {\r\n\t\treturn idx;\r\n\t}",
"int getParentMonsterIndex();",
"public int getIndex() {\n\t\treturn index & 0xffff;\n\t}",
"int getDepthIndex() {\n return depthIndex;\n }",
"private int getChildIndex(long descendent) {\n long destinationChild = ZQuad.getChildThatsAncestorOf(this.quad, descendent);\n // What is the descendancy of that child relative to this one?\n long descendancy = ZQuad.getDescendancy(destinationChild, 1);\n // The scalar component is what we're looking for.\n return (int) ZQuad.quadToScalar(descendancy, 1);\n }",
"public String leaderIndex() {\n return leaderIndex;\n }",
"public Integer getSortindex() {\n return sortindex;\n }",
"public int getZX() {\n\t\treturn zX;\n\t}",
"protected final int getIndex() {\n return index;\n }",
"public int getIndex() {\r\n\t\treturn personToContact;\r\n\t}",
"public int getZ() {\n return z;\n }",
"public final int getPlayerIndex() {\r\n return this.playerIndex;\r\n }",
"public int getIndx() {\n return this.indx;\n }",
"public long getNodeIndex();",
"public int getZ() {\r\n return z;\r\n }",
"public int getZ() {\n return Z;\n }",
"@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}",
"public int getAccessibleIndexInParent() {\n try {\n return unoAccessibleContext.getAccessibleIndexInParent();\n } catch (com.sun.star.uno.RuntimeException e) {\n return -1;\n } \n }",
"public synchronized final int getIndex() {\r\n return f_index;\r\n }",
"@Override\r\n\tpublic void setZIndex(int index) {\n\t\t\r\n\t}",
"public int getIndex() { \n\t\t\treturn currIndex;\n\t\t}",
"private int getArrayIndex() {\n\t\tswitch (getId()) {\n\t\tcase 3493:\n\t\t\treturn Recipe_For_Disaster.AGRITH_NA_NA_INDEX;\n\t\tcase 3494:\n\t\t\treturn Recipe_For_Disaster.FLAMBEED_INDEX;\n\t\tcase 3495:\n\t\t\treturn Recipe_For_Disaster.KARAMEL_INDEX;\n\t\tcase 3496:\n\t\t\treturn Recipe_For_Disaster.DESSOURT_INDEX;\n\t\t}\n\t\treturn -1;\n\t}",
"public Integer getOrdinal() {\r\n\t\treturn ordinal;\r\n\t}",
"public Integer getOrdinal() {\r\n\t\treturn ordinal;\r\n\t}"
] |
[
"0.677524",
"0.64259046",
"0.61319447",
"0.60140073",
"0.5958015",
"0.59375614",
"0.5802597",
"0.5799375",
"0.57875407",
"0.57875407",
"0.57875407",
"0.5773207",
"0.57606906",
"0.5756988",
"0.5756456",
"0.57483906",
"0.57477087",
"0.57473344",
"0.57448924",
"0.5743755",
"0.5743755",
"0.5743755",
"0.574161",
"0.57365125",
"0.57248443",
"0.5720218",
"0.57196724",
"0.57196724",
"0.57196724",
"0.57196724",
"0.57196724",
"0.57189363",
"0.5718399",
"0.5718397",
"0.5710619",
"0.5710619",
"0.57095015",
"0.5696478",
"0.56918234",
"0.568628",
"0.568628",
"0.56855136",
"0.5682755",
"0.5676392",
"0.56757826",
"0.56638753",
"0.56638753",
"0.56638753",
"0.56638753",
"0.56638753",
"0.56638753",
"0.5661128",
"0.5659627",
"0.5654032",
"0.56532043",
"0.56482303",
"0.5644373",
"0.5644373",
"0.5644373",
"0.5644373",
"0.5644373",
"0.5644373",
"0.5644291",
"0.5637386",
"0.5627219",
"0.5627219",
"0.56190324",
"0.5615264",
"0.56134856",
"0.56078464",
"0.5601119",
"0.5598805",
"0.5571063",
"0.5571063",
"0.55612546",
"0.55586964",
"0.55313873",
"0.5515868",
"0.55129635",
"0.5511236",
"0.54974186",
"0.5497247",
"0.54927474",
"0.5451334",
"0.545041",
"0.5437897",
"0.5429356",
"0.54174346",
"0.5410951",
"0.54065",
"0.53920084",
"0.53874534",
"0.53829134",
"0.53740305",
"0.5361662",
"0.5359988",
"0.5357216",
"0.5354256",
"0.53538734",
"0.53538734"
] |
0.6970512
|
0
|
Transforms the specified point in screen coordinates to the actor's local coordinate system.
|
public Vector2 screenToLocalCoordinates(Vector2 screenCoords) {
return internalGroup.screenToLocalCoordinates(screenCoords);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"DeviceCoordinate transformWorldToScreen(final double x, final double y);",
"public Point2D userToDeviceSpace(\n Point2D point\n )\n {return ctm.transform(point, null);}",
"static void setViewPointRelevantTo(Point point) {\n point.translate(-1 * viewPoint.x, -1 * viewPoint.y);\n point.x /= Map.zoom;\n point.y /= Map.zoom;\n point.translate(viewPoint.x, viewPoint.y);\n viewPoint.setLocation(point.x - GAME_WIDTH / 2, point.y - GAME_HEIGHT / 2);\n verifyViewPoint();\n }",
"public void moveTo(Point point){\n updateUndoBuffers(new LinkedList<>());\n xPos = point.getMyX()+myGrid.getWidth()/ HALF;\n yPos = myGrid.getHeight()/ HALF-point.getMyY();\n }",
"@NonNull\n @Override\n public PointF transformMeteringPoint(@NonNull PointF point) {\n PointF scaled = new PointF();\n scaled.x = -1000F + (point.x / previewSize.getWidth()) * 2000F;\n scaled.y = -1000F + (point.y / previewSize.getHeight()) * 2000F;\n\n // Apply rotation to this point.\n // https://academo.org/demos/rotation-about-point/\n PointF rotated = new PointF();\n double theta = ((double) displayToSensor) * Math.PI / 180;\n rotated.x = (float) (scaled.x * Math.cos(theta) - scaled.y * Math.sin(theta));\n rotated.y = (float) (scaled.x * Math.sin(theta) + scaled.y * Math.cos(theta));\n LOG.i(\"scaled:\", scaled, \"rotated:\", rotated);\n return rotated;\n }",
"public void relocateToPoint (Point2D p) {\n\n\t\t//relocates the object to a point that has been converted to\n\t\t//scene coordinates\n\t\tPoint2D localCoords = getParent().sceneToLocal(p);\n\n\t\tdouble x = localCoords.getX() - (getBoundsInLocal().getWidth() / 2);\n\t\tdouble y = localCoords.getY() - (getBoundsInLocal().getHeight() / 2);\n\n\t\trelocate ( (int) (x), (int) (y) );\n\t}",
"WorldCoordinate transformScreenToWorld(final DeviceCoordinate screen);",
"void turnToPoint(float x, float y) {\n _rotVector.set(x - _x, y - _y, 0);\n _rotVector.setMag(1);\n }",
"void from_screen_x_y_norot (Point3D p, int x, int y, double offx, double scalex, double offy, double scaley, int screen_off_x, int screen_off_y) { \n // screen_off_x + toInt(scalex*(offx+p.x)) = x ==>\n // scalex*p.x = x - screen_off_x - scalex*offx;\n p.x = (x - screen_off_x - scalex*offx)/scalex;\n p.y = (y - screen_off_y - scaley*offy)/scaley;\n }",
"public void relocateToPoint (Point2D p) {\n\t\tPoint2D localCoords = getParent().sceneToLocal(p);\r\n\r\n\t\trelocate ( \r\n\t\t\t\t(int) (localCoords.getX() - (getBoundsInLocal().getWidth() / 2)),\r\n\t\t\t\t(int) (localCoords.getY() - (getBoundsInLocal().getHeight() / 2))\r\n\t\t\t\t);\r\n\t}",
"public void relocateToPoint(boolean isUserClick){\n// System.out.println(\"Scene x: \"+point.getX()+\", y: \"+point.getY());\n// System.out.println(\"Local x: \"+getParent().sceneToLocal(point).getX()+\", y: \"+getParent().sceneToLocal(point).getY());\n// System.out.println(\"Relocate x: \"+(getParent().sceneToLocal(point).getX() - (getWidth() / 2))+\", y: \"+(getParent().sceneToLocal(point).getY() - (getHeight() / 2)));\n// System.out.println(getBoundsInLocal().getWidth());\n// System.out.println(widthProperty());\n\n if (isUserClick) {\n double new_x=getParent().sceneToLocal(x,y).getX();\n double new_y=getParent().sceneToLocal(x,y).getY();\n setX(new_x);\n setY(new_y);\n relocate(\n// (getParent().sceneToLocal(x,y).getX() - (widthCountry / 2)),\n// (getParent().sceneToLocal(x,y).getY() - (heightCountry / 2))\n new_x,new_y\n );\n } else {\n relocate(x,y);\n }\n\n\n }",
"public static Vector2 touchToScreenPos()\n {\n Vector3 input = new Vector3(Gdx.input.getX(), Gdx.input.getY(), 0);\n input = GdxStart.camera.unproject(input);\n return new Vector2(input.x, input.y);\n }",
"public Vector2 getWorldPoint (Vector2 localPoint) {\n\t\ttmp.set(localPoint.x, localPoint.y);\n\t\tVec2 wp = body.getWorldPoint(tmp);\n\t\treturn worldPoint.set(wp.x, wp.y);\n\t}",
"private Vec2 calculatePos() {\n\t\tNetTransformComponent transform = actor.getEntity().getNetTransform();\n\t\tif (transform != null) {\n\t\t\tVec2 screenPos = scene.getCamera()\n\t\t\t\t\t.getScreenCoordinates(Vec3.add(transform.getPosition(), new Vec3(-2.0f, 3.25f, 0.0f)));\n\t\t\tVec2 result = new Vec2(screenPos.getX(), screenPos.getY());\n\t\t\treturn result;\n\t\t}\n\n\t\treturn new Vec2(0.0f, 0.0f);\n\t}",
"public void translate(float x, float y);",
"public void setPosition(ScreenPoint p) {\n setX(p.x);\n setY(p.y);\n }",
"public static Vector2f transformPoint(Transform t, Vector2f p) {\n\t\treturn t.transformPoint(p);\n\t}",
"public Vector2 stageToLocalCoordinates(Vector2 stageCoords) {\n return internalGroup.stageToLocalCoordinates(stageCoords);\n }",
"public GuiPoint coordinateToGui(Vector2f point) {\r\n\t\tint coordX = (int) Math.round(point.getX() * zoomFactor);\r\n\t\tint coordY = (int) Math.round(point.getY() * zoomFactor);\r\n\r\n\t\tint guiX = coordX + origin.x;\r\n\t\tint guiY = coordY + origin.y;\r\n\t\tGuiPoint pos = new GuiPoint(guiX, guiY);\r\n\r\n\t\treturn pos;\r\n\t}",
"void moveToPoint(float x, float y) {\n _x = x;\n _y = y;\n }",
"private void mouseEventToWorldSpace(MouseEvent e) {\n\n Point2D mousePoint = new Point2D.Double();\n mousePoint.setLocation(e.getPoint());\n\n Point2D newPoint = new Point2D.Double();\n this.viewModel.getViewToWorld().transform(mousePoint, newPoint);\n\n int xDiff = (int) ( newPoint.getX() - mousePoint.getX() );\n int yDiff = (int) ( newPoint.getY() - mousePoint.getY() );\n\n e.translatePoint(xDiff, yDiff);\n }",
"public Point2D translatePoint( Figure f, Point2D p, Point2D dir);",
"void to_screen_x_y (Point3D p, int[] x, int[] y, int i, double offx, double scalex, double offy, double scaley, int screen_off_x, int screen_off_y) { \n double rp = Math.toRadians(craft_pitch); \n double space_x = scalex*(offx+p.x);\n double space_y = scaley*(offy+p.z);\n space_x = space_x*Math.cos(rp) - space_y*Math.sin(rp); \n space_y = space_x*Math.sin(rp) + space_y*Math.cos(rp); \n\n x[i] = screen_off_x + toInt(space_x);\n y[i] = screen_off_y + toInt(space_y);\n }",
"private void setOrigin() {\n Hep3Vector origin = VecOp.mult(CoordinateTransformations.getMatrix(), _sensor.getGeometry().getPosition());\n // transform to p-side\n Polygon3D psidePlane = this.getPsidePlane();\n Translation3D transformToPside = new Translation3D(VecOp.mult(-1 * psidePlane.getDistance(),\n psidePlane.getNormal()));\n this._org = transformToPside.translated(origin);\n }",
"private void positionObjectInScene(float x, float y, float z) {\n setIdentityM(modelMatrix, 0);\n translateM(modelMatrix, 0, x, y, z);\n multiplyMM(modelViewProjectionMatrix, 0, viewProjectionMatrix,\n 0, modelMatrix, 0);\n }",
"public Point windowToLocal(int x, int y, LWWindowPeer wp) {\n return windowToLocal(new Point(x, y), wp);\n }",
"public void translate(int x, int y);",
"public void panOriginTo(double x, double y) {\n \t\tfloat tx = (float) (x / mapDisplay.sc);\n \t\tfloat ty = (float) (y / mapDisplay.sc);\n \t\tsetPosition(tx, ty, tweening);\n \t}",
"public void pointToMouse() {\n pointToXY(p.mouseX,p.mouseY);\n }",
"@NonNull\n @Override\n public PointF transformMeteringPoint(@NonNull PointF point) {\n final PointF referencePoint = new PointF(point.x, point.y);\n Size referenceSize = previewSize;\n\n // 1. Account for cropping.\n // This will enlarge the preview size so that aspect ratio matches.\n referenceSize = applyPreviewCropping(referenceSize, referencePoint);\n\n // 2. Scale to the preview stream coordinates.\n // This will move to the preview stream coordinates by scaling.\n referenceSize = applyPreviewScale(referenceSize, referencePoint);\n\n // 3. Rotate to the stream coordinate system.\n // This leaves us with sensor stream coordinates.\n referenceSize = applyPreviewToSensorRotation(referenceSize, referencePoint);\n\n // 4. Move to the crop region coordinate system.\n // The crop region is the union of all currently active streams.\n referenceSize = applyCropRegionCoordinates(referenceSize, referencePoint);\n\n // 5. Move to the active array coordinate system.\n referenceSize = applyActiveArrayCoordinates(referenceSize, referencePoint);\n LOG.i(\"input:\", point, \"output (before clipping):\", referencePoint);\n\n // 6. Probably not needed, but make sure we clip.\n if (referencePoint.x < 0) referencePoint.x = 0;\n if (referencePoint.y < 0) referencePoint.y = 0;\n if (referencePoint.x > referenceSize.getWidth()) referencePoint.x = referenceSize.getWidth();\n if (referencePoint.y > referenceSize.getHeight()) referencePoint.y = referenceSize.getHeight();\n LOG.i(\"input:\", point, \"output (after clipping):\", referencePoint);\n return referencePoint;\n }",
"@Override\r\n\t\tpublic void translate(Point3D vec) {\r\n\t\t\t// TODO Auto-generated method stub \r\n\t\t\tMyCoords mc= new MyCoords();\r\n\t\t\tPoint3D p=new Point3D(vec);\r\n\t\t\tPoint3D newPoint=mc.add(p, vec);\r\n\t\t\tthis.point=newPoint;\r\n\t\t}",
"public Coordinate toLocal(Coordinate deviceGlobalPose){\n\t\tdouble x_delta_mm=x-deviceGlobalPose.x;\n\t\tdouble y_delta_mm=y-deviceGlobalPose.y;\n\t\tdouble a_lc=a-deviceGlobalPose.a;\n\t\t\n\t\tdouble cos=Math.cos(-deviceGlobalPose.a);\n\t\tdouble sin=Math.sin(-deviceGlobalPose.a);\n\t\t\n\t\tdouble x_mm=x_delta_mm*cos-y_delta_mm*sin;\n\t\tdouble y_mm=x_delta_mm*sin+y_delta_mm*cos;\n\t\t\n\t\tdouble x_lc=x_mm*Device.ppmX;\n\t\tdouble y_lc=y_mm*Device.ppmY;\n\t\t\n\t\treturn new Coordinate(x_lc,y_lc,a_lc);\n\t}",
"public WorldToScreenTransform getWorldToScreenTransform() { return this; }",
"public static Point mapPoint(Point point) {\n\t\treturn point;\n\t}",
"private static Vector2f toScreenCoords(float x, float y) {\r\n\t\treturn(new Vector2f((x + 0.5f) * DisplayManager.getWidth(), y * DisplayManager.getHeight()));\r\n\t}",
"public static void convertPointFromScreen(Point p, JComponent c) {\n\t\tSystem.out.println(\"ERROR!\");new Exception().printStackTrace();throw new UnsupportedOperationException(\"Broken!\");\n\t}",
"Point onScreen();",
"public Vector2 getLocalPoint (Vector2 worldPoint) {\n\t\ttmp.set(worldPoint.x, worldPoint.y);\n\t\tVec2 lp = body.getLocalPoint(tmp);\n\t\treturn localPoint2.set(lp.x, lp.y);\n\t}",
"public void setTransform(float a11, float a12, float a21, float a22, float x, float y);",
"private void normalizeLocation(Point location) {\r\n location.x = location.x / Environment.standardCellLength * Environment.standardCellLength;\r\n location.y = location.y / Environment.standardCellLength * Environment.standardCellLength;\r\n }",
"public Point2D.Float getScreenToGameCoords(double screenX, double screenY) {\n\t\treturn cam.unproject((float) screenX, (float) screenY);\n\t}",
"public Affine.Point viewportToWorld(Affine.Point dst, Point src) {\n if (dst == null) {\n dst = new Affine.Point();\n }\n dst.x = viewportToWorldX(src.x);\n dst.y = viewportToWorldY(src.y);\n return dst;\n }",
"public void moveToPoint(double x, double y, double z);",
"protected IPoint scalePointIntoCoordinates(IPoint point) {\n\t\t\n\t\tdouble newX = point.getX() / getPixelsPerX();\n\t\tdouble newY = point.getY() / getPixelsPerY();\n\t\treturn new Point(newX, newY, point.getTime());\n\t}",
"void to_screen_x_y_norot (Point3D p, int[] x, int[] y, int i, double offx, double scalex, double offy, double scaley, int screen_off_x, int screen_off_y) { \n double space_x = scalex*(offx+p.x);\n double space_y = scaley*(offy+p.z);\n x[i] = screen_off_x + toInt(space_x);\n y[i] = screen_off_y + toInt(space_y);\n }",
"public Point transform(double x, double y, double z) {\n\t\t\n\t\n\t\tdouble uIso = (x * xToU) + (y * yToU) + (z * zToU);\n\t\tdouble vIso = (x * xToV) + (y * yToV) + (z * zToV);\n\t\t\n\t\tint uDraw = xOffset + (int)(scale * uIso);\n\t\tint vDraw = yOffset + (int)(scale * vIso);\n\t\t\n\t\treturn new Point(uDraw, vDraw);\n\t}",
"public Point2D.Float getScreenToGameCoords(int screenX, int screenY) {\n\t\treturn cam.unproject((float) screenX, (float) screenY);\n\t}",
"public final void setToPoint(Vector toPoint) {\n\t\ttransform.setToPoint(toPoint);\n\t}",
"public final void setFromPoint(Vector fromPoint) {\n\t\ttransform.setFromPoint(fromPoint);\n\t}",
"public final Point getCenterPointOnScreen() {\n return bot.getManagers().getCalculations().tileToScreen(localRegionX, localRegionY,\n 0.5D, 0.5D, 0);\n }",
"public Vector2 localToStageCoordinates(Vector2 localCoords) {\n return internalGroup.localToStageCoordinates(localCoords);\n }",
"public void moveToPoint(int x, int y) {\n /**\n * DO NOT EDIT THIS CODE TO REMOVE DUPLICATIONS IT WILL BREAK MULTIPLAYER\n * SERIOUSLY JUST DO NOT DO IT\n *\n * DON'T DO IT\n *\n *\n * JUST DON'T TOUCH THIS CODE AT ALL\n */\n AbstractHero hero = map.getCurrentTurnHero();\n\n // This short circuits but if it's not multiplayer the second statement will do nothing\n if (map.moveEntity(map.getCurrentTurnHero(), x, y)) {\n map.updateVisibilityArray();\n visionChanged = true;\n gameState.updateMovementGoal(x, y);\n }\n\n updateLiveTileEffectsOnCharacter(hero);\n gameChanged = true;\n minimapChanged = true;\n visionChanged = true;\n movementChanged = true;\n\n\n centerMapOnCurrentHero();\n }",
"private static Point3d transformPoint(Matrix4d transformMat, Point3d originalPoint) {\n Point3d tempPoint = new Point3d();\n transformMat.transform(new Point3d(originalPoint.getX(), originalPoint.getY(), originalPoint.getZ()), tempPoint);\n return tempPoint;\n }",
"public Vector2df guiToCoordinate(GuiPoint point) {\r\n\t\tint guiX = point.x;\r\n\t\tint guiY = point.y;\r\n\t\tfloat zoom = 1.0f / zoomFactor;\r\n\t\tint coordX = Math.round((guiX - origin.x) * zoom);\r\n\t\tint coordY = Math.round((guiY - origin.y) * zoom);\r\n\t\tVector2df pos = new Vector2df(coordX, coordY);\r\n\t\treturn pos;\r\n\t}",
"public final Shape translate(Vector fromPoint, Vector toPoint) {\n\t\treturn transform(new Translation(fromPoint, toPoint));\n\t}",
"public Vector3d screenToModelPointVector(Vector2i pos)\n {\n double adjustedX = pos.getX() - getViewOffset().getX();\n double adjustedY = pos.getY() - getViewOffset().getY();\n // get the percentage of the screen for the positions\n // then use that to get the angles off of the viewer\n // Intersect those with the earth to get the actual selection points.\n double fromXpct = adjustedX / getViewportWidth() - 0.5;\n double fromYpct = adjustedY / getViewportHeight() - 0.5;\n double fromXAngleChange = -fromXpct * myHalfFOVx * 2.;\n double fromYAngleChange = -fromYpct * myHalfFOVy * 2.;\n return rotateDir(fromXAngleChange, fromYAngleChange).getNormalized();\n }",
"public void centerMapOnPoint(int targetX, int targetY) {\n\n int scaledWidth = (int) (TileDataRegister.TILE_WIDTH * scale);\n int scaledHeight = (int) (TileDataRegister.TILE_HEIGHT * scale);\n int baseX = (int) (map.getWidth() * TileDataRegister.TILE_WIDTH * scale) / 2;\n\n int x = baseX + (targetY - targetX) * scaledWidth / 2;\n x -= viewPortWidth * 0.5;\n int y = (targetY + targetX) * scaledHeight / 2;\n y -= viewPortHeight * 0.5;\n\n currentXOffset = -x;\n currentYOffset = -y;\n\n gameChanged = true;\n }",
"public Point transform(Point vector) {\n double _00 = this.matrix[0][0];\n double _01 = this.matrix[0][1];\n double _02 = this.matrix[0][2];\n double _03 = this.matrix[0][3];\n double _10 = this.matrix[1][0];\n double _11 = this.matrix[1][1];\n double _12 = this.matrix[1][2];\n double _13 = this.matrix[1][3];\n double _20 = this.matrix[2][0];\n double _21 = this.matrix[2][1];\n double _22 = this.matrix[2][2];\n double _23 = this.matrix[2][3];\n double _30 = this.matrix[3][0];\n double _31 = this.matrix[3][1];\n double _32 = this.matrix[3][2];\n double _33 = this.matrix[3][3];\n\n double x = vector.x * _00 + vector.y * _10 + vector.z * _20 + vector.w * _30;\n double y = vector.x * _01 + vector.y * _11 + vector.z * _21 + vector.w * _31;\n double z = vector.x * _02 + vector.y * _12 + vector.z * _22 + vector.w * _32;\n double h = vector.x * _03 + vector.y * _13 + vector.z * _23 + vector.w * _33;\n\n return new Point(x, y, z, h);\n }",
"public void translate(Point p){\n a.translate(p);\n b.translate(p);\n c.translate(p);\n }",
"public abstract void Dasher2Screen(MutablePoint coords);",
"public void transform(float a11, float a12, float a21, float a22, float x, float y);",
"double transformXScreenLengthToWorld(final double screen);",
"public Point transform(int x, int y) {\n\t\tdouble pixelWidth = this.plainWidth / this.resolutionX;\n\n\t\tdouble rightFactor = pixelWidth * (x - (this.resolutionX / 2.0));\n\t\tdouble upFactor = pixelWidth * ((this.resolutionY / 2.0) - y);\n\n\t\treturn plainCenterPoint\n\t\t\t\t.add(upVec.mult(upFactor))\n\t\t\t\t.add(rightVec.mult(rightFactor));\n\t}",
"public void translate( float x, float y )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.set( new Vector3f( x, y, 0 ) );\n\t\tmat.mul( opMat );\n\t}",
"public Point convertPointCoordinate(Point point)\n\t{\n\t\tpoint.y = this.getHeight() - point.y;\n\t\treturn point;\n\t}",
"public void moveAndZoomAction(PointActor pointActor) {\n pointActor.remove();\n // coordinates where map should move\n float movePointX = screenWidth / 2 - pointActor.getX() - pointActor.getWidth();\n float movePointY = screenHeight / 2 - pointActor.getY() - pointActor.getHeight();\n // sets origin where the zoom effect is centralized\n mapBorderActor.setOrigin(pointActor.getX() + pointActor.getWidth(), pointActor.getY() + pointActor.getHeight());\n // adds actions\n mapBorderActor.addAction(\n // sequence allows actors do actions in order\n Actions.sequence(\n Actions.moveTo(movePointX,\n movePointY,\n 1f), // duaration(seconds) of move\n Actions.scaleTo(1.5f, 1.5f, 1f),\n Actions.run(new Runnable() {\n @Override\n public void run() {\n host.setScreen(new TalkScreen(host));\n }\n })));\n }",
"public Point worldToViewport(Point dst, Affine.Point src) {\n if (dst == null) {\n dst = new Point();\n }\n dst.x = worldToViewportX(src.x);\n dst.y = worldToViewportY(src.y);\n return dst;\n }",
"public static PVector fromScreen( PVector in ) {\n\t\tfloat x = PApplet.norm( in.x, 0, screenSize[0] );\n\t\tfloat y = PApplet.norm( in.y, 0, screenSize[1] );\n\t\treturn new PVector( x, y );\n\t}",
"void setPosition(Point point);",
"public void translate(float x, float y){\n hitBox.offset(x, y);\n }",
"private float normalizedToScreen(double normalizedCoord) {\n return (float) (padding + normalizedCoord * (getWidth() - 2 * padding));\n }",
"public void centerScreen(int x, int y)\r\n {\r\n // Scaled parameters\r\n int width = View.WIDTH;\r\n int height = View.HEIGHT;\r\n int mapWidth = gameData.getMap().getWidth();\r\n int mapHeight = gameData.getMap().getHeight();\r\n\r\n xScreenOffset = x - width / 2;\r\n yScreenOffset = y - height / 2;\r\n\r\n // Limit Offset, so that the view never leaves the map\r\n if (xScreenOffset < 0)\r\n {\r\n xScreenOffset = 0;\r\n }\r\n if (xScreenOffset > mapWidth - width)\r\n {\r\n xScreenOffset = mapWidth - width;\r\n }\r\n if (yScreenOffset < 0)\r\n {\r\n yScreenOffset = 0;\r\n }\r\n if (yScreenOffset > mapHeight - height)\r\n {\r\n yScreenOffset = mapHeight - height;\r\n }\r\n }",
"public void translate(float theX, float theY) {\n\t}",
"public PVector getTransformedPosition(){\n\t\treturn gui.getTransform().transform(position);\n\t}",
"public Point2D toScreen(Point2D p) {\r\n \t\treturn graph.toScreen(p);\r\n \t}",
"public void centerMapOnCurrentHero() {\n if (map.getCurrentTurnHero() == null) {\n return;\n }\n centerMapOnPoint(map.getCurrentTurnHero().getX(), map.getCurrentTurnHero().getY());\n }",
"public Coordinate pixelToWorld(int x, int y, Envelope map) {\n if (graphics == null) {\n LOGGER.info(\"no graphics yet deffined\");\n \n return null;\n }\n \n //set up the affine transform and calculate scale values\n AffineTransform at = setUpTransform(map, screenSize);\n \n /* If we are rendering to a component which has already set up some form\n * of transformation then we can concatenate our transformation to it.\n * An example of this is the ZoomPane component of the swinggui module.*/\n if (concatTransforms) {\n graphics.getTransform().concatenate(at);\n } else {\n graphics.setTransform(at);\n }\n \n try {\n Point2D result = at.inverseTransform(new java.awt.geom.Point2D.Double(x, y),\n new java.awt.geom.Point2D.Double());\n Coordinate c = new Coordinate(result.getX(), result.getY());\n \n return c;\n } catch (Exception e) {\n LOGGER.warning(e.toString());\n }\n \n return null;\n }",
"private void computeScreenLocation(MouseEvent mouseEvent)\r\n\t{\r\n\t\t\r\n\t\tscreenLocation.setLocation(mouseEvent.getX(), mouseEvent.getY());\r\n\t\tSwingUtilities.convertPointToScreen(screenLocation, (Component)mouseEvent.getSource());\r\n\t\r\n\t}",
"public static Vector2 LevelCoordinatesToScreen(int x, int y){\n\t\tVector2 screenPos = new Vector2();\n\t\tfloat screenX = (X_OFFSET + x)*TILE_SIZE;\n\t\tfloat screenY = (Y_OFFSET + y)*TILE_SIZE;\n\t\tscreenPos.x = screenX;\n\t\tscreenPos.y = screenY;\n\t\treturn screenPos;\n\t}",
"public SbVec3f getPoint() {\n \t return worldPoint; \n }",
"public void setSpawnPoint() {\n if (this.dirVec.y == 0) {\n super.centerRectAt(new Point(-1*OUTER_OFFSET, super.getCenter().y));\n }\n else {\n super.centerRectAt(new Point(super.getCenter().x, OUTER_OFFSET));\n }\n }",
"public void setLocation(Point2D p);",
"WorldDistance transformScreenDeltaToWorld(final DeviceDistance screen);",
"public void setPoint( Float point ) {\n this.point = point;\n }",
"public void translateX(float x) {\n if (collides((int) (this.x + x), (int) y)) return;\n this.x += x;\n this.model.setX(this.x);\n }",
"public void setLocation(float x, float y);",
"private void pointCameraAt(Point3D target,Group root){\n for(Node node: root.getChildren()){\n node.setTranslateX(node.getTranslateX()-xOffset);\n node.setTranslateY(node.getTranslateY()-yOffset);\n node.setTranslateZ(node.getTranslateZ()-zOffset);\n }\n\n xOffset = -target.getX(); yOffset = -target.getY(); zOffset = -target.getZ();\n\n for(Node node: root.getChildren()){\n node.setTranslateX(node.getTranslateX()+xOffset);\n node.setTranslateY(node.getTranslateY()+yOffset);\n node.setTranslateZ(node.getTranslateZ()+zOffset);\n }\n }",
"private Point transform(Point pt1) {\n Point pt2 = new Point(0,0) ;\n pt2.x = pos.x + new Double(pt1.x*Math.cos(heading)+pt1.y*Math.sin(heading)).intValue() ;\n pt2.y = pos.y + new Double(-pt1.x*Math.sin(heading)+pt1.y*Math.cos(heading)).intValue() ;\n return pt2 ;\n }",
"void getPosRelPoint(double px, double py, double pz, DVector3 result);",
"public void teleportTo(int y, int x){\n\t\tthis.position[y][x] = 1;//makes the position here, used for other object room\n\t}",
"public void teleportPlayer(int x, int y){\n hero.setX(x);\n hero.setY(y);\n }",
"public final Point getCenterPointOnScreen() {\n\t\treturn Calculations.tileToScreen(getLocalRegionX(), getLocalRegionY(),\n\t\t\t\t0.5D, 0.5D, 0);\n\t}",
"public void setLocation( Point p ) {\r\n this.x = p.x;\r\n this.y = p.y;\r\n }",
"public Point getScreenCoordinate(Coord c) {\n return getScreenCoordinate(c.getLatitude(), c.getLongitude());\n }",
"public Vec2 coordPixelsToWorld(Vec2 screen) {\n return coordPixelsToWorld(screen.x, screen.y);\n }",
"private Point getMainPoint()\n {\n // Center of screen\n int x = (findViewById(R.id.the_canvas).getWidth() - ((GameBoard)findViewById(R.id.the_canvas)).getMainSpriteWidth())/2;\n // Very bottom of screen\n int y = findViewById(R.id.the_canvas).getHeight() - ((GameBoard)findViewById(R.id.the_canvas)).getMainSpriteHeight();\n\n return new Point (x,y);\n }",
"public float screenXtoGame(final int x, final Camera camera){\n return x / camera.getScaling()- camera.getScreenPosX()+ camera.getViewportPosX();\n }",
"private void updateCamera() {\n\t\tVector3f x = new Vector3f();\n\t\tVector3f y = new Vector3f();\n\t\tVector3f z = new Vector3f();\n\t\tVector3f temp = new Vector3f(this.mCenterOfProjection);\n\n\t\ttemp.sub(this.mLookAtPoint);\n\t\ttemp.normalize();\n\t\tz.set(temp);\n\n\t\ttemp.set(this.mUpVector);\n\t\ttemp.cross(temp, z);\n\t\ttemp.normalize();\n\t\tx.set(temp);\n\n\t\ty.cross(z, x);\n\n\t\tMatrix4f newMatrix = new Matrix4f();\n\t\tnewMatrix.setColumn(0, x.getX(), x.getY(), x.getZ(), 0);\n\t\tnewMatrix.setColumn(1, y.getX(), y.getY(), y.getZ(), 0);\n\t\tnewMatrix.setColumn(2, z.getX(), z.getY(), z.getZ(), 0);\n\t\tnewMatrix.setColumn(3, mCenterOfProjection.getX(),\n\t\t\t\tmCenterOfProjection.getY(), mCenterOfProjection.getZ(), 1);\n\t\ttry {\n\t\t\tnewMatrix.invert();\n\t\t\tthis.mCameraMatrix.set(newMatrix);\n\t\t} catch (SingularMatrixException exc) {\n\t\t\tLog.d(\"Camera\",\n\t\t\t\t\t\"SingularMatrixException on Matrix: \"\n\t\t\t\t\t\t\t+ newMatrix.toString());\n\t\t}\n\t}",
"public void m1291a(Point point) {\r\n this.f763l = point;\r\n }",
"public void pointToXY(int x, int y) {\n PVector targetVector;\n targetVector = new PVector(x, y);\n direction = (p.degrees(p.atan2(pos.x - (targetVector.x), pos.y - (targetVector.y))))+90;\n if (direction < 0) direction += 360;\n }"
] |
[
"0.6486719",
"0.63734794",
"0.6347372",
"0.6106794",
"0.60533476",
"0.60243064",
"0.5984011",
"0.5889653",
"0.58684295",
"0.5860805",
"0.58530194",
"0.5772176",
"0.5766575",
"0.5699435",
"0.5689255",
"0.5685082",
"0.5676721",
"0.5670957",
"0.565397",
"0.56430554",
"0.5617554",
"0.5527939",
"0.55083627",
"0.5506585",
"0.54731005",
"0.54630244",
"0.5454451",
"0.54540414",
"0.5441679",
"0.54250044",
"0.54176486",
"0.541266",
"0.53940934",
"0.5392863",
"0.53928506",
"0.53889114",
"0.5384717",
"0.5384015",
"0.53768146",
"0.5351852",
"0.5334946",
"0.53300226",
"0.53104585",
"0.5300308",
"0.52987695",
"0.5292905",
"0.52784187",
"0.5275333",
"0.52742296",
"0.52725524",
"0.5270978",
"0.52700394",
"0.52673244",
"0.5262063",
"0.52573925",
"0.525604",
"0.5247777",
"0.5234732",
"0.523203",
"0.5225005",
"0.51888436",
"0.51862633",
"0.51848763",
"0.51829535",
"0.51804876",
"0.5179908",
"0.51797074",
"0.51767874",
"0.51703674",
"0.51696265",
"0.5162237",
"0.515758",
"0.51575655",
"0.5147001",
"0.5146135",
"0.51446575",
"0.51350355",
"0.5119838",
"0.5116197",
"0.5111139",
"0.51031953",
"0.50982404",
"0.5097064",
"0.50770736",
"0.5073801",
"0.5069285",
"0.50552815",
"0.50454867",
"0.5036777",
"0.5026891",
"0.50210327",
"0.502006",
"0.50159454",
"0.5011495",
"0.5004697",
"0.5000517",
"0.499858",
"0.49976888",
"0.499758",
"0.49965683"
] |
0.5804538
|
11
|
Transforms the specified point in the stage's coordinates to the actor's local coordinate system.
|
public Vector2 stageToLocalCoordinates(Vector2 stageCoords) {
return internalGroup.stageToLocalCoordinates(stageCoords);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void relocateToPoint (Point2D p) {\n\n\t\t//relocates the object to a point that has been converted to\n\t\t//scene coordinates\n\t\tPoint2D localCoords = getParent().sceneToLocal(p);\n\n\t\tdouble x = localCoords.getX() - (getBoundsInLocal().getWidth() / 2);\n\t\tdouble y = localCoords.getY() - (getBoundsInLocal().getHeight() / 2);\n\n\t\trelocate ( (int) (x), (int) (y) );\n\t}",
"static void setViewPointRelevantTo(Point point) {\n point.translate(-1 * viewPoint.x, -1 * viewPoint.y);\n point.x /= Map.zoom;\n point.y /= Map.zoom;\n point.translate(viewPoint.x, viewPoint.y);\n viewPoint.setLocation(point.x - GAME_WIDTH / 2, point.y - GAME_HEIGHT / 2);\n verifyViewPoint();\n }",
"public void relocateToPoint(boolean isUserClick){\n// System.out.println(\"Scene x: \"+point.getX()+\", y: \"+point.getY());\n// System.out.println(\"Local x: \"+getParent().sceneToLocal(point).getX()+\", y: \"+getParent().sceneToLocal(point).getY());\n// System.out.println(\"Relocate x: \"+(getParent().sceneToLocal(point).getX() - (getWidth() / 2))+\", y: \"+(getParent().sceneToLocal(point).getY() - (getHeight() / 2)));\n// System.out.println(getBoundsInLocal().getWidth());\n// System.out.println(widthProperty());\n\n if (isUserClick) {\n double new_x=getParent().sceneToLocal(x,y).getX();\n double new_y=getParent().sceneToLocal(x,y).getY();\n setX(new_x);\n setY(new_y);\n relocate(\n// (getParent().sceneToLocal(x,y).getX() - (widthCountry / 2)),\n// (getParent().sceneToLocal(x,y).getY() - (heightCountry / 2))\n new_x,new_y\n );\n } else {\n relocate(x,y);\n }\n\n\n }",
"public void relocateToPoint (Point2D p) {\n\t\tPoint2D localCoords = getParent().sceneToLocal(p);\r\n\r\n\t\trelocate ( \r\n\t\t\t\t(int) (localCoords.getX() - (getBoundsInLocal().getWidth() / 2)),\r\n\t\t\t\t(int) (localCoords.getY() - (getBoundsInLocal().getHeight() / 2))\r\n\t\t\t\t);\r\n\t}",
"public static Vector2f transformPoint(Transform t, Vector2f p) {\n\t\treturn t.transformPoint(p);\n\t}",
"public void moveTo(Point point){\n updateUndoBuffers(new LinkedList<>());\n xPos = point.getMyX()+myGrid.getWidth()/ HALF;\n yPos = myGrid.getHeight()/ HALF-point.getMyY();\n }",
"public Vector2 localToStageCoordinates(Vector2 localCoords) {\n return internalGroup.localToStageCoordinates(localCoords);\n }",
"private static Point3d transformPoint(Matrix4d transformMat, Point3d originalPoint) {\n Point3d tempPoint = new Point3d();\n transformMat.transform(new Point3d(originalPoint.getX(), originalPoint.getY(), originalPoint.getZ()), tempPoint);\n return tempPoint;\n }",
"@NonNull\n @Override\n public PointF transformMeteringPoint(@NonNull PointF point) {\n PointF scaled = new PointF();\n scaled.x = -1000F + (point.x / previewSize.getWidth()) * 2000F;\n scaled.y = -1000F + (point.y / previewSize.getHeight()) * 2000F;\n\n // Apply rotation to this point.\n // https://academo.org/demos/rotation-about-point/\n PointF rotated = new PointF();\n double theta = ((double) displayToSensor) * Math.PI / 180;\n rotated.x = (float) (scaled.x * Math.cos(theta) - scaled.y * Math.sin(theta));\n rotated.y = (float) (scaled.x * Math.sin(theta) + scaled.y * Math.cos(theta));\n LOG.i(\"scaled:\", scaled, \"rotated:\", rotated);\n return rotated;\n }",
"public StagePosition makeStagePosition();",
"void turnToPoint(float x, float y) {\n _rotVector.set(x - _x, y - _y, 0);\n _rotVector.setMag(1);\n }",
"private void setOrigin() {\n Hep3Vector origin = VecOp.mult(CoordinateTransformations.getMatrix(), _sensor.getGeometry().getPosition());\n // transform to p-side\n Polygon3D psidePlane = this.getPsidePlane();\n Translation3D transformToPside = new Translation3D(VecOp.mult(-1 * psidePlane.getDistance(),\n psidePlane.getNormal()));\n this._org = transformToPside.translated(origin);\n }",
"public Point2D userToDeviceSpace(\n Point2D point\n )\n {return ctm.transform(point, null);}",
"public Point2D translatePoint( Figure f, Point2D p, Point2D dir);",
"public final void setFromPoint(Vector fromPoint) {\n\t\ttransform.setFromPoint(fromPoint);\n\t}",
"public Vector2 getWorldPoint (Vector2 localPoint) {\n\t\ttmp.set(localPoint.x, localPoint.y);\n\t\tVec2 wp = body.getWorldPoint(tmp);\n\t\treturn worldPoint.set(wp.x, wp.y);\n\t}",
"private void positionObjectInScene(float x, float y, float z) {\n setIdentityM(modelMatrix, 0);\n translateM(modelMatrix, 0, x, y, z);\n multiplyMM(modelViewProjectionMatrix, 0, viewProjectionMatrix,\n 0, modelMatrix, 0);\n }",
"public final Shape translate(Vector fromPoint, Vector toPoint) {\n\t\treturn transform(new Translation(fromPoint, toPoint));\n\t}",
"private void moveToStage() {\n\n switch (host.getUnlockedStages()) {\n case 5:\n if (stage5Point.getTouch()) {\n host.setCurrentStage(5);\n removeOtherPointActors(stage5Point);\n moveAndZoomAction(stage5Point);\n break;\n }\n case 4:\n if (stage4Point.getTouch()) {\n host.setCurrentStage(4);\n removeOtherPointActors(stage4Point);\n moveAndZoomAction(stage4Point);\n break;\n }\n case 3:\n if (stage3Point.getTouch()) {\n host.setCurrentStage(3);\n removeOtherPointActors(stage3Point);\n moveAndZoomAction(stage3Point);\n break;\n }\n case 2:\n if (stage2Point.getTouch()) {\n host.setCurrentStage(2);\n removeOtherPointActors(stage2Point);\n moveAndZoomAction(stage2Point);\n break;\n }\n case 1:\n if (stage1Point.getTouch()) {\n host.setCurrentStage(1);\n removeOtherPointActors(stage1Point);\n moveAndZoomAction(stage1Point);\n break;\n }\n }}",
"private void mouseEventToWorldSpace(MouseEvent e) {\n\n Point2D mousePoint = new Point2D.Double();\n mousePoint.setLocation(e.getPoint());\n\n Point2D newPoint = new Point2D.Double();\n this.viewModel.getViewToWorld().transform(mousePoint, newPoint);\n\n int xDiff = (int) ( newPoint.getX() - mousePoint.getX() );\n int yDiff = (int) ( newPoint.getY() - mousePoint.getY() );\n\n e.translatePoint(xDiff, yDiff);\n }",
"public Point transform(double x, double y, double z) {\n\t\t\n\t\n\t\tdouble uIso = (x * xToU) + (y * yToU) + (z * zToU);\n\t\tdouble vIso = (x * xToV) + (y * yToV) + (z * zToV);\n\t\t\n\t\tint uDraw = xOffset + (int)(scale * uIso);\n\t\tint vDraw = yOffset + (int)(scale * vIso);\n\t\t\n\t\treturn new Point(uDraw, vDraw);\n\t}",
"@Override\t\t\t\n\tpublic final myPointf transformPoint(myPointf A, int transformIDX, float t) {\treturn trans[transformIDX].transformPoint(A, t);}",
"public static Point mapPoint(Point point) {\n\t\treturn point;\n\t}",
"public void setTransform(float a11, float a12, float a21, float a22, float x, float y);",
"@Override\r\n\t\tpublic void translate(Point3D vec) {\r\n\t\t\t// TODO Auto-generated method stub \r\n\t\t\tMyCoords mc= new MyCoords();\r\n\t\t\tPoint3D p=new Point3D(vec);\r\n\t\t\tPoint3D newPoint=mc.add(p, vec);\r\n\t\t\tthis.point=newPoint;\r\n\t\t}",
"public GuiPoint coordinateToGui(Vector2f point) {\r\n\t\tint coordX = (int) Math.round(point.getX() * zoomFactor);\r\n\t\tint coordY = (int) Math.round(point.getY() * zoomFactor);\r\n\r\n\t\tint guiX = coordX + origin.x;\r\n\t\tint guiY = coordY + origin.y;\r\n\t\tGuiPoint pos = new GuiPoint(guiX, guiY);\r\n\r\n\t\treturn pos;\r\n\t}",
"public Point transform(Point vector) {\n double _00 = this.matrix[0][0];\n double _01 = this.matrix[0][1];\n double _02 = this.matrix[0][2];\n double _03 = this.matrix[0][3];\n double _10 = this.matrix[1][0];\n double _11 = this.matrix[1][1];\n double _12 = this.matrix[1][2];\n double _13 = this.matrix[1][3];\n double _20 = this.matrix[2][0];\n double _21 = this.matrix[2][1];\n double _22 = this.matrix[2][2];\n double _23 = this.matrix[2][3];\n double _30 = this.matrix[3][0];\n double _31 = this.matrix[3][1];\n double _32 = this.matrix[3][2];\n double _33 = this.matrix[3][3];\n\n double x = vector.x * _00 + vector.y * _10 + vector.z * _20 + vector.w * _30;\n double y = vector.x * _01 + vector.y * _11 + vector.z * _21 + vector.w * _31;\n double z = vector.x * _02 + vector.y * _12 + vector.z * _22 + vector.w * _32;\n double h = vector.x * _03 + vector.y * _13 + vector.z * _23 + vector.w * _33;\n\n return new Point(x, y, z, h);\n }",
"@NonNull\n @Override\n public PointF transformMeteringPoint(@NonNull PointF point) {\n final PointF referencePoint = new PointF(point.x, point.y);\n Size referenceSize = previewSize;\n\n // 1. Account for cropping.\n // This will enlarge the preview size so that aspect ratio matches.\n referenceSize = applyPreviewCropping(referenceSize, referencePoint);\n\n // 2. Scale to the preview stream coordinates.\n // This will move to the preview stream coordinates by scaling.\n referenceSize = applyPreviewScale(referenceSize, referencePoint);\n\n // 3. Rotate to the stream coordinate system.\n // This leaves us with sensor stream coordinates.\n referenceSize = applyPreviewToSensorRotation(referenceSize, referencePoint);\n\n // 4. Move to the crop region coordinate system.\n // The crop region is the union of all currently active streams.\n referenceSize = applyCropRegionCoordinates(referenceSize, referencePoint);\n\n // 5. Move to the active array coordinate system.\n referenceSize = applyActiveArrayCoordinates(referenceSize, referencePoint);\n LOG.i(\"input:\", point, \"output (before clipping):\", referencePoint);\n\n // 6. Probably not needed, but make sure we clip.\n if (referencePoint.x < 0) referencePoint.x = 0;\n if (referencePoint.y < 0) referencePoint.y = 0;\n if (referencePoint.x > referenceSize.getWidth()) referencePoint.x = referenceSize.getWidth();\n if (referencePoint.y > referenceSize.getHeight()) referencePoint.y = referenceSize.getHeight();\n LOG.i(\"input:\", point, \"output (after clipping):\", referencePoint);\n return referencePoint;\n }",
"protected IPoint scalePointIntoCoordinates(IPoint point) {\n\t\t\n\t\tdouble newX = point.getX() / getPixelsPerX();\n\t\tdouble newY = point.getY() / getPixelsPerY();\n\t\treturn new Point(newX, newY, point.getTime());\n\t}",
"public void translate(Point p){\n a.translate(p);\n b.translate(p);\n c.translate(p);\n }",
"private void pointCameraAt(Point3D target,Group root){\n for(Node node: root.getChildren()){\n node.setTranslateX(node.getTranslateX()-xOffset);\n node.setTranslateY(node.getTranslateY()-yOffset);\n node.setTranslateZ(node.getTranslateZ()-zOffset);\n }\n\n xOffset = -target.getX(); yOffset = -target.getY(); zOffset = -target.getZ();\n\n for(Node node: root.getChildren()){\n node.setTranslateX(node.getTranslateX()+xOffset);\n node.setTranslateY(node.getTranslateY()+yOffset);\n node.setTranslateZ(node.getTranslateZ()+zOffset);\n }\n }",
"void moveToPoint(float x, float y) {\n _x = x;\n _y = y;\n }",
"@SuppressWarnings(\"unchecked\")\n public AnimatorType position(PointF point)\n {\n addTransformer(new PositionTransformer(getShape(), point));\n return (AnimatorType) this;\n }",
"public final void setToPoint(Vector toPoint) {\n\t\ttransform.setToPoint(toPoint);\n\t}",
"public SbVec3f getPoint() {\n \t return worldPoint; \n }",
"private Vec2 calculatePos() {\n\t\tNetTransformComponent transform = actor.getEntity().getNetTransform();\n\t\tif (transform != null) {\n\t\t\tVec2 screenPos = scene.getCamera()\n\t\t\t\t\t.getScreenCoordinates(Vec3.add(transform.getPosition(), new Vec3(-2.0f, 3.25f, 0.0f)));\n\t\t\tVec2 result = new Vec2(screenPos.getX(), screenPos.getY());\n\t\t\treturn result;\n\t\t}\n\n\t\treturn new Vec2(0.0f, 0.0f);\n\t}",
"public Vector2df guiToCoordinate(GuiPoint point) {\r\n\t\tint guiX = point.x;\r\n\t\tint guiY = point.y;\r\n\t\tfloat zoom = 1.0f / zoomFactor;\r\n\t\tint coordX = Math.round((guiX - origin.x) * zoom);\r\n\t\tint coordY = Math.round((guiY - origin.y) * zoom);\r\n\t\tVector2df pos = new Vector2df(coordX, coordY);\r\n\t\treturn pos;\r\n\t}",
"public Vector2 getLocalPoint (Vector2 worldPoint) {\n\t\ttmp.set(worldPoint.x, worldPoint.y);\n\t\tVec2 lp = body.getLocalPoint(tmp);\n\t\treturn localPoint2.set(lp.x, lp.y);\n\t}",
"public void panOriginTo(double x, double y) {\n \t\tfloat tx = (float) (x / mapDisplay.sc);\n \t\tfloat ty = (float) (y / mapDisplay.sc);\n \t\tsetPosition(tx, ty, tweening);\n \t}",
"public PVector getTransformedPosition(){\n\t\treturn gui.getTransform().transform(position);\n\t}",
"private void updateTranslated() {\r\n\r\n\tfloat[] dp = new float[3];\r\n\tTools3d.subtract(p, _p, dp);\r\n\r\n\tfor (int i = 0; i < npoints * 3; i+= 3) {\r\n\t // translate by adding the amount local origin has moved by\r\n\t ps[i] += dp[0];\r\n\t ps[i + 1] += dp[1];\r\n\t ps[i + 2] += dp[2];\r\n\t}\r\n\t\r\n\t// reset bounding box and clear dirty flag\r\n\tbox.setBB();\r\n\tdirtyT = false;\r\n\r\n\t// finally\r\n\t_p[0] = p[0];\r\n\t_p[1] = p[1];\r\n\t_p[2] = p[2];\r\n }",
"public Point convertPointCoordinate(Point point)\n\t{\n\t\tpoint.y = this.getHeight() - point.y;\n\t\treturn point;\n\t}",
"public void translate(float x, float y);",
"public void moveToPoint(double x, double y, double z);",
"public RMPoint convertPointToShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(getX(), getY()); return point; }\n return getTransformToShape(shape).transform(point);\n}",
"private Point transform(Point pt1) {\n Point pt2 = new Point(0,0) ;\n pt2.x = pos.x + new Double(pt1.x*Math.cos(heading)+pt1.y*Math.sin(heading)).intValue() ;\n pt2.y = pos.y + new Double(-pt1.x*Math.sin(heading)+pt1.y*Math.cos(heading)).intValue() ;\n return pt2 ;\n }",
"public RMPoint convertPointFromShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(-getX(), -getY()); return point; }\n return getTransformFromShape(shape).transform(point);\n}",
"public void transform(float a11, float a12, float a21, float a22, float x, float y);",
"DeviceCoordinate transformWorldToScreen(final double x, final double y);",
"public void setPoint( Float point ) {\n this.point = point;\n }",
"public Vector3 normalizeLocal () {\n return normalize(this);\n }",
"void setPosition(Point point);",
"public void setLocation(Point2D p);",
"private Point2D.Float transformPoint(Point2D p1) throws NoninvertibleTransformException {\n Point2D.Float p2 = new Point2D.Float();\n transform.inverseTransform(p1, p2); // create a destination p2 from the Point p1\n return p2;\n }",
"public void moveAndZoomAction(PointActor pointActor) {\n pointActor.remove();\n // coordinates where map should move\n float movePointX = screenWidth / 2 - pointActor.getX() - pointActor.getWidth();\n float movePointY = screenHeight / 2 - pointActor.getY() - pointActor.getHeight();\n // sets origin where the zoom effect is centralized\n mapBorderActor.setOrigin(pointActor.getX() + pointActor.getWidth(), pointActor.getY() + pointActor.getHeight());\n // adds actions\n mapBorderActor.addAction(\n // sequence allows actors do actions in order\n Actions.sequence(\n Actions.moveTo(movePointX,\n movePointY,\n 1f), // duaration(seconds) of move\n Actions.scaleTo(1.5f, 1.5f, 1f),\n Actions.run(new Runnable() {\n @Override\n public void run() {\n host.setScreen(new TalkScreen(host));\n }\n })));\n }",
"private void normalizeLocation(Point location) {\r\n location.x = location.x / Environment.standardCellLength * Environment.standardCellLength;\r\n location.y = location.y / Environment.standardCellLength * Environment.standardCellLength;\r\n }",
"public Vector2f normalizeLocal ()\n {\n return normalize(this);\n }",
"public Tuple2d getProjectedPoint(final Tuple3d point) {\n return new Tuple2d(TupleMath.dot(point, this.projectionX), TupleMath.dot(point, this.projectionY));\n }",
"default void setOrigin(Vector3 point) {\r\n setOrigin(point.getX(), point.getY(), point.getZ());\r\n }",
"public void pointToMouse() {\n pointToXY(p.mouseX,p.mouseY);\n }",
"public void centerMapOnPoint(int targetX, int targetY) {\n\n int scaledWidth = (int) (TileDataRegister.TILE_WIDTH * scale);\n int scaledHeight = (int) (TileDataRegister.TILE_HEIGHT * scale);\n int baseX = (int) (map.getWidth() * TileDataRegister.TILE_WIDTH * scale) / 2;\n\n int x = baseX + (targetY - targetX) * scaledWidth / 2;\n x -= viewPortWidth * 0.5;\n int y = (targetY + targetX) * scaledHeight / 2;\n y -= viewPortHeight * 0.5;\n\n currentXOffset = -x;\n currentYOffset = -y;\n\n gameChanged = true;\n }",
"public X location(Point p) {\n component.setLocation(p);\n return (X) this;\n }",
"public void translate(int x, int y);",
"public StagePosition makeStagePosition(int col, int row);",
"public static Vector2 touchToScreenPos()\n {\n Vector3 input = new Vector3(Gdx.input.getX(), Gdx.input.getY(), 0);\n input = GdxStart.camera.unproject(input);\n return new Vector2(input.x, input.y);\n }",
"public void translate(float x, float y){\n hitBox.offset(x, y);\n }",
"public void setSpawnPoint() {\n if (this.dirVec.y == 0) {\n super.centerRectAt(new Point(-1*OUTER_OFFSET, super.getCenter().y));\n }\n else {\n super.centerRectAt(new Point(super.getCenter().x, OUTER_OFFSET));\n }\n }",
"private void setPointActors() {\n switch (host.getUnlockedStages()) {\n // cases is not break to add unlocked stage and everything lower level than that\n case 5:\n stage5Point = new PointActor(screenWidth * 6.5f / 12,\n screenHeight * 4.5f / 24, 5);\n pointActors.add(stage5Point);\n pointStage.addActor(stage5Point);\n\n case 4:\n stage4Point = new PointActor(screenWidth * 2.5f / 12,\n screenHeight * 3.5f / 12, 4);\n pointActors.add(stage4Point);\n pointStage.addActor(stage4Point);\n case 3:\n stage3Point = new PointActor(screenWidth * 0.5f / 12,\n screenHeight * 6 / 12, 3);\n pointActors.add(stage3Point);\n pointStage.addActor(stage3Point);\n case 2:\n stage2Point = new PointActor(screenWidth * 8f / 12,\n screenHeight * 6f / 12, 2);\n pointActors.add(stage2Point);\n pointStage.addActor(stage2Point);\n case 1:\n stage1Point = new PointActor(screenWidth * 4.5f / 12,\n screenHeight * 8.5f / 12, 1);\n pointActors.add(stage1Point);\n pointStage.addActor(stage1Point);\n }\n\n }",
"public static List<PVector> translateToOrigin(List<PVector> points) {\n PVector c = centroid(points);\n return translateToOrigin(points, c);\n }",
"public void setOrigin(Point p) {\n origin = new Point(p);\n }",
"public void centerMapOnCurrentHero() {\n if (map.getCurrentTurnHero() == null) {\n return;\n }\n centerMapOnPoint(map.getCurrentTurnHero().getX(), map.getCurrentTurnHero().getY());\n }",
"public void applyTransform() {\n\t\tglRotatef(xaxisrot, 1.0f, 0.0f, 0.0f);\n\t\tglRotatef(yaxisrot, 0.0f, 1.0f, 0.0f);\n\t\tglRotatef(tilt, 0.0f, 0.0f, 1.0f);\n\t\tglTranslatef(-pos.geti(), -pos.getj(), -pos.getk());\n\t}",
"void from_screen_x_y_norot (Point3D p, int x, int y, double offx, double scalex, double offy, double scaley, int screen_off_x, int screen_off_y) { \n // screen_off_x + toInt(scalex*(offx+p.x)) = x ==>\n // scalex*p.x = x - screen_off_x - scalex*offx;\n p.x = (x - screen_off_x - scalex*offx)/scalex;\n p.y = (y - screen_off_y - scaley*offy)/scaley;\n }",
"void vectorToWorld(double px, double py, double pz, DVector3 result);",
"public Vector2Dd formVector(Point2Dd pt) {\r\n return (new Vector2Dd(x-pt.x, y-pt.y));\r\n }",
"public Point2D getLocation();",
"public Coordinate toLocal(Coordinate deviceGlobalPose){\n\t\tdouble x_delta_mm=x-deviceGlobalPose.x;\n\t\tdouble y_delta_mm=y-deviceGlobalPose.y;\n\t\tdouble a_lc=a-deviceGlobalPose.a;\n\t\t\n\t\tdouble cos=Math.cos(-deviceGlobalPose.a);\n\t\tdouble sin=Math.sin(-deviceGlobalPose.a);\n\t\t\n\t\tdouble x_mm=x_delta_mm*cos-y_delta_mm*sin;\n\t\tdouble y_mm=x_delta_mm*sin+y_delta_mm*cos;\n\t\t\n\t\tdouble x_lc=x_mm*Device.ppmX;\n\t\tdouble y_lc=y_mm*Device.ppmY;\n\t\t\n\t\treturn new Coordinate(x_lc,y_lc,a_lc);\n\t}",
"private ECPoint convertECPoint(java.security.spec.ECPoint point) {\n return domainParams.getCurve().createPoint(point.getAffineX(), point.getAffineY());\n }",
"public void moveToPoint(int x, int y) {\n /**\n * DO NOT EDIT THIS CODE TO REMOVE DUPLICATIONS IT WILL BREAK MULTIPLAYER\n * SERIOUSLY JUST DO NOT DO IT\n *\n * DON'T DO IT\n *\n *\n * JUST DON'T TOUCH THIS CODE AT ALL\n */\n AbstractHero hero = map.getCurrentTurnHero();\n\n // This short circuits but if it's not multiplayer the second statement will do nothing\n if (map.moveEntity(map.getCurrentTurnHero(), x, y)) {\n map.updateVisibilityArray();\n visionChanged = true;\n gameState.updateMovementGoal(x, y);\n }\n\n updateLiveTileEffectsOnCharacter(hero);\n gameChanged = true;\n minimapChanged = true;\n visionChanged = true;\n movementChanged = true;\n\n\n centerMapOnCurrentHero();\n }",
"public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}",
"public void translate( float x, float y )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.set( new Vector3f( x, y, 0 ) );\n\t\tmat.mul( opMat );\n\t}",
"private Point toInnerPoint(Point punto){\r\n \treturn punto.add(-coord.X(), -coord.Y());\r\n// return new Point(punto.getRow() - coord.getRow(), punto.getCol() - coord.getCol());\r\n }",
"public Vector getLocation();",
"public Point applyToPoint(Point p) {\n return new Point(this.dx + p.getX(), this.dy + p.getY());\n }",
"public Point applyToPoint(Point p) {\n Point newP;\n double x = p.getX() + this.dxVelocity;\n double y = p.getY() + this.dyVelocity;\n newP = new Point(x, y);\n return newP;\n }",
"@Override\n public void move() {\n this.point.x += vector.x * getCurrentSpeed();\n this.point.y += vector.y * getCurrentSpeed();\n }",
"public void translateX(float x) {\n if (collides((int) (this.x + x), (int) y)) return;\n this.x += x;\n this.model.setX(this.x);\n }",
"public Point toOuterPoint(Point punto){\r\n \treturn punto.add(coord);\r\n// return new Point(punto.getRow() + coord.getRow(), punto.getCol() + coord.getCol());\r\n }",
"public void setLocation(Vec2f loc) {\n\t\tsuper.setLocation(loc);\n\t\tif (_shape != null) _shape.setLocation(loc);\n\t}",
"public Point applyToPoint(Point p) {\r\n return new Point(p.getX() + this.dx, p.getY() + this.dy);\r\n }",
"public void m1291a(Point point) {\r\n this.f763l = point;\r\n }",
"public Vector3f getPoint(float t) {\r\n\t\tVector3f point = new Vector3f();\r\n\t\tpoint.scaleAdd(t, mDirection, mOrigin);\r\n\t\treturn point;\r\n\t}",
"public java.awt.geom.Point2D.Double transformedPoint(double x, double y)\n {\n double[] position = {x,y}; \n getGraphicsState().getCurrentTransformationMatrix().createAffineTransform().transform(position, 0, position, 0, 1);\n position[1] = fixY(position[1]);\n\n\t_pageAffineTransform.transform(position,0, position, 0, 1);\n return new Point2D.Double(position[0],position[1]);\n }",
"public void join (FloatPoint p_point, int p_layer)\r\n {\r\n MutableOctagon curr = arr[p_layer];\r\n curr.lx = Math.min(p_point.x, curr.lx);\r\n curr.ly = Math.min(p_point.y, curr.ly);\r\n curr.rx = Math.max(curr.rx, p_point.x);\r\n curr.uy = Math.max(curr.uy, p_point.y);\r\n\r\n double tmp = p_point.x - p_point.y;\r\n curr.ulx = Math.min(curr.ulx, tmp);\r\n curr.lrx = Math.max(curr.lrx, tmp);\r\n\r\n tmp = p_point.x + p_point.y;\r\n curr.llx = Math.min(curr.llx, tmp);\r\n curr.urx = Math.max(curr.urx, tmp);\r\n }",
"public Affine.Point viewportToWorld(Affine.Point dst, Point src) {\n if (dst == null) {\n dst = new Affine.Point();\n }\n dst.x = viewportToWorldX(src.x);\n dst.y = viewportToWorldY(src.y);\n return dst;\n }",
"public void setLocation( Point p ) {\r\n this.x = p.x;\r\n this.y = p.y;\r\n }",
"public void transform(Vector3D V) {\r\n\t\tVector3D rv = new Vector3D();\r\n\t\trv.x = V.x * M11 + V.y * M21 + V.z * M31 + V.w * M41;\r\n\t\trv.y = V.x * M12 + V.y * M22 + V.z * M32 + V.w * M42;\r\n\t\trv.z = V.x * M13 + V.y * M23 + V.z * M33 + V.w * M43;\r\n\t\trv.w = V.x * M14 + V.y * M24 + V.z * M34 + V.w * M44;\r\n\t\tV.set(rv);\r\n\t}",
"public Point transform(int x, int y) {\n\t\tdouble pixelWidth = this.plainWidth / this.resolutionX;\n\n\t\tdouble rightFactor = pixelWidth * (x - (this.resolutionX / 2.0));\n\t\tdouble upFactor = pixelWidth * ((this.resolutionY / 2.0) - y);\n\n\t\treturn plainCenterPoint\n\t\t\t\t.add(upVec.mult(upFactor))\n\t\t\t\t.add(rightVec.mult(rightFactor));\n\t}",
"private float[] calculatePlaneTransform(double[] point, double normal[],\n float[] openGlTdepth) {\n // Vector aligned to gravity.\n float[] openGlUp = new float[]{0, 1, 0, 0};\n float[] depthTOpenGl = new float[16];\n Matrix.invertM(depthTOpenGl, 0, openGlTdepth, 0);\n\n float[] depthUp = new float[4];\n Matrix.multiplyMV(depthUp, 0, depthTOpenGl, 0, openGlUp, 0);\n\n // Create the plane matrix transform in depth frame from a point,\n // the plane normal and the up vector.\n float[] depthTplane = matrixFromPointNormalUp(point, normal, depthUp);\n float[] openGlTplane = new float[16];\n Matrix.multiplyMM(openGlTplane, 0, openGlTdepth, 0, depthTplane, 0);\n\n return openGlTplane;\n }",
"@Override\r\n\tprotected AffineTransform getPointTransformation() {\n\t\treturn null;\r\n\t}"
] |
[
"0.620483",
"0.6031068",
"0.59394985",
"0.59210753",
"0.5915347",
"0.5839126",
"0.57707053",
"0.5715757",
"0.56953824",
"0.565647",
"0.56496096",
"0.5619532",
"0.5613852",
"0.5605528",
"0.56046736",
"0.56033325",
"0.5584368",
"0.5579956",
"0.5540702",
"0.5533524",
"0.5518563",
"0.5509777",
"0.5478489",
"0.54367054",
"0.5425845",
"0.54110974",
"0.54072404",
"0.5401558",
"0.5387721",
"0.53776336",
"0.53753746",
"0.5345405",
"0.53139234",
"0.53128964",
"0.5310912",
"0.5303806",
"0.5298564",
"0.52683604",
"0.52624893",
"0.52592295",
"0.5252313",
"0.52422476",
"0.52305245",
"0.52203274",
"0.5219061",
"0.52153134",
"0.5205034",
"0.5163383",
"0.5149886",
"0.51354164",
"0.51156527",
"0.51071095",
"0.5105179",
"0.50960577",
"0.50950736",
"0.5090314",
"0.508578",
"0.5082991",
"0.50794643",
"0.5074188",
"0.5071297",
"0.50517535",
"0.50149274",
"0.5006387",
"0.5004831",
"0.4995703",
"0.4994697",
"0.49846968",
"0.49517226",
"0.49504328",
"0.49467748",
"0.4942336",
"0.49287555",
"0.49259517",
"0.49095803",
"0.49074787",
"0.49024016",
"0.48908243",
"0.48906136",
"0.48786652",
"0.48781073",
"0.48685372",
"0.48672605",
"0.486568",
"0.4862972",
"0.48593175",
"0.48574936",
"0.48503828",
"0.4847075",
"0.4842131",
"0.48366147",
"0.48364237",
"0.48321572",
"0.48309013",
"0.48284745",
"0.4826193",
"0.48160538",
"0.48103458",
"0.48099682",
"0.4804056"
] |
0.6759151
|
0
|
Transforms the specified point in the actor's coordinates to be in the stage's coordinates.
|
public Vector2 localToStageCoordinates(Vector2 localCoords) {
return internalGroup.localToStageCoordinates(localCoords);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Vector2 stageToLocalCoordinates(Vector2 stageCoords) {\n return internalGroup.stageToLocalCoordinates(stageCoords);\n }",
"public void relocateToPoint (Point2D p) {\n\n\t\t//relocates the object to a point that has been converted to\n\t\t//scene coordinates\n\t\tPoint2D localCoords = getParent().sceneToLocal(p);\n\n\t\tdouble x = localCoords.getX() - (getBoundsInLocal().getWidth() / 2);\n\t\tdouble y = localCoords.getY() - (getBoundsInLocal().getHeight() / 2);\n\n\t\trelocate ( (int) (x), (int) (y) );\n\t}",
"private void moveToStage() {\n\n switch (host.getUnlockedStages()) {\n case 5:\n if (stage5Point.getTouch()) {\n host.setCurrentStage(5);\n removeOtherPointActors(stage5Point);\n moveAndZoomAction(stage5Point);\n break;\n }\n case 4:\n if (stage4Point.getTouch()) {\n host.setCurrentStage(4);\n removeOtherPointActors(stage4Point);\n moveAndZoomAction(stage4Point);\n break;\n }\n case 3:\n if (stage3Point.getTouch()) {\n host.setCurrentStage(3);\n removeOtherPointActors(stage3Point);\n moveAndZoomAction(stage3Point);\n break;\n }\n case 2:\n if (stage2Point.getTouch()) {\n host.setCurrentStage(2);\n removeOtherPointActors(stage2Point);\n moveAndZoomAction(stage2Point);\n break;\n }\n case 1:\n if (stage1Point.getTouch()) {\n host.setCurrentStage(1);\n removeOtherPointActors(stage1Point);\n moveAndZoomAction(stage1Point);\n break;\n }\n }}",
"public void relocateToPoint(boolean isUserClick){\n// System.out.println(\"Scene x: \"+point.getX()+\", y: \"+point.getY());\n// System.out.println(\"Local x: \"+getParent().sceneToLocal(point).getX()+\", y: \"+getParent().sceneToLocal(point).getY());\n// System.out.println(\"Relocate x: \"+(getParent().sceneToLocal(point).getX() - (getWidth() / 2))+\", y: \"+(getParent().sceneToLocal(point).getY() - (getHeight() / 2)));\n// System.out.println(getBoundsInLocal().getWidth());\n// System.out.println(widthProperty());\n\n if (isUserClick) {\n double new_x=getParent().sceneToLocal(x,y).getX();\n double new_y=getParent().sceneToLocal(x,y).getY();\n setX(new_x);\n setY(new_y);\n relocate(\n// (getParent().sceneToLocal(x,y).getX() - (widthCountry / 2)),\n// (getParent().sceneToLocal(x,y).getY() - (heightCountry / 2))\n new_x,new_y\n );\n } else {\n relocate(x,y);\n }\n\n\n }",
"void turnToPoint(float x, float y) {\n _rotVector.set(x - _x, y - _y, 0);\n _rotVector.setMag(1);\n }",
"static void setViewPointRelevantTo(Point point) {\n point.translate(-1 * viewPoint.x, -1 * viewPoint.y);\n point.x /= Map.zoom;\n point.y /= Map.zoom;\n point.translate(viewPoint.x, viewPoint.y);\n viewPoint.setLocation(point.x - GAME_WIDTH / 2, point.y - GAME_HEIGHT / 2);\n verifyViewPoint();\n }",
"public static Vector2f transformPoint(Transform t, Vector2f p) {\n\t\treturn t.transformPoint(p);\n\t}",
"public void moveAndZoomAction(PointActor pointActor) {\n pointActor.remove();\n // coordinates where map should move\n float movePointX = screenWidth / 2 - pointActor.getX() - pointActor.getWidth();\n float movePointY = screenHeight / 2 - pointActor.getY() - pointActor.getHeight();\n // sets origin where the zoom effect is centralized\n mapBorderActor.setOrigin(pointActor.getX() + pointActor.getWidth(), pointActor.getY() + pointActor.getHeight());\n // adds actions\n mapBorderActor.addAction(\n // sequence allows actors do actions in order\n Actions.sequence(\n Actions.moveTo(movePointX,\n movePointY,\n 1f), // duaration(seconds) of move\n Actions.scaleTo(1.5f, 1.5f, 1f),\n Actions.run(new Runnable() {\n @Override\n public void run() {\n host.setScreen(new TalkScreen(host));\n }\n })));\n }",
"private static Point3d transformPoint(Matrix4d transformMat, Point3d originalPoint) {\n Point3d tempPoint = new Point3d();\n transformMat.transform(new Point3d(originalPoint.getX(), originalPoint.getY(), originalPoint.getZ()), tempPoint);\n return tempPoint;\n }",
"public void moveTo(Point point){\n updateUndoBuffers(new LinkedList<>());\n xPos = point.getMyX()+myGrid.getWidth()/ HALF;\n yPos = myGrid.getHeight()/ HALF-point.getMyY();\n }",
"public StagePosition makeStagePosition();",
"public void setTransform(float a11, float a12, float a21, float a22, float x, float y);",
"@NonNull\n @Override\n public PointF transformMeteringPoint(@NonNull PointF point) {\n PointF scaled = new PointF();\n scaled.x = -1000F + (point.x / previewSize.getWidth()) * 2000F;\n scaled.y = -1000F + (point.y / previewSize.getHeight()) * 2000F;\n\n // Apply rotation to this point.\n // https://academo.org/demos/rotation-about-point/\n PointF rotated = new PointF();\n double theta = ((double) displayToSensor) * Math.PI / 180;\n rotated.x = (float) (scaled.x * Math.cos(theta) - scaled.y * Math.sin(theta));\n rotated.y = (float) (scaled.x * Math.sin(theta) + scaled.y * Math.cos(theta));\n LOG.i(\"scaled:\", scaled, \"rotated:\", rotated);\n return rotated;\n }",
"protected IPoint scalePointIntoCoordinates(IPoint point) {\n\t\t\n\t\tdouble newX = point.getX() / getPixelsPerX();\n\t\tdouble newY = point.getY() / getPixelsPerY();\n\t\treturn new Point(newX, newY, point.getTime());\n\t}",
"@Override\t\t\t\n\tpublic final myPointf transformPoint(myPointf A, int transformIDX, float t) {\treturn trans[transformIDX].transformPoint(A, t);}",
"public final void setToPoint(Vector toPoint) {\n\t\ttransform.setToPoint(toPoint);\n\t}",
"public Point2D translatePoint( Figure f, Point2D p, Point2D dir);",
"public void relocateToPoint (Point2D p) {\n\t\tPoint2D localCoords = getParent().sceneToLocal(p);\r\n\r\n\t\trelocate ( \r\n\t\t\t\t(int) (localCoords.getX() - (getBoundsInLocal().getWidth() / 2)),\r\n\t\t\t\t(int) (localCoords.getY() - (getBoundsInLocal().getHeight() / 2))\r\n\t\t\t\t);\r\n\t}",
"private void setPointActors() {\n switch (host.getUnlockedStages()) {\n // cases is not break to add unlocked stage and everything lower level than that\n case 5:\n stage5Point = new PointActor(screenWidth * 6.5f / 12,\n screenHeight * 4.5f / 24, 5);\n pointActors.add(stage5Point);\n pointStage.addActor(stage5Point);\n\n case 4:\n stage4Point = new PointActor(screenWidth * 2.5f / 12,\n screenHeight * 3.5f / 12, 4);\n pointActors.add(stage4Point);\n pointStage.addActor(stage4Point);\n case 3:\n stage3Point = new PointActor(screenWidth * 0.5f / 12,\n screenHeight * 6 / 12, 3);\n pointActors.add(stage3Point);\n pointStage.addActor(stage3Point);\n case 2:\n stage2Point = new PointActor(screenWidth * 8f / 12,\n screenHeight * 6f / 12, 2);\n pointActors.add(stage2Point);\n pointStage.addActor(stage2Point);\n case 1:\n stage1Point = new PointActor(screenWidth * 4.5f / 12,\n screenHeight * 8.5f / 12, 1);\n pointActors.add(stage1Point);\n pointStage.addActor(stage1Point);\n }\n\n }",
"void moveToPoint(float x, float y) {\n _x = x;\n _y = y;\n }",
"@SuppressWarnings(\"unchecked\")\n public AnimatorType position(PointF point)\n {\n addTransformer(new PositionTransformer(getShape(), point));\n return (AnimatorType) this;\n }",
"public Point transform(double x, double y, double z) {\n\t\t\n\t\n\t\tdouble uIso = (x * xToU) + (y * yToU) + (z * zToU);\n\t\tdouble vIso = (x * xToV) + (y * yToV) + (z * zToV);\n\t\t\n\t\tint uDraw = xOffset + (int)(scale * uIso);\n\t\tint vDraw = yOffset + (int)(scale * vIso);\n\t\t\n\t\treturn new Point(uDraw, vDraw);\n\t}",
"public final Shape translate(Vector fromPoint, Vector toPoint) {\n\t\treturn transform(new Translation(fromPoint, toPoint));\n\t}",
"public Point convertPointCoordinate(Point point)\n\t{\n\t\tpoint.y = this.getHeight() - point.y;\n\t\treturn point;\n\t}",
"private Point transform(Point pt1) {\n Point pt2 = new Point(0,0) ;\n pt2.x = pos.x + new Double(pt1.x*Math.cos(heading)+pt1.y*Math.sin(heading)).intValue() ;\n pt2.y = pos.y + new Double(-pt1.x*Math.sin(heading)+pt1.y*Math.cos(heading)).intValue() ;\n return pt2 ;\n }",
"private void positionObjectInScene(float x, float y, float z) {\n setIdentityM(modelMatrix, 0);\n translateM(modelMatrix, 0, x, y, z);\n multiplyMM(modelViewProjectionMatrix, 0, viewProjectionMatrix,\n 0, modelMatrix, 0);\n }",
"@NonNull\n @Override\n public PointF transformMeteringPoint(@NonNull PointF point) {\n final PointF referencePoint = new PointF(point.x, point.y);\n Size referenceSize = previewSize;\n\n // 1. Account for cropping.\n // This will enlarge the preview size so that aspect ratio matches.\n referenceSize = applyPreviewCropping(referenceSize, referencePoint);\n\n // 2. Scale to the preview stream coordinates.\n // This will move to the preview stream coordinates by scaling.\n referenceSize = applyPreviewScale(referenceSize, referencePoint);\n\n // 3. Rotate to the stream coordinate system.\n // This leaves us with sensor stream coordinates.\n referenceSize = applyPreviewToSensorRotation(referenceSize, referencePoint);\n\n // 4. Move to the crop region coordinate system.\n // The crop region is the union of all currently active streams.\n referenceSize = applyCropRegionCoordinates(referenceSize, referencePoint);\n\n // 5. Move to the active array coordinate system.\n referenceSize = applyActiveArrayCoordinates(referenceSize, referencePoint);\n LOG.i(\"input:\", point, \"output (before clipping):\", referencePoint);\n\n // 6. Probably not needed, but make sure we clip.\n if (referencePoint.x < 0) referencePoint.x = 0;\n if (referencePoint.y < 0) referencePoint.y = 0;\n if (referencePoint.x > referenceSize.getWidth()) referencePoint.x = referenceSize.getWidth();\n if (referencePoint.y > referenceSize.getHeight()) referencePoint.y = referenceSize.getHeight();\n LOG.i(\"input:\", point, \"output (after clipping):\", referencePoint);\n return referencePoint;\n }",
"public void pointToMouse() {\n pointToXY(p.mouseX,p.mouseY);\n }",
"private void pointCameraAt(Point3D target,Group root){\n for(Node node: root.getChildren()){\n node.setTranslateX(node.getTranslateX()-xOffset);\n node.setTranslateY(node.getTranslateY()-yOffset);\n node.setTranslateZ(node.getTranslateZ()-zOffset);\n }\n\n xOffset = -target.getX(); yOffset = -target.getY(); zOffset = -target.getZ();\n\n for(Node node: root.getChildren()){\n node.setTranslateX(node.getTranslateX()+xOffset);\n node.setTranslateY(node.getTranslateY()+yOffset);\n node.setTranslateZ(node.getTranslateZ()+zOffset);\n }\n }",
"public RMPoint convertPointToShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(getX(), getY()); return point; }\n return getTransformToShape(shape).transform(point);\n}",
"private void mouseEventToWorldSpace(MouseEvent e) {\n\n Point2D mousePoint = new Point2D.Double();\n mousePoint.setLocation(e.getPoint());\n\n Point2D newPoint = new Point2D.Double();\n this.viewModel.getViewToWorld().transform(mousePoint, newPoint);\n\n int xDiff = (int) ( newPoint.getX() - mousePoint.getX() );\n int yDiff = (int) ( newPoint.getY() - mousePoint.getY() );\n\n e.translatePoint(xDiff, yDiff);\n }",
"public void transform(float a11, float a12, float a21, float a22, float x, float y);",
"public void panOriginTo(double x, double y) {\n \t\tfloat tx = (float) (x / mapDisplay.sc);\n \t\tfloat ty = (float) (y / mapDisplay.sc);\n \t\tsetPosition(tx, ty, tweening);\n \t}",
"@Override\r\n\t\tpublic void translate(Point3D vec) {\r\n\t\t\t// TODO Auto-generated method stub \r\n\t\t\tMyCoords mc= new MyCoords();\r\n\t\t\tPoint3D p=new Point3D(vec);\r\n\t\t\tPoint3D newPoint=mc.add(p, vec);\r\n\t\t\tthis.point=newPoint;\r\n\t\t}",
"public final void setFromPoint(Vector fromPoint) {\n\t\ttransform.setFromPoint(fromPoint);\n\t}",
"public RMPoint convertPointFromShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(-getX(), -getY()); return point; }\n return getTransformFromShape(shape).transform(point);\n}",
"public void moveToPoint(double x, double y, double z);",
"private void setOrigin() {\n Hep3Vector origin = VecOp.mult(CoordinateTransformations.getMatrix(), _sensor.getGeometry().getPosition());\n // transform to p-side\n Polygon3D psidePlane = this.getPsidePlane();\n Translation3D transformToPside = new Translation3D(VecOp.mult(-1 * psidePlane.getDistance(),\n psidePlane.getNormal()));\n this._org = transformToPside.translated(origin);\n }",
"private void transformObject(int x, int y) {\n double sx, sy, l, r, nx, ny, tx, ty, alpha, origCX = 0, origCY = 0;\n Rectangle bnds;\n\n if(curr_obj == transformPointers[Action.ROTATE]) {\n /* the mouse vector 1 */\n GeoVector mouseVector = new GeoVector(x, y, this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n\n /* the rotation vector. i.e. the fixed vector that will be used as origin composed by the subtraction of the object center with the rotation point */\n GeoVector rotationVector = new GeoVector(this.lastPosition[0], this.lastPosition[1], this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n\n mouseVector.normalize();\n rotationVector.normalize();\n\n alpha = mouseVector.getAngleWith(rotationVector.getX(), rotationVector.getY());\n\n /** After passing the 180 degrees, the atan2 function returns a negative angle from 0 to PI. So this will convert the final gobal angle to 0-2PI */\n if(alpha < 0 ) {\n alpha = (2 * Math.PI) + alpha; \n }\n\n alpha -= this.currRotation;\n this.currRotation += alpha;\n\n Point c = new Point(this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n this.aux_obj.uRotate((float)(-1.0*(alpha*(180/Math.PI))), c);\n \n } else {\n alpha = this.aux_obj.getRotation();\n\n /** Here we rotate the selected Graphic Object, it's tranformation points and the mouse coordinates back to the zero angle, to permit a correct object scalling. */\n if(alpha != 0.0) {\n origCX = this.aux_obj.getCenterX();\n origCY = this.aux_obj.getCenterY();\n this.aux_obj.uRotate((float)(alpha*-1.0), this.aux_obj.getCenter());\n rotateTransformPoints(alpha);\n GeoVector mouseCoord = new GeoVector(x, y, this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n\n mouseCoord.rotate( ((alpha*-1.0) * (2.0*Math.PI))/360 );\n mouseCoord.addPoint(this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n x = (int)mouseCoord.getX();\n y = (int)mouseCoord.getY();\n\n }\n\n /** Tatami rotates the object from it's x and y point to the edges. So this means that sometimes we need to translate the object a few pixels to asure that it's upper left corner is on the same position. */\n if(curr_obj == transformPointers[Action.NORTHWEST]) {\n if(x < (transformPointers[Action.EAST].getX()-2) && y < (transformPointers[Action.SOUTH].getY()-2)) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = (transformPointers[Action.EAST].getX()+2) - x ;\n sx = nx / (l+r);\n tx = (sx*l-l) + (sx*r-r);\n\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = (transformPointers[Action.SOUTH].getY()+2) - y;\n sy = ny / (l+r);\n ty = (sy*l-l) + (sy*r-r);\n\n aux_obj.uTranslate((int)-tx, (int)-ty);\n aux_obj.scale( (float)sx, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.NORTHWEST];\n }\n } else if(curr_obj == transformPointers[Action.NORTH]) {\n if(y < (transformPointers[Action.SOUTH].getY()-2)) {\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = (transformPointers[Action.SOUTH].getY()+2) - y;\n sy = ny / (l+r);\n ty = (sy*l-l) + (sy*r-r);\n\n aux_obj.uTranslate(0, (int)-ty);\n aux_obj.scale( 1, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.NORTH];\n }\n } else if(curr_obj == transformPointers[Action.NORTHEAST]) {\n if(x > (transformPointers[Action.WEST].getX()+2) && y < (transformPointers[Action.SOUTH].getY()-2)) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = x - (transformPointers[Action.WEST].getX()+2);\n sx = nx / (l+r);\n tx = sx*l-l;\n\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = (transformPointers[Action.SOUTH].getY()+2) - y;\n sy = ny / (l+r);\n ty = (sy*l-l) + (sy*r-r);\n\n aux_obj.uTranslate((int)tx, (int)-ty);\n aux_obj.scale( (float)sx, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.NORTHEAST];\n }\n\n } else if(curr_obj == transformPointers[Action.WEST]) {\n if(x < (transformPointers[Action.EAST].getX()-2) ) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = (transformPointers[Action.EAST].getX()+2) - x ;\n sx = nx / (l+r);\n tx = (sx*l-l) + (sx*r-r);\n\n aux_obj.uTranslate((int)-tx, 0);\n aux_obj.scale( (float)sx, 1);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.WEST];\n }\n } else if(curr_obj == transformPointers[Action.EAST]) {\n if(x > (transformPointers[Action.WEST].getX()+2) ) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = x - (transformPointers[Action.WEST].getX()+2);\n sx = nx / (l+r);\n tx = sx*l-l;\n\n aux_obj.uTranslate((int)tx, 0);\n aux_obj.scale( (float)sx, (float)1);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.EAST];\n }\n } else if(curr_obj == transformPointers[Action.SOUTHWEST]) {\n if(x < (transformPointers[Action.EAST].getX()-2) && y > (transformPointers[Action.NORTH].getY()+2)) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = (transformPointers[Action.EAST].getX()+2) - x ;\n sx = nx / (l+r);\n tx = (sx*l-l) + (sx*r-r);\n\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = y - (transformPointers[Action.NORTH].getY()+2);\n sy = ny / (l+r);\n ty = sy*l-l;\n\n aux_obj.uTranslate((int)-tx, (int)ty);\n aux_obj.scale( (float)sx, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.SOUTHWEST];\n }\n } else if(curr_obj == transformPointers[Action.SOUTH]) {\n if(y > (transformPointers[Action.NORTH].getY()+2)) {\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = y - (transformPointers[Action.NORTH].getY()+2);\n sy = ny / (l+r);\n ty = sy*l-l;\n\n aux_obj.uTranslate(0, (int)ty);\n aux_obj.scale( 1, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.SOUTH];\n }\n } else if(curr_obj == transformPointers[Action.SOUTHEAST]) {\n if(x > (transformPointers[Action.WEST].getX()+2) && y > (transformPointers[Action.NORTH].getY()+2)) {\n\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = x - (transformPointers[Action.WEST].getX()+2);\n sx = nx / (l+r);\n tx = sx*l-l;\n\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = y - (transformPointers[Action.NORTH].getY()+2);\n sy = ny / (l+r);\n ty = sy*l-l;\n\n aux_obj.uTranslate((int)tx, (int)ty);\n aux_obj.scale( (float)sx, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.SOUTHEAST];\n }\n }\n\n\n }\n \n }",
"public GuiPoint coordinateToGui(Vector2f point) {\r\n\t\tint coordX = (int) Math.round(point.getX() * zoomFactor);\r\n\t\tint coordY = (int) Math.round(point.getY() * zoomFactor);\r\n\r\n\t\tint guiX = coordX + origin.x;\r\n\t\tint guiY = coordY + origin.y;\r\n\t\tGuiPoint pos = new GuiPoint(guiX, guiY);\r\n\r\n\t\treturn pos;\r\n\t}",
"public PVector getTransformedPosition(){\n\t\treturn gui.getTransform().transform(position);\n\t}",
"public void translate(float x, float y){\n hitBox.offset(x, y);\n }",
"public static Point mapPoint(Point point) {\n\t\treturn point;\n\t}",
"public void update(Point point)\n {\n rectangle.set(point.x - rectangle.width()/2, point.y - rectangle.height()/2, point.x + rectangle.width()/2,point.y + rectangle.height()/2);\n\n //hitBox(this.rectangle);\n }",
"public Point transform(Point vector) {\n double _00 = this.matrix[0][0];\n double _01 = this.matrix[0][1];\n double _02 = this.matrix[0][2];\n double _03 = this.matrix[0][3];\n double _10 = this.matrix[1][0];\n double _11 = this.matrix[1][1];\n double _12 = this.matrix[1][2];\n double _13 = this.matrix[1][3];\n double _20 = this.matrix[2][0];\n double _21 = this.matrix[2][1];\n double _22 = this.matrix[2][2];\n double _23 = this.matrix[2][3];\n double _30 = this.matrix[3][0];\n double _31 = this.matrix[3][1];\n double _32 = this.matrix[3][2];\n double _33 = this.matrix[3][3];\n\n double x = vector.x * _00 + vector.y * _10 + vector.z * _20 + vector.w * _30;\n double y = vector.x * _01 + vector.y * _11 + vector.z * _21 + vector.w * _31;\n double z = vector.x * _02 + vector.y * _12 + vector.z * _22 + vector.w * _32;\n double h = vector.x * _03 + vector.y * _13 + vector.z * _23 + vector.w * _33;\n\n return new Point(x, y, z, h);\n }",
"public void translate(Point p){\n a.translate(p);\n b.translate(p);\n c.translate(p);\n }",
"public void translate(float x, float y);",
"private Vec2 calculatePos() {\n\t\tNetTransformComponent transform = actor.getEntity().getNetTransform();\n\t\tif (transform != null) {\n\t\t\tVec2 screenPos = scene.getCamera()\n\t\t\t\t\t.getScreenCoordinates(Vec3.add(transform.getPosition(), new Vec3(-2.0f, 3.25f, 0.0f)));\n\t\t\tVec2 result = new Vec2(screenPos.getX(), screenPos.getY());\n\t\t\treturn result;\n\t\t}\n\n\t\treturn new Vec2(0.0f, 0.0f);\n\t}",
"void setPosition(Point point);",
"private ECPoint convertECPoint(java.security.spec.ECPoint point) {\n return domainParams.getCurve().createPoint(point.getAffineX(), point.getAffineY());\n }",
"public Point2D userToDeviceSpace(\n Point2D point\n )\n {return ctm.transform(point, null);}",
"public StagePosition makeStagePosition(int col, int row);",
"public void translate(int x, int y);",
"public Vector2df guiToCoordinate(GuiPoint point) {\r\n\t\tint guiX = point.x;\r\n\t\tint guiY = point.y;\r\n\t\tfloat zoom = 1.0f / zoomFactor;\r\n\t\tint coordX = Math.round((guiX - origin.x) * zoom);\r\n\t\tint coordY = Math.round((guiY - origin.y) * zoom);\r\n\t\tVector2df pos = new Vector2df(coordX, coordY);\r\n\t\treturn pos;\r\n\t}",
"public java.awt.geom.Point2D.Double transformedPoint(double x, double y)\n {\n double[] position = {x,y}; \n getGraphicsState().getCurrentTransformationMatrix().createAffineTransform().transform(position, 0, position, 0, 1);\n position[1] = fixY(position[1]);\n\n\t_pageAffineTransform.transform(position,0, position, 0, 1);\n return new Point2D.Double(position[0],position[1]);\n }",
"@Override\r\n\tprotected AffineTransform getPointTransformation() {\n\t\treturn null;\r\n\t}",
"public void moveToPoint(int x, int y) {\n /**\n * DO NOT EDIT THIS CODE TO REMOVE DUPLICATIONS IT WILL BREAK MULTIPLAYER\n * SERIOUSLY JUST DO NOT DO IT\n *\n * DON'T DO IT\n *\n *\n * JUST DON'T TOUCH THIS CODE AT ALL\n */\n AbstractHero hero = map.getCurrentTurnHero();\n\n // This short circuits but if it's not multiplayer the second statement will do nothing\n if (map.moveEntity(map.getCurrentTurnHero(), x, y)) {\n map.updateVisibilityArray();\n visionChanged = true;\n gameState.updateMovementGoal(x, y);\n }\n\n updateLiveTileEffectsOnCharacter(hero);\n gameChanged = true;\n minimapChanged = true;\n visionChanged = true;\n movementChanged = true;\n\n\n centerMapOnCurrentHero();\n }",
"private Point toInnerPoint(Point punto){\r\n \treturn punto.add(-coord.X(), -coord.Y());\r\n// return new Point(punto.getRow() - coord.getRow(), punto.getCol() - coord.getCol());\r\n }",
"public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}",
"public void setLocation(Point2D p);",
"public void pointToSprite(Sprite target) {\n pointToXY((int)target.pos.x,(int)target.pos.y);\n }",
"public void changePos(double xP, double yP){ \n this.xCoor += xP;\n this.yCoor += yP;\n \n }",
"private static Vector2f transform(Rect2f srcRc, Rect2f dstRc, BaseVector2f pt) {\n\n // TODO: move this to a better place\n\n float x = (pt.getX() - srcRc.minX()) / srcRc.width();\n float y = (pt.getY() - srcRc.minY()) / srcRc.height();\n\n x = dstRc.minX() + x * dstRc.width();\n y = dstRc.minY() + y * dstRc.height();\n\n return new Vector2f(x, y);\n }",
"public void setSpawnPoint() {\n if (this.dirVec.y == 0) {\n super.centerRectAt(new Point(-1*OUTER_OFFSET, super.getCenter().y));\n }\n else {\n super.centerRectAt(new Point(super.getCenter().x, OUTER_OFFSET));\n }\n }",
"public void setMoveModifier(Point point) {\n\t\tthis.translation = point;\n\t}",
"public void applyTransform() {\n\t\tglRotatef(xaxisrot, 1.0f, 0.0f, 0.0f);\n\t\tglRotatef(yaxisrot, 0.0f, 1.0f, 0.0f);\n\t\tglRotatef(tilt, 0.0f, 0.0f, 1.0f);\n\t\tglTranslatef(-pos.geti(), -pos.getj(), -pos.getk());\n\t}",
"public void centerMapOnPoint(int targetX, int targetY) {\n\n int scaledWidth = (int) (TileDataRegister.TILE_WIDTH * scale);\n int scaledHeight = (int) (TileDataRegister.TILE_HEIGHT * scale);\n int baseX = (int) (map.getWidth() * TileDataRegister.TILE_WIDTH * scale) / 2;\n\n int x = baseX + (targetY - targetX) * scaledWidth / 2;\n x -= viewPortWidth * 0.5;\n int y = (targetY + targetX) * scaledHeight / 2;\n y -= viewPortHeight * 0.5;\n\n currentXOffset = -x;\n currentYOffset = -y;\n\n gameChanged = true;\n }",
"private void updateTranslated() {\r\n\r\n\tfloat[] dp = new float[3];\r\n\tTools3d.subtract(p, _p, dp);\r\n\r\n\tfor (int i = 0; i < npoints * 3; i+= 3) {\r\n\t // translate by adding the amount local origin has moved by\r\n\t ps[i] += dp[0];\r\n\t ps[i + 1] += dp[1];\r\n\t ps[i + 2] += dp[2];\r\n\t}\r\n\t\r\n\t// reset bounding box and clear dirty flag\r\n\tbox.setBB();\r\n\tdirtyT = false;\r\n\r\n\t// finally\r\n\t_p[0] = p[0];\r\n\t_p[1] = p[1];\r\n\t_p[2] = p[2];\r\n }",
"void setPos(Vec3 pos);",
"public void mousePressed(MouseEvent e)\n {\n points.setX(e.getX());\n points.setY(e.getY());\n }",
"public void move(Point p);",
"public void setMoveTo(Coordinate coordinate);",
"private Point translateOpenCvCoordsToWebCoords(Point pointToClick, WebElement refElement) {\n return new Point((int) (pointToClick.x - (refElement.getSize().width / 2)), (int) (pointToClick.y - (refElement.getSize().height / 2)));\n }",
"public void centerMapOnCurrentHero() {\n if (map.getCurrentTurnHero() == null) {\n return;\n }\n centerMapOnPoint(map.getCurrentTurnHero().getX(), map.getCurrentTurnHero().getY());\n }",
"@Override\r\n public void act() \r\n {\n int posx = this.getX();\r\n int posy = this.getY();\r\n //calculamos las nuevas coordenadas\r\n int nuevox = posx + incx;\r\n int nuevoy = posy + incy;\r\n \r\n //accedemos al mundo para conocer su tamaño\r\n World mundo = this.getWorld();\r\n if(nuevox > mundo.getWidth())//rebota lado derecho\r\n {\r\n incx = -incx;\r\n }\r\n if(nuevoy > mundo.getHeight())//rebota en la parte de abajo\r\n {\r\n incy = -incy;\r\n }\r\n \r\n if(nuevoy < 0)//rebota arriba\r\n {\r\n incy = -incy;\r\n }\r\n if(nuevox < 0)//rebota izquierda\r\n {\r\n incx = -incx;\r\n }\r\n //cambiamos de posicion a la pelota\r\n this.setLocation(nuevox,nuevoy);\r\n }",
"public void setPoint( Float point ) {\n this.point = point;\n }",
"@Override\n public void move() {\n this.point.x += vector.x * getCurrentSpeed();\n this.point.y += vector.y * getCurrentSpeed();\n }",
"public void setToCoordinates(int toX, int toY);",
"private Point[] transformCoordinateSystem(Point[] objectPosition, Point newCenter) {\n\t\tPoint[] transformedObjectPosition = objectPosition;\n\t\tfor(int i = 0; i < objectPosition.length; i++) {\n\t\t\t// Move location to coordinate system with center in origo \n\t\t\ttransformedObjectPosition[i].set(new double[] {\n\t\t\t\tobjectPosition[i].x - newCenter.x,\n\t\t\t\tobjectPosition[i].y - newCenter.y\n\t\t\t});\n\t\t}\n\t\t\n\t\treturn transformedObjectPosition;\n\t}",
"public Point applyToPoint(Point p) {\n return new Point(this.dx + p.getX(), this.dy + p.getY());\n }",
"public Point toOuterPoint(Point punto){\r\n \treturn punto.add(coord);\r\n// return new Point(punto.getRow() + coord.getRow(), punto.getCol() + coord.getCol());\r\n }",
"private static void transformPoint(Point3D position, Point3D srcOrigin, int angle, Point3D destOrigin)\n \t{\n \t\t\n \t\tint tx = position.getX() - srcOrigin.getX();\n \t\tint ty = position.getY() - srcOrigin.getY();\n \t\tint tz = position.getZ() - srcOrigin.getZ();\n \t\t\n \t\t//\"int angle\" specifies a rotation consistent with Minecraft's orientation system.\n \t\t//That means each increment of 1 in angle would be a 90-degree clockwise turn.\n \t\t//Given a starting direction A and a destination direction B, the rotation would be\n \t\t//calculated by (B - A).\n \n \t\t//Adjust angle into the expected range\n \t\tif (angle < 0)\n \t\t{\n \t\t\tint correction = -(angle / 4);\n \t\t\tangle = angle + 4 * (correction + 1);\n \t\t}\n \t\tangle = angle % 4;\n \t\t\n \t\tint rx;\n \t\tint rz;\n \t\tswitch (angle)\n \t\t{\n \t\t\tcase 0: //No rotation\n \t\t\t\trx = tx;\n \t\t\t\trz = tz;\n \t\t\t\tbreak;\n \t\t\tcase 1: //90 degrees clockwise\n \t\t\t\trx = -tz;\n \t\t\t\trz = tx;\n \t\t\t\tbreak;\n \t\t\tcase 2: //180 degrees\n \t\t\t\trx = -tx;\n \t\t\t\trz = -tz;\n \t\t\t\tbreak;\n \t\t\tcase 3: //270 degrees clockwise\n \t\t\t\trx = tz;\n \t\t\t\trz = -tx;\n \t\t\t\t\n \t\t\t\tbreak;\n \t\t\tdefault: //This should never happen\n \t\t\t\tthrow new IllegalStateException(\"Invalid angle value. This should never happen!\");\n \t\t}\n \t\t\n \t\tposition.setX( rx + destOrigin.getX() );\n \t\tposition.setY( ty + destOrigin.getY() );\n \t\tposition.setZ( rz + destOrigin.getZ() );\n \t}",
"private Point2D.Float transformPoint(Point2D p1) throws NoninvertibleTransformException {\n Point2D.Float p2 = new Point2D.Float();\n transform.inverseTransform(p1, p2); // create a destination p2 from the Point p1\n return p2;\n }",
"DeviceCoordinate transformWorldToScreen(final double x, final double y);",
"public Point transform(int x, int y) {\n\t\tdouble pixelWidth = this.plainWidth / this.resolutionX;\n\n\t\tdouble rightFactor = pixelWidth * (x - (this.resolutionX / 2.0));\n\t\tdouble upFactor = pixelWidth * ((this.resolutionY / 2.0) - y);\n\n\t\treturn plainCenterPoint\n\t\t\t\t.add(upVec.mult(upFactor))\n\t\t\t\t.add(rightVec.mult(rightFactor));\n\t}",
"public void setFrameXY(RMPoint aPoint) { setFrameXY(aPoint.x, aPoint.y); }",
"public Point applyToPoint(Point p) {\r\n return new Point(p.getX() + this.dx, p.getY() + this.dy);\r\n }",
"public Point applyToPoint(Point p) {\n Point newP;\n double x = p.getX() + this.dxVelocity;\n double y = p.getY() + this.dyVelocity;\n newP = new Point(x, y);\n return newP;\n }",
"public void setPosition(Point position);",
"public synchronized void transform() {\n Iterator<String> it = entity_to_wxy.keySet().iterator();\n while (it.hasNext()) {\n String entity = it.next();\n double wx = entity_to_wxy.get(entity).getX(),\n wy = entity_to_wxy.get(entity).getY();\n int sx, sy;\n entity_to_sxy.put(entity, (sx = wxToSx(wx)) + BundlesDT.DELIM + (sy = wyToSy(wy)));\n entity_to_sx.put(entity, sx); entity_to_sy.put(entity, sy);\n }\n transform_id++;\n }",
"public void setXY(Point2D aPoint) { setXY(aPoint.getX(), aPoint.getY()); }",
"public Point applyToPoint(Point p) {\n double newX, newY;\n Point newP;\n //the new x\n newX = p.getX() + this.dx;\n //the new y\n newY = p.getY() + this.dy;\n //the new point\n newP = new Point((newX), (newY));\n return newP;\n }",
"@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\torigin.x=e.getX();\r\n\t\t\t\torigin.y=e.getY();\r\n\t\t\t}",
"public SbVec3f getPoint() {\n \t return worldPoint; \n }",
"public Point(Point point) {\n this.x = point.x;\n this.y = point.y;\n }",
"public X location(Point p) {\n component.setLocation(p);\n return (X) this;\n }",
"MazePoint getActivePlayerCoordinates();",
"public static Vector2 touchToScreenPos()\n {\n Vector3 input = new Vector3(Gdx.input.getX(), Gdx.input.getY(), 0);\n input = GdxStart.camera.unproject(input);\n return new Vector2(input.x, input.y);\n }",
"public Point scaleToGraphCanvasCoords(int x, int y);",
"public Tuple2d getProjectedPoint(final Tuple3d point) {\n return new Tuple2d(TupleMath.dot(point, this.projectionX), TupleMath.dot(point, this.projectionY));\n }"
] |
[
"0.6147374",
"0.6074091",
"0.604413",
"0.59894156",
"0.5989092",
"0.5965214",
"0.59189695",
"0.59134334",
"0.58382916",
"0.5830573",
"0.582146",
"0.5809149",
"0.57559884",
"0.57364184",
"0.5726982",
"0.5688895",
"0.5686057",
"0.5677598",
"0.5649275",
"0.5647411",
"0.56271726",
"0.56258595",
"0.5594612",
"0.55880517",
"0.5571703",
"0.55661637",
"0.55510056",
"0.5541783",
"0.5500505",
"0.54879487",
"0.54825145",
"0.54629",
"0.5447791",
"0.5443898",
"0.54241884",
"0.54236877",
"0.54157096",
"0.54054576",
"0.53885967",
"0.5385587",
"0.5358665",
"0.5334947",
"0.53321356",
"0.53193736",
"0.53137124",
"0.52962583",
"0.5251056",
"0.5248103",
"0.52462465",
"0.52169436",
"0.52103186",
"0.5197205",
"0.5191862",
"0.51637894",
"0.515656",
"0.5152624",
"0.5150651",
"0.51418704",
"0.5134566",
"0.5131504",
"0.5127023",
"0.51227176",
"0.5083627",
"0.5078843",
"0.50761384",
"0.50654256",
"0.5064679",
"0.50459164",
"0.5037863",
"0.50370187",
"0.50191295",
"0.5005685",
"0.49977875",
"0.4991617",
"0.49903312",
"0.49853265",
"0.49851537",
"0.49825117",
"0.4978978",
"0.4970708",
"0.49675643",
"0.4965055",
"0.49634743",
"0.4961494",
"0.49588332",
"0.49567705",
"0.49561203",
"0.49431366",
"0.4942442",
"0.49384573",
"0.49352786",
"0.4929059",
"0.4923911",
"0.4918536",
"0.49181905",
"0.4917711",
"0.4908454",
"0.48978305",
"0.48973483",
"0.48853776"
] |
0.5093669
|
62
|
Transforms the specified point in the actor's coordinates to be in the parent's coordinates.
|
public Vector2 localToParentCoordinates(Vector2 localCoords) {
return internalGroup.localToParentCoordinates(localCoords);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMPoint convertPointFromShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(-getX(), -getY()); return point; }\n return getTransformFromShape(shape).transform(point);\n}",
"public void relocateToPoint (Point2D p) {\n\n\t\t//relocates the object to a point that has been converted to\n\t\t//scene coordinates\n\t\tPoint2D localCoords = getParent().sceneToLocal(p);\n\n\t\tdouble x = localCoords.getX() - (getBoundsInLocal().getWidth() / 2);\n\t\tdouble y = localCoords.getY() - (getBoundsInLocal().getHeight() / 2);\n\n\t\trelocate ( (int) (x), (int) (y) );\n\t}",
"public RMPoint convertPointToShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(getX(), getY()); return point; }\n return getTransformToShape(shape).transform(point);\n}",
"private Point toInnerPoint(Point punto){\r\n \treturn punto.add(-coord.X(), -coord.Y());\r\n// return new Point(punto.getRow() - coord.getRow(), punto.getCol() - coord.getCol());\r\n }",
"public RMPoint getXYP() { return convertPointToShape(new RMPoint(), _parent); }",
"public void relocateToPoint (Point2D p) {\n\t\tPoint2D localCoords = getParent().sceneToLocal(p);\r\n\r\n\t\trelocate ( \r\n\t\t\t\t(int) (localCoords.getX() - (getBoundsInLocal().getWidth() / 2)),\r\n\t\t\t\t(int) (localCoords.getY() - (getBoundsInLocal().getHeight() / 2))\r\n\t\t\t\t);\r\n\t}",
"public Point toOuterPoint(Point punto){\r\n \treturn punto.add(coord);\r\n// return new Point(punto.getRow() + coord.getRow(), punto.getCol() + coord.getCol());\r\n }",
"public void transform() {\n final var bounds = getParentBounds();\n transform( bounds.width, bounds.height );\n }",
"public Point2D translatePoint( Figure f, Point2D p, Point2D dir);",
"public void transform(AffineTransform at) {\n\t\tif (_child != null) {\n\t\t\t_child.transform(at);\n\t\t}\n\t}",
"protected IPoint scalePointIntoCoordinates(IPoint point) {\n\t\t\n\t\tdouble newX = point.getX() / getPixelsPerX();\n\t\tdouble newY = point.getY() / getPixelsPerY();\n\t\treturn new Point(newX, newY, point.getTime());\n\t}",
"public void relocateToPoint(boolean isUserClick){\n// System.out.println(\"Scene x: \"+point.getX()+\", y: \"+point.getY());\n// System.out.println(\"Local x: \"+getParent().sceneToLocal(point).getX()+\", y: \"+getParent().sceneToLocal(point).getY());\n// System.out.println(\"Relocate x: \"+(getParent().sceneToLocal(point).getX() - (getWidth() / 2))+\", y: \"+(getParent().sceneToLocal(point).getY() - (getHeight() / 2)));\n// System.out.println(getBoundsInLocal().getWidth());\n// System.out.println(widthProperty());\n\n if (isUserClick) {\n double new_x=getParent().sceneToLocal(x,y).getX();\n double new_y=getParent().sceneToLocal(x,y).getY();\n setX(new_x);\n setY(new_y);\n relocate(\n// (getParent().sceneToLocal(x,y).getX() - (widthCountry / 2)),\n// (getParent().sceneToLocal(x,y).getY() - (heightCountry / 2))\n new_x,new_y\n );\n } else {\n relocate(x,y);\n }\n\n\n }",
"public Vector2 parentToLocalCoordinates(Vector2 parentCoords) {\n return internalGroup.parentToLocalCoordinates(parentCoords);\n }",
"private static Point3d transformPoint(Matrix4d transformMat, Point3d originalPoint) {\n Point3d tempPoint = new Point3d();\n transformMat.transform(new Point3d(originalPoint.getX(), originalPoint.getY(), originalPoint.getZ()), tempPoint);\n return tempPoint;\n }",
"public void center() {\n\t\tif(parent != null) {\n\t\t\tfloat parMidWidth = parent.getWidth() / 2f;\n\t\t\tfloat parMidHeight = parent.getHeight() / 2f;\n\t\t\tfloat midWidth = width / 2f;\n\t\t\tfloat midHeight = height / 2f;\n\t\t\t\n\t\t\tfloat newX = parent.getX() + (parMidWidth - midWidth);\n\t\t\tfloat newY = parent.getY() + (parMidHeight - midHeight);\n\t\t\t\n\t\t\tposition = new Vec2f(newX, newY);\n\t\t\tfindPosRatios();\n\t\t}\n\t}",
"public void translate(Point p){\n a.translate(p);\n b.translate(p);\n c.translate(p);\n }",
"static void setViewPointRelevantTo(Point point) {\n point.translate(-1 * viewPoint.x, -1 * viewPoint.y);\n point.x /= Map.zoom;\n point.y /= Map.zoom;\n point.translate(viewPoint.x, viewPoint.y);\n viewPoint.setLocation(point.x - GAME_WIDTH / 2, point.y - GAME_HEIGHT / 2);\n verifyViewPoint();\n }",
"public static Spatial convertToLocal(Spatial parent, Spatial child) {\n\t\tfloat x = child.getX();\n\t\tfloat y = child.getY();\n\n\t\tfloat angle = child.getAngle();\n\n\t\tchild.setPosition(x - parent.getX(), y - parent.getY());\n\t\tchild.setAngle(angle - parent.getAngle());\n\n\t\treturn child;\n\t}",
"public void setSpawnPoint() {\n if (this.dirVec.y == 0) {\n super.centerRectAt(new Point(-1*OUTER_OFFSET, super.getCenter().y));\n }\n else {\n super.centerRectAt(new Point(super.getCenter().x, OUTER_OFFSET));\n }\n }",
"public Point convertPointCoordinate(Point point)\n\t{\n\t\tpoint.y = this.getHeight() - point.y;\n\t\treturn point;\n\t}",
"@Override\t\t\t\n\tpublic final myPointf transformPoint(myPointf A, int transformIDX, float t) {\treturn trans[transformIDX].transformPoint(A, t);}",
"public void setParent(RMParentShape aShape) { _parent = aShape; }",
"public PVector getTransformedPosition(){\n\t\treturn gui.getTransform().transform(position);\n\t}",
"public static Vector2f transformPoint(Transform t, Vector2f p) {\n\t\treturn t.transformPoint(p);\n\t}",
"@Override\r\n\tprotected AffineTransform getPointTransformation() {\n\t\treturn null;\r\n\t}",
"public void setXYP(double anX, double aY)\n{\n // If rotated-scaled-skewd, get XY in parent coords and set XY as an offset from parent\n if(isRSS()) {\n RMPoint p = getXYP();\n setXY(_x + anX - p.x, _y + aY - p.y);\n }\n\n // If not rotated-scaled-skewed, just set x/y (adjusted if width/height are negative)\n else setXY(_width<0? anX-_width : anX, _height<0? aY-_height : aY); \n}",
"private Point transform(Point pt1) {\n Point pt2 = new Point(0,0) ;\n pt2.x = pos.x + new Double(pt1.x*Math.cos(heading)+pt1.y*Math.sin(heading)).intValue() ;\n pt2.y = pos.y + new Double(-pt1.x*Math.sin(heading)+pt1.y*Math.cos(heading)).intValue() ;\n return pt2 ;\n }",
"public final Shape translate(Vector fromPoint, Vector toPoint) {\n\t\treturn transform(new Translation(fromPoint, toPoint));\n\t}",
"@SuppressWarnings(\"unchecked\")\n public AnimatorType position(PointF point)\n {\n addTransformer(new PositionTransformer(getShape(), point));\n return (AnimatorType) this;\n }",
"private void setOrigin() {\n Hep3Vector origin = VecOp.mult(CoordinateTransformations.getMatrix(), _sensor.getGeometry().getPosition());\n // transform to p-side\n Polygon3D psidePlane = this.getPsidePlane();\n Translation3D transformToPside = new Translation3D(VecOp.mult(-1 * psidePlane.getDistance(),\n psidePlane.getNormal()));\n this._org = transformToPside.translated(origin);\n }",
"@Override\r\n\t\tpublic void translate(Point3D vec) {\r\n\t\t\t// TODO Auto-generated method stub \r\n\t\t\tMyCoords mc= new MyCoords();\r\n\t\t\tPoint3D p=new Point3D(vec);\r\n\t\t\tPoint3D newPoint=mc.add(p, vec);\r\n\t\t\tthis.point=newPoint;\r\n\t\t}",
"private void pointCameraAt(Point3D target,Group root){\n for(Node node: root.getChildren()){\n node.setTranslateX(node.getTranslateX()-xOffset);\n node.setTranslateY(node.getTranslateY()-yOffset);\n node.setTranslateZ(node.getTranslateZ()-zOffset);\n }\n\n xOffset = -target.getX(); yOffset = -target.getY(); zOffset = -target.getZ();\n\n for(Node node: root.getChildren()){\n node.setTranslateX(node.getTranslateX()+xOffset);\n node.setTranslateY(node.getTranslateY()+yOffset);\n node.setTranslateZ(node.getTranslateZ()+zOffset);\n }\n }",
"public void moveAndZoomAction(PointActor pointActor) {\n pointActor.remove();\n // coordinates where map should move\n float movePointX = screenWidth / 2 - pointActor.getX() - pointActor.getWidth();\n float movePointY = screenHeight / 2 - pointActor.getY() - pointActor.getHeight();\n // sets origin where the zoom effect is centralized\n mapBorderActor.setOrigin(pointActor.getX() + pointActor.getWidth(), pointActor.getY() + pointActor.getHeight());\n // adds actions\n mapBorderActor.addAction(\n // sequence allows actors do actions in order\n Actions.sequence(\n Actions.moveTo(movePointX,\n movePointY,\n 1f), // duaration(seconds) of move\n Actions.scaleTo(1.5f, 1.5f, 1f),\n Actions.run(new Runnable() {\n @Override\n public void run() {\n host.setScreen(new TalkScreen(host));\n }\n })));\n }",
"protected void notifyParentOfPositionChange()\n {\n rotatedCorners = null;\n ShapeView view = getParentView();\n \n if (view != null)\n {\n view.onPositionChanged(this);\n }\n }",
"public void moveTo(Point point){\n updateUndoBuffers(new LinkedList<>());\n xPos = point.getMyX()+myGrid.getWidth()/ HALF;\n yPos = myGrid.getHeight()/ HALF-point.getMyY();\n }",
"final void setParent(ShapeParent newParent)\n {\n this.parent = newParent;\n }",
"@NonNull\n @Override\n public PointF transformMeteringPoint(@NonNull PointF point) {\n PointF scaled = new PointF();\n scaled.x = -1000F + (point.x / previewSize.getWidth()) * 2000F;\n scaled.y = -1000F + (point.y / previewSize.getHeight()) * 2000F;\n\n // Apply rotation to this point.\n // https://academo.org/demos/rotation-about-point/\n PointF rotated = new PointF();\n double theta = ((double) displayToSensor) * Math.PI / 180;\n rotated.x = (float) (scaled.x * Math.cos(theta) - scaled.y * Math.sin(theta));\n rotated.y = (float) (scaled.x * Math.sin(theta) + scaled.y * Math.cos(theta));\n LOG.i(\"scaled:\", scaled, \"rotated:\", rotated);\n return rotated;\n }",
"public final void setToPoint(Vector toPoint) {\n\t\ttransform.setToPoint(toPoint);\n\t}",
"public X location(Point p) {\n component.setLocation(p);\n return (X) this;\n }",
"private void leftRotate(Entry<T> child, Entry<T> p) {\n\t\tif(p.parent != null) {\n\t\t\tif(p == p.parent.left)\n\t\t\t\tp.parent.left = child;\n\t\t\telse\n\t\t\t\tp.parent.right = child;\n\t\t}\n\t\tif(child.left != null)\n\t\t\tgetSplay(child.left).parent = p;\n\t\t\n\t\tchild.parent = p.parent;\n\t\tp.parent = child;\n\t\tp.right = child.left;\n\t\tchild.left = p;\n\t}",
"public RMTransform getTransformFromShape(RMShape aShape)\n{\n // The transform from parent is just our inverse transform, transform from child is just child's transform\n if(aShape==getParent())\n return getTransformInverse();\n if(aShape!=null && this==aShape.getParent())\n return aShape.getTransform();\n\n // Return the inverse of transform to shape\n return getTransformToShape(aShape).invert();\n}",
"protected Vector3D getRefCompCenterRelParent(AbstractShape shape) {\n Vector3D centerPoint;\n if (shape.hasBounds()) {\n centerPoint = shape.getBounds().getCenterPointLocal();\n centerPoint.transform(shape.getLocalMatrix()); //macht den punkt in self space\n } else {\n Vector3D localObjCenter = shape.getCenterPointGlobal();\n localObjCenter.transform(shape.getGlobalInverseMatrix()); //to localobj space\n localObjCenter.transform(shape.getLocalMatrix()); //to parent relative space\n centerPoint = localObjCenter;\n }\n return centerPoint;\n }",
"public void update() {\n\t\tactSX=parent.actSX*scaleX;\n\t\tactSY=parent.actSY*scaleY;\n\t\tw=posW*actSX;\n\t\th=posH*actSY;\n\t\tswitch (align) {\n\t\tcase DEFAULT:\n\t\t\tx=parent.x+posX*actSX;\n\t\t\ty=parent.y+posY*actSY;\n\t\t\tbreak;\n\t\tcase TOPRIGHT:\n\t\t\tx=parent.x+parent.w-(posX+posW)*actSX;\n\t\t\ty=parent.y+posY*actSY;\n\t\t\tbreak;\n\t\tcase BOTTOMLEFT:\n\t\t\tx=parent.x+posX*actSX;\n\t\t\ty=parent.y+parent.h-(posY+posH)*actSY;\n\t\t\tbreak;\n\t\tcase BOTTOMRIGHT:\n\t\t\tx=parent.x+parent.w-(posX+posW)*actSX;\n\t\t\ty=parent.y+parent.h-(posY+posH)*actSY;\n\t\t\tbreak;\n\t\tcase CENTEREDX:\n\t\t\tx=parent.x+parent.w/2-w/2+posX*actSX;\n\t\t\ty=parent.y+posY*actSY;\n\t\t\tbreak;\n\t\tcase CENTEREDY:\n\t\t\tx=parent.x+posX*actSX;\n\t\t\ty=parent.y+parent.h/2-h/2+posY*actSY;\n\t\t\tbreak;\n\t\tcase CENTEREDXY:\n\t\t\tx=parent.x+parent.w/2-w/2+posX*actSX;\n\t\t\ty=parent.y+parent.h/2-h/2+posY*actSY;\n\t\t\tbreak;\n\t\t}\n\t}",
"public GuiPoint coordinateToGui(Vector2f point) {\r\n\t\tint coordX = (int) Math.round(point.getX() * zoomFactor);\r\n\t\tint coordY = (int) Math.round(point.getY() * zoomFactor);\r\n\r\n\t\tint guiX = coordX + origin.x;\r\n\t\tint guiY = coordY + origin.y;\r\n\t\tGuiPoint pos = new GuiPoint(guiX, guiY);\r\n\r\n\t\treturn pos;\r\n\t}",
"public RMParentShape getParent() { return _parent; }",
"public void changePos(double xP, double yP){ \n this.xCoor += xP;\n this.yCoor += yP;\n \n }",
"public void setParent(AsNode parent) {\n\t\tthis.state.setG(parent.getState().getG() + parent.childCost.get(this));\n\t\tthis.parent = parent;\n\t}",
"public void SetPosition(Vector2 position)\n\t{\n\t\tTransform transform = parent.transform;\n\t\ttransform.position = position;\n\t\t// Dont loose your dP!\n\t\tpreviousPosition = Vector2.Add(position,velocity.negate());\n\t}",
"public void updateCoords() {\n line.setLine(parent.getFullBounds().getCenter2D(), child.getFullBounds().getCenter2D());\n Rectangle2D r = line.getBounds2D();\n // adding 1 to the width and height prevents the bounds from\n // being marked as empty and is much faster than createStrokedShape()\n setBounds(r.getX(), r.getY(), r.getWidth() + 1, r.getHeight() + 1);\n invalidatePaint();\n }",
"public void pointToMouse() {\n pointToXY(p.mouseX,p.mouseY);\n }",
"public Point applyToPoint(Point p) {\r\n return new Point(p.getX() + this.dx, p.getY() + this.dy);\r\n }",
"private static void transformPoint(Point3D position, Point3D srcOrigin, int angle, Point3D destOrigin)\n \t{\n \t\t\n \t\tint tx = position.getX() - srcOrigin.getX();\n \t\tint ty = position.getY() - srcOrigin.getY();\n \t\tint tz = position.getZ() - srcOrigin.getZ();\n \t\t\n \t\t//\"int angle\" specifies a rotation consistent with Minecraft's orientation system.\n \t\t//That means each increment of 1 in angle would be a 90-degree clockwise turn.\n \t\t//Given a starting direction A and a destination direction B, the rotation would be\n \t\t//calculated by (B - A).\n \n \t\t//Adjust angle into the expected range\n \t\tif (angle < 0)\n \t\t{\n \t\t\tint correction = -(angle / 4);\n \t\t\tangle = angle + 4 * (correction + 1);\n \t\t}\n \t\tangle = angle % 4;\n \t\t\n \t\tint rx;\n \t\tint rz;\n \t\tswitch (angle)\n \t\t{\n \t\t\tcase 0: //No rotation\n \t\t\t\trx = tx;\n \t\t\t\trz = tz;\n \t\t\t\tbreak;\n \t\t\tcase 1: //90 degrees clockwise\n \t\t\t\trx = -tz;\n \t\t\t\trz = tx;\n \t\t\t\tbreak;\n \t\t\tcase 2: //180 degrees\n \t\t\t\trx = -tx;\n \t\t\t\trz = -tz;\n \t\t\t\tbreak;\n \t\t\tcase 3: //270 degrees clockwise\n \t\t\t\trx = tz;\n \t\t\t\trz = -tx;\n \t\t\t\t\n \t\t\t\tbreak;\n \t\t\tdefault: //This should never happen\n \t\t\t\tthrow new IllegalStateException(\"Invalid angle value. This should never happen!\");\n \t\t}\n \t\t\n \t\tposition.setX( rx + destOrigin.getX() );\n \t\tposition.setY( ty + destOrigin.getY() );\n \t\tposition.setZ( rz + destOrigin.getZ() );\n \t}",
"public void setParent(PafDimMember parent) {\r\n\t\tthis.parent = parent;\r\n\t}",
"void turnToPoint(float x, float y) {\n _rotVector.set(x - _x, y - _y, 0);\n _rotVector.setMag(1);\n }",
"public void setToCoordinates(int toX, int toY);",
"@NonNull\n @Override\n public PointF transformMeteringPoint(@NonNull PointF point) {\n final PointF referencePoint = new PointF(point.x, point.y);\n Size referenceSize = previewSize;\n\n // 1. Account for cropping.\n // This will enlarge the preview size so that aspect ratio matches.\n referenceSize = applyPreviewCropping(referenceSize, referencePoint);\n\n // 2. Scale to the preview stream coordinates.\n // This will move to the preview stream coordinates by scaling.\n referenceSize = applyPreviewScale(referenceSize, referencePoint);\n\n // 3. Rotate to the stream coordinate system.\n // This leaves us with sensor stream coordinates.\n referenceSize = applyPreviewToSensorRotation(referenceSize, referencePoint);\n\n // 4. Move to the crop region coordinate system.\n // The crop region is the union of all currently active streams.\n referenceSize = applyCropRegionCoordinates(referenceSize, referencePoint);\n\n // 5. Move to the active array coordinate system.\n referenceSize = applyActiveArrayCoordinates(referenceSize, referencePoint);\n LOG.i(\"input:\", point, \"output (before clipping):\", referencePoint);\n\n // 6. Probably not needed, but make sure we clip.\n if (referencePoint.x < 0) referencePoint.x = 0;\n if (referencePoint.y < 0) referencePoint.y = 0;\n if (referencePoint.x > referenceSize.getWidth()) referencePoint.x = referenceSize.getWidth();\n if (referencePoint.y > referenceSize.getHeight()) referencePoint.y = referenceSize.getHeight();\n LOG.i(\"input:\", point, \"output (after clipping):\", referencePoint);\n return referencePoint;\n }",
"public void setTransform(float a11, float a12, float a21, float a22, float x, float y);",
"public static Spatial convertToAbsolute(Spatial parent, Spatial child) {\n\t\tfloat x = child.getX();\n\t\tfloat y = child.getY();\n\n\t\tfloat angle = child.getAngle();\n\n\t\tchild.setPosition(x + parent.getX(), y + parent.getY());\n\t\tchild.setAngle(angle + parent.getAngle());\n\n\t\treturn child;\n\t}",
"public void setMoveTo(Coordinate coordinate);",
"public Point applyToPoint(Point p) {\n double newX, newY;\n Point newP;\n //the new x\n newX = p.getX() + this.dx;\n //the new y\n newY = p.getY() + this.dy;\n //the new point\n newP = new Point((newX), (newY));\n return newP;\n }",
"@Override\n\tpublic void setParent(WhereNode parent) {\n\t\tthis.parent = parent;\n\t}",
"public void transform(int npcid) {\n\t\tthis.transformTo = npcid;\n\t\tthis.getUpdateFlags().flag(UpdateFlag.TRANSFORM);\n\t}",
"public Point applyToPoint(Point p) {\n return new Point(this.dx + p.getX(), this.dy + p.getY());\n }",
"public Point(Point other) {\n super(other);\n this.x = other.x;\n this.y = other.y;\n this.activity = other.activity;\n this.frame = other.frame;\n this.trajectoryid = other.trajectoryid;\n }",
"public void\nshiftToOrigin()\n{\n\tthis.setLine(0.0, 0.0,\n\t\tthis.getP2().getX() - this.getP1().getX(),\n\t\tthis.getP2().getY() - this.getP1().getY());\n}",
"public void moveToOrigin() {\n for(Waypoint waypoint : path)\n waypoint.setCoordinates(waypoint.getX() - path.get(0).getX(),\n waypoint.getY() - path.get(0).getY());\n }",
"void moveToPoint(float x, float y) {\n _x = x;\n _y = y;\n }",
"public static Point mapPoint(Point point) {\n\t\treturn point;\n\t}",
"private Point[] transformCoordinateSystem(Point[] objectPosition, Point newCenter) {\n\t\tPoint[] transformedObjectPosition = objectPosition;\n\t\tfor(int i = 0; i < objectPosition.length; i++) {\n\t\t\t// Move location to coordinate system with center in origo \n\t\t\ttransformedObjectPosition[i].set(new double[] {\n\t\t\t\tobjectPosition[i].x - newCenter.x,\n\t\t\t\tobjectPosition[i].y - newCenter.y\n\t\t\t});\n\t\t}\n\t\t\n\t\treturn transformedObjectPosition;\n\t}",
"private void setOriginNode() {\n double sumX = 0;\n double sumY = 0;\n Iterator<Point> it = _elements.iterator();\n while (it.hasNext()) {\n Point p = it.next();\n sumX += x(p);\n sumY += y(p);\n }\n _nodeOrigin[0] = sumX / _elements.size();\n _nodeOrigin[1] = sumY / _elements.size();\n }",
"private void transformObject(int x, int y) {\n double sx, sy, l, r, nx, ny, tx, ty, alpha, origCX = 0, origCY = 0;\n Rectangle bnds;\n\n if(curr_obj == transformPointers[Action.ROTATE]) {\n /* the mouse vector 1 */\n GeoVector mouseVector = new GeoVector(x, y, this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n\n /* the rotation vector. i.e. the fixed vector that will be used as origin composed by the subtraction of the object center with the rotation point */\n GeoVector rotationVector = new GeoVector(this.lastPosition[0], this.lastPosition[1], this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n\n mouseVector.normalize();\n rotationVector.normalize();\n\n alpha = mouseVector.getAngleWith(rotationVector.getX(), rotationVector.getY());\n\n /** After passing the 180 degrees, the atan2 function returns a negative angle from 0 to PI. So this will convert the final gobal angle to 0-2PI */\n if(alpha < 0 ) {\n alpha = (2 * Math.PI) + alpha; \n }\n\n alpha -= this.currRotation;\n this.currRotation += alpha;\n\n Point c = new Point(this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n this.aux_obj.uRotate((float)(-1.0*(alpha*(180/Math.PI))), c);\n \n } else {\n alpha = this.aux_obj.getRotation();\n\n /** Here we rotate the selected Graphic Object, it's tranformation points and the mouse coordinates back to the zero angle, to permit a correct object scalling. */\n if(alpha != 0.0) {\n origCX = this.aux_obj.getCenterX();\n origCY = this.aux_obj.getCenterY();\n this.aux_obj.uRotate((float)(alpha*-1.0), this.aux_obj.getCenter());\n rotateTransformPoints(alpha);\n GeoVector mouseCoord = new GeoVector(x, y, this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n\n mouseCoord.rotate( ((alpha*-1.0) * (2.0*Math.PI))/360 );\n mouseCoord.addPoint(this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n x = (int)mouseCoord.getX();\n y = (int)mouseCoord.getY();\n\n }\n\n /** Tatami rotates the object from it's x and y point to the edges. So this means that sometimes we need to translate the object a few pixels to asure that it's upper left corner is on the same position. */\n if(curr_obj == transformPointers[Action.NORTHWEST]) {\n if(x < (transformPointers[Action.EAST].getX()-2) && y < (transformPointers[Action.SOUTH].getY()-2)) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = (transformPointers[Action.EAST].getX()+2) - x ;\n sx = nx / (l+r);\n tx = (sx*l-l) + (sx*r-r);\n\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = (transformPointers[Action.SOUTH].getY()+2) - y;\n sy = ny / (l+r);\n ty = (sy*l-l) + (sy*r-r);\n\n aux_obj.uTranslate((int)-tx, (int)-ty);\n aux_obj.scale( (float)sx, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.NORTHWEST];\n }\n } else if(curr_obj == transformPointers[Action.NORTH]) {\n if(y < (transformPointers[Action.SOUTH].getY()-2)) {\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = (transformPointers[Action.SOUTH].getY()+2) - y;\n sy = ny / (l+r);\n ty = (sy*l-l) + (sy*r-r);\n\n aux_obj.uTranslate(0, (int)-ty);\n aux_obj.scale( 1, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.NORTH];\n }\n } else if(curr_obj == transformPointers[Action.NORTHEAST]) {\n if(x > (transformPointers[Action.WEST].getX()+2) && y < (transformPointers[Action.SOUTH].getY()-2)) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = x - (transformPointers[Action.WEST].getX()+2);\n sx = nx / (l+r);\n tx = sx*l-l;\n\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = (transformPointers[Action.SOUTH].getY()+2) - y;\n sy = ny / (l+r);\n ty = (sy*l-l) + (sy*r-r);\n\n aux_obj.uTranslate((int)tx, (int)-ty);\n aux_obj.scale( (float)sx, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.NORTHEAST];\n }\n\n } else if(curr_obj == transformPointers[Action.WEST]) {\n if(x < (transformPointers[Action.EAST].getX()-2) ) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = (transformPointers[Action.EAST].getX()+2) - x ;\n sx = nx / (l+r);\n tx = (sx*l-l) + (sx*r-r);\n\n aux_obj.uTranslate((int)-tx, 0);\n aux_obj.scale( (float)sx, 1);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.WEST];\n }\n } else if(curr_obj == transformPointers[Action.EAST]) {\n if(x > (transformPointers[Action.WEST].getX()+2) ) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = x - (transformPointers[Action.WEST].getX()+2);\n sx = nx / (l+r);\n tx = sx*l-l;\n\n aux_obj.uTranslate((int)tx, 0);\n aux_obj.scale( (float)sx, (float)1);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.EAST];\n }\n } else if(curr_obj == transformPointers[Action.SOUTHWEST]) {\n if(x < (transformPointers[Action.EAST].getX()-2) && y > (transformPointers[Action.NORTH].getY()+2)) {\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = (transformPointers[Action.EAST].getX()+2) - x ;\n sx = nx / (l+r);\n tx = (sx*l-l) + (sx*r-r);\n\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = y - (transformPointers[Action.NORTH].getY()+2);\n sy = ny / (l+r);\n ty = sy*l-l;\n\n aux_obj.uTranslate((int)-tx, (int)ty);\n aux_obj.scale( (float)sx, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.SOUTHWEST];\n }\n } else if(curr_obj == transformPointers[Action.SOUTH]) {\n if(y > (transformPointers[Action.NORTH].getY()+2)) {\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = y - (transformPointers[Action.NORTH].getY()+2);\n sy = ny / (l+r);\n ty = sy*l-l;\n\n aux_obj.uTranslate(0, (int)ty);\n aux_obj.scale( 1, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.SOUTH];\n }\n } else if(curr_obj == transformPointers[Action.SOUTHEAST]) {\n if(x > (transformPointers[Action.WEST].getX()+2) && y > (transformPointers[Action.NORTH].getY()+2)) {\n\n l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2);\n r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX();\n nx = x - (transformPointers[Action.WEST].getX()+2);\n sx = nx / (l+r);\n tx = sx*l-l;\n\n l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2);\n r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY();\n ny = y - (transformPointers[Action.NORTH].getY()+2);\n sy = ny / (l+r);\n ty = sy*l-l;\n\n aux_obj.uTranslate((int)tx, (int)ty);\n aux_obj.scale( (float)sx, (float)sy);\n\n if(alpha != 0.0) {\n this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY()));\n this.aux_obj.rotate((float)alpha);\n }\n\n canvas.remove(transformPoints);\n transformPoints.clear();\n bnds = aux_obj.getBounds();\n createTransformPoints(bnds, aux_obj);\n curr_obj = transformPointers[Action.SOUTHEAST];\n }\n }\n\n\n }\n \n }",
"@Override\n\tpublic void setParent(ASTNode node) {\n\t\tthis.parent = node;\n\t\t\n\t}",
"public void translate(int x, int y);",
"void scalePointProportionally2() {\n\t\tmyParent.fill(255, 0, 0);\n\t\tmyParent.ellipse(point[neighbor(selectedPoint)[2]].position.x, point[neighbor(selectedPoint)[2]].position.y, 30,\n\t\t\t\t30);\n\t\tmyParent.ellipse(point[neighbor(selectedPoint)[1]].position.x, point[neighbor(selectedPoint)[1]].position.y, 20,\n\t\t\t\t20);\n\t\tmyParent.ellipse(point[neighbor(selectedPoint)[0]].position.x, point[neighbor(selectedPoint)[0]].position.y, 10,\n\t\t\t\t10);\n\t\t// offsetP = PVector.sub(P, beginP); // calculate the offset made by P\n\t\tdiagonal.detectX(P); // aka find X\n\t\t// diagonal.offsetX = PVector.sub(diagonal.X, diagonal.beginX); //\n\t\t// calculate the offset made by X\n\t\tdiagonal.end = PVector.add(diagonal.beginEnd, diagonal.offsetX);\n\t\tdiagonalScaleFactor = diagonal.start.dist(diagonal.X) / diagonal.start.dist(diagonal.beginX);\n\t\tpoint[selectedPoint].position.set(diagonal.end);\n\n\t\t// scale neighbors\n\t\tPVector leftNeighbor = new PVector();\n\t\tPVector rightNeighbor = new PVector();\n\t\tPVector opposite = new PVector();\n\t\tleftNeighbor.set(point[neighbor(selectedPoint)[0]].beginPosition);\n\t\trightNeighbor.set(point[neighbor(selectedPoint)[1]].beginPosition);\n\t\topposite.set(point[neighbor(selectedPoint)[2]].beginPosition);\n\n\t\tleftNeighbor.sub(opposite);\n\t\tleftNeighbor.mult(diagonalScaleFactor);\n\t\tleftNeighbor.add(opposite);\n\t\tpoint[neighbor(selectedPoint)[0]].position.set(leftNeighbor);\n\n\t\trightNeighbor.sub(opposite);\n\t\trightNeighbor.mult(diagonalScaleFactor);\n\t\trightNeighbor.add(opposite);\n\t\tpoint[neighbor(selectedPoint)[1]].position.set(rightNeighbor);\n\t}",
"public Point(Point point) {\n super(point.getReferenceX(), point.getReferenceY());\n this.x = point.x;\n this.y = point.y;\n this.setHeight(point.getHeight());\n }",
"public void setOrigin(Point p) {\n origin = new Point(p);\n }",
"public void panOriginTo(double x, double y) {\n \t\tfloat tx = (float) (x / mapDisplay.sc);\n \t\tfloat ty = (float) (y / mapDisplay.sc);\n \t\tsetPosition(tx, ty, tweening);\n \t}",
"public void setParent(CarrierShape parent)\n\t{\n\t\tthis.parent = parent;\n\t}",
"public void startExecuting() {\n\t\t\tRandom random = this.parentEntity.getRNG();\n\t\t\tdouble d0 = this.parentEntity.posX + (double)((random.nextFloat() * 2.0F - 1.0F) * 16.0F);\n\t\t\tdouble d1 = this.parentEntity.posY + (double)((random.nextFloat() * 2.0F - 1.0F) * 16.0F);\n\t\t\tdouble d2 = this.parentEntity.posZ + (double)((random.nextFloat() * 2.0F - 1.0F) * 16.0F);\n\t\t\tthis.parentEntity.getMoveHelper().setMoveTo(d0, d1, d2, 0.3D);\n\t\t}",
"private ECPoint convertECPoint(java.security.spec.ECPoint point) {\n return domainParams.getCurve().createPoint(point.getAffineX(), point.getAffineY());\n }",
"public void moveToPoint(double x, double y, double z);",
"static Posn translate ( Posn p, double dx, double dy ) {\n\t// return .... ;\n\t// Take stock\n\t// return ... p ... dx ... dy ; // <- We know this from Posn p\n\t// return new Posn ( ... p.x ... p.y ... dx ... dy ); // <- We know this from Posn translate\n\t// return new Posn ( ... p.x ... p.y ... dx ... dy, ... p.x ... p.y ... dx ... dy );\t\n\treturn new Posn ( p.x + dx, p.y + dy );\t\n }",
"public Point applyToPoint(Point p) {\n double newX = p.getX() + this.dx;\n double newY = p.getY() + this.dy;\n return new Point(newX, newY);\n }",
"private void addTransformPoint(double x, double y, int index, GraphicObject curr, double radiansAngle) {\n /** If the object is rotated, the transform point also has to be rotated.\n * Here we calculate the new coordinates acording to the rotation angle. */\n if(radiansAngle != 0.0) {\n GeoVector vect = new GeoVector(x, y, curr.getCenterX(), curr.getCenterY());\n vect.rotate(radiansAngle);\n vect.addPoint(curr.getCenterX(), curr.getCenterY());\n x = vect.getX();\n y = vect.getY();\n }\n /** If it's the rotation point, then it creates a green circle */\n if(index==0) {\n Circle aux = new Circle(2);\n aux.setFillColor(Color.GREEN);\n aux.setStroke(Color.GRAY, 1);\n\n this.transformPoints.add(aux);\n\t\t this.transformPointers[index] = aux;\n\t\t aux.translate((int)x, (int)y);\n /** Otherwise it just creates a normal white rectangle */\n } else {\n Rect aux = new Rect(4,4);\n aux.setFillColor(Color.WHITE);\n aux.setStroke(Color.GRAY, 1);\n\n this.transformPoints.add(aux);\n\t\t this.transformPointers[index] = aux;\n\t\t aux.translate((int)x-2, (int)y-2);\n }\n\t}",
"@Override\n public void setLoc(Point p) {\n this.rect.setLocation(p);\n }",
"public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}",
"public Point applyToPoint(Point p) {\r\n double newX = p.getX() + this.dx;\r\n double newY = p.getY() + this.dy;\r\n Point newP = new Point(newX, newY);\r\n return newP;\r\n }",
"private void setParent(Node<T> parent) {\n this.parent = parent;\n }",
"private int parent(int child) {\n\t\treturn (child-1)/2;\n\t}",
"public void setParent(Node parent){\n this.parent = parent;\n }",
"@Override\r\n public Point getRelatedSceneLocation() {\r\n return getLocationPoint(locationRatio);\r\n }",
"Position<E> parent(Position<E> p) throws IllegalArgumentException;",
"@Override\n public void handle(MouseEvent event) {\n if (!event.isPrimaryButtonDown())\n return;\n\n double scale = pannableCanvas.getScale();\n\n Node node = (Node) event.getSource();\n\n if (node instanceof Group){\n Group unionGroup = (Group) node;\n for (Node node1 : unionGroup.getChildren()) {\n FamilyMemberBox familyMemberBox = (FamilyMemberBox) node1;\n double x = nodeDragContext.translateAnchorX + ((event.getSceneX() - nodeDragContext.mouseAnchorX) / scale);\n double y = nodeDragContext.translateAnchorY + ((event.getSceneY() - nodeDragContext.mouseAnchorY) / scale);\n familyMemberBox.setTranslateX(x);\n familyMemberBox.setTranslateY(y);\n\n logger.info(\"translateAnchorX: {} translateAnchorY: {}\", node.getTranslateX(), node.getTranslateY());\n }\n }\n event.consume();\n }",
"private Point translateOpenCvCoordsToWebCoords(Point pointToClick, WebElement refElement) {\n return new Point((int) (pointToClick.x - (refElement.getSize().width / 2)), (int) (pointToClick.y - (refElement.getSize().height / 2)));\n }",
"public final Shape getTranslated(Vector fromPoint, Vector toPoint) {\n\t\treturn getCopy().translate(fromPoint, toPoint);\n\t}",
"private static Vector2f transform(Rect2f srcRc, Rect2f dstRc, BaseVector2f pt) {\n\n // TODO: move this to a better place\n\n float x = (pt.getX() - srcRc.minX()) / srcRc.width();\n float y = (pt.getY() - srcRc.minY()) / srcRc.height();\n\n x = dstRc.minX() + x * dstRc.width();\n y = dstRc.minY() + y * dstRc.height();\n\n return new Vector2f(x, y);\n }",
"public void setParent (CompoundExpression parent){\n _parent = parent;\n }",
"private void updateTranslated() {\r\n\r\n\tfloat[] dp = new float[3];\r\n\tTools3d.subtract(p, _p, dp);\r\n\r\n\tfor (int i = 0; i < npoints * 3; i+= 3) {\r\n\t // translate by adding the amount local origin has moved by\r\n\t ps[i] += dp[0];\r\n\t ps[i + 1] += dp[1];\r\n\t ps[i + 2] += dp[2];\r\n\t}\r\n\t\r\n\t// reset bounding box and clear dirty flag\r\n\tbox.setBB();\r\n\tdirtyT = false;\r\n\r\n\t// finally\r\n\t_p[0] = p[0];\r\n\t_p[1] = p[1];\r\n\t_p[2] = p[2];\r\n }",
"public Point transform(double x, double y, double z) {\n\t\t\n\t\n\t\tdouble uIso = (x * xToU) + (y * yToU) + (z * zToU);\n\t\tdouble vIso = (x * xToV) + (y * yToV) + (z * zToV);\n\t\t\n\t\tint uDraw = xOffset + (int)(scale * uIso);\n\t\tint vDraw = yOffset + (int)(scale * vIso);\n\t\t\n\t\treturn new Point(uDraw, vDraw);\n\t}",
"public void translate(float x, float y);",
"void setPosition(Point point);"
] |
[
"0.6133901",
"0.61125654",
"0.6101514",
"0.5989202",
"0.5909276",
"0.5907272",
"0.586441",
"0.58113706",
"0.5762032",
"0.5713178",
"0.5652043",
"0.5638305",
"0.56290203",
"0.5605145",
"0.5598358",
"0.5553166",
"0.5525227",
"0.5524153",
"0.5512719",
"0.55093706",
"0.54594314",
"0.5377477",
"0.5367039",
"0.5365318",
"0.5359298",
"0.5342425",
"0.53378457",
"0.53354526",
"0.53219724",
"0.5292502",
"0.5291937",
"0.52913857",
"0.5272115",
"0.5235078",
"0.5210736",
"0.5167495",
"0.5166305",
"0.5136772",
"0.5127734",
"0.51259315",
"0.51195353",
"0.51132923",
"0.51006484",
"0.5054867",
"0.5053266",
"0.5042339",
"0.5040326",
"0.50375736",
"0.5031457",
"0.50298965",
"0.5022208",
"0.50119615",
"0.50020313",
"0.4988383",
"0.4977138",
"0.49737388",
"0.49556875",
"0.49519095",
"0.49513593",
"0.49475276",
"0.49463278",
"0.49390316",
"0.49374774",
"0.49310896",
"0.4928644",
"0.49164194",
"0.49143177",
"0.4908685",
"0.49074528",
"0.49002132",
"0.48972964",
"0.48972413",
"0.48930466",
"0.48885426",
"0.48777786",
"0.48763606",
"0.48758546",
"0.48714864",
"0.48704624",
"0.48633942",
"0.4858892",
"0.48573774",
"0.48483783",
"0.48481277",
"0.48471037",
"0.48438004",
"0.4832458",
"0.48257613",
"0.48235026",
"0.48009345",
"0.48007393",
"0.47976568",
"0.4791429",
"0.47895125",
"0.4786884",
"0.47843528",
"0.47662422",
"0.47654757",
"0.47612676",
"0.47498485",
"0.47492725"
] |
0.0
|
-1
|
Converts coordinates for this actor to those of a parent actor. The ascendant does not need to be a direct parent.
|
public Vector2 localToAscendantCoordinates(Actor ascendant, Vector2 localCoords) {
if(ascendant instanceof Group){
Group group=(Group)ascendant;
return internalGroup.localToAscendantCoordinates(group.internalGroup, localCoords);
}
return internalGroup.localToAscendantCoordinates(ascendant.internalActor, localCoords);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Vector2 parentToLocalCoordinates(Vector2 parentCoords) {\n return internalGroup.parentToLocalCoordinates(parentCoords);\n }",
"public RMPoint getXYP() { return convertPointToShape(new RMPoint(), _parent); }",
"public Vector2 localToParentCoordinates(Vector2 localCoords) {\n return internalGroup.localToParentCoordinates(localCoords);\n }",
"public RMParentShape getParent() { return _parent; }",
"public Integer getParentLocationId() {\n return parentLocationId;\n }",
"public int getAbsoluteX() {\r\n return getAbsoluteLeft() - getParent().getAbsoluteLeft();\r\n }",
"public final int getAbsoluteX() {\n assert (parent != null);\n if (parent == this) {\n return x;\n }\n if ((parent instanceof TWindow)\n && !(parent instanceof TMenu)\n && !(parent instanceof TDesktop)\n ) {\n // Widgets on a TWindow have (0,0) as their top-left, but this is\n // actually the TWindow's (1,1).\n return parent.getAbsoluteX() + x + 1;\n }\n return parent.getAbsoluteX() + x;\n }",
"public RTWLocation parent();",
"public Point getLocationInParentWindow() {\n return this.mLocationInParentWindow;\n }",
"public java.lang.Long getParentId() {\n return parentId;\n }",
"public Ent getParent(){\n\t\treturn (Ent)bound.getParent();\n\t}",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return parentId;\n }",
"public IntColumn getParentId() {\n return delegate.getColumn(\"parent_id\", DelegatingIntColumn::new);\n }",
"public Long getParentId() {\n return parentId;\n }",
"public Long getParentId() {\n return parentId;\n }",
"public Long getParentId() {\n return parentId;\n }",
"public Long getParentId() {\n return parentId;\n }",
"public EventNode getParent() {\n\t\treturn parent;\n\t}",
"public int getParentId() {\r\n\t\treturn parentId;\r\n\t}",
"public final ShapeParent getShapeParent()\n {\n return parent;\n }",
"public static Spatial convertToLocal(Spatial parent, Spatial child) {\n\t\tfloat x = child.getX();\n\t\tfloat y = child.getY();\n\n\t\tfloat angle = child.getAngle();\n\n\t\tchild.setPosition(x - parent.getX(), y - parent.getY());\n\t\tchild.setAngle(angle - parent.getAngle());\n\n\t\treturn child;\n\t}",
"public Integer getParentId() {\n return parentId;\n }",
"public Integer getParentId() {\n return parentId;\n }",
"public Integer getParentId() {\n return parentId;\n }",
"public String getParentAgentcy() {\r\n return parentAgentcy;\r\n }",
"public Vector2 getAbsolutePosition() {\n Vector2 screenPos = new Vector2(this.position.x, this.position.y);\n for(UIElement element = this.parent; element != null; element = element.parent) {\n screenPos.add(element.position);\n }\n return screenPos;\n }",
"public static Spatial convertToAbsolute(Spatial parent, Spatial child) {\n\t\tfloat x = child.getX();\n\t\tfloat y = child.getY();\n\n\t\tfloat angle = child.getAngle();\n\n\t\tchild.setPosition(x + parent.getX(), y + parent.getY());\n\t\tchild.setAngle(angle + parent.getAngle());\n\n\t\treturn child;\n\t}",
"public void resolveParent() {\n\t\tif (parentGroup.isEmpty() && parentName.isEmpty()) {\n\t\t\tparentDimensionId = dimensionId;\n\t\t} else {\n\t\t\tfinal CelestialObject celestialObjectParent = CelestialObjectManager.get(parentGroup, parentName);\n\t\t\tif (celestialObjectParent != null) {\n\t\t\t\tparentDimensionId = celestialObjectParent.dimensionId;\n\t\t\t}\n\t\t}\n\t}",
"public long getParentId()\n {\n return parentId;\n }",
"Position<E> parent(Position<E> p) throws IllegalArgumentException;",
"public void setParent(RMParentShape aShape) { _parent = aShape; }",
"public String getParentNode()\r\n\t{\r\n\t\tif (roadBelongingType.equals(\"inbound\"))\r\n\t\t{\r\n\t\t\treturn endNode;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn startNode;\r\n\t\t}\r\n\t}",
"protected TacticalBattleProcessor getParent() {\n return parent;\n }",
"Component getParent(Component c) {\n return hierarchy.getParent(c);\n }",
"public MiniMap getParent() {\n \t\treturn parent;\n \t}",
"DendrogramNode<T> getParent();",
"public Path parent() {\n if (isRoot()) {\n return this;\n } else {\n String[] newParts = new String[parts.length - 1];\n for (int i = 0; i < parts.length - 1; i++) {\n newParts[i] = parts[i];\n }\n return new Path(newParts, true);\n }\n }",
"public OwnerTrace<T> parent(Object parent) {\n\t\tif (parent instanceof OwnerTrace)\n\t\t\tdata.parent = ((OwnerTrace<?>)parent).data;\n\t\telse if (parent == null)\n\t\t\tdata.parent = null;\n\t\telse\n\t\t\tdata.parent = OwnerTrace.of(parent).data;\n\t\treturn this;\n\t}",
"private int parent(int child) {\n\t\treturn (child-1)/2;\n\t}",
"public Integer getParentid() {\n\t\treturn parentid;\n\t}",
"public Entity getParent() {\n return parent;\n }",
"public String getParent() {\n return _parent;\n }",
"public String getParentId() {\n return getProperty(Property.PARENT_ID);\n }",
"public E getParentEntity() {\n return parentEntity;\n }",
"@Override\n\tpublic WhereNode getParent() {\n\t\treturn parent;\n\t}",
"public static Map<Integer, List<Integer>> getChildParentMapping( int [][] relations ) {\n Map<Integer, List<Integer>> tracking = new HashMap<Integer, List<Integer>>();\n\n if( relations != null ) {\n for(int i = 0; i < relations.length; i++) {\n if( !tracking.containsKey(relations[i][0]) ) {\n System.out.println(\"TRACKER : \" + tracking);\n tracking.put(relations[i][0], new ArrayList<Integer>());\n //System.out.println(\"Parent : \" + relations[ i ][ 0 ] );\n }\n //System.out.println(relations[i][j]);\n List<Integer> parents = null;\n if( tracking.containsKey(relations[i][1]) ) {\n parents = tracking.get( relations[i][1]);\n } else {\n parents = new ArrayList<Integer>();\n }\n parents.add( relations[i][0]);\n tracking.put( relations[i][ 1 ], parents);\n System.out.println(\"Child : \" + relations[ i ][ 1 ] + \" Parent :\" + relations[i][0]);\n }\n }\n return displayResult(tracking);\n }",
"private Node parent(int i) {\n return heap[parentIndex(i)];\n }",
"public String getParent() {\r\n return (String) getAttributeInternal(PARENT);\r\n }",
"public CUser getParent() {\n return this.parent;\n }",
"public PafDimMember getParent() {\r\n\t\treturn parent;\r\n\t}",
"public String getParentId() {\n return getParent() != null ? getParent().getId() : null;\n }",
"public int getParent_id() {\n return this.parent_id;\n }",
"public int getParentID() {\n\t\treturn parentID;\n\t}",
"public String getParent() {\r\n return parent;\r\n }",
"public Long getParentId() {\n return this.parentId;\n }",
"public String getParent() {\n return _theParent;\n }",
"public Optional<NamespaceId> getParentId() {\n return parentId;\n }",
"public UpTreeNode<E> getParent() {\n\t\t\treturn parent;\n\t\t}",
"public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }",
"public int getParentNode(){\n\t\treturn parentNode;\n\t}",
"public void setParentAgentcy(String parentAgentcy) {\r\n this.parentAgentcy = parentAgentcy == null ? null : parentAgentcy.trim();\r\n }",
"public int getParentID() {\n\t\treturn _parentID;\n\t}",
"public String getParent() {\n return parent;\n }",
"public Object getParent() {\r\n return this.parent;\r\n }",
"public int findParent(int[] parent, int u) {\n\t\tif (parent[u] == -1) { // matlab u khud ka parent hai/godfather/leader/founder\n\t\t\treturn u;\n\t\t}\n\t\treturn findParent(parent, parent[u]);\n\t}",
"public CarrierShape parent()\n\t{\n\t\treturn parent;\n\t}",
"public abstract Position<E> getLeftParent(Position<E> p);",
"private int parent(int pos)\n {\t\n return (int)Math.ceil((double)Math.max(0, pos-2)/2);\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }",
"public void setParent (com.redsaga.hibnatesample.step2.Board _parent) {\n\t\tthis._parent = _parent;\n\t}",
"public Long getParentConversationId()\r\n\t{\r\n\t\treturn parentConversationId;\r\n\t}",
"protected Vector3D getRefCompCenterRelParent(AbstractShape shape) {\n Vector3D centerPoint;\n if (shape.hasBounds()) {\n centerPoint = shape.getBounds().getCenterPointLocal();\n centerPoint.transform(shape.getLocalMatrix()); //macht den punkt in self space\n } else {\n Vector3D localObjCenter = shape.getCenterPointGlobal();\n localObjCenter.transform(shape.getGlobalInverseMatrix()); //to localobj space\n localObjCenter.transform(shape.getLocalMatrix()); //to parent relative space\n centerPoint = localObjCenter;\n }\n return centerPoint;\n }",
"private ArrayList<Chromosome> selectParentsTournament() {\n ArrayList<Chromosome> parents = new ArrayList<Chromosome>(Defines.crossoverParentCt);\n ArrayList<Chromosome> matingPool = new ArrayList<Chromosome>(Defines.crossoverParentCt);\n\n // Run tournaments to select parents - for each parent\n for (int parentIdx = 0; parentIdx < Defines.crossoverParentCt; parentIdx++) {\n\n // Run tournaments - get random contestants (run.getPaTournamentSize())\n for (int tournIdx = 0; tournIdx < Defines.tournamentSize; tournIdx++) {\n int contestantID = Defines.randNum(0, this.chromosomes.size() - 1);\n matingPool.add(this.chromosomes.get(contestantID));\n }\n Collections.sort(matingPool);\n parents.add(matingPool.get(0));\n }\n\n return parents;\n }",
"public VRL getParentLocation()\n {\n \tif (this.getVRL()==null)\n \t\treturn null; \n \t\n \treturn this._nodeVRL.getParent();\n }",
"Node<T> parent();",
"TMNodeModelComposite getParent() {\n return parent;\n }",
"IGLProperty getParent();",
"public Path getParent(\n ) {\n return this.parent;\n }",
"Graph.Vertex getParent(Graph.Vertex u) {\n\t\treturn getVertex(u).parent;\n\t}",
"final void setParent(ShapeParent newParent)\n {\n this.parent = newParent;\n }",
"public String getParent() {\r\n return this.parent;\r\n }",
"public static Tour crossover(Tour parent1, Tour parent2) {\n // Create new child tour\n Tour child = new Tour();\n\n // Get start and end sub tour positions for parent1's tour\n int startPos = (int) (Math.random() * parent1.tourSize());\n int endPos = (int) (Math.random() * parent1.tourSize());\n\n // Loop and add the sub tour from parent1 to our child\n for (int i = 0; i < child.tourSize(); i++) {\n // If our start position is less than the end position\n if (startPos < endPos && i > startPos && i < endPos) {\n child.setCity(i, parent1.getCity(i));\n } // If our start position is larger\n else if (startPos > endPos) {\n if (!(i < startPos && i > endPos)) {\n child.setCity(i, parent1.getCity(i));\n }\n }\n }\n\n // Loop through parent2's city tour\n for (int i = 0; i < parent2.tourSize(); i++) {\n // If child doesn't have the city add it\n if (!child.containsCity(parent2.getCity(i))) {\n // Loop to find a spare position in the child's tour\n for (int ii = 0; ii < child.tourSize(); ii++) {\n // Spare position found, add city\n if (child.getCity(ii) == null) {\n child.setCity(ii, parent2.getCity(i));\n break;\n }\n }\n }\n }\n return child;\n }",
"private Rectangle getParentBounds() {\n final var bounds = mParentBounds;\n\n return bounds == null\n ? mParentBounds = calculateBounds( getParent() )\n : bounds;\n }",
"public int Parent() { return this.Parent; }",
"public interface Parent {\n \n /**\n * Get start offset of the child with the given index.\n * <br>\n * The child can be either flyweight or regular view.\n *\n * @param childViewIndex >=0 index of the child.\n * @return start offset of the requested child.\n */\n public int getStartOffset(int childViewIndex);\n \n /**\n * Get end offset of the child with the given index.\n * <br>\n * The child can be either flyweight or regular view.\n *\n * @param childViewIndex >=0 index of the child.\n * @return start offset of the requested child.\n */\n public int getEndOffset(int childViewIndex);\n \n }",
"public ConversionHelper getParent()\n {\n return parent;\n }",
"public ParseTreeNode getParent() {\r\n return _parent;\r\n }",
"public native Point [] getAllocationVertices(Actor ancestor);",
"public Object getParent(Object child) {\r\n \t\treturn graph.getModel().getParent(child);\r\n \t}"
] |
[
"0.64616835",
"0.56216824",
"0.55706406",
"0.55029064",
"0.53705597",
"0.52855",
"0.52668643",
"0.5233459",
"0.522032",
"0.5216585",
"0.5190023",
"0.51772106",
"0.51772106",
"0.51772106",
"0.51772106",
"0.51772106",
"0.51772106",
"0.51772106",
"0.51772106",
"0.51772106",
"0.5168521",
"0.5166402",
"0.5166402",
"0.5166402",
"0.5166402",
"0.51615053",
"0.5158538",
"0.51558435",
"0.5154579",
"0.5135885",
"0.5135885",
"0.5135885",
"0.51336443",
"0.51254946",
"0.5114997",
"0.5110893",
"0.5105646",
"0.50958353",
"0.50805354",
"0.50790626",
"0.506954",
"0.50599694",
"0.50499564",
"0.50442106",
"0.5034224",
"0.5033794",
"0.503033",
"0.5027455",
"0.5018076",
"0.50133324",
"0.50051665",
"0.5000276",
"0.49940678",
"0.49932238",
"0.499177",
"0.49892056",
"0.49816224",
"0.4973782",
"0.49713582",
"0.49713302",
"0.4964233",
"0.49621853",
"0.49513623",
"0.49275956",
"0.49252647",
"0.49233657",
"0.4922921",
"0.49193853",
"0.49186522",
"0.49165535",
"0.49151665",
"0.49118248",
"0.49088946",
"0.49075904",
"0.49014148",
"0.48997417",
"0.4898016",
"0.4898016",
"0.4898016",
"0.4892272",
"0.48886067",
"0.48786414",
"0.4875054",
"0.4870547",
"0.48683473",
"0.48671558",
"0.48664373",
"0.48571604",
"0.48565882",
"0.48532343",
"0.48475084",
"0.4847496",
"0.4840061",
"0.48358604",
"0.48356086",
"0.4834095",
"0.48310575",
"0.48258826",
"0.4824764",
"0.48246542"
] |
0.5915728
|
1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.